Skip to content

Commit 6cd2f1c

Browse files
committed
SharePoint API model updated
1 parent a3b445b commit 6cd2f1c

21 files changed

+908
-193
lines changed

examples/SharePoint/Files/FileExists.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function tryGetFile($file){
2828
$credentials = new ClientCredential($settings['ClientId'], $settings['ClientSecret']);
2929
$ctx = (new ClientContext($settings['TeamSiteUrl']))->withCredentials($credentials);
3030

31-
$fileUrl = "/sites/team/Shared Documents/Archive/Sample2.pdf";
31+
$fileUrl = "/sites/team/Shared Documents/Archive/404File.pdf";
3232
$file = $ctx->getWeb()->getFileByServerRelativeUrl($fileUrl);
3333
try {
3434
if (!tryGetFile($file)) {

generator/Settings.SharePoint.json

+2-2
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.24803.12007",
10-
"timestamp": "2024-04-20T08:07:39+00:00",
9+
"version": "16.0.24922.12004",
10+
"timestamp": "2024-06-08T09:12:30+00:00",
1111
"placeholder": "Generated ",
1212
"typeMappings": {
1313
"SP.List": "SP.SPList",

generator/metadata/SharePoint.xml

+621-179
Large diffs are not rendered by default.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementAttributeDTO extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $ReviewId;
15+
/**
16+
* @var string
17+
*/
18+
public $ReviewSubmissionDate;
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementAttributeRequestDTO extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $DocumentUri;
15+
}

src/SharePoint/BrandCenterConfiguration.php

+9-1
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 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint;
77

@@ -24,4 +24,12 @@ class BrandCenterConfiguration extends ClientValue
2424
* @var string
2525
*/
2626
public $SiteUrl;
27+
/**
28+
* @var string
29+
*/
30+
public $BrandFontLibraryId;
31+
/**
32+
* @var SPResourcePath
33+
*/
34+
public $BrandFontLibraryUrl;
2735
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
class ChangeAppConsentPrincipal extends BaseEntity
9+
{
10+
/**
11+
* @return integer
12+
*/
13+
public function getAppConsentPrincipalId()
14+
{
15+
return $this->getProperty("AppConsentPrincipalId");
16+
}
17+
/**
18+
* @var integer
19+
*/
20+
public function setAppConsentPrincipalId($value)
21+
{
22+
return $this->setProperty("AppConsentPrincipalId", $value, true);
23+
}
24+
}

src/SharePoint/ChangeQuery.php

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?php
22

33
/**
4-
* Generated 2021-03-12T16:05:00+00:00 16.0.21103.12002
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint;
77

88
use Office365\Runtime\ClientValue;
99
use Office365\Runtime\ServerTypeInfo;
10-
1110
/**
1211
* Defines a query that is performed against the change log.
1312
*/
@@ -204,9 +203,12 @@ function __construct()
204203
* @var bool
205204
*/
206205
public $IgnoreStartTokenNotFoundError;
207-
208206
public function getServerTypeInfo()
209207
{
210208
return new ServerTypeInfo("SP", "ChangeQuery");
211209
}
210+
/**
211+
* @var bool
212+
*/
213+
public $AppConsentPrincipal;
212214
}
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class CreateReviewRequestDTO extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $DocumentUri;
15+
/**
16+
* @var string
17+
*/
18+
public $Reviewer;
19+
}

src/SharePoint/File.php

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2024-04-20T08:07:39+00:00 16.0.24803.12007
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint;
77

@@ -1051,4 +1051,18 @@ public function setExistsWithException($value)
10511051
{
10521052
return $this->setProperty("ExistsWithException", $value, true);
10531053
}
1054+
/**
1055+
* @return bool
1056+
*/
1057+
public function getSuppressExpirationNotification()
1058+
{
1059+
return $this->getProperty("SuppressExpirationNotification");
1060+
}
1061+
/**
1062+
* @var bool
1063+
*/
1064+
public function setSuppressExpirationNotification($value)
1065+
{
1066+
return $this->setProperty("SuppressExpirationNotification", $value, true);
1067+
}
10541068
}

src/SharePoint/MediaServiceUpdateParameters.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Generated 2024-04-20T08:07:39+00:00 16.0.24803.12007
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint;
77

@@ -152,4 +152,8 @@ class MediaServiceUpdateParameters extends ClientValue
152152
* @var string
153153
*/
154154
public $VirusStatus;
155+
/**
156+
* @var bool
157+
*/
158+
public $IsLowPriorityRequest;
155159
}

src/SharePoint/Publishing/PrePublishValidationsResponse.php

+5-1
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 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint\Publishing;
77

@@ -12,4 +12,8 @@ class PrePublishValidationsResponse extends ClientValue
1212
* @var array
1313
*/
1414
public $ErrorCodes;
15+
/**
16+
* @var PrePublishValidationsErrorCodesForVivaEngage
17+
*/
18+
public $PrePublishValidationsErrorCodesForVivaEngage;
1519
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class ReviewWorkFlowResponseDTO extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $Action;
15+
/**
16+
* @var string
17+
*/
18+
public $Status;
19+
}
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class SPListItemVersionChange extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $FieldTitle;
15+
/**
16+
* @var string
17+
*/
18+
public $NewValue;
19+
/**
20+
* @var string
21+
*/
22+
public $PreviousValue;
23+
}

src/SharePoint/Sharing/PermissionCollection.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Modified: 2019-10-12T20:10:10+00:00 API: 16.0.19402.12016
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
55
*/
66
namespace Office365\SharePoint\Sharing;
77

@@ -41,4 +41,8 @@ class PermissionCollection extends ClientValue
4141
* @var array
4242
*/
4343
public $siteAdmins;
44+
/**
45+
* @var integer
46+
*/
47+
public $totalNumberOfPrincipals;
4448
}
+32-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,39 @@
11
<?php
22

3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
36
namespace Office365\SharePoint\Sharing;
47

58
use Office365\Runtime\ClientValue;
69
class SharePointIds extends ClientValue
710
{
8-
9-
}
11+
/**
12+
* @var string
13+
*/
14+
public $listId;
15+
/**
16+
* @var string
17+
*/
18+
public $listItemId;
19+
/**
20+
* @var string
21+
*/
22+
public $listItemUniqueId;
23+
/**
24+
* @var string
25+
*/
26+
public $siteId;
27+
/**
28+
* @var string
29+
*/
30+
public $siteUrl;
31+
/**
32+
* @var string
33+
*/
34+
public $tenantId;
35+
/**
36+
* @var string
37+
*/
38+
public $webId;
39+
}

src/SharePoint/TenantThemes.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class TenantThemes extends ClientValue
10+
{
11+
/**
12+
* @var bool
13+
*/
14+
public $hideDefaultThemes;
15+
}

src/SharePoint/ThemeData.php

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
/**
4+
* Generated 2024-06-08T09:12:30+00:00 16.0.24922.12004
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class ThemeData extends ClientValue
10+
{
11+
/**
12+
* @var integer
13+
*/
14+
public $id;
15+
/**
16+
* @var bool
17+
*/
18+
public $isVisible;
19+
/**
20+
* @var string
21+
*/
22+
public $name;
23+
/**
24+
* @var integer
25+
*/
26+
public $source;
27+
/**
28+
* @var string
29+
*/
30+
public $themeJson;
31+
}

0 commit comments

Comments
 (0)