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

Lines changed: 1 addition & 1 deletion
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

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.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

Lines changed: 621 additions & 179 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
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+
}
Lines changed: 15 additions & 0 deletions
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

Lines changed: 9 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 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
}
Lines changed: 24 additions & 0 deletions
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

Lines changed: 5 additions & 3 deletions
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
}
Lines changed: 19 additions & 0 deletions
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

Lines changed: 15 additions & 1 deletion
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
}

0 commit comments

Comments
 (0)