2024-06-05 10:06:41 +02:00
|
|
|
/* tslint:disable */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
/**
|
|
|
|
|
* Signal Cli REST API
|
|
|
|
|
* This is the Signal Cli REST API documentation.
|
|
|
|
|
*
|
|
|
|
|
* The version of the OpenAPI document: 1.0
|
2024-06-28 07:49:39 +02:00
|
|
|
*
|
2024-06-05 10:06:41 +02:00
|
|
|
*
|
|
|
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
|
|
|
* https://openapi-generator.tech
|
|
|
|
|
* Do not edit the class manually.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
import { mapValues } from "../runtime.js";
|
|
|
|
|
import type { ApiGroupPermissions } from "./ApiGroupPermissions.js";
|
2024-06-05 10:06:41 +02:00
|
|
|
import {
|
2024-06-28 07:49:39 +02:00
|
|
|
ApiGroupPermissionsFromJSON,
|
|
|
|
|
ApiGroupPermissionsFromJSONTyped,
|
|
|
|
|
ApiGroupPermissionsToJSON,
|
|
|
|
|
} from "./ApiGroupPermissions.js";
|
2024-06-05 10:06:41 +02:00
|
|
|
|
|
|
|
|
/**
|
2024-06-28 07:49:39 +02:00
|
|
|
*
|
2024-06-05 10:06:41 +02:00
|
|
|
* @export
|
|
|
|
|
* @interface ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
export interface ApiCreateGroupRequest {
|
2024-06-28 07:49:39 +02:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
description?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
groupLink?: ApiCreateGroupRequestGroupLinkEnum;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {Array<string>}
|
|
|
|
|
* @memberof ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
members?: Array<string>;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {string}
|
|
|
|
|
* @memberof ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
name?: string;
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @type {ApiGroupPermissions}
|
|
|
|
|
* @memberof ApiCreateGroupRequest
|
|
|
|
|
*/
|
|
|
|
|
permissions?: ApiGroupPermissions;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @export
|
|
|
|
|
*/
|
|
|
|
|
export const ApiCreateGroupRequestGroupLinkEnum = {
|
2024-06-28 07:49:39 +02:00
|
|
|
Disabled: "disabled",
|
|
|
|
|
Enabled: "enabled",
|
|
|
|
|
EnabledWithApproval: "enabled-with-approval",
|
2024-06-05 10:06:41 +02:00
|
|
|
} as const;
|
2024-06-28 07:49:39 +02:00
|
|
|
export type ApiCreateGroupRequestGroupLinkEnum =
|
|
|
|
|
(typeof ApiCreateGroupRequestGroupLinkEnum)[keyof typeof ApiCreateGroupRequestGroupLinkEnum];
|
2024-06-05 10:06:41 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Check if a given object implements the ApiCreateGroupRequest interface.
|
|
|
|
|
*/
|
2024-06-28 07:49:39 +02:00
|
|
|
export function instanceOfApiCreateGroupRequest(
|
|
|
|
|
value: object,
|
|
|
|
|
): value is ApiCreateGroupRequest {
|
|
|
|
|
return true;
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiCreateGroupRequestFromJSON(
|
|
|
|
|
json: any,
|
|
|
|
|
): ApiCreateGroupRequest {
|
|
|
|
|
return ApiCreateGroupRequestFromJSONTyped(json, false);
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiCreateGroupRequestFromJSONTyped(
|
|
|
|
|
json: any,
|
|
|
|
|
ignoreDiscriminator: boolean,
|
|
|
|
|
): ApiCreateGroupRequest {
|
|
|
|
|
if (json == null) {
|
|
|
|
|
return json;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
description: json["description"] == null ? undefined : json["description"],
|
|
|
|
|
groupLink: json["group_link"] == null ? undefined : json["group_link"],
|
|
|
|
|
members: json["members"] == null ? undefined : json["members"],
|
|
|
|
|
name: json["name"] == null ? undefined : json["name"],
|
|
|
|
|
permissions:
|
|
|
|
|
json["permissions"] == null
|
|
|
|
|
? undefined
|
|
|
|
|
: ApiGroupPermissionsFromJSON(json["permissions"]),
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|
|
|
|
|
|
2024-06-28 07:49:39 +02:00
|
|
|
export function ApiCreateGroupRequestToJSON(
|
|
|
|
|
value?: ApiCreateGroupRequest | null,
|
|
|
|
|
): any {
|
|
|
|
|
if (value == null) {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
return {
|
|
|
|
|
description: value["description"],
|
|
|
|
|
group_link: value["groupLink"],
|
|
|
|
|
members: value["members"],
|
|
|
|
|
name: value["name"],
|
|
|
|
|
permissions: ApiGroupPermissionsToJSON(value["permissions"]),
|
|
|
|
|
};
|
2024-06-05 10:06:41 +02:00
|
|
|
}
|