Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
249 changes: 235 additions & 14 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -783,16 +783,16 @@ export interface CalloutItem {
type: CalloutItemTypeEnum;
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof CalloutItem
*/
primaryColor: Color3;
primaryColor: RGBA;
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof CalloutItem
*/
accentColor: Color3;
accentColor: RGBA;
/**
*
* @type {string}
Expand Down Expand Up @@ -4529,10 +4529,10 @@ export type FileRelationshipDataTypeEnum =
export interface FillStyle {
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof FillStyle
*/
color: Color3;
color: RGBA;
}
/**
* Describes how an attribute should be filtered.
Expand Down Expand Up @@ -6286,16 +6286,16 @@ export interface PinItem2d {
type: PinItem2dTypeEnum;
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof PinItem2d
*/
primaryColor: Color3;
primaryColor: RGBA;
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof PinItem2d
*/
accentColor: Color3;
accentColor: RGBA;
/**
*
* @type {Vector3}
Expand Down Expand Up @@ -7283,6 +7283,37 @@ export interface QueuedTranslationJobList {
*/
data: Array<QueuedTranslationJob>;
}
/**
* a color with red, green, blue and alpha channels.
* @export
* @interface RGBA
*/
export interface RGBA {
/**
* Color value from 0 to 255.
* @type {number}
* @memberof RGBA
*/
r: number;
/**
* Color value from 0 to 255.
* @type {number}
* @memberof RGBA
*/
g: number;
/**
* Color value from 0 to 255.
* @type {number}
* @memberof RGBA
*/
b: number;
/**
* Color value from 0 to 255.
* @type {number}
* @memberof RGBA
*/
a: number;
}
/**
*
* @export
Expand Down Expand Up @@ -9448,10 +9479,10 @@ export interface StreamKeyList {
export interface StrokeStyle {
/**
*
* @type {Color3}
* @type {RGBA}
* @memberof StrokeStyle
*/
color: Color3;
color: RGBA;
/**
* A numerical floating-point value.
* @type {number}
Expand Down Expand Up @@ -14940,6 +14971,77 @@ export const CollaborationContextsApiAxiosParamCreator = function (
options: localVarRequestOptions,
};
},
/**
* Search the users associated to a `collaboration-context`.
* @param {string} id The &#x60;collaboration-context&#x60; ID.
* @param {string} [filterQuery] Query users by e-mail or full name
* @param {string} [pageCursor] The cursor for the next page of items.
* @param {number} [pageSize] The number of items to return.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUsersForCollaborationContext: async (
id: string,
filterQuery?: string,
pageCursor?: string,
pageSize?: number,
options: AxiosRequestConfig = {}
): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists('getUsersForCollaborationContext', 'id', id);
const localVarPath = `/collaboration-contexts/{id}/users`.replace(
`{${'id'}}`,
encodeURIComponent(String(id))
);
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}

const localVarRequestOptions = {
method: 'GET',
...baseOptions,
...options,
};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;

// authentication OAuth2 required
// oauth required
await setOAuthToObject(
localVarHeaderParameter,
'OAuth2',
[],
configuration
);

if (filterQuery !== undefined) {
localVarQueryParameter['filter[query]'] = filterQuery;
}

if (pageCursor !== undefined) {
localVarQueryParameter['page[cursor]'] = pageCursor;
}

if (pageSize !== undefined) {
localVarQueryParameter['page[size]'] = pageSize;
}

setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions?.headers ?? {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};

return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* List `collaboration-context`s
* @param {string} [pageCursor] The cursor for the next page of items.
Expand Down Expand Up @@ -15110,6 +15212,39 @@ export const CollaborationContextsApiFp = function (
configuration
);
},
/**
* Search the users associated to a `collaboration-context`.
* @param {string} id The &#x60;collaboration-context&#x60; ID.
* @param {string} [filterQuery] Query users by e-mail or full name
* @param {string} [pageCursor] The cursor for the next page of items.
* @param {number} [pageSize] The number of items to return.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getUsersForCollaborationContext(
id: string,
filterQuery?: string,
pageCursor?: string,
pageSize?: number,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserList>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.getUsersForCollaborationContext(
id,
filterQuery,
pageCursor,
pageSize,
options
);
return createRequestFunction(
localVarAxiosArgs,
globalAxios,
BASE_PATH,
configuration
);
},
/**
* List `collaboration-context`s
* @param {string} [pageCursor] The cursor for the next page of items.
Expand Down Expand Up @@ -15209,6 +15344,32 @@ export const CollaborationContextsApiFactory = function (
.getCollaborationContext(id, options)
.then((request) => request(axios, basePath));
},
/**
* Search the users associated to a `collaboration-context`.
* @param {string} id The &#x60;collaboration-context&#x60; ID.
* @param {string} [filterQuery] Query users by e-mail or full name
* @param {string} [pageCursor] The cursor for the next page of items.
* @param {number} [pageSize] The number of items to return.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getUsersForCollaborationContext(
id: string,
filterQuery?: string,
pageCursor?: string,
pageSize?: number,
options?: any
): AxiosPromise<UserList> {
return localVarFp
.getUsersForCollaborationContext(
id,
filterQuery,
pageCursor,
pageSize,
options
)
.then((request) => request(axios, basePath));
},
/**
* List `collaboration-context`s
* @param {string} [pageCursor] The cursor for the next page of items.
Expand Down Expand Up @@ -15291,6 +15452,41 @@ export interface CollaborationContextsApiGetCollaborationContextRequest {
readonly id: string;
}

/**
* Request parameters for getUsersForCollaborationContext operation in CollaborationContextsApi.
* @export
* @interface CollaborationContextsApiGetUsersForCollaborationContextRequest
*/
export interface CollaborationContextsApiGetUsersForCollaborationContextRequest {
/**
* The &#x60;collaboration-context&#x60; ID.
* @type {string}
* @memberof CollaborationContextsApiGetUsersForCollaborationContext
*/
readonly id: string;

/**
* Query users by e-mail or full name
* @type {string}
* @memberof CollaborationContextsApiGetUsersForCollaborationContext
*/
readonly filterQuery?: string;

/**
* The cursor for the next page of items.
* @type {string}
* @memberof CollaborationContextsApiGetUsersForCollaborationContext
*/
readonly pageCursor?: string;

/**
* The number of items to return.
* @type {number}
* @memberof CollaborationContextsApiGetUsersForCollaborationContext
*/
readonly pageSize?: number;
}

/**
* Request parameters for listCollaborationContexts operation in CollaborationContextsApi.
* @export
Expand Down Expand Up @@ -15390,6 +15586,28 @@ export class CollaborationContextsApi extends BaseAPI {
.then((request) => request(this.axios, this.basePath));
}

/**
* Search the users associated to a `collaboration-context`.
* @param {CollaborationContextsApiGetUsersForCollaborationContextRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CollaborationContextsApi
*/
public getUsersForCollaborationContext(
requestParameters: CollaborationContextsApiGetUsersForCollaborationContextRequest,
options?: AxiosRequestConfig
) {
return CollaborationContextsApiFp(this.configuration)
.getUsersForCollaborationContext(
requestParameters.id,
requestParameters.filterQuery,
requestParameters.pageCursor,
requestParameters.pageSize,
options
)
.then((request) => request(this.axios, this.basePath));
}

/**
* List `collaboration-context`s
* @param {CollaborationContextsApiListCollaborationContextsRequest} requestParameters Request parameters.
Expand Down Expand Up @@ -16526,7 +16744,10 @@ export const FileCollectionsApiFp = function (configuration?: Configuration) {
updateFileCollectionRequest: UpdateFileCollectionRequest,
options?: AxiosRequestConfig
): Promise<
(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
(
axios?: AxiosInstance,
basePath?: string
) => AxiosPromise<FileCollectionMetadata>
> {
const localVarAxiosArgs =
await localVarAxiosParamCreator.updateFileCollection(
Expand Down Expand Up @@ -16673,7 +16894,7 @@ export const FileCollectionsApiFactory = function (
id: string,
updateFileCollectionRequest: UpdateFileCollectionRequest,
options?: any
): AxiosPromise<void> {
): AxiosPromise<FileCollectionMetadata> {
return localVarFp
.updateFileCollection(id, updateFileCollectionRequest, options)
.then((request) => request(axios, basePath));
Expand Down
2 changes: 1 addition & 1 deletion client/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '0.37.0';
export const version = '0.38.0';
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vertexvis/api-client-node",
"version": "0.37.0",
"version": "0.38.0",
"description": "The Vertex REST API client for Node.js.",
"license": "MIT",
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
Expand Down Expand Up @@ -33,7 +33,7 @@
"typescript"
],
"dependencies": {
"axios": "^1.6.4",
"axios": "1.11.0",
"p-limit": "^3"
},
"devDependencies": {
Expand Down
Loading