import { HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { map } from 'rxjs/operators'; import { Model, ModelField, ODataModel, ODataCollection, ODataOptions, ODataQueryArgumentsOptions, ODataFunctionOptions, ODataActionOptions, Duration, } from 'angular-odata'; <% if (hasGeoFields) { %>import { <% for (let f of geoFields) { %><%= f.type() %>,<% } %> } from 'geojson';<% } %><% for (let imp of imports) { %> import { <%= imp.names.join(", ") %> } from '<%= imp.path() %>';<% } %> @Model() export class <%= classify(name) %>> extends <% if (baseType) { %><%= toTypescriptType(baseType) %><% } else { %>ODataModel<% } %> { <% for (let field of fields) { %>@ModelField() declare <%= field.name() %>: <%= field.type() %>; <%= field.resource() %><%= field.getter() %><%= field.setter() %><%= field.fetch() %> <% } %> <% for (let cal of callables) { %> // <%= cal.name() %> <%= cal.callableMethod() %> <% } %> <% for (let nav of navigations) { %><%= nav %> <% } %> }