fix local dependencies in demo project

This commit is contained in:
2024-08-25 18:31:49 -04:00
parent 5a9eee1d14
commit 8c1ba32818
10 changed files with 1785 additions and 944 deletions
+18 -26
View File
@@ -1,49 +1,41 @@
import { Component, OnInit } from '@angular/core';
import { GenericRestDataSourceService } from 'projects/poweredsoft/ngx-data/src/public-api';
import { of, Observable } from 'rxjs';
import { DataSource, IDataSource, IQueryCriteria, IResolveCommandModelEvent } from '@poweredsoft/data';
import { } from 'projects/poweredsoft/ngx-data-apollo/src/public-api';
import { Apollo } from 'apollo-angular';
import gql from 'graphql-tag';
import { map } from 'rxjs/operators';
import { DocumentNode } from 'graphql';
import { GraphQLDataSourceService, IGraphQLAdvanceQueryInput } from 'projects/poweredsoft/ngx-data-apollo/src/public-api';
import { TestService, ITestModel, IValidationTestCommand } from './services/test.service';
import { HttpDataSourceService} from '@poweredsoft/ngx-data';
import {Component, OnInit} from '@angular/core';
import {of} from 'rxjs';
import {IDataSource, IQueryCriteria} from '@poweredsoft/data';
import {HttpDataSourceService} from '@openharbor/ngx-data';
export interface IContact
export interface IContact
{
id: number
displayName: string
id: number;
displayName: string;
}
export interface IPerson {
id: number,
firstName: string,
lastName: string
id: number;
firstName: string;
lastName: string;
}
export interface ICreatePerson {
firstName: string
lastName: string
firstName: string;
lastName: string;
}
export interface IEchoCommand {
message: string
message: string;
}
export interface IMyQuery extends IQueryCriteria{
params: {
showDisabled: boolean
showDisabled: boolean;
}
}
export interface IOnePersonQuery {
personId: number
personId: number;
}
export interface IListPersonQuery {
search?: string
search?: string;
}
@Component({
@@ -91,13 +83,13 @@ export class AppComponent implements OnInit {
pageSize: 5
})
.beforeRead<IMyQuery>(q => {
q.params = {
q.params = {
showDisabled: true
};
return of(q);
})
.queryUrl('https://localhost:5001/api/query/contacts')
.addCommandByUrl<ICreatePerson, void>("createPerson", 'https://localhost:5001/api/command/createPerson',
.addCommandByUrl<ICreatePerson, void>("createPerson", 'https://localhost:5001/api/command/createPerson',
e => {
return of (<ICreatePerson>{
firstName: '',