# configuration/strings/license.fragment.strings.ts

> 91 lines of code and 7 definitions.

Tree: Site tree
Language: typescript
Layer: product
Canonical: https://banes-lab.com/anatomy/tree#file-configuration-strings-license-fragment-strings-ts
Source text: https://banes-lab.com/assets/sources/source.65ee006281855b393574a6f3b7ed8b40c79bb38f5a1001e72dc71df506a01af9.generated.txt

## Definitions

- `FREE_SPDX` (lexical_declaration, line 19, exported)
- `PAID_SPDX` (lexical_declaration, line 21, exported)
- `DOCUMENTATION_SPDX` (lexical_declaration, line 23, exported)
- `FREE_CARD` (lexical_declaration, line 25)
- `PAID_CARD` (lexical_declaration, line 57)
- `DOCUMENTATION_CARD` (lexical_declaration, line 77)
- `TYPES_SECTION` (lexical_declaration, line 91, exported)

## Source

```typescript
import { CREATIVE_COMMONS, LICENSE_FILE, LICENSE_HEADER_FILE, LICENSE_INQUIRY_MAIL } from "#assets/link.assets";
import {
    LICENSE_DOCUMENTATION_CARD,
    LICENSE_FREE_CARD,
    LICENSE_PAID_CARD,
    LICENSE_TYPES_SECTION_ID,
} from "#core/ids/license.ids";
import {
    LICENSE_DOCUMENTATION_ICON,
    LICENSE_FILE_ICON,
    LICENSE_FREE_ICON,
    LICENSE_PAID_ICON,
    LICENSE_TYPES_ICON,
} from "#configuration/icons/license.icons";
import type { Card } from "#types/block.types";
import { DOWNLOAD_ICON } from "#configuration/icons/element.icons";
import type { Section } from "#types/document.types";

export const FREE_SPDX = "LicenseRef-PAG-NonCommercial-1.0";

export const PAID_SPDX = "LicenseRef-PAG-Commercial-1.0";

export const DOCUMENTATION_SPDX = "CC-BY-SA-4.0";

const FREE_CARD: Card = {
    accent: "accent-success",
    description:
        "The non-commercial license is based on MIT and is free for personal projects, education and research.",
    files: [
        { href: LICENSE_FILE, icon: DOWNLOAD_ICON, name: "PAG-LICENSE.txt", title: "Download License" },
        {
            href: LICENSE_HEADER_FILE,
            icon: LICENSE_FILE_ICON,
            name: "PAG-license-header.txt",
            title: "Download License Header",
        },
    ],
    icon: LICENSE_FREE_ICON,
    id: LICENSE_FREE_CARD,
    permitted: [
        "Personal projects and experimentation",
        "Educational use and academic research",
        "Open-source projects (non-commercial)",
        "Fork and modify under non-commercial terms",
    ],
    restricted: [
        "Commercial software or products",
        "Paid services or SaaS offerings",
        "Internal use by for-profit organizations",
        "Distribution for revenue",
    ],
    spdx: FREE_SPDX,
    status: "Free",
    title: "Non-Commercial License",
};

const PAID_CARD: Card = {
    accent: "accent-warning",
    action: { href: LICENSE_INQUIRY_MAIL, text: "Request Commercial License" },
    description: "The commercial license covers products, paid services and enterprise applications.",
    icon: LICENSE_PAID_ICON,
    id: LICENSE_PAID_CARD,
    permitted: [
        "Commercial software and products",
        "Paid services and SaaS offerings",
        "Internal business tools",
        "Distribution for revenue",
        "Derivative works for commercial purposes",
        "Optional technical support",
    ],
    restricted: [],
    spdx: PAID_SPDX,
    status: "Paid",
    title: "Commercial License",
};

const DOCUMENTATION_CARD: Card = {
    accent: "accent-info",
    action: { href: CREATIVE_COMMONS, text: "Read the CC BY-SA 4.0 license" },
    description:
        "The methodology, architecture, ontology and anatomy pages can be shared and adapted, commercially included.",
    icon: LICENSE_DOCUMENTATION_ICON,
    id: LICENSE_DOCUMENTATION_CARD,
    permitted: ["Sharing and republishing", "Adapting and building on the material", "Commercial use"],
    restricted: ["Use without attribution", "Adaptations under a different license"],
    spdx: DOCUMENTATION_SPDX,
    status: "Open",
    title: "Documentation License",
};

export const TYPES_SECTION: Section = {
    icon: LICENSE_TYPES_ICON,
    id: LICENSE_TYPES_SECTION_ID,
    subsections: [
        { blocks: [{ cards: [FREE_CARD, PAID_CARD, DOCUMENTATION_CARD], kind: "card" }], title: "Choose a License" },
    ],
    title: "License Types",
};
```
