Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 3155a9b

Browse files
adding fieldlinks class
1 parent 43261b6 commit 3155a9b

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

src/sharepoint/contenttypes.ts

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -146,22 +146,9 @@ export class FieldLinks extends QueryableCollection {
146146
*/
147147
public getById(id: string) {
148148
let fl = new FieldLink(this);
149-
fl.concat(`(${id})`);
149+
fl.concat(`('${id}')`);
150150
return fl;
151151
}
152-
153-
/**
154-
* Reorders the fields in the content type (limited functionality in REST)
155-
*
156-
* @param internalFieldNames string array of internal field names in the order they should appear in the content type
157-
*/
158-
public reorder(internalFieldNames: string[]): Promise<any> {
159-
160-
let reorder = new FieldLinks(this, "reorder");
161-
return reorder.post({
162-
body: JSON.stringify({ internalNames: internalFieldNames }),
163-
});
164-
}
165152
}
166153

167154
/**
@@ -177,11 +164,4 @@ export class FieldLink extends QueryableInstance {
177164
constructor(baseUrl: string | Queryable, path?: string) {
178165
super(baseUrl, path);
179166
}
180-
181-
/**
182-
* Delets this FieldLink instance
183-
*/
184-
public delete(): Promise<any> {
185-
return this.delete();
186-
}
187167
}

0 commit comments

Comments
 (0)