@pnp/cli-microsoft365 7.7.0-beta.8a32d54 → 7.7.0-beta.cec4ca2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,140 @@
1
+ import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
4
+
5
+ # spe containertype add
6
+
7
+ Creates a new Container Type for your app
8
+
9
+ ## Usage
10
+
11
+ ```sh
12
+ m365 spe containertype add [options]
13
+ ```
14
+
15
+ ## Options
16
+
17
+ ```md definition-list
18
+ `-n, --name <name>`
19
+ : Container type name.
20
+
21
+ `--applicationId <applicationId>`
22
+ : Application ID of the Microsoft Entra ID app that will be the owner of the Container Type.
23
+
24
+ `--trial`
25
+ : Specify if the Container Type should be a trial.
26
+
27
+ `--azureSubscriptionId [azureSubscriptionId]`
28
+ : Azure Subscription Id. Required unless the `trail` option was specified.
29
+
30
+ `--resourceGroup [resourceGroup]`
31
+ : Azure Resource group for billing. Required unless the `trail` option was specified.
32
+
33
+ `--region [region]`
34
+ : Region. Required unless the `trail` option was specified.
35
+ ```
36
+
37
+ <Global />
38
+
39
+ ## Remarks
40
+
41
+ :::note
42
+ You can only create one Trial Container per tenant, a single application registration can only contain one Container and a tenant can contain a maximum of five Containers in total.
43
+ :::
44
+
45
+ ## Examples
46
+
47
+ Adds a new trial Container Type
48
+
49
+ ```sh
50
+ m365 spe containertype add --name 'trial container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --trial
51
+ ```
52
+
53
+ Adds a new Container Type using a standard Container Type.
54
+
55
+ ```sh
56
+ m365 spe containertype add --name 'standard container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --azureSubscriptionId 'f08575e2-36c4-407f-a891-eabae23f66bc' --region 'West Europe' --resourceGroup 'Standard group'
57
+ ```
58
+
59
+ ## Response
60
+
61
+ <Tabs>
62
+ <TabItem value="JSON">
63
+
64
+ ```json
65
+ {
66
+ "AzureSubscriptionId": "f08575e2-36c4-407f-a891-eabae23f66bc",
67
+ "ContainerTypeId": "c33cfee5-c9b6-0a2a-02ee-060693a57f37",
68
+ "CreationDate": "3/11/2024 2:38:56 PM",
69
+ "DisplayName": "standard container",
70
+ "ExpiryDate": null,
71
+ "IsBillingProfileRequired": true,
72
+ "OwningAppId": "1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac",
73
+ "OwningTenantId": "e1dd4023-a656-480a-8a0e-c1b1eec51e1d",
74
+ "Region": "West Europe",
75
+ "ResourceGroup": "Standard group",
76
+ "SPContainerTypeBillingClassification": "Standard"
77
+ }
78
+ ```
79
+
80
+ </TabItem>
81
+ <TabItem value="Text">
82
+
83
+ ```text
84
+ AzureSubscriptionId : f08575e2-36c4-407f-a891-eabae23f66bc
85
+ ContainerTypeId : 331f3b15-b4f6-05e0-05de-2d8c370462b3
86
+ CreationDate : 3/11/2024 2:47:16 PM
87
+ DisplayName : Standard container
88
+ ExpiryDate : null
89
+ IsBillingProfileRequired : false
90
+ OwningAppId : 1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac
91
+ OwningTenantId : e1dd4023-a656-480a-8a0e-c1b1eec51e1d
92
+ Region : West Europe
93
+ ResourceGroup : Standard group
94
+ SPContainerTypeBillingClassification: Standard
95
+ ```
96
+
97
+ </TabItem>
98
+ <TabItem value="CSV">
99
+
100
+ ```csv
101
+ AzureSubscriptionId,ContainerTypeId,CreationDate,DisplayName,ExpiryDate,IsBillingProfileRequired,OwningAppId,OwningTenantId,Region,ResourceGroup,SPContainerTypeBillingClassification
102
+ f08575e2-36c4-407f-a891-eabae23f66bc,331f3b15-b4f6-05e0-05de-2d8c370462b3,3/11/2024 2:48:13 PM,Standard container,,,1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac,e1dd4023-a656-480a-8a0e-c1b1eec51e1d,West Europe,Standard group,Standard
103
+ ```
104
+
105
+ </TabItem>
106
+ <TabItem value="Markdown">
107
+
108
+ ```md
109
+ # spe containertype add --name 'Standard container' --applicationId '1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac' --azureSubscriptionId 'f08575e2-36c4-407f-a891-eabae23f66bc' --region 'West Europe' --resourceGroup 'Standard group'
110
+
111
+ Date: 11/03/2024
112
+
113
+ ## Standard container
114
+
115
+ Property | Value
116
+ ---------|-------
117
+ AzureSubscriptionId | f08575e2-36c4-407f-a891-eabae23f66bc
118
+ ContainerTypeId | 331f3b15-b4f6-05e0-05de-2d8c370462b3
119
+ CreationDate | 3/11/2024 2:49:16 PM
120
+ DisplayName | Standard Container
121
+ IsBillingProfileRequired | false
122
+ OwningAppId | 1b3b8660-9a44-4a7c-9c02-657f3ff5d5ac
123
+ OwningTenantId | e1dd4023-a656-480a-8a0e-c1b1eec51e1d
124
+ Region | West Europe
125
+ ResourceGroup | Standard group
126
+ SPContainerTypeBillingClassification | Standard
127
+ ```
128
+
129
+ </TabItem>
130
+ </Tabs>
131
+
132
+ ## More information
133
+
134
+ In SharePoint Embedded, all files and documents are stored in Containers, and each Container is identified by a Container Type.
135
+
136
+ Container Type is a property stamped on every Container instance. Each Container Type is owned by one Application, and each Application can own only one Container Type.
137
+
138
+ The primary function of a Container Type is to manage the application workload that can access the Containers. Container Type defines the access permissions an Application has towards all Containers of that type, including create, read, write, delete containers; manage container permissions, etc.
139
+
140
+ More information about SharePoint Embedded and the limits can be found at the following location: [SharePoint Embedded](https://learn.microsoft.com/en-us/sharepoint/dev/embedded/concepts/app-concepts/containertypes#sharepoint-embedded-trial-container-types)
@@ -27,7 +27,7 @@ m365 spfx doctor [options]
27
27
  : JMESPath query string. See [http://jmespath.org/](http://jmespath.org/) for more information and examples
28
28
 
29
29
  `-o, --output [output]`
30
- : Output type. `text`. Default `text`
30
+ : Output type. `text` or `json`. Default `text`
31
31
 
32
32
  `--verbose`
33
33
  : Runs command with verbose logging
@@ -56,7 +56,7 @@ Checks ran by this command are based on what is officially supported by Microsof
56
56
 
57
57
  :::info
58
58
 
59
- This command supports only text output.
59
+ This command supports only text or json output.
60
60
 
61
61
  :::
62
62
 
@@ -80,11 +80,67 @@ Verify if your environment meets the requirements to work with SharePoint Framew
80
80
  m365 spfx doctor --spfxVersion 1.11.0 --output text
81
81
  ```
82
82
 
83
+ Verify if your environment meets the requirements to work with SharePoint Framework v1.11.0 and outputs it in a JSON format.
84
+
85
+ ```sh
86
+ m365 spfx doctor --spfxVersion 1.11.0 --output json
87
+ ```
88
+
83
89
  ## Response
84
90
 
85
91
  ### Response with no issues
86
92
 
87
93
  <Tabs>
94
+ <TabItem value="JSON">
95
+
96
+ ```json
97
+ [
98
+ {
99
+ "check": "SharePoint Framework",
100
+ "passed": true,
101
+ "version": "1.18.2",
102
+ "message": "SharePoint Framework v1.18.2 valid."
103
+ },
104
+ {
105
+ "check": "SharePoint Framework",
106
+ "passed": true,
107
+ "version": "1.18.2",
108
+ "message": "SharePoint Framework v1.18.2"
109
+ },
110
+ {
111
+ "check": "env",
112
+ "passed": true,
113
+ "message": "Supported in SPO",
114
+ "version": "spo"
115
+ },
116
+ {
117
+ "check": "Node",
118
+ "passed": true,
119
+ "message": "Node v18.18.2",
120
+ "version": "18.18.2"
121
+ },
122
+ {
123
+ "check": "yo",
124
+ "passed": true,
125
+ "message": "yo v5.0.0",
126
+ "version": "5.0.0"
127
+ },
128
+ {
129
+ "check": "gulp-cli",
130
+ "passed": true,
131
+ "message": "gulp-cli v2.3.0",
132
+ "version": "2.3.0"
133
+ },
134
+ {
135
+ "check": "typescript",
136
+ "passed": true,
137
+ "message": "bundled typescript used"
138
+ }
139
+ ]
140
+ ```
141
+
142
+ </TabItem>
143
+
88
144
  <TabItem value="Text">
89
145
 
90
146
  ```text
@@ -106,6 +162,56 @@ m365 spfx doctor --spfxVersion 1.11.0 --output text
106
162
  When the installed version of Yeoman is lower than expected to run SharePoint Framework v1.15.0
107
163
 
108
164
  <Tabs>
165
+ <TabItem value="JSON">
166
+
167
+ ```json
168
+ [
169
+ {
170
+ "check": "SharePoint Framework",
171
+ "passed": true,
172
+ "version": "1.15.0",
173
+ "message": "SharePoint Framework v1.15.0 valid."
174
+ },
175
+ {
176
+ "check": "SharePoint Framework",
177
+ "passed": true,
178
+ "version": "1.15.0",
179
+ "message": "SharePoint Framework v1.15.0"
180
+ },
181
+ {
182
+ "check": "env",
183
+ "passed": true,
184
+ "message": "Supported in SPO",
185
+ "version": "spo"
186
+ },
187
+ {
188
+ "check": "Node",
189
+ "passed": true,
190
+ "message": "Node v16.18.0",
191
+ "version": "16.18.0"
192
+ },
193
+ {
194
+ "check": "yo",
195
+ "passed": false,
196
+ "message": "yo v3.1.1 found, v^4 required",
197
+ "version": "3.1.1",
198
+ "fix": "npm i -g yo@4"
199
+ },
200
+ {
201
+ "check": "gulp-cli",
202
+ "passed": true,
203
+ "message": "gulp-cli v2.3.0",
204
+ "version": "2.3.0"
205
+ },
206
+ {
207
+ "check": "typescript",
208
+ "passed": true,
209
+ "message": "bundled typescript used"
210
+ }
211
+ ]
212
+ ```
213
+
214
+ </TabItem>
109
215
  <TabItem value="Text">
110
216
 
111
217
  ```text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnp/cli-microsoft365",
3
- "version": "7.7.0-beta.8a32d54",
3
+ "version": "7.7.0-beta.cec4ca2",
4
4
  "description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
5
5
  "license": "MIT",
6
6
  "main": "./dist/api.js",