Skip to content

Commit 571e6bd

Browse files
committed
SharePoint API types synced with 16.0.26121.12017 model
1 parent d0a7423 commit 571e6bd

25 files changed

+4080
-843
lines changed

generator/Settings.SharePoint.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"docsRoot": "https:\/\/docs.microsoft.com\/en-us\/openspecs\/sharepoint_protocols\/ms-csomspt\/",
77
"rootNamespace": "Office365\\SharePoint",
88
"entityRootNamespace": "SP",
9-
"version": "16.0.25409.12005",
10-
"timestamp": "2024-10-28T19:21:18+00:00",
9+
"version": "16.0.26121.12017",
10+
"timestamp": "2025-06-14T08:49:21+00:00",
1111
"placeholder": "Generated ",
1212
"typeMappings": {
1313
"SP.List": "SP.SPList",

generator/metadata/SharePoint.xml

Lines changed: 3559 additions & 793 deletions
Large diffs are not rendered by default.

src/SharePoint/ConfigurationData.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2024-02-24T10:21:51+00:00 16.0.24607.12008
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

@@ -44,4 +44,8 @@ class ConfigurationData extends ClientValue
4444
* @var string
4545
*/
4646
public $Theme;
47+
/**
48+
* @var bool
49+
*/
50+
public $IsVivaHomeFeedReplaceFlightEnabled;
4751
}

src/SharePoint/CopyMigrationOptions.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2021-10-09T13:33:47+03:00 16.0.21729.12001
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

@@ -58,4 +58,12 @@ class CopyMigrationOptions extends ClientValue
5858
* @var array
5959
*/
6060
public $CustomizedItemName;
61+
/**
62+
* @var bool
63+
*/
64+
public $MergeEmailNotifications;
65+
/**
66+
* @var bool
67+
*/
68+
public $MoveAndShareItems;
6169
}

src/SharePoint/File.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

@@ -30,7 +30,7 @@ class File extends SecurableObject
3030
{
3131
public function moveToEx($destUrl, $overwrite)
3232
{
33-
$this->ensureProperty("ServerRelativeUrl", function () use($destUrl, $overwrite) {
33+
$this->ensureProperty("ServerRelativeUrl", function () use ($destUrl, $overwrite) {
3434
MoveCopyUtil::moveFile($this->getContext(), $this->getServerRelativeUrl(), $destUrl, $overwrite, new MoveCopyOptions());
3535
});
3636
}
@@ -52,7 +52,7 @@ public static function fromUrl($absUrl)
5252
*/
5353
public function download($handle)
5454
{
55-
$this->ensureProperty("ServerRelativeUrl", function () use($handle) {
55+
$this->ensureProperty("ServerRelativeUrl", function () use ($handle) {
5656
$this->constructDownloadQuery($this, $handle);
5757
});
5858
return $this;
@@ -64,7 +64,7 @@ public function download($handle)
6464
private function constructDownloadQuery($file, $handle)
6565
{
6666
$file->getContext()->load($file);
67-
$this->getContext()->getPendingRequest()->beforeExecuteRequestOnce(function ($request) use($handle) {
67+
$this->getContext()->getPendingRequest()->beforeExecuteRequestOnce(function ($request) use ($handle) {
6868
$request->Url .= "/\$value";
6969
$request->StreamHandle = $handle;
7070
});
@@ -197,7 +197,7 @@ public static function openBinary(ClientRuntimeContext $ctx, $serverRelativeUrl,
197197
$options = new RequestOptions($url);
198198
$options->TransferEncodingChunkedAllowed = true;
199199
$response = $ctx->executeQueryDirect($options);
200-
if (400 <= ($statusCode = $response->getStatusCode())) {
200+
if (400 <= $statusCode = $response->getStatusCode()) {
201201
throw new RequestException(sprintf('Could not open file located at "%s". SharePoint has responded with status code %d, error was: %s', rawurldecode($serverRelativeUrl), $statusCode, $response->getContent()), $statusCode, $response->getContent());
202202
}
203203
return $response->getContent();
@@ -1065,4 +1065,11 @@ public function setSuppressExpirationNotification($value)
10651065
{
10661066
return $this->setProperty("SuppressExpirationNotification", $value, true);
10671067
}
1068+
/**
1069+
* @return Web
1070+
*/
1071+
public function getWeb()
1072+
{
1073+
return $this->getProperty("Web", new Web($this->getContext(), new ResourcePath("Web", $this->getResourcePath())));
1074+
}
10681075
}

src/SharePoint/FileDeleteParameters.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

33
/**
4-
* Generated 2019-10-12T18:54:53+00:00 16.0.19402.12016
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

88
use Office365\Runtime\ClientValue;
9-
109
class FileDeleteParameters extends ClientValue
1110
{
1211
/**
@@ -17,4 +16,8 @@ class FileDeleteParameters extends ClientValue
1716
* @var string
1817
*/
1918
public $ETagMatch;
19+
/**
20+
* @var bool
21+
*/
22+
public $BypassCheckedOut;
2023
}

src/SharePoint/FolderDeleteParameters.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

33
/**
4-
* Generated 2019-10-12T18:54:53+00:00 16.0.19402.12016
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

88
use Office365\Runtime\ClientValue;
9-
109
class FolderDeleteParameters extends ClientValue
1110
{
1211
/**
@@ -21,4 +20,8 @@ class FolderDeleteParameters extends ClientValue
2120
* @var string
2221
*/
2322
public $ETagMatch;
23+
/**
24+
* @var bool
25+
*/
26+
public $BypassCheckedOut;
2427
}

src/SharePoint/Group.php

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

33
/**
4-
* Generated 2019-11-17T14:35:07+00:00 16.0.19506.12022
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

88
use Office365\Runtime\ResourcePath;
9-
109
/**
1110
* Represents
1211
* a collection of users. The CanCurrentUserEditMembership, CanCurrentUserManageGroup
@@ -21,8 +20,7 @@ class Group extends Principal
2120
*/
2221
public function getUsers()
2322
{
24-
return $this->getProperty("Users",
25-
new UserCollection($this->getContext(),new ResourcePath("Users", $this->getResourcePath())));
23+
return $this->getProperty("Users", new UserCollection($this->getContext(), new ResourcePath("Users", $this->getResourcePath())));
2624
}
2725
/**
2826
* Specifies
@@ -231,7 +229,20 @@ public function setRequestToJoinLeaveEmailSetting($value)
231229
*/
232230
public function getOwner()
233231
{
234-
return $this->getProperty("Owner",
235-
new Principal($this->getContext(),new ResourcePath("Owner", $this->getResourcePath())));
232+
return $this->getProperty("Owner", new Principal($this->getContext(), new ResourcePath("Owner", $this->getResourcePath())));
233+
}
234+
/**
235+
* @return bool
236+
*/
237+
public function getContainsCurrentUser()
238+
{
239+
return $this->getProperty("ContainsCurrentUser");
240+
}
241+
/**
242+
* @var bool
243+
*/
244+
public function setContainsCurrentUser($value)
245+
{
246+
return $this->setProperty("ContainsCurrentUser", $value, true);
236247
}
237248
}

src/SharePoint/MediaServiceUpdateParameters.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2024-10-28T19:09:39+00:00 16.0.25409.12005
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint;
77

@@ -164,4 +164,16 @@ class MediaServiceUpdateParameters extends ClientValue
164164
* @var bool
165165
*/
166166
public $SkipSearchReindex;
167+
/**
168+
* @var string
169+
*/
170+
public $AgreementClauses;
171+
/**
172+
* @var string
173+
*/
174+
public $GeneratedSnippetShortInstructions;
175+
/**
176+
* @var string
177+
*/
178+
public $TranslatedLang;
167179
}

src/SharePoint/Publishing/SharePointPublishingStatusResponse.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2023-01-13T18:22:53+02:00 16.0.23207.12005
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
55
*/
66
namespace Office365\SharePoint\Publishing;
77

@@ -12,4 +12,8 @@ class SharePointPublishingStatusResponse extends ClientValue
1212
* @var string
1313
*/
1414
public $SiteId;
15+
/**
16+
* @var string
17+
*/
18+
public $WebId;
1519
}

0 commit comments

Comments
 (0)