gd-sprest-def 1.5.9 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2549,7 +2549,11 @@ export interface ListCollectionPositionCollections {
2549
2549
  * GroupCreationInformation
2550
2550
  **********************************************/
2551
2551
  export interface GroupCreationInformation {
2552
+ AllowMembersEditMembership?: boolean;
2553
+ AllowRequestToJoinLeave?: boolean;
2554
+ AutoAcceptRequestToJoinLeave?: boolean;
2552
2555
  Description?: string;
2556
+ OnlyAllowMembersViewMembership?: boolean;
2553
2557
  Title?: string;
2554
2558
  }
2555
2559
 
@@ -1138,7 +1138,6 @@ export interface RoleDefinitionCollections extends RoleDefinitionPropMethods {
1138
1138
  export interface RoleDefinitionCollectionMethods {
1139
1139
  // getById(id?: number): Base.IBaseExecution<SP.RoleDefinition>;
1140
1140
  removeAll(): Base.IBaseExecution<any>;
1141
- // getById(id?: number): Base.IBaseExecution<SP.RoleDefinition>;
1142
1141
  getByName(name?: string): Base.IBaseQuery<SP.RoleDefinition> & SP.RoleDefinitionCollections & SP.RoleDefinitionMethods;
1143
1142
  getByType(roleType?: number): Base.IBaseQuery<SP.RoleDefinition> & SP.RoleDefinitionCollections & SP.RoleDefinitionMethods;
1144
1143
  recreateMissingDefaultRoleDefinitions(): Base.IBaseExecution<any>;
@@ -1213,6 +1212,7 @@ export interface ListItemProps {
1213
1212
  ServerRedirectedEmbedUri?: string;
1214
1213
  ServerRedirectedEmbedUrl?: string;
1215
1214
  Client_Title?: string;
1215
+ Title?: string;
1216
1216
  }
1217
1217
 
1218
1218
  /*********************************************
@@ -8522,12 +8522,6 @@ export interface FontPackageCollections extends FontPackagePropMethods {
8522
8522
  export interface FontPackageCollectionMethods {
8523
8523
  getById(id?: any): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8524
8524
  getByTitle(title?: string): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8525
- getById(id?: any): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8526
- getByTitle(title?: string): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8527
- getById(id?: any): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8528
- getByTitle(title?: string): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8529
- getById(id?: any): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8530
- getByTitle(title?: string): Base.IBaseQuery<SP.FontPackage> & SP.FontPackageCollections & SP.FontPackageMethods;
8531
8525
  }
8532
8526
 
8533
8527
  /*********************************************
package/lib/mapper.d.ts CHANGED
@@ -6329,30 +6329,6 @@ export interface IMapper {
6329
6329
  argNames: [ "id" ],
6330
6330
  },
6331
6331
 
6332
- getById: IMapperMethod & {
6333
- argNames: [ "id" ],
6334
- },
6335
-
6336
- getById: IMapperMethod & {
6337
- argNames: [ "id" ],
6338
- },
6339
-
6340
- getById: IMapperMethod & {
6341
- argNames: [ "id" ],
6342
- },
6343
-
6344
- getByTitle: IMapperMethod & {
6345
- argNames: [ "title" ],
6346
- },
6347
-
6348
- getByTitle: IMapperMethod & {
6349
- argNames: [ "title" ],
6350
- },
6351
-
6352
- getByTitle: IMapperMethod & {
6353
- argNames: [ "title" ],
6354
- },
6355
-
6356
6332
  getByTitle: IMapperMethod & {
6357
6333
  argNames: [ "title" ],
6358
6334
  },
package/lib/mapper.ts CHANGED
@@ -6116,30 +6116,6 @@ export const Mapper: IMapper = {
6116
6116
  argNames: [ "id" ],
6117
6117
  },
6118
6118
 
6119
- getById: {
6120
- argNames: [ "id" ],
6121
- },
6122
-
6123
- getById: {
6124
- argNames: [ "id" ],
6125
- },
6126
-
6127
- getById: {
6128
- argNames: [ "id" ],
6129
- },
6130
-
6131
- getByTitle: {
6132
- argNames: [ "title" ],
6133
- },
6134
-
6135
- getByTitle: {
6136
- argNames: [ "title" ],
6137
- },
6138
-
6139
- getByTitle: {
6140
- argNames: [ "title" ],
6141
- },
6142
-
6143
6119
  getByTitle: {
6144
6120
  argNames: [ "title" ],
6145
6121
  },
package/main.js CHANGED
@@ -1124,7 +1124,11 @@ function processREST(schemas) {
1124
1124
  // Add the mapper
1125
1125
  let mapperKey = dirName + '.' + name + '.Collection';
1126
1126
  mapper[mapperKey] = mapper[mapperKey] || [];
1127
- mapper[mapperKey].push(methodInfo);
1127
+
1128
+ // Prevent duplicates
1129
+ if (mapper[mapperKey].find(a => { return a.name == methodInfo.name; }) == null) {
1130
+ mapper[mapperKey].push(methodInfo);
1131
+ }
1128
1132
  }
1129
1133
 
1130
1134
  // See if we are overwriting the type
@@ -1141,8 +1145,12 @@ function processREST(schemas) {
1141
1145
  methodType = 'Base.IBaseExecution<' + methodType + '>';
1142
1146
  }
1143
1147
 
1144
- // Add the method
1145
- collectionMethods.push('\t' + methodInfo.name + '(' + params.join(', ') + '): ' + methodType + ';');
1148
+ // Prevent duplicates
1149
+ let collectionMethod = '\t' + methodInfo.name + '(' + params.join(', ') + '): ' + methodType + ';';
1150
+ if (collectionMethods.indexOf(collectionMethod) < 0) {
1151
+ // Add the method
1152
+ collectionMethods.push(collectionMethod);
1153
+ }
1146
1154
  }
1147
1155
 
1148
1156
  // Continue the loop
package/metadata.xml CHANGED
@@ -948,7 +948,11 @@
948
948
  <Property Name="PagingInfo" Type="Edm.String"/>
949
949
  </ComplexType>
950
950
  <ComplexType Name="GroupCreationInformation">
951
+ <Property Name="AllowMembersEditMembership" Type="Edm.Boolean" />
952
+ <Property Name="AllowRequestToJoinLeave" Type="Edm.Boolean" />
953
+ <Property Name="AutoAcceptRequestToJoinLeave" Type="Edm.Boolean" />
951
954
  <Property Name="Description" Type="Edm.String"/>
955
+ <Property Name="OnlyAllowMembersViewMembership" Type="Edm.Boolean" />
952
956
  <Property Name="Title" Type="Edm.String"/>
953
957
  </ComplexType>
954
958
  <ComplexType Name="Hashtag">
@@ -1911,6 +1915,7 @@
1911
1915
  <Property Name="ServerRedirectedEmbedUri" Type="Edm.String"/>
1912
1916
  <Property Name="ServerRedirectedEmbedUrl" Type="Edm.String"/>
1913
1917
  <Property Name="Client_Title" Type="Edm.String"/>
1918
+ <Property Name="Title" Type="Edm.String" />
1914
1919
  <NavigationProperty Name="AttachmentFiles" Relationship="SP.SP_ListItem_AttachmentFiles_SP_Attachment_AttachmentFilesPartner" ToRole="AttachmentFiles" FromRole="AttachmentFilesPartner"/>
1915
1920
  <NavigationProperty Name="ContentType" Relationship="SP.SP_ListItem_ContentType_SP_ContentType_ContentTypePartner" ToRole="ContentType" FromRole="ContentTypePartner"/>
1916
1921
  <NavigationProperty Name="GetDlpPolicyTip" Relationship="SP.SP_ListItem_GetDlpPolicyTip_SP_DlpPolicyTip_GetDlpPolicyTipPartner" ToRole="GetDlpPolicyTip" FromRole="GetDlpPolicyTipPartner"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.",
5
5
  "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
6
6
  "license": "MIT",