Skip to content

Commit

Permalink
Merge pull request #227 from gunjandatta/gdatta
Browse files Browse the repository at this point in the history
Bug Fixes & Updated Intellisense
  • Loading branch information
gunjandatta authored Nov 19, 2019
2 parents afb2e5d + 3ef9e16 commit d11cd7a
Show file tree
Hide file tree
Showing 14 changed files with 992 additions and 229 deletions.
10 changes: 10 additions & 0 deletions @types/sptypes/sptypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,16 @@ export type IEventReceiverSynchronizationType = {
Synchronization: number
};

/**
* Field Index Status
*/
export type IFieldIndexStatus = {
None: number,
Indexed: number,
Enabling: number,
Disabling: number
}

/**
* Field Note Types
*/
Expand Down
9 changes: 7 additions & 2 deletions build/helper/spCfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,13 @@ exports.SPConfig = function (cfg, webUrl) {
contentTypes.add({
Description: cfg.Description,
Group: cfg.Group,
Id: cfg.Id || "0x0100" + lib_1.ContextInfo.generateGUID().replace("{", "").replace("-", "").replace("}", ""),
Name: cfg.Name
Name: cfg.Name,
Id: {
__metadata: {
type: "SP.ContentTypeId"
},
StringValue: cfg.Id || "0x0100" + lib_1.ContextInfo.generateGUID().replace(/-/g, "")
}
}).execute(function (ct) {
// See if it was successful
if (ct.Name) {
Expand Down
Loading

0 comments on commit d11cd7a

Please sign in to comment.