Skip to main content
Home
Works with
This package works with Deno
This package works with Deno
JSR Score52%
Downloads13/wk
Published2 years ago (0.2.1)

Système de gestion des ressources de cohabit.

class Service
extends Resource

Constructors

new
Service(unnamed 0: Pick<Service,
"uuid"
| "createdAt"
| "updatedAt"
| "name"
| "category"
| "url"
| "tags"
| "groups"
| "avatar"
>
)

Properties

readonly
groups: readonly Ref<Group>[]
readonly
tags: readonly string[]
readonly
type: "service"
readonly
url: UrlString

Methods

toJSON(): ResourceJson<Service,
"category"
| "tags"
| "url"
> & ResourceRefJson<Service, Group, "groups">
update(props: Partial<Omit<Service,
"type"
| "uuid"
| "createdAt"
>>
): Service

Static Methods

create(unnamed 0: Pick<Service,
"category"
| "tags"
| "url"
| "groups"
| "avatar"
| "name"
>
): Service
fromJSON(unnamed 0: ToJson<Service>): Service
load(unnamed 0: { name: Service["name"]; url: Service["url"]; avatar?: Service["avatar"]; tags?: Service["tags"]; category: Service["category"]; groups?: Service["groups"]; }): Service

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@cohabit/resources-manager

Import symbol

import { Service } from "@cohabit/resources-manager/models";
or

Import directly with a jsr specifier

import { Service } from "jsr:@cohabit/resources-manager/models";