@@ -906,9 +906,16 @@ var Stack = function () {
906906 /**
907907 * @method fetch
908908 * @memberOf Stack
909- * @param {String } uid - uid of the entry
910- * @description An initializer is responsible for creating Entry object
911- * @returns {Entry }
909+ * @description This method returns the complete information of a specific content type.
910+ * @example
911+ * let single_contenttype = Stack.ContentType(content_type_uid).fetch()
912+ * single_contenttype
913+ * .then(function(result) {
914+ * // 'result' is a single contentType information.
915+ * }).catch((error) => {
916+ * console.log(error)
917+ * });
918+ * @returns {ContentType }
912919 * @instance
913920 */
914921
@@ -931,7 +938,23 @@ var Stack = function () {
931938 * @method Assets
932939 * @memberOf Stack
933940 * @param {String } uid - uid of the asset
934- * @description Retrieves the asset based on the specified UID
941+ * @description Retrieves all assets of a stack by default. To retrieve a single asset, specify its UID.
942+ * @example
943+ * let data = Stack.Assets('bltsomething123').toJSON().fetch()
944+ * data
945+ * .then(function(result) {
946+ * // ‘result’ is a single asset object of specified uid
947+ * }, function(error) {
948+ * // error function
949+ * })
950+ * @example
951+ * let data = Stack.Assets().toJSON().find()
952+ * data
953+ * .then(function(result) {
954+ * // ‘result’ will display all assets present in stack
955+ * }, function(error) {
956+ * // error function
957+ * })
935958 * @returns {Assets }
936959 * @instance
937960 */
@@ -999,10 +1022,10 @@ var Stack = function () {
9991022 /**
10001023 * @method getContentTypes
10011024 * @memberOf Stack
1002- * @description getContentTypes get all the ContentTypes .
1025+ * @description This method returns comprehensive information of all the content types of a particular stack in your account .
10031026 * @example Stack.getContentTypes()
10041027 * @example
1005- * let data = Stack.getLastActivites ()
1028+ * let data = Stack.getContentTypes ()
10061029 * data
10071030 * .then(function(result) {
10081031 * // 'result' is list of contentTypes.
@@ -1535,7 +1558,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
15351558function _interopRequireWildcard ( obj ) { if ( obj && obj . __esModule ) { return obj ; } else { var newObj = { } ; if ( obj != null ) { for ( var key in obj ) { if ( Object . prototype . hasOwnProperty . call ( obj , key ) ) newObj [ key ] = obj [ key ] ; } } newObj . default = obj ; return newObj ; } }
15361559
15371560//JS SDK version
1538- var version = '3.5.2 ' ;
1561+ var version = '3.6.0 ' ;
15391562var environment = void 0 ,
15401563 api_key = void 0 ;
15411564
@@ -1979,6 +2002,23 @@ var Entry = function () {
19792002 return this ;
19802003 }
19812004
2005+ /**
2006+ * @method includeReferenceContentTypeUid
2007+ * @memberOf Entry
2008+ * @deprecated since verion 3.6.0
2009+ * @description Include Reference Content Type Uid of the current content type details.
2010+ * @example Stack.ContentType("contentType_uid").Entry("entry_uid").includeReferenceContentt().fetch()
2011+ * @returns {Entry }
2012+ * @instance
2013+ */
2014+
2015+ } , {
2016+ key : "IncludeReferenceContentTypeUID" ,
2017+ value : function IncludeReferenceContentTypeUID ( ) {
2018+ this . _query [ 'include_reference_content_type_uid' ] = true ;
2019+ return this ;
2020+ }
2021+
19822022 /**
19832023 * @method includeContentType
19842024 * @memberOf Entry
@@ -2646,6 +2686,23 @@ var Query = function (_Entry) {
26462686 }
26472687 }
26482688
2689+ /**
2690+ * @method includeReferenceContentTypeUid
2691+ * @memberOf Entry
2692+ * @deprecated since verion 3.6.1
2693+ * @description Include Reference Content Type Uid of the current content type schema.
2694+ * @example Stack.ContentType("contentType_uid").Query().IncludeReferenceContentTypeUID().find()
2695+ * @returns {Entry }
2696+ * @instance
2697+ */
2698+
2699+ } , {
2700+ key : 'includeReferenceContentTypeUID' ,
2701+ value : function includeReferenceContentTypeUID ( ) {
2702+ this . _query [ 'include_reference_content_type_uid' ] = true ;
2703+ return this ;
2704+ }
2705+
26492706 /**
26502707 * @method includeCount
26512708 * @memberOf Query
@@ -2832,6 +2889,7 @@ var Query = function (_Entry) {
28322889 query : this . _query
28332890 }
28342891 } ;
2892+
28352893 return Utils . sendRequest ( this ) ;
28362894 }
28372895 } ] ) ;
@@ -2871,7 +2929,7 @@ Object.defineProperty(exports, "__esModule", {
28712929} ) ;
28722930var config = {
28732931 protocol : "https" ,
2874- host : "cdn.contentstack.io" ,
2932+ host : "stag- cdn.contentstack.io" ,
28752933 port : 443 ,
28762934 version : "v3" ,
28772935 urls : {
@@ -7563,7 +7621,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
75637621 * @class
75647622 Assets
75657623* @summary Creates an instance of `Assets`.
7566- * @description Retrieves the asset based on the specified UID
7624+ * @description Retrieves all assets of a stack by default. To retrieve a single asset, specify its UID.
75677625* @param {String } uid - uid of asset you want to retrieve
75687626* @example
75697627* let data = Stack.Assets('bltsomething123').toJSON().fetch()
@@ -7573,6 +7631,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
75737631* }, function(error) {
75747632* // error function
75757633* })
7634+ * @example
7635+ * let data = Stack.Assets().toJSON().find()
7636+ * data
7637+ * .then(function(result) {
7638+ * // ‘result’ will display all assets present in stack
7639+ * }, function(error) {
7640+ * // error function
7641+ * })
75767642* @returns {Assets }
75777643* @instance
75787644*/
0 commit comments