@@ -178,113 +178,113 @@ export function Workflow (http, data = {}) {
178178 }
179179 }
180180 /**
181- * @description The Create a Workflow request allows you to create a Workflow.
182- * @memberof Workflow
183- * @func create
184- * @returns {Promise<Workflow.Workflow> } Promise for Workflow instance
185- *
186- * @example
187- * import * as contentstack from '@contentstack/management'
188- * const client = contentstack.client()
189- *
190- * const workflow = {
191- *"workflow_stages": [
192- * {
193- * "color": "#2196f3",
194- * "SYS_ACL": {
195- * "roles": {
196- * "uids": []
197- * },
198- * "users": {
199- * "uids": [
200- * "$all"
201- * ]
202- * },
203- * "others": {}
204- * },
205- * "next_available_stages": [
206- * "$all"
207- * ],
208- * "allStages": true,
209- * "allUsers": true,
210- * "specificStages": false,
211- * "specificUsers": false,
212- * "entry_lock": "$none", //assign any one of the assign any one of the ($none/$others/$all)
213- * "name": "Review"
214- * },
215- * {
216- * "color": "#74ba76",
217- * "SYS_ACL": {
218- * "roles": {
219- * "uids": []
220- * },
221- * "users": {
222- * "uids": [
223- * "$all"
224- * ]
225- * },
226- * "others": {}
227- * },
228- * "allStages": true,
229- * "allUsers": true,
230- * "specificStages": false,
231- * "specificUsers": false,
232- * "next_available_stages": [
233- * "$all"
234- * ],
235- * "entry_lock": "$none",
236- * "name": "Complete"
237- * }
238- * ],
239- * "admin_users": {
240- * "users": []
241- * },
242- * "name": "Workflow Name",
243- * "enabled": true,
244- * "content_types": [
245- * "$all"
246- * ]
247- * }
248- * client.stack().workflow().create({ workflow })
249- * .then((workflow) => console.log(workflow))
250- */
181+ * @description The Create a Workflow request allows you to create a Workflow.
182+ * @memberof Workflow
183+ * @func create
184+ * @returns {Promise<Workflow.Workflow> } Promise for Workflow instance
185+ *
186+ * @example
187+ * import * as contentstack from '@contentstack/management'
188+ * const client = contentstack.client()
189+ *
190+ * const workflow = {
191+ *"workflow_stages": [
192+ * {
193+ * "color": "#2196f3",
194+ * "SYS_ACL": {
195+ * "roles": {
196+ * "uids": []
197+ * },
198+ * "users": {
199+ * "uids": [
200+ * "$all"
201+ * ]
202+ * },
203+ * "others": {}
204+ * },
205+ * "next_available_stages": [
206+ * "$all"
207+ * ],
208+ * "allStages": true,
209+ * "allUsers": true,
210+ * "specificStages": false,
211+ * "specificUsers": false,
212+ * "entry_lock": "$none", //assign any one of the assign any one of the ($none/$others/$all)
213+ * "name": "Review"
214+ * },
215+ * {
216+ * "color": "#74ba76",
217+ * "SYS_ACL": {
218+ * "roles": {
219+ * "uids": []
220+ * },
221+ * "users": {
222+ * "uids": [
223+ * "$all"
224+ * ]
225+ * },
226+ * "others": {}
227+ * },
228+ * "allStages": true,
229+ * "allUsers": true,
230+ * "specificStages": false,
231+ * "specificUsers": false,
232+ * "next_available_stages": [
233+ * "$all"
234+ * ],
235+ * "entry_lock": "$none",
236+ * "name": "Complete"
237+ * }
238+ * ],
239+ * "admin_users": {
240+ * "users": []
241+ * },
242+ * "name": "Workflow Name",
243+ * "enabled": true,
244+ * "content_types": [
245+ * "$all"
246+ * ]
247+ * }
248+ * client.stack().workflow().create({ workflow })
249+ * .then((workflow) => console.log(workflow))
250+ */
251251 this . create = create ( { http : http } )
252252
253253 /**
254- * @description The Get all Workflows request retrieves the details of all the Workflows of a stack.
255- * @memberof Workflow
256- * @func fetchAll
257- * @param {Int } limit The limit parameter will return a specific number of Workflows in the output.
258- * @param {Int } skip The skip parameter will skip a specific number of Workflows in the output.
259- * @param {Boolean }include_count To retrieve the count of Workflows.
260- * @returns {ContentstackCollection } Result collection of content of specified module.
261- * @example
262- * import * as contentstack from '@contentstack/management'
263- * const client = contentstack.client()
264- *
265- * client.stack({ api_key: 'api_key'}).workflow().fetchAll()
266- * .then((collection) => console.log(collection))
267- *
268- */
254+ * @description The Get all Workflows request retrieves the details of all the Workflows of a stack.
255+ * @memberof Workflow
256+ * @func fetchAll
257+ * @param {Int } limit The limit parameter will return a specific number of Workflows in the output.
258+ * @param {Int } skip The skip parameter will skip a specific number of Workflows in the output.
259+ * @param {Boolean }include_count To retrieve the count of Workflows.
260+ * @returns {ContentstackCollection } Result collection of content of specified module.
261+ * @example
262+ * import * as contentstack from '@contentstack/management'
263+ * const client = contentstack.client()
264+ *
265+ * client.stack({ api_key: 'api_key'}).workflow().fetchAll()
266+ * .then((collection) => console.log(collection))
267+ *
268+ */
269269 this . fetchAll = fetchAll ( http , WorkflowCollection )
270270
271271 /**
272- * @description The Publish rule allow you to create, fetch, delete, update the publish rules.
273- * @memberof Workflow
274- * @func publishRule
275- * @param {Int } ruleUid The UID of the Publish rules you want to get details.
276- * @returns {PublishRules } Instace of PublishRules.
277- * @example
278- * import * as contentstack from '@contentstack/management'
279- * const client = contentstack.client()
280- *
281- * client.stack({ api_key: 'api_key'}).workflow().publishRule().fetchAll()
282- * .then((collection) => console.log(collection))
283- *
284- * client.stack({ api_key: 'api_key'}).workflow().publishRule('rule_uid').fetch()
285- * .then((publishrule) => console.log(publishrule))
286- *
287- */
272+ * @description The Publish rule allow you to create, fetch, delete, update the publish rules.
273+ * @memberof Workflow
274+ * @func publishRule
275+ * @param {Int } ruleUid The UID of the Publish rules you want to get details.
276+ * @returns {PublishRules } Instace of PublishRules.
277+ * @example
278+ * import * as contentstack from '@contentstack/management'
279+ * const client = contentstack.client()
280+ *
281+ * client.stack({ api_key: 'api_key'}).workflow().publishRule().fetchAll()
282+ * .then((collection) => console.log(collection))
283+ *
284+ * client.stack({ api_key: 'api_key'}).workflow().publishRule('rule_uid').fetch()
285+ * .then((publishrule) => console.log(publishrule))
286+ *
287+ */
288288 this . publishRule = ( ruleUid = null ) => {
289289 const publishInfo = { stackHeaders : this . stackHeaders }
290290 if ( ruleUid ) {
0 commit comments