After updating the application to version 1.7, I started having these errors in the compilation. Could you help me solve it?
68 GlobalFields.selectedTypeDetail = GlobalFields.listingTypesDetails.find(res => res.post_name == GlobalFields.selectedListing._case27_listing_type);
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:68:56 – error TS2339: Property ‘listingTypesDetails’ does not exist on type ‘typeof GlobalFields’.
68 GlobalFields.selectedTypeDetail = GlobalFields.listingTypesDetails.find(res => res.post_name == GlobalFields.selectedListing._case27_listing_type);
~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:68:118 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
68 GlobalFields.selectedTypeDetail = GlobalFields.listingTypesDetails.find(res => res.post_name == GlobalFields.selectedListing._case27_listing_type);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:69:24 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
69 if (GlobalFields.selectedTypeDetail) {
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:70:22 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
70 GlobalFields.filtersSearch.selectedType = this.GlobalFields.selectedTypeDetail.ID;
~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:70:69 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
70 GlobalFields.filtersSearch.selectedType = this.GlobalFields.selectedTypeDetail.ID;
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:71:27 – error TS2339: Property ‘selectListingTypeDetail’ does not exist on type ‘typeof GlobalFields’.
71 this.GlobalFields.selectListingTypeDetail();
~~~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:74:32 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
74 console.log(GlobalFields.selectedTypeDetail);
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:75:32 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
75 console.log(GlobalFields.selectedListing);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:78:24 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
78 if (GlobalFields.selectedListing.job_gallery && !Array.isArray(GlobalFields.selectedListing.job_gallery)) {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:78:83 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
78 if (GlobalFields.selectedListing.job_gallery && !Array.isArray(GlobalFields.selectedListing.job_gallery)) {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:94:20 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
94 GlobalFields.selectedListing.comments.forEach(comm => {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:101:111 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
101 if (GlobalFields.bookmarkedListings && GlobalFields.bookmarkedListings.find(el => el.id == GlobalFields.selectedListing.id))
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:102:22 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
102 GlobalFields.selectedListing.isBookmarked = true;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:103:25 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
103 else GlobalFields.selectedListing.isBookmarked = false;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:105:20 – error TS2339: Property ‘storeRecentViewedListing’ does not exist on type ‘Service’.
105 this.service.storeRecentViewedListing(GlobalFields.selectedListing);
~~~~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:105:58 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
105 this.service.storeRecentViewedListing(GlobalFields.selectedListing);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:134:26 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
134 if (GlobalFields.selectedListing.job_gallery) {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:137:33 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
137 while (GlobalFields.selectedListing.job_gallery[i + ”]) {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:138:39 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
138 res.push(GlobalFields.selectedListing.job_gallery[i + ”]);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:141:26 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
141 GlobalFields.selectedListing.job_gallery = res;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:147:27 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
147 this.GlobalFields.selectedListing = undefined;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:154:32 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
154 let res = GlobalFields.selectedListing[‘_’ + key];
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:156:32 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
156 res = GlobalFields.selectedListing[key];
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:161:39 – error TS2339: [0mProperty ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
161 let field = this.GlobalFields.selectedTypeDetail.case27_listing_type_fields[key];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:169:30 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
169 let a = GlobalFields.selectedListing[key];
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:170:35 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
170 let b = this.GlobalFields.selectedTypeDetail.case27_listing_type_fields[key.substr(1)];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:210:39 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
210 let field = this.GlobalFields.selectedTypeDetail.case27_listing_type_fields[s];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:218:39 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
218 let field = this.GlobalFields.selectedTypeDetail.case27_listing_type_fields[s];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:315:26 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
315 if (GlobalFields.selectedListing.job_listing_category) {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:316:26 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
316 GlobalFields.selectedListing.job_listing_category.forEach(id => {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:317:38 – error TS2339: Property ‘getCategoryId’ does not exist on type ‘typeof GlobalFields’.
317 let p = GlobalFields.getCategoryId(id);
~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:318:30 – error TS2339: Property ‘listingCategories’ does not exist on type ‘typeof GlobalFields’.
318 GlobalFields.listingCategories.forEach(cat => {
~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:325:22 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
325 GlobalFields.selectedListing.job_listing_category = res;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:330:33 – error TS2339: Property ‘filterNotCustomFields’ does not exist on type ‘typeof GlobalFields’.
330 let keys = GlobalFields.filterNotCustomFields(Object.keys(GlobalFields.selectedListing));
~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:330:80 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
330 let keys = GlobalFields.filterNotCustomFields(Object.keys(GlobalFields.selectedListing));
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:361:33 – error TS2339: Property ‘filterNotCustomTaxonomies’ does not exist on type ‘typeof GlobalFields’.
361 let keys = GlobalFields.filterNotCustomTaxonomies(GlobalFields.selectedListing.pure_taxonomies);
~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:361:72 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
361 let keys = GlobalFields.filterNotCustomTaxonomies(GlobalFields.selectedListing.pure_taxonomies);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:369:46 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
369 let value = GlobalFields.selectedListing.pure_taxonomies[key];
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:511:74 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
511 this.socialSharing.share(‘Check this link’, ”, ”, GlobalFields.selectedListing.link).then(function () {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:540:34 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
540 let field = GlobalFields.filtersSearch.customFieldsDropdownKeysOptions.find(term => term.key == key);
~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:568:30 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
568 field = GlobalFields.filtersSearch.customTaxonomiesDropdownKeysOptions.find(term => term.key == key);
~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:600:28 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
600 if ((!GlobalFields.selectedListing || (!GlobalFields.selectedListing.job_email && !GlobalFields.selectedListing.job_phone &&
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:600:62 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
600 if ((!GlobalFields.selectedListing || (!GlobalFields.selectedListing.job_email && !GlobalFields.selectedListing.job_phone &&
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:600:105 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
600 if ((!GlobalFields.selectedListing || (!GlobalFields.selectedListing.job_email && !GlobalFields.selectedListing.job_phone &&
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:601:25 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
601 !GlobalFields.selectedListing.job_location && !GlobalFields.selectedListing.links)))
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:601:71 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
601 !GlobalFields.selectedListing.job_location && !GlobalFields.selectedListing.links)))
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:609:31 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
609 this.GlobalFields.selectedListing[‘claimed’] && this.GlobalFields.selectedListing[‘claimed’] == ‘1’)
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:609:79 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
609 this.GlobalFields.selectedListing[‘claimed’] && this.GlobalFields.selectedListing[‘claimed’] == ‘1’)
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:615:31 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
615 if (this.GlobalFields.selectedListing[‘claimed’] && this.GlobalFields.selectedListing[‘claimed’] == ‘1’)
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:615:79 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
615 if (this.GlobalFields.selectedListing[‘claimed’] && this.GlobalFields.selectedListing[‘claimed’] == ‘1’)
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:622:22 – error TS2339: Property ‘customRatingsSelected’ does not exist on type ‘typeof GlobalFields’.
622 GlobalFields.customRatingsSelected = ratings;
~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:696:27 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
696 this.GlobalFields.oldReview = this.youAlreadyReviewed();
~~~~~~~~~
src/app/listingPage/listingPage.ts:714:22 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
714 GlobalFields.selectedListing.isBookmarked = true;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:716:22 – error TS2339: Property ‘doBookmark’ does not exist on type ‘Service’.
716 this.service.doBookmark(GlobalFields.selectedListing.id).subscribe((data: any) => {
~~~~~~~~~~
src/app/listingPage/listingPage.ts:716:46 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
716 this.service.doBookmark(GlobalFields.selectedListing.id).subscribe((data: any) => {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:718:26 – error TS2339: Property ‘getBookmarkedListings’ does not exist on type ‘Service’.
718 this.service.getBookmarkedListings().subscribe((data: any) => {
~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:729:22 – [91merror TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
729 GlobalFields.selectedListing.isBookmarked = false;
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:731:22 – error TS2339: Property ‘undoBookmark’ does not exist on type ‘Service’.
731 this.service.undoBookmark(GlobalFields.selectedListing.id).subscribe((data: any) => {
~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:731:48 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
731 this.service.undoBookmark(GlobalFields.selectedListing.id).subscribe((data: any) => {
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:733:26 – error TS2339: Property ‘getBookmarkedListings’ does not exist on type ‘Service’.
733 this.service.getBookmarkedListings().subscribe((data: any) => {
~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:751:29 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
751 return GlobalFields.selectedListing.comments.find(comm => comm.author_id == this.GlobalFields.profile.user.id);
~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:769:53 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
769 this.GlobalFields.msgToOwner = GlobalFields.selectedListing.author;
~~~~~~~~~~~~~~~m
src/app/listingPage/listingPage.ts:786:30 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
786 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:786:110 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
786 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:786:204 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
786 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:787:31 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
787 this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.forEach(obj =>{
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:796:30 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
796 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:796:110 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
796 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:796:204 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
796 if(this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details && this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.length>0){
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:797:31 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
797 this.GlobalFields.selectedTypeDetail.case27_listing_type_single_page_options.cover_details.forEach(obj =>{
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:807:41 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
807 const field = this.GlobalFields.selectedTypeDetail.case27_listing_type_fields[key];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/listingPage.ts:817:88 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
817 (!c.value || c.value == “” || c.value == this.GlobalFields.selectedListing.package_id)
~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:49:43 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
49 for (let key in this.GlobalFields.selectedTypeDetail.review_fields) {
~~~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:50:35 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
50 if (this.GlobalFields.selectedTypeDetail.review_fields.hasOwnProperty(key)) {
~~~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:51:47 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
51 let field = this.GlobalFields.selectedTypeDetail.review_fields[key];
~~~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:57:31 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
57 if (this.GlobalFields.oldReview) { //already inserted a comment
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:58:46 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
58 this.comment = this.GlobalFields.oldReview.content;
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:59:35 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
59 if (this.GlobalFields.oldReview.gallery)
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:60:50 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
60 this.gallery = this.GlobalFields.oldReview.gallery_images;
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:62:43 – [91merror TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
62 console.log(this.GlobalFields.oldReview);
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:64:35 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
64 if (this.GlobalFields.oldReview.ratings.length == 1) {
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:66:82 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
66 this.customFieldsStars[i].value = parseInt(this.GlobalFields.oldReview.ratings[0].value) / 2;
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:73:59 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
73 for (let j = 0; j < this.GlobalFields.oldReview.ratings.length; j++) {
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:74:47 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
74 if (this.GlobalFields.oldReview.ratings[j].key == this.customFieldsStars[i].key)
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:78:86 – error TS2339: Property ‘oldReview’ does not exist on type ‘typeof GlobalFields’.
78 this.customFieldsStars[i].value = parseInt(this.GlobalFields.oldReview.ratings[index].value) / 2;
~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:113:26 – error TS2339: Property ‘postAReview’ does not exist on type ‘Service’.
113 this.service.postAReview(this.GlobalFields.selectedListing.id, this.comment, this.customFieldsStars, galleryIds, this.new_gallery_File, this.new_gallery_Name,).subscribe(() => {
~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:113:56 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
113 this.service.postAReview(this.GlobalFields.selectedListing.id, this.comment, this.customFieldsStars, galleryIds, this.new_gallery_File, this.new_gallery_Name,).subscribe(() => {
~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:116:34 – error TS2339: Property ‘getListingDetailsById’ does not exist on type ‘Service’.
116 this.service.getListingDetailsById(this.GlobalFields.selectedListing.id).subscribe(data => {
~~~~~~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:116:74 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
116 this.service.getListingDetailsById(this.GlobalFields.selectedListing.id).subscribe(data => {
~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:117:43 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
117 this.GlobalFields.selectedListing = data;
~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:119:38 – error TS2339: Property ‘getFilteredListings’ does not exist on type ‘Service’.
119 this.service.getFilteredListings().subscribe((data2: any) => {
~~~~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:120:40 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
120 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data2));
~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:120:72 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
120 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data2));
~~~~~~~~~~~~~~~~
src/app/listingPage/modalWriteReview/modalWriteReview.ts:120:109 – error TS2339: Property ‘fixWrongImgCoverField’ does not exist on type ‘typeof GlobalFields’.
120 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data2));
~~~~~~~~~~~~~~~~~~~~~
src/app/loading/loading.ts:34:22 – error TS2339: Property ‘init’ does not exist on type ‘typeof GlobalFields’.
34 GlobalFields.init(this.service, this.dialogs, this.platform, this.geolocation, this.nativeGeocoder, this.alertController, this.translate, this.themeService, this.locationService);
~~~~
src/app/messagesPage/chatPage/chatPage.ts:42:20 – error TS2339: Property ‘getMsgsOfAChat’ does not exist on type ‘Service’.
42 this.service.getMsgsOfAChat(this.GlobalFields.senderMsgSelected.id).subscribe((data: any) => {
~~~~~~~~~~~~~~
src/app/messagesPage/chatPage/chatPage.ts:50:22 – error TS2339: Property ‘markAsSeenChat’ does not exist on type ‘Service’.
50 this.service.markAsSeenChat(GlobalFields.senderMsgSelected.id).subscribe((data: any) => {
~~~~~~~~~~~~~~
src/app/messagesPage/chatPage/chatPage.ts:110:20 – error TS2339: Property ‘sendMsg’ does not exist on type ‘Service’.
110 this.service.sendMsg(msg, GlobalFields.senderMsgSelected.id).subscribe(() => {
~~~~~~~
src/app/messagesPage/chatPage/chatPage.ts:126:20 – error TS2339: Property ‘getMsgsOfAChat’ does not exist on type ‘Service’.
126 this.service.getMsgsOfAChat(GlobalFields.senderMsgSelected.id).subscribe((data: any) => {
~~~~~~~~~~~~~~
src/app/messagesPage/messagesPage.ts:65:23 – error TS2339: Property ‘loading’ does not exist on type ‘typeof GlobalFields’.
65 this.GlobalFields.loading = false;
~~~~~~~
src/app/messagesPage/messagesPage.ts:97:18 – error TS2339: Property ‘getChats’ does not exist on type ‘Service’.
97 this.service.getChats().subscribe((data: any) => {
~~~~~~~~
src/app/messagesPage/messagesPage.ts:107:18 – error TS2339: Property ‘getChats’ does not exist on type ‘Service’.
107 this.service.getChats().subscribe((data: any) => {
~~~~~~~~
src/app/messagesPage/messagesPage.ts:117:20 – error TS2339: Property ‘getChats’ does not exist on type ‘Service’.
117 this.service.getChats().subscribe((data: any) => {
~~~~~~~~
src/app/messagesPage/messagesPage.ts:179:24 – error TS2339: Property ‘getMsgUsersByString’ does not exist on type ‘Service’.
179 this.service.getMsgUsersByString(this.searchString)
~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:38:34 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
38 console.log(GlobalFields.filtersSearch.customFieldsText)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:43:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
43 if (!GlobalFields.filtersSearch) {
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:m47:26 – error TS2339: Property ‘selectListingTypeDetail’ does not exist on type ‘typeof GlobalFields’.
47 GlobalFields.selectListingTypeDetail();
~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:48:30 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
48 if (GlobalFields.filtersSearch.tags.length == 0)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:61:27 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
61 this.GlobalFields.selectedTypeDetail.tags.forEach(cat => {
~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:65:26 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
65 GlobalFields.filtersSearch.tags.push(c);
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:102:27 – error TS2339: Property ‘getFilteredListingFirstTime’ does not exist on type ‘typeof GlobalFields’.
102 this.GlobalFields.getFilteredListingFirstTime(this.service, this.locationService, true);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:111:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
111 if (!GlobalFields.filtersSearch.categories || GlobalFields.filtersSearch.categories.length == 0)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:111:68 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
111 if (!GlobalFields.filtersSearch.categories || GlobalFields.filtersSearch.categories.length == 0)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:113:31 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
113 else if (GlobalFields.filtersSearch.categories.length > 3)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:114:33 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
114 return GlobalFields.filtersSearch.categories.length + ” selected”;
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:116:33 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
116 return GlobalFields.filtersSearch.categories.toString();
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:122:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
122 if (!GlobalFields.filtersSearch.region)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:124:29 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
124 return GlobalFields.filtersSearch.region;
[0m ~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:129:32 – error TS2339: Property ‘getCustomTaxonomiesByKey’ does not exist on type ‘typeof GlobalFields’.
129 let tax = GlobalFields.getCustomTaxonomiesByKey(key);
~~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:143:32 – error TS2339: Property ‘getCustomFieldsByKey’ does not exist on type ‘typeof GlobalFields’.
143 let tax = GlobalFields.getCustomFieldsByKey(key);
~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:159:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
159 this.GlobalFields.filtersSearch.location = GlobalFields.address;
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:164:27 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
164 this.GlobalFields.filteredListings = undefined;
~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:165:27 – error TS2339: Property ‘clearFilters’ does not exist on type ‘typeof GlobalFields’.
165 this.GlobalFields.clearFilters();
~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:168:27 – error TS2339: Property ‘selectListingTypeDetail’ does not exist on type ‘typeof GlobalFields’.
168 this.GlobalFields.selectListingTypeDetail();
~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:169:39 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
169 console.log(this.GlobalFields.selectedTypeDetail);
~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:171:31 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
171 this.GlobalFields.filtersSearch.order = this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options[0].key;
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:171:71 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
171 this.GlobalFields.filtersSearch.order = this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options[0].key;
~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:172:26 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
172 if (GlobalFields.filtersSearch.tags.length == 0)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:174:27 – error TS2339: Property ‘getFilteredListingFirstTime’ does not exist on type ‘typeof GlobalFields’.
174 this.GlobalFields.getFilteredListingFirstTime(this.service,this.locationService);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:182:31 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
182 if (this.GlobalFields.filtersSearch.selectedType == id)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:189:31 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
189 if (this.GlobalFields.filtersSearch.selectedType == id)
~~~~~~~~~~~~~
src/app/searchPage/filterModal/filterModal.ts:197:22 – error TS2339: Property ‘clearFilters’ does not exist on type ‘typeof GlobalFields’.
197 GlobalFields.clearFilters();
~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:120:37 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
120 listings = GlobalFields.filteredListings;
~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:132:49 – error TS2339: Property ‘listingTypesDetails’ does not exist on type ‘typeof GlobalFields’.
132 const typeDetail = GlobalFields.listingTypesDetails.find(res => res.post_name == listing.listing_data._case27_listing_type);
~~~~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:167:32 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
167 if (!this.GlobalFields.filtersSearch.location)
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:180:39 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
180 console.log(this.GlobalFields.filtersSearch.location)
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:337:22 – error TS2339: Property ‘getListingDetailsById’ does not exist on type ‘Service’.
337 this.service.getListingDetailsById(listing.id).subscribe( (data: Listing) =>{
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:339:35 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
339 this.GlobalFields.selectedListing = data;
~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:363:27 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
363 this.GlobalFields.selectedListing = listing;
~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:393:22 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
393 GlobalFields.filtersSearch.currentPage++;
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:394:26 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
394 if (GlobalFields.filtersSearch.location) { //address
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:395:26 – error TS2339: Property ‘getLatLongFromAddress’ does not exist on type ‘typeof GlobalFields’.
395 GlobalFields.getLatLongFromAddress(this.locationService, GlobalFields.filtersSearch.location);
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:395:83 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
395 GlobalFields.getLatLongFromAddress(this.locationService, GlobalFields.filtersSearch.location);
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:406:22 – error TS2339: Property ‘getFilteredListings’ does not exist on type ‘Service’.
406 this.service.getFilteredListings()
~~~~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:408:34 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
408 if (GlobalFields.filtersSearch.currentPage == 1) {
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:409:34 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
409 GlobalFields.filteredListings = [];
~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:410:34 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
410 GlobalFields.filtersSearch.noMorePage = false;
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:412:30 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
412 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:412:62 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
412 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:412:99 – error TS2339: Property ‘fixWrongImgCoverField’ does not exist on type ‘typeof GlobalFields’.
412 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:417:35 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
417 if ( GlobalFields.filteredListings.length < 10 || data.length == 0)
~~~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:418:34 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
418 GlobalFields.filtersSearch.noMorePage = true;
~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:424:22 – error TS2339: Property ‘getAllListings’ does not exist on type ‘Service’.
424 this.service.getAllListings()
~~~~~~~~~~~~~~
src/app/searchPage/mapModal/mapModal.ts:427:53 – error TS2339: Property ‘fixWrongImgCoverField’ does not exist on type ‘typeof GlobalFields’.
427 this.allListings = GlobalFields.fixWrongImgCoverField(res.data);
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:40:23 – error TS2339: Property ‘basicSearch’ does not exist on type ‘typeof GlobalFields’.
40 if (!GlobalFields.basicSearch && (!GlobalFields.filtersSearch.location && (!GlobalFields.filtersSearch.categories) || GlobalFields.filtersSearch.categories.length == 0)) {
~~~~~~~~~~~
src/app/searchPage/searchPage.ts:40:53 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
40 if (!GlobalFields.basicSearch && (!GlobalFields.filtersSearch.location && (!GlobalFields.filtersSearch.categories) || GlobalFields.filtersSearch.categories.length == 0)) {
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:40:94 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
40 if (!GlobalFields.basicSearch && (!GlobalFields.filtersSearch.location && (!GlobalFields.filtersSearch.categories) || GlobalFields.filtersSearch.categories.length == 0)) {
~~~~~~~~~~~~~0m
src/app/searchPage/searchPage.ts:40:136 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
40 if (!GlobalFields.basicSearch && (!GlobalFields.filtersSearch.location && (!GlobalFields.filtersSearch.categories) || GlobalFields.filtersSearch.categories.length == 0)) {
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:54:18 – error TS2339: Property ‘basicSearch’ does not exist on type ‘typeof GlobalFields’.
54 GlobalFields.basicSearch = false;
~~~~~~~~~~~
src/app/searchPage/searchPage.ts:69:23 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
69 this.GlobalFields.selectedListing = listing;
~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:80:23 – error TS2339: Property ‘selectedListing’ does not exist on type ‘typeof GlobalFields’.
80 this.GlobalFields.selectedListing = listing;
~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:91:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
91 if (this.GlobalFields.filtersSearch.selectedType == id)
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:98:27 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
98 if (this.GlobalFields.filtersSearch.selectedType == id)
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:106:18 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
106 GlobalFields.filtersSearch.currentPage++;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:107:22 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
107 if (GlobalFields.filtersSearch.location) { //address
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:108:20 – error TS2339: Property ‘getLatLongFromAddress’ does not exist on type ‘typeof GlobalFields’.
108 GlobalFields.getLatLongFromAddress(this.locationService, GlobalFields.filtersSearch.location);
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:108:77 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
108 GlobalFields.getLatLongFromAddress(this.locationService, GlobalFields.filtersSearch.location);
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:121:23 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
121 this.GlobalFields.filteredListings = undefined;
~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:122:38 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
122 const setLocation = GlobalFields.filtersSearch.location;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:124:23 – error TS2339: Property ‘clearFilters’ does not exist on type ‘typeof GlobalFields’.
124 this.GlobalFields.clearFilters();
~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:126:20 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
126 GlobalFields.filtersSearch.location = setLocation;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:128:23 – error TS2339: Property ‘selectListingTypeDetail’ does not exist on type ‘typeof GlobalFields’.
128 this.GlobalFields.selectListingTypeDetail();
~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:129:35 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
129 console.log(this.GlobalFields.selectedTypeDetail);
~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:130:42 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
130 if (reloadOrder && this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order &&
~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:131:25 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
131 this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options && this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options.length > 0)
~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:131:111 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
131 this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options && this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options.length > 0)
~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:132:25 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
132 this.GlobalFields.filtersSearch.order = this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options[0].key;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:132:65 – error TS2339: Property ‘selectedTypeDetail’ does not exist on type ‘typeof GlobalFields’.
132 this.GlobalFields.filtersSearch.order = this.GlobalFields.selectedTypeDetail.case27_listing_type_search_page.order.options[0].key;
~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:133:23 – error TS2339: Property ‘getFilteredListingFirstTime’ does not exist on type ‘typeof GlobalFields’.
133 this.GlobalFields.getFilteredListingFirstTime(this.service, this.locationService, true);
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:139:18 – error TS2339: Property ‘getFilteredListings’ does not exist on type ‘Service’.
139 this.service.getFilteredListings(true)
~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:142:22 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
142 GlobalFields.filtersSearch.countListings = d.count;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:144:26 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
144 if (GlobalFields.filtersSearch.currentPage == 1) {
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:145:24 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
145 GlobalFields.filteredListings = [];
~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:146:24 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
146 GlobalFields.filtersSearch.noMorePage = false;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:148:22 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
148 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:148:54 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
148 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:148:91 – error TS2339: Property ‘fixWrongImgCoverField’ does not exist on type ‘typeof GlobalFields’.
148 GlobalFields.filteredListings = GlobalFields.filteredListings.concat(GlobalFields.fixWrongImgCoverField(data));
~~~~~~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:152:26 – error TS2339: Property ‘filteredListings’ does not exist on type ‘typeof GlobalFields’.
152 if (GlobalFields.filteredListings.length < 10 || data.length < 10)
~~~~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:153:30 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
153 GlobalFields.filtersSearch.noMorePage = true;
~~~~~~~~~~~~~
src/app/searchPage/searchPage.ts:191:18 – error TS2339: Property ‘clearFilters’ does not exist on type ‘typeof GlobalFields’.
191 GlobalFields.clearFilters();
~~~~~~~~~~~~
src/app/Shared/loading/loading.ts:80:63 – error TS2339: Property ‘LISTING_PRO’ does not exist on type ‘typeof Constants’.
80 if (GlobalFields.site_details.themeEnabled == Constants.LISTING_PRO)
~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:84:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
84 GlobalFields.addForm = this.GlobalFields.duplicateObj(GlobalFields.filtersSearch);
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:84:72 – error TS2339: Property ‘filtersSearch’ does not exist on type ‘typeof GlobalFields’.
84 GlobalFields.addForm = this.GlobalFields.duplicateObj(GlobalFields.filtersSearch);
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:87:27 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
87 if (this.GlobalFields.listingToEdit && this.GlobalFields.listingToEdit.id) {
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:87:62 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
87 if (this.GlobalFields.listingToEdit && this.GlobalFields.listingToEdit.id) {
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:88:43 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
88 this.newListing = this.GlobalFields.listingToEdit;
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:89:24 – error TS2339: Property ‘listingTypesDetails’ does not exist on type ‘typeof GlobalFields’.
89 if (GlobalFields.listingTypesDetails.find(res => res.post_name == this.GlobalFields.listingToEdit._case27_listing_type)) {
~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:89:91 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
89 if (GlobalFields.listingTypesDetails.find(res => res.post_name == this.GlobalFields.listingToEdit._case27_listing_type)) {
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:90:42 – error TS2339: Property ‘listingTypesDetails’ does not exist on type ‘typeof GlobalFields’.
90 this.selectedType = GlobalFields.listingTypesDetails.find(res => res.post_name == this.GlobalFields.listingToEdit._case27_listing_type).ID;
~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:90:109 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
90 this.selectedType = GlobalFields.listingTypesDetails.find(res => res.post_name == this.GlobalFields.listingToEdit._case27_listing_type).ID;
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:97:37 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
97 console.log(this.GlobalFields.listingToEdit);
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:104:23 – error TS2339: Property ‘listingToEdit’ does not exist on type ‘typeof GlobalFields’.
104 this.GlobalFields.listingToEdit = undefined;
~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:149:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
149 GlobalFields.addForm.customTaxonomiesDropdownKeysOptions = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:150:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
150 GlobalFields.addForm.categories = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:151:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
151 GlobalFields.addForm.tags = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:152:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
152 GlobalFields.addForm.regions = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:153:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
153 GlobalFields.addForm.customFieldsDropdownKeysOptions = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:154:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
154 GlobalFields.addForm.customFieldsText = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:155:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
155 GlobalFields.addForm.customFieldsNumber = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:156:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
156 GlobalFields.addForm.work_hours.Monday = new WorkHoursDay();
m ~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:157:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
157 GlobalFields.addForm.work_hours.Tuesday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:158:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
158 GlobalFields.addForm.work_hours.Wednesday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:159:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
159 GlobalFields.addForm.work_hours.Thursday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:160:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
160 GlobalFields.addForm.work_hours.Friday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:161:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
161 GlobalFields.addForm.work_hours.Saturday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:162:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
162 GlobalFields.addForm.work_hours.Sunday = new WorkHoursDay();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:163:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
163 GlobalFields.addForm.work_hours.timezone = GlobalFields.site_details ? GlobalFields.site_details.timezone : undefined;
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:166:39 – error TS2339: Property ‘listingCustomTaxonomies’ does not exist on type ‘typeof GlobalFields’.
166 for (let key in this.GlobalFields.listingCustomTaxonomies) {
~~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:168:38 – error TS2339: Property ‘listingCustomTaxonomies’ does not exist on type ‘typeof GlobalFields’.
168 let opts = this.GlobalFields.listingCustomTaxonomies[key];
~~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:173:24 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
173 GlobalFields.addForm.customTaxonomiesDropdownKeysOptions.push({key: key, options: opts, selected: selected});
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:179:18 – error TS2339: Property ‘listingCustomFieldKeys’ does not exist on type ‘typeof GlobalFields’.
179 GlobalFields.listingCustomFieldKeys.forEach(key => {
~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:185:22 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
185 GlobalFields.addForm.customFieldsDropdownKeysOptions.push({key: field.slug, options: field.options, selected: selected});
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:192:44 – error TS2339: Property ‘listingTypesDetails’ does not exist on type ‘typeof GlobalFields’.
192 this.selectedTypeDetail = GlobalFields.listingTypesDetails.find(res => res.ID == this.selectedType);
~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:211:24 – error TS2339: Property ‘getCustomTaxonomiesByKeyAddForm’ does not exist on type ‘typeof GlobalFields’.
211 GlobalFields.getCustomTaxonomiesByKeyAddForm(field.slug).selected.push(term_id + ”);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:298:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
298 GlobalFields.addForm.categories = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:303:24 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
303 GlobalFields.addForm.categories.push(cat.name);
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:309:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
309 GlobalFields.addForm.tags = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:318:20 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
318 GlobalFields.addForm.tags.push(c);
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:324:18 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
324 GlobalFields.addForm.regions = [];
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:325:23 – error TS2339: Property ‘regions’ does not exist on type ‘typeof GlobalFields’.
325 this.GlobalFields.regions.forEach(cat => {
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:333:20 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
333 GlobalFields.addForm.regions.push(c);
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:338:23 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
338 if (!GlobalFields.addForm.categories || GlobalFields.addForm.categories.length == 0)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:338:58 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
338 if (!GlobalFields.addForm.categories || GlobalFields.addForm.categories.length == 0)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:340:27 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
340 else if (GlobalFields.addForm.categories.length > 3)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:341:27 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
341 return GlobalFields.addForm.categories.length + ‘ selected’;
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:343:27 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
343 return GlobalFields.addForm.categories.toString();
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:347:28 – error TS2339: Property ‘getCustomTaxonomiesByKey’ does not exist on type ‘typeof GlobalFields’.
347 let tax = GlobalFields.getCustomTaxonomiesByKey(key);
~~~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:535:35 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
535 console.log(this.GlobalFields.addForm);
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:537:18 – error TS2339: Property ‘saveListing’ does not exist on type ‘Service’.
537 this.service.saveListing(this.newListing, this.fieldsTypeSelected).subscribe(() => {
~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:570:54 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
570 if (field.slug == ‘job_category’ && GlobalFields.addForm.categories.length == 0)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:575:50 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
575 if (field.slug == ‘job_tags’ && GlobalFields.addForm.tags.length == 0)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:580:48 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
580 if (field.slug == ‘region’ && GlobalFields.addForm.regions.length == 0)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:585:54 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
585 if (field.slug == ‘price_range’ && !GlobalFields.addForm.price_range)
~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:595:74 – error TS2339: Property ‘getCustomTaxonomiesByKeyAddForm’ does not exist on type ‘typeof GlobalFields’.
595 if (!field.is_custom && field.type == ‘term-select’ && !GlobalFields.getCustomTaxonomiesByKeyAddForm(field.slug).selected)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
599 if (field.is_custom && (field.type == ‘select’ || field.type == ‘multiselect’) && !GlobalFields.getCustomFieldsByKeyAddForm(field.slug).selected)
~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:639:24 – error TS2339: Property ‘getPackagesPermission’ does not exist on type ‘Service’.
639 this.service.getPackagesPermission(this.selectedType)
~~~~~~~~~~~~~~~~~~~~~
src/app/tabs/modalAdd/modalAdd.ts:669:30 – error TS2339: Property ‘addForm’ does not exist on type ‘typeof GlobalFields’.
669 console.log(GlobalFields.addForm);