Skip to content

Commit feaf790

Browse files
committed
Removed my spEntities and added the SP List entities to the existing SPEntities file.
1 parent 7cdcb0c commit feaf790

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

src/common/SPEntities.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* Represents SP List
3+
*/
4+
export interface ISPList {
5+
Id: string;
6+
Title: string;
7+
BaseTemplate: string;
8+
}
9+
10+
/**
11+
* Replica of the returned value from the REST api
12+
*/
13+
export interface ISPLists {
14+
value: ISPList[];
15+
}
16+
117
/**
218
* Represents SP Field
319
*/

src/common/spEntities/ISPList.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/common/spEntities/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/services/ISPService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ISPLists } from "../common/spEntities";
1+
import { ISPLists } from "../common/SPEntities";
22

33
export enum LibsOrderBy {
44
Id = 1,

src/services/SPService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ISPService, ILibsOptions, LibsOrderBy } from "./ISPService";
2-
import { ISPLists } from "../common/spEntities";
2+
import { ISPLists } from "../common/SPEntities";
33
import { IWebPartContext } from "@microsoft/sp-webpart-base";
44
import { SPHttpClient, SPHttpClientResponse } from "@microsoft/sp-http";
55

src/services/SPServiceMock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ISPService, ILibsOptions } from "./ISPService";
2-
import { ISPLists } from "../common/spEntities";
2+
import { ISPLists } from "../common/SPEntities";
33

44
export class SPServiceMock implements ISPService {
55
private _includeDelay?: boolean;

0 commit comments

Comments
 (0)