You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/stack/asset/index.js
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ export function Asset (http, data = {}) {
31
31
* @description The Update Asset call lets you update the name and description of an existing Asset.
32
32
* @memberof Asset
33
33
* @func update
34
-
* @returns {Promise<Asset.Asset>} Promise for Asset instance
34
+
* @returns {Promise<Asset>} Promise for Asset instance
35
35
* @example
36
36
* import * as contentstack from '@contentstack/management'
37
37
* const client = contentstack.client()
@@ -48,10 +48,10 @@ export function Asset (http, data = {}) {
48
48
this.update=update(http,'asset')
49
49
50
50
/**
51
-
* @description The Delete asset call will delete an existing asset from the stack.
51
+
* @description The Delete asset call deletes an existing asset from the stack.
52
52
* @memberof Asset
53
53
* @func delete
54
-
* @returns {Object} Response Object.
54
+
* @returns {Promise<Object>} Response Object.
55
55
* @example
56
56
* import * as contentstack from '@contentstack/management'
57
57
* const client = contentstack.client()
@@ -65,7 +65,7 @@ export function Asset (http, data = {}) {
65
65
* @description The fetch an asset call returns comprehensive information about a specific version of an asset of a stack.
66
66
* @memberof Asset
67
67
* @func fetch
68
-
* @returns {Promise<Asset.Asset>} Promise for Asset instance
68
+
* @returns {Promise<Asset>} Promise for Asset instance
69
69
* @example
70
70
* import * as contentstack from '@contentstack/management'
71
71
* const client = contentstack.client()
@@ -80,7 +80,8 @@ export function Asset (http, data = {}) {
80
80
* @description The Replace asset call will replace an existing asset with another file on the stack.
81
81
* @memberof Asset
82
82
* @func replace
83
-
* @returns {Promise<Asset.Asset>} Promise for Asset instance
83
+
* @async
84
+
* @returns {Promise<Asset>} Promise for Asset instance
84
85
* @example
85
86
* import * as contentstack from '@contentstack/management'
86
87
* const client = contentstack.client()
@@ -130,7 +131,7 @@ export function Asset (http, data = {}) {
130
131
this.publish=publish(http,'asset')
131
132
132
133
/**
133
-
* @description The Replace asset call will replace an existing asset with another file on the stack.
134
+
* @description The Unpublish an asset call is used to unpublish a specific version of an asset from the desired environment either immediately or at a later date/time.
134
135
* @memberof Asset
135
136
* @func unpublish
136
137
* @returns {Promise<Object>} Response Object.
@@ -156,8 +157,9 @@ export function Asset (http, data = {}) {
156
157
/**
157
158
* @description The References function will get all the references for the asset.
158
159
* @memberof Asset
159
-
* @func references
160
-
* @returns {Promise<Array>} Array of references.
160
+
* @func getReferences
161
+
* @async
162
+
* @returns {Promise<Object>} Promise for references data.
0 commit comments