From 5beb62f5f37fb9af8554c22a4e4700358d09ea6e Mon Sep 17 00:00:00 2001 From: Timm Werner Date: Fri, 13 Oct 2023 13:22:41 +0200 Subject: [PATCH 1/2] [region-landingpages-list-page] Add attribute 'active' to regionlandinpage model. Add attribute 'logo_id' to company model and start ordering alphabetically --- src/models/company.js | 23 ++++++++++++++--------- src/models/region-landingpage.js | 1 + 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/models/company.js b/src/models/company.js index b65487f..9d3bb49 100644 --- a/src/models/company.js +++ b/src/models/company.js @@ -1,11 +1,6 @@ export default { name: 'company', attributes: { - legal_name: '', - domain_id: '', - name: '', - description: '', - publication_count: 0, address: { street: '', zipcode: '', @@ -15,17 +10,24 @@ export default { lat: 0, lng: 0, }, + banner_exclusive_url: null, + banner_region_url: null, + banner_instructor_url: null, + create_time: '', + description: '', + domain_id: '', contact: {}, + legal_name: '', + logo_id: null, logo_list_url: null, logo_profile_url: null, logo_profile_fb_url: null, + name: '', employer_branding_profile_url: null, header_url: null, header_image_id: null, - banner_exclusive_url: null, - banner_region_url: null, - banner_instructor_url: null, phone: '', + publication_count: 0, fax: '', website_url: '', facebook_url: '', @@ -35,7 +37,6 @@ export default { employees: 0, company_is_public: true, use_new_jobmanagement: false, - create_time: '', 'active-flatrates': { jsonApi: 'hasMany', type: 'active-flatrate', @@ -80,5 +81,9 @@ export default { jsonApi: 'hasMany', type: 'subscription', }, + 'gallery-pictures': { + jsonApi: 'hasMany', + type: 'gallery-picture', + }, }, }; diff --git a/src/models/region-landingpage.js b/src/models/region-landingpage.js index fb64850..608201c 100644 --- a/src/models/region-landingpage.js +++ b/src/models/region-landingpage.js @@ -1,6 +1,7 @@ export default { name: 'region-landingpage', attributes: { + active: false, domain_id: '', page_title: '', slug: '', From 208f7da776968cd27656c3d57c6730553d022ed3 Mon Sep 17 00:00:00 2001 From: Timm Werner Date: Fri, 13 Oct 2023 14:30:10 +0200 Subject: [PATCH 2/2] [region-landingpages-list-page] 1.0.21 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 15415cb..8e6c800 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@joblocal/api-client-v5", - "version": "1.0.20", + "version": "1.0.21", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@joblocal/api-client-v5", - "version": "1.0.20", + "version": "1.0.21", "license": "ISC", "dependencies": { "devour-client": "^3.1.4", diff --git a/package.json b/package.json index c41d710..5fd2e4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@joblocal/api-client-v5", - "version": "1.0.20", + "version": "1.0.21", "description": "This repository provides an api-client to use the version 5 joblocal api.", "files": [ "dist",