@@ -4,20 +4,22 @@ import { Callback } from '../callback';
44import { Client } from '../clients' ;
55import { RequestConfig } from '../requestConfig' ;
66
7+ /** @deprecated Use {@link ContentStates} instead. */
78export class ContentContentState {
9+ /** @deprecated */
810 constructor ( private client : Client ) { }
911
1012 /**
11- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
12- * parameter status to PUBLISHED, otherwise DRAFT.
13+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
14+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
1315 */
1416 async getContentState < T = Models . ContentStateContainer > (
1517 parameters : Parameters . GetContentState ,
1618 callback : Callback < T >
1719 ) : Promise < void > ;
1820 /**
19- * Gets the current page status of the draft or published version of content. To specify the draft version, set the
20- * parameter status to PUBLISHED, otherwise DRAFT.
21+ * @deprecated Gets the current page status of the draft or published version of content. To specify the draft
22+ * version, set the parameter status to PUBLISHED, otherwise DRAFT.
2123 */
2224 async getContentState < T = Models . ContentStateContainer > (
2325 parameters : Parameters . GetContentState ,
@@ -39,28 +41,28 @@ export class ContentContentState {
3941 }
4042
4143 /**
42- * Sets the content state of the content specified and creates a new version (publishes the content without changing
43- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
44- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
45- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
46- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
47- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
48- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
49- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
44+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
45+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
46+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
47+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
48+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
49+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
50+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
51+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
5052 */
5153 async setContentState < T = Models . ContentStateContainer > (
5254 parameters : Parameters . SetContentState ,
5355 callback : Callback < T >
5456 ) : Promise < void > ;
5557 /**
56- * Sets the content state of the content specified and creates a new version (publishes the content without changing
57- * the body) of the content with the new status. The desired type of status must be allowed. There are space suggested
58- * statuses and custom statuses. To specify the desired new status, one can use the id of the status or the name and
59- * color of the status. If contentStateId is defined, then name and color are ignored. If contentStateId is not
60- * defined, name and color will be used if provided. Firstly, we will determine if a status of this name and color
61- * exists, and if it does, that this status is used. If it does not exist, and custom statuses are allowed, a custom
62- * status with this name and color will be created. Color can be specified in traditional english colors (teal,
63- * magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
58+ * @deprecated Sets the content state of the content specified and creates a new version (publishes the content
59+ * without changing the body) of the content with the new status. The desired type of status must be allowed. There
60+ * are space suggested statuses and custom statuses. To specify the desired new status, one can use the id of the
61+ * status or the name and color of the status. If contentStateId is defined, then name and color are ignored. If
62+ * contentStateId is not defined, name and color will be used if provided. Firstly, we will determine if a status of
63+ * this name and color exists, and if it does, that this status is used. If it does not exist, and custom statuses
64+ * are allowed, a custom status with this name and color will be created. Color can be specified in traditional
65+ * english colors (teal, magenta, lavender, etc.) or as a hex string ex: #0ff0Fd.
6466 */
6567 async setContentState < T = Models . ContentStateContainer > (
6668 parameters : Parameters . SetContentState ,
@@ -84,16 +86,16 @@ export class ContentContentState {
8486 }
8587
8688 /**
87- * Removes the content state of the content specified and creates a new version (publishes the content without
88- * changing the body) of the content with the new status.
89+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
90+ * without changing the body) of the content with the new status.
8991 */
9092 async removeContentState < T = Models . ContentStateContainer > (
9193 parameters : Parameters . RemoveContentState ,
9294 callback : Callback < T >
9395 ) : Promise < void > ;
9496 /**
95- * Removes the content state of the content specified and creates a new version (publishes the content without
96- * changing the body) of the content with the new status.
97+ * @deprecated Removes the content state of the content specified and creates a new version (publishes the content
98+ * without changing the body) of the content with the new status.
9799 */
98100 async removeContentState < T = Models . ContentStateContainer > (
99101 parameters : Parameters . RemoveContentState ,
@@ -111,12 +113,12 @@ export class ContentContentState {
111113 return this . client . sendRequest ( config , callback ) ;
112114 }
113115
114- /** Gets a Global Timestamp of the last time the content state was updated */
116+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
115117 async getContentStateLastUpdated < T = unknown > (
116118 parameters : Parameters . GetContentStateLastUpdated ,
117119 callback : Callback < T >
118120 ) : Promise < void > ;
119- /** Gets a Global Timestamp of the last time the content state was updated */
121+ /** @deprecated Gets a Global Timestamp of the last time the content state was updated */
120122 async getContentStateLastUpdated < T = unknown > (
121123 parameters : Parameters . GetContentStateLastUpdated ,
122124 callback ?: never
@@ -133,12 +135,12 @@ export class ContentContentState {
133135 return this . client . sendRequest ( config , callback ) ;
134136 }
135137
136- /** Gets content states that are available for the content to be set as. */
138+ /** @deprecated Gets content states that are available for the content to be set as. */
137139 async getAvailableContentStates < T = Models . AvailableContentStates > (
138140 parameters : Parameters . GetAvailableContentStates ,
139141 callback : Callback < T >
140142 ) : Promise < void > ;
141- /** Gets content states that are available for the content to be set as. */
143+ /** @deprecated Gets content states that are available for the content to be set as. */
142144 async getAvailableContentStates < T = Models . AvailableContentStates > (
143145 parameters : Parameters . GetAvailableContentStates ,
144146 callback ?: never
0 commit comments