@@ -62,6 +62,10 @@ import type { Collection } from '../models';
6262// @ts -ignore
6363import type { CollectionCreate } from '../models' ;
6464// @ts -ignore
65+ import type { CollectionPublishRequest } from '../models' ;
66+ // @ts -ignore
67+ import type { CollectionSharingStatusResponse } from '../models' ;
68+ // @ts -ignore
6569import type { CollectionUpdate } from '../models' ;
6670// @ts -ignore
6771import type { CollectionViewList } from '../models' ;
@@ -156,8 +160,6 @@ import type { SharedCollection } from '../models';
156160// @ts -ignore
157161import type { SharedCollectionList } from '../models' ;
158162// @ts -ignore
159- import type { SharingStatusResponse } from '../models' ;
160- // @ts -ignore
161163import type { TagFilterRequest } from '../models' ;
162164// @ts -ignore
163165import type { TitleGenerateRequest } from '../models' ;
@@ -1934,15 +1936,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
19341936 } ;
19351937 } ,
19361938 /**
1937- * Publish a collection to the public marketplace (owner only)
1939+ * Publish a collection to the marketplace with department scope (owner only)
19381940 * @summary Publish collection to marketplace
19391941 * @param {string } collectionId Collection ID
1942+ * @param {CollectionPublishRequest } collectionPublishRequest
19401943 * @param {* } [options] Override http request option.
19411944 * @throws {RequiredError }
19421945 */
1943- collectionsCollectionIdSharingPost : async ( collectionId : string , options : RawAxiosRequestConfig = { } ) : Promise < RequestArgs > => {
1946+ collectionsCollectionIdSharingPost : async ( collectionId : string , collectionPublishRequest : CollectionPublishRequest , options : RawAxiosRequestConfig = { } ) : Promise < RequestArgs > => {
19441947 // verify required parameter 'collectionId' is not null or undefined
19451948 assertParamExists ( 'collectionsCollectionIdSharingPost' , 'collectionId' , collectionId )
1949+ // verify required parameter 'collectionPublishRequest' is not null or undefined
1950+ assertParamExists ( 'collectionsCollectionIdSharingPost' , 'collectionPublishRequest' , collectionPublishRequest )
19461951 const localVarPath = `/collections/{collection_id}/sharing`
19471952 . replace ( `{${ "collection_id" } }` , encodeURIComponent ( String ( collectionId ) ) ) ;
19481953 // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1962,9 +1967,12 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
19621967
19631968
19641969
1970+ localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ;
1971+
19651972 setSearchParams ( localVarUrlObj , localVarQueryParameter ) ;
19661973 let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
19671974 localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
1975+ localVarRequestOptions . data = serializeDataIfNeeded ( collectionPublishRequest , localVarRequestOptions , configuration )
19681976
19691977 return {
19701978 url : toPathString ( localVarUrlObj ) ,
@@ -4176,21 +4184,22 @@ export const DefaultApiFp = function(configuration?: Configuration) {
41764184 * @param {* } [options] Override http request option.
41774185 * @throws {RequiredError }
41784186 */
4179- async collectionsCollectionIdSharingGet ( collectionId : string , options ?: RawAxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < SharingStatusResponse > > {
4187+ async collectionsCollectionIdSharingGet ( collectionId : string , options ?: RawAxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < CollectionSharingStatusResponse > > {
41804188 const localVarAxiosArgs = await localVarAxiosParamCreator . collectionsCollectionIdSharingGet ( collectionId , options ) ;
41814189 const localVarOperationServerIndex = configuration ?. serverIndex ?? 0 ;
41824190 const localVarOperationServerBasePath = operationServerMap [ 'DefaultApi.collectionsCollectionIdSharingGet' ] ?. [ localVarOperationServerIndex ] ?. url ;
41834191 return ( axios , basePath ) => createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ( axios , localVarOperationServerBasePath || basePath ) ;
41844192 } ,
41854193 /**
4186- * Publish a collection to the public marketplace (owner only)
4194+ * Publish a collection to the marketplace with department scope (owner only)
41874195 * @summary Publish collection to marketplace
41884196 * @param {string } collectionId Collection ID
4197+ * @param {CollectionPublishRequest } collectionPublishRequest
41894198 * @param {* } [options] Override http request option.
41904199 * @throws {RequiredError }
41914200 */
4192- async collectionsCollectionIdSharingPost ( collectionId : string , options ?: RawAxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < void > > {
4193- const localVarAxiosArgs = await localVarAxiosParamCreator . collectionsCollectionIdSharingPost ( collectionId , options ) ;
4201+ async collectionsCollectionIdSharingPost ( collectionId : string , collectionPublishRequest : CollectionPublishRequest , options ?: RawAxiosRequestConfig ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < void > > {
4202+ const localVarAxiosArgs = await localVarAxiosParamCreator . collectionsCollectionIdSharingPost ( collectionId , collectionPublishRequest , options ) ;
41944203 const localVarOperationServerIndex = configuration ?. serverIndex ?? 0 ;
41954204 const localVarOperationServerBasePath = operationServerMap [ 'DefaultApi.collectionsCollectionIdSharingPost' ] ?. [ localVarOperationServerIndex ] ?. url ;
41964205 return ( axios , basePath ) => createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ( axios , localVarOperationServerBasePath || basePath ) ;
@@ -5199,18 +5208,18 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
51995208 * @param {* } [options] Override http request option.
52005209 * @throws {RequiredError }
52015210 */
5202- collectionsCollectionIdSharingGet ( requestParameters : DefaultApiCollectionsCollectionIdSharingGetRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < SharingStatusResponse > {
5211+ collectionsCollectionIdSharingGet ( requestParameters : DefaultApiCollectionsCollectionIdSharingGetRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < CollectionSharingStatusResponse > {
52035212 return localVarFp . collectionsCollectionIdSharingGet ( requestParameters . collectionId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
52045213 } ,
52055214 /**
5206- * Publish a collection to the public marketplace (owner only)
5215+ * Publish a collection to the marketplace with department scope (owner only)
52075216 * @summary Publish collection to marketplace
52085217 * @param {DefaultApiCollectionsCollectionIdSharingPostRequest } requestParameters Request parameters.
52095218 * @param {* } [options] Override http request option.
52105219 * @throws {RequiredError }
52115220 */
52125221 collectionsCollectionIdSharingPost ( requestParameters : DefaultApiCollectionsCollectionIdSharingPostRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < void > {
5213- return localVarFp . collectionsCollectionIdSharingPost ( requestParameters . collectionId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
5222+ return localVarFp . collectionsCollectionIdSharingPost ( requestParameters . collectionId , requestParameters . collectionPublishRequest , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
52145223 } ,
52155224 /**
52165225 * Trigger collection summary generation as background task
@@ -6059,10 +6068,10 @@ export interface DefaultApiInterface {
60596068 * @throws {RequiredError }
60606069 * @memberof DefaultApiInterface
60616070 */
6062- collectionsCollectionIdSharingGet ( requestParameters : DefaultApiCollectionsCollectionIdSharingGetRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < SharingStatusResponse > ;
6071+ collectionsCollectionIdSharingGet ( requestParameters : DefaultApiCollectionsCollectionIdSharingGetRequest , options ?: RawAxiosRequestConfig ) : AxiosPromise < CollectionSharingStatusResponse > ;
60636072
60646073 /**
6065- * Publish a collection to the public marketplace (owner only)
6074+ * Publish a collection to the marketplace with department scope (owner only)
60666075 * @summary Publish collection to marketplace
60676076 * @param {DefaultApiCollectionsCollectionIdSharingPostRequest } requestParameters Request parameters.
60686077 * @param {* } [options] Override http request option.
@@ -7325,6 +7334,13 @@ export interface DefaultApiCollectionsCollectionIdSharingPostRequest {
73257334 * @memberof DefaultApiCollectionsCollectionIdSharingPost
73267335 */
73277336 readonly collectionId : string
7337+
7338+ /**
7339+ *
7340+ * @type {CollectionPublishRequest }
7341+ * @memberof DefaultApiCollectionsCollectionIdSharingPost
7342+ */
7343+ readonly collectionPublishRequest : CollectionPublishRequest
73287344}
73297345
73307346/**
@@ -8510,15 +8526,15 @@ export class DefaultApi extends BaseAPI implements DefaultApiInterface {
85108526 }
85118527
85128528 /**
8513- * Publish a collection to the public marketplace (owner only)
8529+ * Publish a collection to the marketplace with department scope (owner only)
85148530 * @summary Publish collection to marketplace
85158531 * @param {DefaultApiCollectionsCollectionIdSharingPostRequest } requestParameters Request parameters.
85168532 * @param {* } [options] Override http request option.
85178533 * @throws {RequiredError }
85188534 * @memberof DefaultApi
85198535 */
85208536 public collectionsCollectionIdSharingPost ( requestParameters : DefaultApiCollectionsCollectionIdSharingPostRequest , options ?: RawAxiosRequestConfig ) {
8521- return DefaultApiFp ( this . configuration ) . collectionsCollectionIdSharingPost ( requestParameters . collectionId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
8537+ return DefaultApiFp ( this . configuration ) . collectionsCollectionIdSharingPost ( requestParameters . collectionId , requestParameters . collectionPublishRequest , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
85228538 }
85238539
85248540 /**
0 commit comments