@bitstack/ng-query-codegen-openapi 0.0.38-alpha.0 → 0.0.38-alpha.2

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.
@@ -37,7 +37,7 @@ export function generateRtkQueryFile(
37
37
  /**
38
38
  * ${info.summary}
39
39
  */
40
- ${info.operationName}Query(args: IRestFulEndpointsQueryReturn<${info.argTypeName}>, queryOptions?: { skip?: boolean }): Observable<QueryState<${info.responseTypeName}>> {
40
+ ${info.operationName}Query(args: IRestFulEndpointsQueryReturn<${info.argTypeName}>, queryOptions?: QueryOptions): Observable<QueryState<${info.responseTypeName}>> {
41
41
  if (queryOptions?.skip) {
42
42
  return this.ntkQuery.skipQuery<${info.responseTypeName}>();
43
43
  }
@@ -48,6 +48,7 @@ export function generateRtkQueryFile(
48
48
  },
49
49
  fetchOptions: args?.fetchOptions,
50
50
  config: args?.config,
51
+ refetchDeps: queryOptions?.refetchDeps,
51
52
  })(${!info.isVoidArg ? 'args' : ''});
52
53
  }`
53
54
  )
@@ -82,7 +83,7 @@ export function generateRtkQueryFile(
82
83
  * ${info.summary}
83
84
  */
84
85
  ${info.operationName}LazyQuery(): LazyQueryResult<${info.responseTypeName}, IRestFulEndpointsQueryReturn<${info.argTypeName}>> {
85
- return this.ntkQuery.lazyQuery<${info.responseTypeName}, IRestFulEndpointsQueryReturn<${info.argTypeName}>(
86
+ return this.ntkQuery.lazyQuery<${info.responseTypeName}, IRestFulEndpointsQueryReturn<${info.argTypeName}>>(
86
87
  ECacheTagTypes.${info.queryKeyName},
87
88
  (args) => this.apiService.${info.operationName}(args),
88
89
  );
@@ -96,7 +97,7 @@ export function generateRtkQueryFile(
96
97
  import {Injectable, inject} from '@angular/core';
97
98
  import {Observable} from 'rxjs';
98
99
  import {HttpErrorResponse} from '@angular/common/http';
99
- import {NtkQueryService, MutationState, QueryState, MutationResponse, LazyQueryResult, LazyQueryTriggerOptions} from '@core/ntk-query';
100
+ import {NtkQueryService, MutationState, QueryState, QueryOptions, MutationResponse, LazyQueryResult, LazyQueryTriggerOptions} from '@core/ntk-query';
100
101
  import {ECacheTagTypes} from '../tagTypes';
101
102
  import {${apiServiceName}} from './enhanceEndpoints';
102
103
  import {IRestFulEndpointsQueryReturn, RequestOptions} from '../common-types';