@pnp/cli-microsoft365 5.1.0-beta.55e5dfb → 5.1.0-beta.efdacec

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.
Files changed (31) hide show
  1. package/.eslintrc.js +1 -0
  2. package/dist/cli/index.js +5 -1
  3. package/dist/m365/aad/commands/app/app-add.js +68 -10
  4. package/dist/m365/aad/commands/app/app-role-delete.js +1 -1
  5. package/dist/m365/aad/commands/o365group/o365group-add.js +39 -1
  6. package/dist/m365/aad/commands/o365group/o365group-conversation-post-list.js +87 -0
  7. package/dist/m365/aad/commands.js +1 -0
  8. package/dist/m365/base/PowerPlatformCommand.js +10 -0
  9. package/dist/m365/pp/commands/managementapp/managementapp-add.js +98 -0
  10. package/dist/m365/pp/commands.js +7 -0
  11. package/dist/m365/spfx/commands/project/model/index.js +5 -1
  12. package/dist/m365/spfx/commands/project/project-externalize/index.js +5 -1
  13. package/dist/m365/spfx/commands/project/project-externalize/rules/index.js +5 -1
  14. package/dist/m365/spfx/commands/project/project-upgrade/index.js +5 -1
  15. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN001033_DEP_tslib.js +14 -0
  16. package/dist/m365/spfx/commands/project/project-upgrade/rules/FN023002_GITIGNORE_heft.js +40 -0
  17. package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.15.0-beta.1.js +63 -0
  18. package/dist/m365/spfx/commands/project/project-upgrade.js +24 -19
  19. package/dist/m365/spo/commands/site/site-recyclebinitem-restore.js +66 -0
  20. package/dist/m365/spo/commands.js +1 -0
  21. package/dist/m365/teams/commands/chat/chat-message-send.js +50 -58
  22. package/dist/utils/formatting.js +3 -0
  23. package/dist/utils/index.js +5 -1
  24. package/docs/docs/cmd/aad/o365group/o365group-add.md +42 -6
  25. package/docs/docs/cmd/aad/o365group/o365group-conversation-post-list.md +36 -0
  26. package/docs/docs/cmd/pp/managementapp/managementapp-add.md +50 -0
  27. package/docs/docs/cmd/spfx/project/project-upgrade.md +1 -1
  28. package/docs/docs/cmd/spo/site/site-recyclebinitem-restore.md +27 -0
  29. package/docs/docs/cmd/teams/chat/chat-message-send.md +4 -4
  30. package/npm-shrinkwrap.json +173 -188
  31. package/package.json +10 -10
package/.eslintrc.js CHANGED
@@ -35,6 +35,7 @@ const dictionary = [
35
35
  'is',
36
36
  'issue',
37
37
  'list',
38
+ 'management',
38
39
  'member',
39
40
  'messaging',
40
41
  'news',
package/dist/cli/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -58,6 +58,9 @@ class AadAppAddCommand extends GraphCommand_1.default {
58
58
  if (_appInfo.secret) {
59
59
  appInfo.secret = _appInfo.secret;
60
60
  }
61
+ if (_appInfo.secrets) {
62
+ appInfo.secrets = _appInfo.secrets;
63
+ }
61
64
  logger.log(appInfo);
62
65
  cb();
63
66
  }, (rawRes) => this.handleRejectedODataJsonPromise(rawRes, logger, cb));
@@ -111,6 +114,10 @@ class AadAppAddCommand extends GraphCommand_1.default {
111
114
  delete v2Manifest.id;
112
115
  delete v2Manifest.appId;
113
116
  delete v2Manifest.publisherDomain;
117
+ // extract secrets from the manifest. Store them in a separate variable
118
+ // and remove them from the manifest because we need to create them
119
+ // separately
120
+ const secrets = this.getSecretsFromManifest(v2Manifest);
114
121
  // Azure Portal returns v2 manifest whereas the Graph API expects a v1.6
115
122
  const graphManifest = this.transformManifest(v2Manifest);
116
123
  const updateAppRequestOptions = {
@@ -124,7 +131,26 @@ class AadAppAddCommand extends GraphCommand_1.default {
124
131
  return request_1.default
125
132
  .patch(updateAppRequestOptions)
126
133
  .then(_ => this.updatePreAuthorizedAppsFromManifest(v2Manifest, appInfo))
127
- .then(_ => Promise.resolve(appInfo));
134
+ .then(_ => this.createSecrets(secrets, appInfo));
135
+ }
136
+ getSecretsFromManifest(manifest) {
137
+ if (!manifest.passwordCredentials || manifest.passwordCredentials.length === 0) {
138
+ return [];
139
+ }
140
+ const secrets = manifest.passwordCredentials.map((c) => {
141
+ const startDate = new Date(c.startDate);
142
+ const endDate = new Date(c.endDate);
143
+ const expirationDate = new Date();
144
+ expirationDate.setMilliseconds(endDate.valueOf() - startDate.valueOf());
145
+ return {
146
+ name: c.displayName,
147
+ expirationDate
148
+ };
149
+ });
150
+ // delete the secrets from the manifest so that we won't try to set them
151
+ // from the manifest
152
+ delete manifest.passwordCredentials;
153
+ return secrets;
128
154
  }
129
155
  updatePreAuthorizedAppsFromManifest(manifest, appInfo) {
130
156
  if (!manifest ||
@@ -153,6 +179,21 @@ class AadAppAddCommand extends GraphCommand_1.default {
153
179
  .patch(updateAppRequestOptions)
154
180
  .then(_ => Promise.resolve(appInfo));
155
181
  }
182
+ createSecrets(secrets, appInfo) {
183
+ if (secrets.length === 0) {
184
+ return Promise.resolve(appInfo);
185
+ }
186
+ return Promise
187
+ .all(secrets.map(secret => this.createSecret({
188
+ appObjectId: appInfo.id,
189
+ displayName: secret.name,
190
+ expirationDate: secret.expirationDate
191
+ })))
192
+ .then(secrets => {
193
+ appInfo.secrets = secrets;
194
+ return appInfo;
195
+ });
196
+ }
156
197
  transformManifest(v2Manifest) {
157
198
  var _a, _b, _c, _d;
158
199
  const graphManifest = JSON.parse(JSON.stringify(v2Manifest));
@@ -187,7 +228,7 @@ class AadAppAddCommand extends GraphCommand_1.default {
187
228
  unsupportedProperties.forEach(p => delete graphManifest[p]);
188
229
  graphManifest.api.acceptMappedClaims = v2Manifest.acceptMappedClaims;
189
230
  delete graphManifest.acceptMappedClaims;
190
- graphManifest.publicClient = v2Manifest.allowPublicClient;
231
+ graphManifest.isFallbackPublicClient = v2Manifest.allowPublicClient;
191
232
  delete graphManifest.allowPublicClient;
192
233
  graphManifest.info.termsOfServiceUrl = (_a = v2Manifest.informationalUrls) === null || _a === void 0 ? void 0 : _a.termsOfService;
193
234
  graphManifest.info.supportUrl = (_b = v2Manifest.informationalUrls) === null || _b === void 0 ? void 0 : _b.support;
@@ -234,6 +275,11 @@ class AadAppAddCommand extends GraphCommand_1.default {
234
275
  }
235
276
  graphManifest.web.homePageUrl = v2Manifest.signInUrl;
236
277
  delete graphManifest.signInUrl;
278
+ if (graphManifest.appRoles) {
279
+ graphManifest.appRoles.forEach((role) => {
280
+ delete role.lang;
281
+ });
282
+ }
237
283
  return graphManifest;
238
284
  }
239
285
  configureUri(args, appInfo, logger) {
@@ -357,27 +403,39 @@ class AadAppAddCommand extends GraphCommand_1.default {
357
403
  if (this.verbose) {
358
404
  logger.logToStderr(`Configure Azure AD app secret...`);
359
405
  }
360
- const secretExpirationDate = new Date();
361
- secretExpirationDate.setFullYear(secretExpirationDate.getFullYear() + 1);
406
+ return this
407
+ .createSecret({ appObjectId: appInfo.id })
408
+ .then(secret => {
409
+ appInfo.secret = secret.value;
410
+ return Promise.resolve(appInfo);
411
+ });
412
+ }
413
+ createSecret({ appObjectId, displayName = undefined, expirationDate = undefined }) {
414
+ let secretExpirationDate = expirationDate;
415
+ if (!secretExpirationDate) {
416
+ secretExpirationDate = new Date();
417
+ secretExpirationDate.setFullYear(secretExpirationDate.getFullYear() + 1);
418
+ }
419
+ const secretName = displayName !== null && displayName !== void 0 ? displayName : 'Default';
362
420
  const requestOptions = {
363
- url: `${this.resource}/v1.0/myorganization/applications/${appInfo.id}/addPassword`,
421
+ url: `${this.resource}/v1.0/myorganization/applications/${appObjectId}/addPassword`,
364
422
  headers: {
365
423
  'content-type': 'application/json'
366
424
  },
367
425
  responseType: 'json',
368
426
  data: {
369
427
  passwordCredential: {
370
- displayName: 'Default',
428
+ displayName: secretName,
371
429
  endDateTime: secretExpirationDate.toISOString()
372
430
  }
373
431
  }
374
432
  };
375
433
  return request_1.default
376
434
  .post(requestOptions)
377
- .then((password) => {
378
- appInfo.secret = password.secretText;
379
- return Promise.resolve(appInfo);
380
- });
435
+ .then((password) => Promise.resolve({
436
+ displayName: secretName,
437
+ value: password.secretText
438
+ }));
381
439
  }
382
440
  saveAppInfo(args, appInfo, logger) {
383
441
  if (!args.options.save) {
@@ -56,7 +56,7 @@ class AadAppRoleDeleteCommand extends GraphCommand_1.default {
56
56
  if (this.verbose) {
57
57
  logger.logToStderr(`Deleting role with ${appRoleDeleteIdentifierNameValue} from Azure AD app ${aadApp.id}...`);
58
58
  }
59
- // Find the role search criteria provided by the user.
59
+ // Find the role search criteria provided by the user.
60
60
  const appRoleDeleteIdentifierProperty = args.options.name ? `displayName` : (args.options.claim ? `value` : `id`);
61
61
  const appRoleDeleteIdentifierValue = args.options.name ? args.options.name : (args.options.claim ? args.options.claim : args.options.id);
62
62
  const appRoleToDelete = aadApp.appRoles.filter((role) => role[appRoleDeleteIdentifierProperty] === appRoleDeleteIdentifierValue);
@@ -11,15 +11,40 @@ class AadO365GroupAddCommand extends GraphCommand_1.default {
11
11
  return commands_1.default.O365GROUP_ADD;
12
12
  }
13
13
  get description() {
14
- return 'Creates Microsoft 365 Group';
14
+ return 'Creates a Microsoft 365 Group';
15
+ }
16
+ getTelemetryProperties(args) {
17
+ const telemetryProps = super.getTelemetryProperties(args);
18
+ telemetryProps.owners = typeof args.options.owners !== 'undefined';
19
+ telemetryProps.members = typeof args.options.members !== 'undefined';
20
+ telemetryProps.logoPath = typeof args.options.logoPath !== 'undefined';
21
+ telemetryProps.isPrivate = typeof args.options.isPrivate !== 'undefined';
22
+ telemetryProps.allowMembersToPost = (!(!args.options.allowMembersToPost)).toString();
23
+ telemetryProps.hideGroupInOutlook = (!(!args.options.hideGroupInOutlook)).toString();
24
+ telemetryProps.subscribeNewGroupMembers = (!(!args.options.subscribeNewGroupMembers)).toString();
25
+ telemetryProps.welcomeEmailDisabled = (!(!args.options.welcomeEmailDisabled)).toString();
26
+ return telemetryProps;
15
27
  }
16
28
  commandAction(logger, args, cb) {
17
29
  let group;
18
30
  let ownerIds = [];
19
31
  let memberIds = [];
32
+ const resourceBehaviorOptionsCollection = [];
20
33
  if (this.verbose) {
21
34
  logger.logToStderr(`Creating Microsoft 365 Group...`);
22
35
  }
36
+ if (args.options.allowMembersToPost) {
37
+ resourceBehaviorOptionsCollection.push("allowMembersToPost");
38
+ }
39
+ if (args.options.hideGroupInOutlook) {
40
+ resourceBehaviorOptionsCollection.push("hideGroupInOutlook");
41
+ }
42
+ if (args.options.subscribeNewGroupMembers) {
43
+ resourceBehaviorOptionsCollection.push("subscribeNewGroupMembers");
44
+ }
45
+ if (args.options.welcomeEmailDisabled) {
46
+ resourceBehaviorOptionsCollection.push("welcomeEmailDisabled");
47
+ }
23
48
  const requestOptions = {
24
49
  url: `${this.resource}/v1.0/groups`,
25
50
  headers: {
@@ -34,6 +59,7 @@ class AadO365GroupAddCommand extends GraphCommand_1.default {
34
59
  ],
35
60
  mailEnabled: true,
36
61
  mailNickname: args.options.mailNickname,
62
+ resourceBehaviorOptions: resourceBehaviorOptionsCollection,
37
63
  securityEnabled: false,
38
64
  visibility: args.options.isPrivate === 'true' ? 'Private' : 'Public'
39
65
  }
@@ -186,6 +212,18 @@ class AadO365GroupAddCommand extends GraphCommand_1.default {
186
212
  {
187
213
  option: '--isPrivate [isPrivate]'
188
214
  },
215
+ {
216
+ option: '--allowMembersToPost [allowMembersToPost]'
217
+ },
218
+ {
219
+ option: '--hideGroupInOutlook [hideGroupInOutlook]'
220
+ },
221
+ {
222
+ option: '--subscribeNewGroupMembers [subscribeNewGroupMembers]'
223
+ },
224
+ {
225
+ option: '--welcomeEmailDisabled [welcomeEmailDisabled]'
226
+ },
189
227
  {
190
228
  option: '-l, --logoPath [logoPath]'
191
229
  }
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("../../../../utils");
4
+ const GraphCommand_1 = require("../../../base/GraphCommand");
5
+ const commands_1 = require("../../commands");
6
+ const request_1 = require("../../../../request");
7
+ class AadO365GroupConversationPostListCommand extends GraphCommand_1.default {
8
+ get name() {
9
+ return commands_1.default.O365GROUP_CONVERSATION_POST_LIST;
10
+ }
11
+ get description() {
12
+ return 'Lists conversation posts of a Microsoft 365 group';
13
+ }
14
+ getTelemetryProperties(args) {
15
+ const telemetryProps = super.getTelemetryProperties(args);
16
+ telemetryProps.groupId = typeof args.options.groupId !== 'undefined';
17
+ telemetryProps.groupDisplayName = typeof args.options.groupDisplayName !== 'undefined';
18
+ return telemetryProps;
19
+ }
20
+ defaultProperties() {
21
+ return ['receivedDateTime', 'id'];
22
+ }
23
+ commandAction(logger, args, cb) {
24
+ this
25
+ .getGroupId(args)
26
+ .then((retrievedgroupId) => {
27
+ return utils_1.odata.getAllItems(`${this.resource}/v1.0/groups/${retrievedgroupId}/threads/${args.options.threadId}/posts`, logger);
28
+ })
29
+ .then((posts) => {
30
+ logger.log(posts);
31
+ cb();
32
+ }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
33
+ }
34
+ getGroupId(args) {
35
+ if (args.options.groupId) {
36
+ return Promise.resolve(encodeURIComponent(args.options.groupId));
37
+ }
38
+ const requestOptions = {
39
+ url: `${this.resource}/v1.0/groups?$filter=displayName eq '${encodeURIComponent(args.options.groupDisplayName)}'&$select=id`,
40
+ headers: {
41
+ accept: 'application/json;odata.metadata=none'
42
+ },
43
+ responseType: 'json'
44
+ };
45
+ return request_1.default
46
+ .get(requestOptions)
47
+ .then(res => {
48
+ if (res.value.length === 1) {
49
+ return Promise.resolve(res.value[0].id);
50
+ }
51
+ if (res.value.length === 0) {
52
+ return Promise.reject(`The specified group does not exist`);
53
+ }
54
+ return Promise.reject(`Multiple groups found with name ${args.options.groupDisplayName} found. Please choose between the following IDs: ${res.value.map(a => a.id).join(', ')}`);
55
+ });
56
+ }
57
+ options() {
58
+ const options = [
59
+ {
60
+ option: '-i, --groupId [groupId]'
61
+ },
62
+ {
63
+ option: '-d, --groupDisplayName [groupDisplayName]'
64
+ },
65
+ {
66
+ option: '-t, --threadId <threadId>'
67
+ }
68
+ ];
69
+ const parentOptions = super.options();
70
+ return options.concat(parentOptions);
71
+ }
72
+ validate(args) {
73
+ if (!args.options.groupId &&
74
+ !args.options.groupDisplayName) {
75
+ return 'Specify either groupId or groupDisplayName';
76
+ }
77
+ if (args.options.groupId && args.options.groupDisplayName) {
78
+ return 'Specify either groupId or groupDisplayName, but not both';
79
+ }
80
+ if (args.options.groupId && !utils_1.validation.isValidGuid(args.options.groupId)) {
81
+ return `${args.options.groupId} is not a valid GUID`;
82
+ }
83
+ return true;
84
+ }
85
+ }
86
+ module.exports = new AadO365GroupConversationPostListCommand();
87
+ //# sourceMappingURL=o365group-conversation-post-list.js.map
@@ -24,6 +24,7 @@ exports.default = {
24
24
  O365GROUP_GET: `${prefix} o365group get`,
25
25
  O365GROUP_LIST: `${prefix} o365group list`,
26
26
  O365GROUP_CONVERSATION_LIST: `${prefix} o365group conversation list`,
27
+ O365GROUP_CONVERSATION_POST_LIST: `${prefix} o365group conversation post list`,
27
28
  O365GROUP_RECYCLEBINITEM_CLEAR: `${prefix} o365group recyclebinitem clear`,
28
29
  O365GROUP_RECYCLEBINITEM_LIST: `${prefix} o365group recyclebinitem list`,
29
30
  O365GROUP_RECYCLEBINITEM_RESTORE: `${prefix} o365group recyclebinitem restore`,
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Command_1 = require("../../Command");
4
+ class PowerPlatformCommand extends Command_1.default {
5
+ get resource() {
6
+ return 'https://api.bap.microsoft.com';
7
+ }
8
+ }
9
+ exports.default = PowerPlatformCommand;
10
+ //# sourceMappingURL=PowerPlatformCommand.js.map
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const request_1 = require("../../../../request");
4
+ const utils_1 = require("../../../../utils");
5
+ const PowerPlatformCommand_1 = require("../../../base/PowerPlatformCommand");
6
+ const commands_1 = require("../../commands");
7
+ class PpManagementAppAddCommand extends PowerPlatformCommand_1.default {
8
+ get name() {
9
+ return commands_1.default.MANAGEMENTAPP_ADD;
10
+ }
11
+ get description() {
12
+ return 'Register management application for Power Platform';
13
+ }
14
+ getTelemetryProperties(args) {
15
+ const telemetryProps = super.getTelemetryProperties(args);
16
+ telemetryProps.appId = typeof args.options.appId !== 'undefined';
17
+ telemetryProps.objectId = typeof args.options.objectId !== 'undefined';
18
+ telemetryProps.name = typeof args.options.name !== 'undefined';
19
+ return telemetryProps;
20
+ }
21
+ commandAction(logger, args, cb) {
22
+ this
23
+ .getAppId(args)
24
+ .then((appId) => {
25
+ const requestOptions = {
26
+ // This should be refactored once we implement a PowerPlatform base class as api.bap will differ between envs.
27
+ url: `${this.resource}/providers/Microsoft.BusinessAppPlatform/adminApplications/${appId}?api-version=2020-06-01`,
28
+ headers: {
29
+ accept: 'application/json;odata.metadata=none'
30
+ },
31
+ responseType: 'json'
32
+ };
33
+ return request_1.default.put(requestOptions);
34
+ })
35
+ .then((res) => {
36
+ logger.log(res);
37
+ cb();
38
+ }, (err) => this.handleRejectedODataJsonPromise(err, logger, cb));
39
+ }
40
+ getAppId(args) {
41
+ if (args.options.appId) {
42
+ return Promise.resolve(args.options.appId);
43
+ }
44
+ const { objectId, name } = args.options;
45
+ const filter = objectId ?
46
+ `id eq '${encodeURIComponent(objectId)}'` :
47
+ `displayName eq '${encodeURIComponent(name)}'`;
48
+ const requestOptions = {
49
+ url: `https://graph.microsoft.com/v1.0/myorganization/applications?$filter=${filter}&$select=appId`,
50
+ headers: {
51
+ accept: 'application/json;odata.metadata=none'
52
+ },
53
+ responseType: 'json'
54
+ };
55
+ return request_1.default
56
+ .get((requestOptions))
57
+ .then((aadApps) => {
58
+ if (aadApps.value.length === 0) {
59
+ const applicationIdentifier = objectId ? `ID ${objectId}` : `name ${name}`;
60
+ return Promise.reject(`No Azure AD application registration with ${applicationIdentifier} found`);
61
+ }
62
+ if (aadApps.value.length === 1 && aadApps.value[0].appId) {
63
+ return Promise.resolve(aadApps.value[0].appId);
64
+ }
65
+ return Promise.reject(`Multiple Azure AD application registration with name ${name} found. Please disambiguate (app IDs): ${aadApps.value.map(a => a.appId).join(', ')}`);
66
+ });
67
+ }
68
+ options() {
69
+ const options = [
70
+ { option: '--appId [appId]' },
71
+ { option: '--objectId [objectId]' },
72
+ { option: '--name [name]' }
73
+ ];
74
+ const parentOptions = super.options();
75
+ return options.concat(parentOptions);
76
+ }
77
+ validate(args) {
78
+ if (!args.options.appId &&
79
+ !args.options.objectId &&
80
+ !args.options.name) {
81
+ return 'Specify either appId, objectId, or name';
82
+ }
83
+ if ((args.options.appId && args.options.objectId) ||
84
+ (args.options.appId && args.options.name) ||
85
+ (args.options.objectId && args.options.name)) {
86
+ return 'Specify either appId, objectId, or name but not both';
87
+ }
88
+ if (args.options.appId && !utils_1.validation.isValidGuid(args.options.appId)) {
89
+ return `${args.options.appId} is not a valid GUID`;
90
+ }
91
+ if (args.options.objectId && !utils_1.validation.isValidGuid(args.options.objectId)) {
92
+ return `${args.options.objectId} is not a valid GUID`;
93
+ }
94
+ return true;
95
+ }
96
+ }
97
+ module.exports = new PpManagementAppAddCommand();
98
+ //# sourceMappingURL=managementapp-add.js.map
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const prefix = 'pp';
4
+ exports.default = {
5
+ MANAGEMENTAPP_ADD: `${prefix} managementapp add`
6
+ };
7
+ //# sourceMappingURL=commands.js.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN001033_DEP_tslib = void 0;
4
+ const DependencyRule_1 = require("./DependencyRule");
5
+ class FN001033_DEP_tslib extends DependencyRule_1.DependencyRule {
6
+ constructor(packageVersion) {
7
+ super('tslib', packageVersion, false, false);
8
+ }
9
+ get id() {
10
+ return 'FN001033';
11
+ }
12
+ }
13
+ exports.FN001033_DEP_tslib = FN001033_DEP_tslib;
14
+ //# sourceMappingURL=FN001033_DEP_tslib.js.map
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FN023002_GITIGNORE_heft = void 0;
4
+ const Rule_1 = require("./Rule");
5
+ class FN023002_GITIGNORE_heft extends Rule_1.Rule {
6
+ constructor() {
7
+ super();
8
+ }
9
+ get id() {
10
+ return 'FN023002';
11
+ }
12
+ get title() {
13
+ return `.gitignore '.heft' folder`;
14
+ }
15
+ get description() {
16
+ return `To .gitignore add the '.heft' folder`;
17
+ }
18
+ get resolution() {
19
+ return `.heft`;
20
+ }
21
+ get resolutionType() {
22
+ return 'text';
23
+ }
24
+ get severity() {
25
+ return 'Required';
26
+ }
27
+ get file() {
28
+ return './.gitignore';
29
+ }
30
+ visit(project, findings) {
31
+ if (!project.gitignore) {
32
+ return;
33
+ }
34
+ if (!/^\.heft$/m.test(project.gitignore.source)) {
35
+ this.addFinding(findings);
36
+ }
37
+ }
38
+ }
39
+ exports.FN023002_GITIGNORE_heft = FN023002_GITIGNORE_heft;
40
+ //# sourceMappingURL=FN023002_GITIGNORE_heft.js.map
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const FN001001_DEP_microsoft_sp_core_library_1 = require("./rules/FN001001_DEP_microsoft_sp_core_library");
4
+ const FN001002_DEP_microsoft_sp_lodash_subset_1 = require("./rules/FN001002_DEP_microsoft_sp_lodash_subset");
5
+ const FN001003_DEP_microsoft_sp_office_ui_fabric_core_1 = require("./rules/FN001003_DEP_microsoft_sp_office_ui_fabric_core");
6
+ const FN001004_DEP_microsoft_sp_webpart_base_1 = require("./rules/FN001004_DEP_microsoft_sp_webpart_base");
7
+ const FN001011_DEP_microsoft_sp_dialog_1 = require("./rules/FN001011_DEP_microsoft_sp_dialog");
8
+ const FN001012_DEP_microsoft_sp_application_base_1 = require("./rules/FN001012_DEP_microsoft_sp_application_base");
9
+ const FN001013_DEP_microsoft_decorators_1 = require("./rules/FN001013_DEP_microsoft_decorators");
10
+ const FN001014_DEP_microsoft_sp_listview_extensibility_1 = require("./rules/FN001014_DEP_microsoft_sp_listview_extensibility");
11
+ const FN001021_DEP_microsoft_sp_property_pane_1 = require("./rules/FN001021_DEP_microsoft_sp_property_pane");
12
+ const FN001022_DEP_office_ui_fabric_react_1 = require("./rules/FN001022_DEP_office_ui_fabric_react");
13
+ const FN001023_DEP_microsoft_sp_component_base_1 = require("./rules/FN001023_DEP_microsoft_sp_component_base");
14
+ const FN001024_DEP_microsoft_sp_diagnostics_1 = require("./rules/FN001024_DEP_microsoft_sp_diagnostics");
15
+ const FN001025_DEP_microsoft_sp_dynamic_data_1 = require("./rules/FN001025_DEP_microsoft_sp_dynamic_data");
16
+ const FN001026_DEP_microsoft_sp_extension_base_1 = require("./rules/FN001026_DEP_microsoft_sp_extension_base");
17
+ const FN001027_DEP_microsoft_sp_http_1 = require("./rules/FN001027_DEP_microsoft_sp_http");
18
+ const FN001028_DEP_microsoft_sp_list_subscription_1 = require("./rules/FN001028_DEP_microsoft_sp_list_subscription");
19
+ const FN001029_DEP_microsoft_sp_loader_1 = require("./rules/FN001029_DEP_microsoft_sp_loader");
20
+ const FN001030_DEP_microsoft_sp_module_interfaces_1 = require("./rules/FN001030_DEP_microsoft_sp_module_interfaces");
21
+ const FN001031_DEP_microsoft_sp_odata_types_1 = require("./rules/FN001031_DEP_microsoft_sp_odata_types");
22
+ const FN001032_DEP_microsoft_sp_page_context_1 = require("./rules/FN001032_DEP_microsoft_sp_page_context");
23
+ const FN001033_DEP_tslib_1 = require("./rules/FN001033_DEP_tslib");
24
+ const FN002001_DEVDEP_microsoft_sp_build_web_1 = require("./rules/FN002001_DEVDEP_microsoft_sp_build_web");
25
+ const FN002002_DEVDEP_microsoft_sp_module_interfaces_1 = require("./rules/FN002002_DEVDEP_microsoft_sp_module_interfaces");
26
+ const FN002007_DEVDEP_ajv_1 = require("./rules/FN002007_DEVDEP_ajv");
27
+ const FN002009_DEVDEP_microsoft_sp_tslint_rules_1 = require("./rules/FN002009_DEVDEP_microsoft_sp_tslint_rules");
28
+ const FN002013_DEVDEP_types_webpack_env_1 = require("./rules/FN002013_DEVDEP_types_webpack_env");
29
+ const FN006004_CFG_PS_developer_1 = require("./rules/FN006004_CFG_PS_developer");
30
+ const FN010001_YORC_version_1 = require("./rules/FN010001_YORC_version");
31
+ const FN023002_GITIGNORE_heft_1 = require("./rules/FN023002_GITIGNORE_heft");
32
+ module.exports = [
33
+ new FN001001_DEP_microsoft_sp_core_library_1.FN001001_DEP_microsoft_sp_core_library('1.15.0-beta.1'),
34
+ new FN001002_DEP_microsoft_sp_lodash_subset_1.FN001002_DEP_microsoft_sp_lodash_subset('1.15.0-beta.1'),
35
+ new FN001003_DEP_microsoft_sp_office_ui_fabric_core_1.FN001003_DEP_microsoft_sp_office_ui_fabric_core('1.15.0-beta.1'),
36
+ new FN001004_DEP_microsoft_sp_webpart_base_1.FN001004_DEP_microsoft_sp_webpart_base('1.15.0-beta.1'),
37
+ new FN001011_DEP_microsoft_sp_dialog_1.FN001011_DEP_microsoft_sp_dialog('1.15.0-beta.1'),
38
+ new FN001012_DEP_microsoft_sp_application_base_1.FN001012_DEP_microsoft_sp_application_base('1.15.0-beta.1'),
39
+ new FN001013_DEP_microsoft_decorators_1.FN001013_DEP_microsoft_decorators('1.15.0-beta.1'),
40
+ new FN001014_DEP_microsoft_sp_listview_extensibility_1.FN001014_DEP_microsoft_sp_listview_extensibility('1.15.0-beta.1'),
41
+ new FN001021_DEP_microsoft_sp_property_pane_1.FN001021_DEP_microsoft_sp_property_pane('1.15.0-beta.1'),
42
+ new FN001022_DEP_office_ui_fabric_react_1.FN001022_DEP_office_ui_fabric_react('7.181.1'),
43
+ new FN001023_DEP_microsoft_sp_component_base_1.FN001023_DEP_microsoft_sp_component_base('1.15.0-beta.1'),
44
+ new FN001024_DEP_microsoft_sp_diagnostics_1.FN001024_DEP_microsoft_sp_diagnostics('1.15.0-beta.1'),
45
+ new FN001025_DEP_microsoft_sp_dynamic_data_1.FN001025_DEP_microsoft_sp_dynamic_data('1.15.0-beta.1'),
46
+ new FN001026_DEP_microsoft_sp_extension_base_1.FN001026_DEP_microsoft_sp_extension_base('1.15.0-beta.1'),
47
+ new FN001027_DEP_microsoft_sp_http_1.FN001027_DEP_microsoft_sp_http('1.15.0-beta.1'),
48
+ new FN001028_DEP_microsoft_sp_list_subscription_1.FN001028_DEP_microsoft_sp_list_subscription('1.15.0-beta.1'),
49
+ new FN001029_DEP_microsoft_sp_loader_1.FN001029_DEP_microsoft_sp_loader('1.15.0-beta.1'),
50
+ new FN001030_DEP_microsoft_sp_module_interfaces_1.FN001030_DEP_microsoft_sp_module_interfaces('1.15.0-beta.1'),
51
+ new FN001031_DEP_microsoft_sp_odata_types_1.FN001031_DEP_microsoft_sp_odata_types('1.15.0-beta.1'),
52
+ new FN001032_DEP_microsoft_sp_page_context_1.FN001032_DEP_microsoft_sp_page_context('1.15.0-beta.1'),
53
+ new FN001033_DEP_tslib_1.FN001033_DEP_tslib('1.13.0'),
54
+ new FN002001_DEVDEP_microsoft_sp_build_web_1.FN002001_DEVDEP_microsoft_sp_build_web('1.15.0-beta.1'),
55
+ new FN002002_DEVDEP_microsoft_sp_module_interfaces_1.FN002002_DEVDEP_microsoft_sp_module_interfaces('1.15.0-beta.1'),
56
+ new FN002007_DEVDEP_ajv_1.FN002007_DEVDEP_ajv('6.12.5'),
57
+ new FN002009_DEVDEP_microsoft_sp_tslint_rules_1.FN002009_DEVDEP_microsoft_sp_tslint_rules('1.15.0-beta.1'),
58
+ new FN002013_DEVDEP_types_webpack_env_1.FN002013_DEVDEP_types_webpack_env('1.15.2'),
59
+ new FN006004_CFG_PS_developer_1.FN006004_CFG_PS_developer('1.15.0-beta.1'),
60
+ new FN010001_YORC_version_1.FN010001_YORC_version('1.15.0-beta.1'),
61
+ new FN023002_GITIGNORE_heft_1.FN023002_GITIGNORE_heft()
62
+ ];
63
+ //# sourceMappingURL=upgrade-1.15.0-beta.1.js.map