Skip to content

Commit 747f1c9

Browse files
committed
fix: 🐛 Organization function accessible to 'is_owner'.
1 parent 51a6af5 commit 747f1c9

Some content is hidden

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

56 files changed

+128
-103
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Changelog
2-
3-
## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (.....)
2+
## [v1.2.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.1) (2021-03-19)
3+
- Bug Fix
4+
- User get details: Include organization functions for `is_owner` of the organization
5+
## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (2021-03-12)
46
- Bug Fix
57
- Release Items issue for API key resolved
6-
- Enhanchment
8+
- Enhancement
79
- Request concurrency added in SDK
810
- New Feature
911
- Workflow module support added
1012
## [v1.1.2](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.2) (2021-01-07)
1113
- Bug Fix
12-
- Retry count on multiple request failuer
14+
- Retry count on multiple request failure
1315
## [v1.1.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.1) (2020-10-23)
1416
- Bug Fix
1517
- Stack initialization issue

dist/es-modules/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function Organization(http, data) {
4545

4646
if (this.org_roles && this.org_roles.filter(function (role) {
4747
return role.admin === true;
48-
}).length > 0 || this.owner && this.owner === true) {
48+
}).length > 0 || this.owner && this.owner === true || this.is_owner && this.is_owner === true) {
4949
/**
5050
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
5151
* @memberof Organization

dist/es-modules/stack/contentType/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export function ContentType(http) {
2222
Object.assign(this, cloneDeep(data.content_type));
2323
this.urlPath = "/content_types/".concat(this.uid);
2424
/**
25-
* @description The Update ContentType call lets you update the name and description of an existing ContentType.
25+
* @description The Update ContentType call lets you update the name and description of an existing ContentType.
26+
* You can also update the JSON schema of a content type, including fields and different features associated with the content type.
2627
* @memberof ContentType
2728
* @func update
2829
* @returns {Promise<ContentType.ContentType>} Promise for ContentType instance

dist/es5/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Organization(http, data) {
7878

7979
if (this.org_roles && this.org_roles.filter(function (role) {
8080
return role.admin === true;
81-
}).length > 0 || this.owner && this.owner === true) {
81+
}).length > 0 || this.owner && this.owner === true || this.is_owner && this.is_owner === true) {
8282
/**
8383
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
8484
* @memberof Organization

dist/es5/stack/contentType/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function ContentType(http) {
5252
Object.assign(this, (0, _cloneDeep2["default"])(data.content_type));
5353
this.urlPath = "/content_types/".concat(this.uid);
5454
/**
55-
* @description The Update ContentType call lets you update the name and description of an existing ContentType.
55+
* @description The Update ContentType call lets you update the name and description of an existing ContentType.
56+
* You can also update the JSON schema of a content type, including fields and different features associated with the content type.
5657
* @memberof ContentType
5758
* @func update
5859
* @returns {Promise<ContentType.ContentType>} Promise for ContentType instance

dist/nativescript/contentstack-management.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node/contentstack-management.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-native/contentstack-management.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web/contentstack-management.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jsdocs/Asset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ <h5>Returns:</h5>
13541354
<br class="clear">
13551355

13561356
<footer>
1357-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Fri Mar 12 2021 11:00:28 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1357+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Mon Mar 22 2021 10:37:22 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
13581358
</footer>
13591359

13601360
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)