gd-sprest-def 1.8.5 → 1.8.6

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.
package/customV2.js CHANGED
@@ -14,6 +14,17 @@ module.exports = {
14
14
  argNames: [{ name: "values", type: "any" }]
15
15
  }
16
16
  ],
17
+ driveItem: [
18
+ {
19
+ name: "setSensitivityLabel",
20
+ argNames: [
21
+ { name: "actionSource", type: "string" },
22
+ { name: "assignmentMethod", type: "string" },
23
+ { name: "id", type: "string" },
24
+ { name: "justificationText", type: "string" }
25
+ ]
26
+ }
27
+ ],
17
28
  list: [
18
29
  {
19
30
  name: "update",
@@ -3761,11 +3761,11 @@ export interface columnDefinitionProps extends entityProps {
3761
3761
  }
3762
3762
  export interface columnDefinitionMethods extends entityMethods {
3763
3763
  sourceColumn(): IBaseQuery<columnDefinition> & columnDefinitionMethods;
3764
- update(values: any): IBaseQuery<void>;
3764
+ update(values: any): IBaseExecution<void>;
3765
3765
  }
3766
3766
  export interface columnDefinitionOData extends entityOData {
3767
3767
  sourceColumn: columnDefinition;
3768
- update(values: any): IBaseQuery<void>;
3768
+ update(values: any): IBaseExecution<void>;
3769
3769
  }
3770
3770
  export interface columnDefinitionCollection extends IBaseCollection<columnDefinition, columnDefinitionOData & columnDefinitionProps> {
3771
3771
  add(values?: any): IBaseExecution<columnDefinition>;
@@ -4127,7 +4127,7 @@ export interface contentTypeMethods extends entityMethods {
4127
4127
  columnPositions(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
4128
4128
  columns(): columnDefinitionCollection;
4129
4129
  columns(id: string | number): IBaseQuery<columnDefinition> & columnDefinitionMethods;
4130
- update(values: any): IBaseQuery<void>;
4130
+ update(values: any): IBaseExecution<void>;
4131
4131
  publish(): IBaseExecution<void>;
4132
4132
  unpublish(): IBaseExecution<void>;
4133
4133
  associateWithHubSites(hubSiteUrls, propagateToExistingLists): IBaseExecution<void>;
@@ -4140,7 +4140,7 @@ export interface contentTypeOData extends entityOData {
4140
4140
  columnLinks: IBaseResults<columnLink>;
4141
4141
  columnPositions: IBaseResults<columnDefinition>;
4142
4142
  columns: IBaseResults<columnDefinition>;
4143
- update(values: any): IBaseQuery<void>;
4143
+ update(values: any): IBaseExecution<void>;
4144
4144
  publish(): IBaseExecution<void>;
4145
4145
  unpublish(): IBaseExecution<void>;
4146
4146
  associateWithHubSites(hubSiteUrls, propagateToExistingLists): IBaseExecution<void>;
@@ -6265,6 +6265,7 @@ export interface driveItemMethods extends baseItemMethods {
6265
6265
  thumbnails(id: string | number): IBaseQuery<thumbnailSet> & thumbnailSetMethods;
6266
6266
  versions(): driveItemVersionCollection;
6267
6267
  versions(id: string | number): IBaseQuery<driveItemVersion> & driveItemVersionMethods;
6268
+ setSensitivityLabel(actionSource: string, assignmentMethod: string, id: string, justificationText: string): IBaseExecution<void>;
6268
6269
  restore(parentReference, name): IBaseExecution<driveItem>;
6269
6270
  copy(name, parentReference): IBaseExecution<driveItem>;
6270
6271
  createUploadSession(item, deferCommit): IBaseExecution<ComplexTypes.uploadSession>;
@@ -6294,6 +6295,7 @@ export interface driveItemOData extends baseItemOData {
6294
6295
  subscriptions: IBaseResults<subscription>;
6295
6296
  thumbnails: IBaseResults<thumbnailSet>;
6296
6297
  versions: IBaseResults<driveItemVersion>;
6298
+ setSensitivityLabel(actionSource: string, assignmentMethod: string, id: string, justificationText: string): IBaseExecution<void>;
6297
6299
  restore(parentReference, name): IBaseExecution<driveItem>;
6298
6300
  copy(name, parentReference): IBaseExecution<driveItem>;
6299
6301
  createUploadSession(item, deferCommit): IBaseExecution<ComplexTypes.uploadSession>;
@@ -9863,7 +9865,7 @@ export interface listMethods extends baseItemMethods {
9863
9865
  operations(id: string | number): IBaseQuery<richLongRunningOperation> & richLongRunningOperationMethods;
9864
9866
  subscriptions(): subscriptionCollection;
9865
9867
  subscriptions(id: string | number): IBaseQuery<subscription> & subscriptionMethods;
9866
- update(values: any): IBaseQuery<void>;
9868
+ update(values: any): IBaseExecution<void>;
9867
9869
  }
9868
9870
  export interface listOData extends baseItemOData {
9869
9871
  columns: IBaseResults<columnDefinition>;
@@ -9872,7 +9874,7 @@ export interface listOData extends baseItemOData {
9872
9874
  items: IBaseResults<listItem>;
9873
9875
  operations: IBaseResults<richLongRunningOperation>;
9874
9876
  subscriptions: IBaseResults<subscription>;
9875
- update(values: any): IBaseQuery<void>;
9877
+ update(values: any): IBaseExecution<void>;
9876
9878
  }
9877
9879
  export interface listCollection extends IBaseCollection<list, listOData & listProps> {
9878
9880
  add(values?: any): IBaseExecution<list>;
@@ -9893,7 +9895,7 @@ export interface listItemMethods extends baseItemMethods {
9893
9895
  fields(): IBaseQuery<fieldValueSet> & fieldValueSetMethods;
9894
9896
  versions(): listItemVersionCollection;
9895
9897
  versions(id: string | number): IBaseQuery<listItemVersion> & listItemVersionMethods;
9896
- update(values: any): IBaseQuery<void>;
9898
+ update(values: any): IBaseExecution<void>;
9897
9899
  createLink(type, scope, expirationDateTime, password, message, recipients, retainInheritedPermissions, sendNotification): IBaseExecution<permission>;
9898
9900
  getActivitiesByInterval(): itemActivityStat[];
9899
9901
  getActivitiesByInterval(startDateTime, endDateTime, interval): itemActivityStat[];
@@ -9904,7 +9906,7 @@ export interface listItemOData extends baseItemOData {
9904
9906
  driveItem: driveItem;
9905
9907
  fields: fieldValueSet;
9906
9908
  versions: IBaseResults<listItemVersion>;
9907
- update(values: any): IBaseQuery<void>;
9909
+ update(values: any): IBaseExecution<void>;
9908
9910
  createLink(type, scope, expirationDateTime, password, message, recipients, retainInheritedPermissions, sendNotification): IBaseExecution<permission>;
9909
9911
  getActivitiesByInterval(): itemActivityStat[];
9910
9912
  getActivitiesByInterval(startDateTime, endDateTime, interval): itemActivityStat[];
@@ -12452,11 +12454,11 @@ export interface permissionProps extends entityProps {
12452
12454
  shareId: string;
12453
12455
  }
12454
12456
  export interface permissionMethods extends entityMethods {
12455
- update(values: any): IBaseQuery<void>;
12457
+ update(values: any): IBaseExecution<void>;
12456
12458
  grant(roles, recipients): IBaseExecution<permission[]>;
12457
12459
  }
12458
12460
  export interface permissionOData extends entityOData {
12459
- update(values: any): IBaseQuery<void>;
12461
+ update(values: any): IBaseExecution<void>;
12460
12462
  grant(roles, recipients): IBaseExecution<permission[]>;
12461
12463
  }
12462
12464
  export interface permissionCollection extends IBaseCollection<permission, permissionOData & permissionProps> {
package/lib/mapperv2.d.ts CHANGED
@@ -2489,6 +2489,9 @@ export interface IMapper {
2489
2489
  subscriptions: IMapperMethod;
2490
2490
  thumbnails: IMapperMethod;
2491
2491
  versions: IMapperMethod;
2492
+ setSensitivityLabel: IMapperMethod & {
2493
+ argNames: ["actionSource", "assignmentMethod", "id", "justificationText"]
2494
+ };
2492
2495
  restore: IMapperMethod & {
2493
2496
  argNames: ["parentReference", "name"]
2494
2497
  };
package/lib/mapperv2.ts CHANGED
@@ -4075,6 +4075,9 @@ export const Mapper: IMapper = {
4075
4075
  requestType: RequestType.Get,
4076
4076
  returnType: "driveItemVersions"
4077
4077
  },
4078
+ setSensitivityLabel: {
4079
+ argNames: ["actionSource", "assignmentMethod", "id", "justificationText"],
4080
+ },
4078
4081
  restore: {
4079
4082
  argNames: ["parentReference", "name"],
4080
4083
  requestType: RequestType.PostWithArgsInBody,
package/main.js CHANGED
@@ -834,7 +834,8 @@ export interface ${name}Collection extends IBaseCollection<${name}, ${name}OData
834
834
  methodString += `IBaseCollection<${returnTypeName}${!isComplexType ? ", " + baseType + returnTypeName + "OData & " + returnTypeName + "Props" : ""}>${methodsType}${method.returnType2 && getGraphType(method.returnType2, true) ? " & " + getGraphType(method.returnType2, true) : ""};`
835
835
  }
836
836
  } else {
837
- methodString += `IBaseQuery<${returnTypeName}>${methodsType}${method.returnType2 && getGraphType(method.returnType2, true) ? " & " + getGraphType(method.returnType2, true) : ""};`
837
+ if (method.name == "setSensitivityLabel") { debugger; }
838
+ methodString += `${returnTypeName == "void" ? "IBaseExecution" : "IBaseQuery"}<${returnTypeName}>${methodsType}${method.returnType2 && getGraphType(method.returnType2, true) ? " & " + getGraphType(method.returnType2, true) : ""};`
838
839
  };
839
840
  methods.push(methodString);
840
841
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
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",