Shared services
Some checks failed
FarmMaps.Develop/FarmMapsLib/pipeline/head There was a failure building this commit

This commit is contained in:
2026-02-23 15:34:34 +01:00
parent 18092fcc24
commit d7ab7e84ce
5 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
import { IItem } from '@farmmaps/common';
import { IAclRights } from './acl.rights';
import { IItem } from './item';
export interface IListItemAclRights extends IItem {
aclRights: IAclRights[]

View File

@@ -1,4 +1,4 @@
import { IUser } from '@farmmaps/common';
import { IUser } from "../common.module";
export interface ISharedItem {
code: string,

View File

@@ -1,8 +1,9 @@
import { Injectable } from '@angular/core';
import { IItem, ItemService } from '@farmmaps/common';
import { OAuthService } from 'angular-oauth2-oidc';
import { Observable, ReplaySubject, Subscription, timer } from 'rxjs';
import { catchError, take } from 'rxjs/operators';
import { IItem } from '../models/item';
import { ItemService } from './item.service';
const REFRESH_INTERVAL = 15 * 60 * 1000; // 15m

View File

@@ -1,9 +1,10 @@
import { HttpClient, HttpParams } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AppConfig, IListItem } from '@farmmaps/common';
import { Observable } from 'rxjs';
import { IListItemAclRights } from '../models/list.item.acl.rights';
import { ISharedItem } from '../models/shared.item';
import { AppConfig } from '../shared/app.config';
import { IListItem } from '../models/list.item';
@Injectable({
providedIn: 'root'

View File

@@ -1,7 +1,8 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AppConfig, IUser } from '@farmmaps/common';
import { Observable } from 'rxjs';
import { AppConfig } from '../shared/app.config';
import { IUser } from '../models/user';
@Injectable({
providedIn: 'root'