ntk-cms-api 20.25.40 → 20.25.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1160,7 +1160,7 @@ class ApiServerBase {
1160
1160
  get Ver() {
1161
1161
  return localStorage.getItem(this.keyBaseVer) + '_';
1162
1162
  }
1163
- cashApiIsValid(serviceNameKay, cashApiSeconds) {
1163
+ cashApiIsValid(serviceNameKay, cashApiSeconds = 0) {
1164
1164
  if (cashApiSeconds > 0) {
1165
1165
  if (!this.cachApiResult[serviceNameKay])
1166
1166
  return false;
@@ -1547,9 +1547,9 @@ class ApiCmsServerBase extends ApiServerBase {
1547
1547
  return ret;
1548
1548
  }));
1549
1549
  }
1550
- ServiceGetOneById(id, cashApiSeconds) {
1550
+ ServiceGetOneById(id, cashApiSeconds = 0) {
1551
1551
  //! optimaze call api
1552
- const serviceNameKay = 'ServiceGetOneById' + '_' + id;
1552
+ const serviceNameKay = this.constructor.name + '_ServiceGetOneById_' + id;
1553
1553
  if (this.cashApiIsValid(serviceNameKay, cashApiSeconds))
1554
1554
  return of(this.cachApiResult[serviceNameKay]);
1555
1555
  //! optimaze call api
@@ -1954,7 +1954,7 @@ class CoreEnumService extends ApiServerBase {
1954
1954
  getModuleControllerUrl() {
1955
1955
  return 'CoreEnum';
1956
1956
  }
1957
- ServiceRecordStatusEnum(cashApiSeconds) {
1957
+ ServiceRecordStatusEnum(cashApiSeconds = 0) {
1958
1958
  //! optimaze call api
1959
1959
  const serviceNameKay = 'ServiceRecordStatusEnum';
1960
1960
  if (this.cashApiIsValid(serviceNameKay, cashApiSeconds))
@@ -1974,6 +1974,26 @@ class CoreEnumService extends ApiServerBase {
1974
1974
  return ret;
1975
1975
  }));
1976
1976
  }
1977
+ ServiceRecordAdminStatusEnum(cashApiSeconds = 0) {
1978
+ //! optimaze call api
1979
+ const serviceNameKay = 'ServiceRecordAdminStatusEnum';
1980
+ if (this.cashApiIsValid(serviceNameKay, cashApiSeconds))
1981
+ return of(this.cachApiResult[serviceNameKay]);
1982
+ //! optimaze call api
1983
+ return this.http
1984
+ .get(this.getBaseUrl() + this.getModuleControllerUrl() + '/RecordAdminStatusEnum', {
1985
+ headers: this.getHeaders(),
1986
+ })
1987
+ .pipe(map((ret) => {
1988
+ //! optimaze call api
1989
+ if (cashApiSeconds > 0) {
1990
+ this.cachApiResult[serviceNameKay] = ret;
1991
+ this.cachApiResult[serviceNameKay].dateResult = new Date();
1992
+ }
1993
+ //! optimaze call api
1994
+ return ret;
1995
+ }));
1996
+ }
1977
1997
  ServiceLocationTypeEnum() {
1978
1998
  return this.http
1979
1999
  .get(this.getBaseUrl() + this.getModuleControllerUrl() + '/LocationTypeEnum', {