Skip to content

Commit

Permalink
Removed my spEntities and added the SP List entities to the existing …
Browse files Browse the repository at this point in the history
…SPEntities file.
  • Loading branch information
parithon committed Apr 9, 2018
1 parent 7cdcb0c commit feaf790
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
16 changes: 16 additions & 0 deletions src/common/SPEntities.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* Represents SP List
*/
export interface ISPList {
Id: string;
Title: string;
BaseTemplate: string;
}

/**
* Replica of the returned value from the REST api
*/
export interface ISPLists {
value: ISPList[];
}

/**
* Represents SP Field
*/
Expand Down
8 changes: 0 additions & 8 deletions src/common/spEntities/ISPList.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/common/spEntities/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/services/ISPService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ISPLists } from "../common/spEntities";
import { ISPLists } from "../common/SPEntities";

export enum LibsOrderBy {
Id = 1,
Expand Down
2 changes: 1 addition & 1 deletion src/services/SPService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISPService, ILibsOptions, LibsOrderBy } from "./ISPService";
import { ISPLists } from "../common/spEntities";
import { ISPLists } from "../common/SPEntities";
import { IWebPartContext } from "@microsoft/sp-webpart-base";
import { SPHttpClient, SPHttpClientResponse } from "@microsoft/sp-http";

Expand Down
2 changes: 1 addition & 1 deletion src/services/SPServiceMock.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISPService, ILibsOptions } from "./ISPService";
import { ISPLists } from "../common/spEntities";
import { ISPLists } from "../common/SPEntities";

export class SPServiceMock implements ISPService {
private _includeDelay?: boolean;
Expand Down

0 comments on commit feaf790

Please sign in to comment.