Skip to content

Commit 6101465

Browse files
committed
7.2.0 release
1 parent 236629a commit 6101465

File tree

80 files changed

+2694
-3565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2694
-3565
lines changed

README.ja-jp.md

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,20 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
6969
- Add-KshAlert
7070
- Remove-KshAlert
7171
- Set-KshAlert
72+
- アプリ カタログ
73+
- Get-KshTenantAppCatalog
74+
- Get-KshSiteCollectionAppCatalog
75+
- Add-KshSiteCollectionAppCatalog
76+
- Remove-KshSiteCollectionAppCatalog
7277
- アプリ インスタンス
7378
- Get-KshAppInstance
79+
- アプリ
80+
- Get-KshApp
81+
- Add-KshApp
82+
- Remove-KshApp
83+
- Update-KshApp
84+
- Set-KshAppInstallStatus
85+
- Set-KshAppPublishStatus
7486
- 添付ファイル
7587
- Get-KshAttachmentFile
7688
- Remove-KshAttachmentFile
@@ -167,12 +179,6 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
167179
- Save-KshFile
168180
- Copy-KshFile
169181
- Move-KshFile
170-
- Approve-KshFile
171-
- Deny-KshFile
172-
- Lock-KshFile
173-
- Unlock-KshFile
174-
- Publish-KshFile
175-
- Unpublish-KshFile
176182
- ファイル バージョン
177183
- Get-KshFileVersion
178184
- Remove-KshFileVersion
@@ -184,9 +190,6 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
184190
- Set-KshFolder
185191
- Copy-KshFolder
186192
- Move-KshFolder
187-
- Approve-KshFolder
188-
- Deny-KshFolder
189-
- Suspend-KshFolder
190193
- グループ
191194
- Get-KshGroup
192195
- Add-KshGroup
@@ -213,9 +216,6 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
213216
- Add-KshListItem
214217
- Remove-KshListItem
215218
- Set-KshListItem
216-
- Approve-KshListItem
217-
- Deny-KshListItem
218-
- Suspend-KshListItem
219219
- New-KshColumnGeolocationValue
220220
- New-KshColumnImageValue
221221
- New-KshColumnLookupValue
@@ -266,18 +266,6 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
266266
- Add-KshSite
267267
- Remove-KshSite
268268
- Set-KshSite
269-
- サイト コレクションのアプリ
270-
- Get-KshSiteCollectionApp
271-
- Add-KshSiteCollectionApp
272-
- Remove-KshSiteCollectionApp
273-
- Install-KshSiteCollectionApp
274-
- Uninstall-KshSiteCollectionApp
275-
- Publish-KshSiteCollectionApp
276-
- Unpublish-KshSiteCollectionApp
277-
- サイト コレクションのアプリ カタログ
278-
- Get-KshSiteCollectionAppCatalog
279-
- Add-KshSiteCollectionAppCatalog
280-
- Remove-KshSiteCollectionAppCatalog
281269
- サイト コレクションの機能
282270
- Get-KshSiteCollectionFeature
283271
- Add-KshSiteCollectionFeature
@@ -292,16 +280,6 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
292280
- Set-KshSitePage
293281
- サイト テンプレート
294282
- Get-KshSiteTemplate
295-
- テナントのアプリ
296-
- Get-KshTenantApp
297-
- Add-KshTenantApp
298-
- Remove-KshTenantApp
299-
- Install-KshTenantApp
300-
- Uninstall-KshTenantApp
301-
- Publish-KshTenantApp
302-
- Unpublish-KshTenantApp
303-
- テナントのアプリ カタログ
304-
- Get-KshTenantAppCatalog
305283
- ユーザー
306284
- Get-KshUser
307285
- Add-KshUser
@@ -313,6 +291,10 @@ SPClientCore は Microsoft Entra ID 2.0 認証をサポートします。
313291
- Get-KshUserPermission
314292
- ユーザー プロパティ
315293
- Get-KshUserProperty
294+
- バージョン管理
295+
- Set-KshApprovalStatus
296+
- Set-KshCheckOutStatus
297+
- Set-KshPublishStatus
316298
- ビュー
317299
- Get-KshView
318300
- Add-KshView

README.md

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,20 @@ If you enable MFA, you can log in with a web browser of another device. If you d
6969
- Add-KshAlert
7070
- Remove-KshAlert
7171
- Set-KshAlert
72+
- App Catalogs
73+
- Get-KshTenantAppCatalog
74+
- Get-KshSiteCollectionAppCatalog
75+
- Add-KshSiteCollectionAppCatalog
76+
- Remove-KshSiteCollectionAppCatalog
7277
- App Instances
7378
- Get-KshAppInstance
79+
- Apps
80+
- Get-KshApp
81+
- Add-KshApp
82+
- Remove-KshApp
83+
- Update-KshApp
84+
- Set-KshAppInstallStatus
85+
- Set-KshAppPublishStatus
7486
- Attachment Files
7587
- Get-KshAttachmentFile
7688
- Remove-KshAttachmentFile
@@ -166,12 +178,6 @@ If you enable MFA, you can log in with a web browser of another device. If you d
166178
- Save-KshFile
167179
- Copy-KshFile
168180
- Move-KshFile
169-
- Approve-KshFile
170-
- Deny-KshFile
171-
- Lock-KshFile
172-
- Unlock-KshFile
173-
- Publish-KshFile
174-
- Unpublish-KshFile
175181
- File Versions
176182
- Get-KshFileVersion
177183
- Remove-KshFileVersion
@@ -183,9 +189,6 @@ If you enable MFA, you can log in with a web browser of another device. If you d
183189
- Set-KshFolder
184190
- Copy-KshFolder
185191
- Move-KshFolder
186-
- Approve-KshFolder
187-
- Deny-KshFolder
188-
- Suspend-KshFolder
189192
- Groups
190193
- Get-KshGroup
191194
- Add-KshGroup
@@ -212,9 +215,6 @@ If you enable MFA, you can log in with a web browser of another device. If you d
212215
- Add-KshListItem
213216
- Remove-KshListItem
214217
- Set-KshListItem
215-
- Approve-KshListItem
216-
- Deny-KshListItem
217-
- Suspend-KshListItem
218218
- New-KshColumnGeolocationValue
219219
- New-KshColumnImageValue
220220
- New-KshColumnLookupValue
@@ -265,18 +265,6 @@ If you enable MFA, you can log in with a web browser of another device. If you d
265265
- Add-KshSite
266266
- Remove-KshSite
267267
- Set-KshSite
268-
- Site Collection Apps
269-
- Get-KshSiteCollectionApp
270-
- Add-KshSiteCollectionApp
271-
- Remove-KshSiteCollectionApp
272-
- Install-KshSiteCollectionApp
273-
- Uninstall-KshSiteCollectionApp
274-
- Publish-KshSiteCollectionApp
275-
- Unpublish-KshSiteCollectionApp
276-
- Site Collection App Catalogs
277-
- Get-KshSiteCollectionAppCatalog
278-
- Add-KshSiteCollectionAppCatalog
279-
- Remove-KshSiteCollectionAppCatalog
280268
- Site Collection Features
281269
- Get-KshSiteCollectionFeature
282270
- Add-KshSiteCollectionFeature
@@ -291,16 +279,6 @@ If you enable MFA, you can log in with a web browser of another device. If you d
291279
- Set-KshSitePage
292280
- Site Templates
293281
- Get-KshSiteTemplate
294-
- Tenant Apps
295-
- Get-KshTenantApp
296-
- Add-KshTenantApp
297-
- Remove-KshTenantApp
298-
- Install-KshTenantApp
299-
- Uninstall-KshTenantApp
300-
- Publish-KshTenantApp
301-
- Unpublish-KshTenantApp
302-
- Tenant App Catalog
303-
- Get-KshTenantAppCatalog
304282
- Users
305283
- Get-KshUser
306284
- Add-KshUser
@@ -312,6 +290,10 @@ If you enable MFA, you can log in with a web browser of another device. If you d
312290
- Get-KshUserPermission
313291
- User Properties
314292
- Get-KshUserProperty
293+
- Versioning
294+
- Set-KshApprovalStatus
295+
- Set-KshCheckOutStatus
296+
- Set-KshPublishStatus
315297
- Views
316298
- Get-KshView
317299
- Add-KshView

source/Karamem0.SPClientCore.Test/Commands/GetTenantAppCommandTests.cs renamed to source/Karamem0.SPClientCore.Test/Commands/AddAppCommandTests.cs

Lines changed: 26 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
namespace Karamem0.SharePoint.PowerShell.Commands.Test;
1818

1919
[Category("Karamem0.SharePoint.PowerShell.Commands")]
20-
public class GetTenantAppCommandTests
20+
public class AddAppCommandTests
2121
{
2222

2323
[Test()]
24-
public void InvokeCommand_GetAll_ShouldSucceed()
24+
public void InvokeCommand_AddItemToTenant_ShouldSucceed()
2525
{
2626
using var context = new PSCmdletContext();
2727
_ = context.Runspace.InvokeCommand(
@@ -35,66 +35,57 @@ public void InvokeCommand_GetAll_ShouldSucceed()
3535
}
3636
);
3737
var result1 = context.Runspace.InvokeCommand<App>(
38-
"Get-KshTenantApp",
38+
"Add-KshApp",
3939
new Dictionary<string, object>()
4040
{
41+
["Content"] = System.IO.File.OpenRead(context.AppSettings["App0Path"]),
42+
["FileName"] = "TestApp0.sppkg",
43+
["Overwrite"] = false,
44+
["Tenant"] = true
4145
}
4246
);
43-
var actual = result1.ToArray();
44-
Assert.That(actual, Is.Not.Null);
45-
}
46-
47-
[Test()]
48-
public void InvokeCommand_GetByIdentity_ShouldSucceed()
49-
{
50-
using var context = new PSCmdletContext();
5147
_ = context.Runspace.InvokeCommand(
52-
"Connect-KshSite",
48+
"Remove-KshApp",
5349
new Dictionary<string, object>()
5450
{
55-
["Url"] = context.AppSettings["TenantAppCatalogUrl"],
56-
["ClientId"] = context.AppSettings["ClientId"],
57-
["CertificatePath"] = context.AppSettings["CertificatePath"],
58-
["PrivateKeyPath"] = context.AppSettings["PrivateKeyPath"]
51+
["Identity"] = result1[0],
52+
["Tenant"] = true
5953
}
6054
);
61-
var result1 = context.Runspace.InvokeCommand<App>(
62-
"Get-KshTenantApp",
63-
new Dictionary<string, object>()
64-
{
65-
["AppId"] = context.AppSettings["TenantApp1Id"]
66-
}
67-
);
68-
var result2 = context.Runspace.InvokeCommand<App>(
69-
"Get-KshTenantApp",
70-
new Dictionary<string, object>()
71-
{
72-
["Identity"] = result1[0]
73-
}
74-
);
75-
var actual = result2[0];
55+
var actual = result1[0];
7656
Assert.That(actual, Is.Not.Null);
7757
}
7858

7959
[Test()]
80-
public void InvokeCommand_GetByAppId_ShouldSucceed()
60+
public void InvokeCommand_AddItemToSiteCollection_ShouldSucceed()
8161
{
8262
using var context = new PSCmdletContext();
8363
_ = context.Runspace.InvokeCommand(
8464
"Connect-KshSite",
8565
new Dictionary<string, object>()
8666
{
87-
["Url"] = context.AppSettings["TenantAppCatalogUrl"],
67+
["Url"] = context.AppSettings["BaseUrl"],
8868
["ClientId"] = context.AppSettings["ClientId"],
8969
["CertificatePath"] = context.AppSettings["CertificatePath"],
9070
["PrivateKeyPath"] = context.AppSettings["PrivateKeyPath"]
9171
}
9272
);
9373
var result1 = context.Runspace.InvokeCommand<App>(
94-
"Get-KshTenantApp",
74+
"Add-KshApp",
75+
new Dictionary<string, object>()
76+
{
77+
["Content"] = System.IO.File.OpenRead(context.AppSettings["App0Path"]),
78+
["FileName"] = "TestApp0.sppkg",
79+
["Overwrite"] = false,
80+
["Tenant"] = false
81+
}
82+
);
83+
_ = context.Runspace.InvokeCommand(
84+
"Remove-KshApp",
9585
new Dictionary<string, object>()
9686
{
97-
["AppId"] = context.AppSettings["TenantApp1Id"]
87+
["Identity"] = result1[0],
88+
["Tenant"] = false
9889
}
9990
);
10091
var actual = result1[0];

source/Karamem0.SPClientCore.Test/Commands/AddSiteCollectionAppCommandTests.cs

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)