swoop-common 2.1.73 → 2.1.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentId } from '../models/ComponentId';
|
|
2
|
+
import type { ComponentState } from '../models/ComponentState';
|
|
2
3
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
3
4
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
4
5
|
import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
@@ -67,8 +68,9 @@ export declare class ComponentService {
|
|
|
67
68
|
* Update Component State
|
|
68
69
|
* Directly update component state. This does not create a new revision
|
|
69
70
|
* @param componentId Id of a component
|
|
71
|
+
* @param state The publishing state of the component
|
|
70
72
|
* @returns any OK
|
|
71
73
|
* @throws ApiError
|
|
72
74
|
*/
|
|
73
|
-
static componentStateUpdate(componentId: ComponentId): CancelablePromise<any>;
|
|
75
|
+
static componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<any>;
|
|
74
76
|
}
|
|
@@ -154,16 +154,20 @@ export class ComponentService {
|
|
|
154
154
|
* Update Component State
|
|
155
155
|
* Directly update component state. This does not create a new revision
|
|
156
156
|
* @param componentId Id of a component
|
|
157
|
+
* @param state The publishing state of the component
|
|
157
158
|
* @returns any OK
|
|
158
159
|
* @throws ApiError
|
|
159
160
|
*/
|
|
160
|
-
static componentStateUpdate(componentId) {
|
|
161
|
+
static componentStateUpdate(componentId, state) {
|
|
161
162
|
return __request(OpenAPI, {
|
|
162
163
|
method: 'GET',
|
|
163
164
|
url: '/components/{componentId}/state',
|
|
164
165
|
path: {
|
|
165
166
|
'componentId': componentId,
|
|
166
167
|
},
|
|
168
|
+
query: {
|
|
169
|
+
'state': state,
|
|
170
|
+
},
|
|
167
171
|
errors: {
|
|
168
172
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
169
173
|
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentId } from '../models/ComponentId';
|
|
2
|
+
import type { ComponentState } from '../models/ComponentState';
|
|
2
3
|
import type { DTOComponentCreate } from '../models/DTOComponentCreate';
|
|
3
4
|
import type { DTOComponentRead } from '../models/DTOComponentRead';
|
|
4
5
|
import type { DTOComponentUpdate } from '../models/DTOComponentUpdate';
|
|
@@ -120,10 +121,11 @@ export declare class CoreService {
|
|
|
120
121
|
* Update Component State
|
|
121
122
|
* Directly update component state. This does not create a new revision
|
|
122
123
|
* @param componentId Id of a component
|
|
124
|
+
* @param state The publishing state of the component
|
|
123
125
|
* @returns any OK
|
|
124
126
|
* @throws ApiError
|
|
125
127
|
*/
|
|
126
|
-
componentStateUpdate(componentId: ComponentId): CancelablePromise<any>;
|
|
128
|
+
componentStateUpdate(componentId: ComponentId, state: ComponentState): CancelablePromise<any>;
|
|
127
129
|
/**
|
|
128
130
|
* Resolve template hierarchy
|
|
129
131
|
* @returns Array<DTOTemplateRead> OK
|
|
@@ -288,16 +288,20 @@ export class CoreService {
|
|
|
288
288
|
* Update Component State
|
|
289
289
|
* Directly update component state. This does not create a new revision
|
|
290
290
|
* @param componentId Id of a component
|
|
291
|
+
* @param state The publishing state of the component
|
|
291
292
|
* @returns any OK
|
|
292
293
|
* @throws ApiError
|
|
293
294
|
*/
|
|
294
|
-
componentStateUpdate(componentId) {
|
|
295
|
+
componentStateUpdate(componentId, state) {
|
|
295
296
|
return __request(OpenAPI, {
|
|
296
297
|
method: 'GET',
|
|
297
298
|
url: '/components/{componentId}/state',
|
|
298
299
|
path: {
|
|
299
300
|
'componentId': componentId,
|
|
300
301
|
},
|
|
302
|
+
query: {
|
|
303
|
+
'state': state,
|
|
304
|
+
},
|
|
301
305
|
errors: {
|
|
302
306
|
401: `Unauthorized - Missing or invalid Authorization header`,
|
|
303
307
|
403: `Forbidden - The client is authenticated but not authorized to access this resource`,
|