Skip to content

Commit b7861a8

Browse files
committed
SharePoint model updates, introduced Planner API tests
1 parent 571e6bd commit b7861a8

17 files changed

+376
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"autoload-dev": {
3232
"psr-4": {
33-
"Office365\\": ["tests/", "tests/common/", "tests/sharepoint/", "tests/onenote/", "tests/onedrive/", "tests/outlookservices/", "tests/directory/", "tests/teams/", "tests/reports/"]
33+
"Office365\\": ["tests/", "tests/common/", "tests/sharepoint/", "tests/onenote/", "tests/onedrive/", "tests/outlookservices/", "tests/directory/", "tests/teams/", "tests/reports/", "tests/planner/"]
3434
}
3535
},
3636
"autoload": {

src/Planner/PlannerUser.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,30 @@
66
namespace Office365\Planner;
77

88
use Office365\Entity;
9+
use Office365\EntityCollection;
10+
use Office365\Planner\Plans\PlannerPlan;
11+
use Office365\Planner\Tasks\PlannerTask;
12+
use Office365\Runtime\ResourcePath;
913

1014
class PlannerUser extends Entity
1115
{
16+
/**
17+
* @return EntityCollection
18+
*/
19+
public function getTasks()
20+
{
21+
return $this->getProperty("tasks",
22+
new EntityCollection($this->getContext(),
23+
new ResourcePath("tasks", $this->getResourcePath()),PlannerTask::class));
24+
}
25+
26+
/**
27+
* @return EntityCollection
28+
*/
29+
public function getPlans()
30+
{
31+
return $this->getProperty("plans",
32+
new EntityCollection($this->getContext(),
33+
new ResourcePath("plans", $this->getResourcePath()),PlannerPlan::class));
34+
}
1235
}

src/SharePoint/AdaptiveCard.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AdaptiveCard extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $correlationId;
15+
/**
16+
* @var bool
17+
*/
18+
public $hideOriginalBody;
19+
/**
20+
* @var string
21+
*/
22+
public $originator;
23+
/**
24+
* @var bool
25+
*/
26+
public $rtl;
27+
/**
28+
* @var string
29+
*/
30+
public $type;
31+
/**
32+
* @var string
33+
*/
34+
public $version;
35+
/**
36+
* @var Padding
37+
*/
38+
public $padding;
39+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AdaptiveCardColumn extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $width;
15+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AdaptiveCardImage extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $altText;
15+
/**
16+
* @var string
17+
*/
18+
public $backgroundColor;
19+
/**
20+
* @var string
21+
*/
22+
public $height;
23+
/**
24+
* @var string
25+
*/
26+
public $horizontalAlignment;
27+
/**
28+
* @var string
29+
*/
30+
public $size;
31+
/**
32+
* @var string
33+
*/
34+
public $style;
35+
/**
36+
* @var string
37+
*/
38+
public $url;
39+
/**
40+
* @var string
41+
*/
42+
public $width;
43+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementImportData extends ClientValue
10+
{
11+
/**
12+
* @var integer
13+
*/
14+
public $ExtractionPending;
15+
/**
16+
* @var integer
17+
*/
18+
public $UserConfirmationPending;
19+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementPermissionsData extends ClientValue
10+
{
11+
/**
12+
* @var bool
13+
*/
14+
public $CanAddAmendment;
15+
/**
16+
* @var bool
17+
*/
18+
public $CanCreateAgreement;
19+
/**
20+
* @var bool
21+
*/
22+
public $CanCreateTemplate;
23+
/**
24+
* @var bool
25+
*/
26+
public $CanImportAgreement;
27+
/**
28+
* @var bool
29+
*/
30+
public $CanUploadSignedVersion;
31+
/**
32+
* @var bool
33+
*/
34+
public $IsWorkspaceOwner;
35+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementWorkFlowResponse extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $NextWorkFlow;
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:50:37+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class AgreementsSolutionEnabledSitesResponse extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $SkipToken;
15+
}

src/SharePoint/CardElement.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
/**
4+
* Generated 2025-06-14T08:49:21+00:00 16.0.26121.12017
5+
*/
6+
namespace Office365\SharePoint;
7+
8+
use Office365\Runtime\ClientValue;
9+
class CardElement extends ClientValue
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $id;
15+
/**
16+
* @var bool
17+
*/
18+
public $isVisible;
19+
/**
20+
* @var bool
21+
*/
22+
public $separator;
23+
/**
24+
* @var string
25+
*/
26+
public $spacing;
27+
/**
28+
* @var string
29+
*/
30+
public $type;
31+
}

0 commit comments

Comments
 (0)