@@ -4,20 +4,22 @@ import { Callback } from '../callback';
4
4
import { Client } from '../clients' ;
5
5
import { RequestConfig } from '../requestConfig' ;
6
6
7
+ /** @deprecated Use {@link ContentStates} instead. */
7
8
export class ContentContentState {
9
+ /** @deprecated */
8
10
constructor ( private client : Client ) { }
9
11
10
12
/**
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.
13
15
*/
14
16
async getContentState < T = Models . ContentStateContainer > (
15
17
parameters : Parameters . GetContentState ,
16
18
callback : Callback < T >
17
19
) : Promise < void > ;
18
20
/**
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.
21
23
*/
22
24
async getContentState < T = Models . ContentStateContainer > (
23
25
parameters : Parameters . GetContentState ,
@@ -39,28 +41,28 @@ export class ContentContentState {
39
41
}
40
42
41
43
/**
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.
50
52
*/
51
53
async setContentState < T = Models . ContentStateContainer > (
52
54
parameters : Parameters . SetContentState ,
53
55
callback : Callback < T >
54
56
) : Promise < void > ;
55
57
/**
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.
64
66
*/
65
67
async setContentState < T = Models . ContentStateContainer > (
66
68
parameters : Parameters . SetContentState ,
@@ -84,16 +86,16 @@ export class ContentContentState {
84
86
}
85
87
86
88
/**
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.
89
91
*/
90
92
async removeContentState < T = Models . ContentStateContainer > (
91
93
parameters : Parameters . RemoveContentState ,
92
94
callback : Callback < T >
93
95
) : Promise < void > ;
94
96
/**
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.
97
99
*/
98
100
async removeContentState < T = Models . ContentStateContainer > (
99
101
parameters : Parameters . RemoveContentState ,
@@ -111,12 +113,12 @@ export class ContentContentState {
111
113
return this . client . sendRequest ( config , callback ) ;
112
114
}
113
115
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 */
115
117
async getContentStateLastUpdated < T = unknown > (
116
118
parameters : Parameters . GetContentStateLastUpdated ,
117
119
callback : Callback < T >
118
120
) : 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 */
120
122
async getContentStateLastUpdated < T = unknown > (
121
123
parameters : Parameters . GetContentStateLastUpdated ,
122
124
callback ?: never
@@ -133,12 +135,12 @@ export class ContentContentState {
133
135
return this . client . sendRequest ( config , callback ) ;
134
136
}
135
137
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. */
137
139
async getAvailableContentStates < T = Models . AvailableContentStates > (
138
140
parameters : Parameters . GetAvailableContentStates ,
139
141
callback : Callback < T >
140
142
) : 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. */
142
144
async getAvailableContentStates < T = Models . AvailableContentStates > (
143
145
parameters : Parameters . GetAvailableContentStates ,
144
146
callback ?: never
0 commit comments