diff --git a/astro.config.mjs b/astro.config.mjs index 9a24c4c10..c511f8bfa 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,17 +3,13 @@ import flexsearchPlugin from './src/plugins/flexsearch'; import tailwind from '@astrojs/tailwind'; -// https://astro.build/config -import vue from '@astrojs/vue'; - // Remark import remarkSectionize from 'remark-sectionize'; import { mermaid } from './src/plugins/mermaid'; // https://astro.build/config +import vue from '@astrojs/vue'; import mdx from '@astrojs/mdx'; - -// https://astro.build/config import markdoc from '@astrojs/markdoc'; // https://astro.build/config diff --git a/src/components/Properties.astro b/src/components/Properties.astro new file mode 100644 index 000000000..47d0ebde5 --- /dev/null +++ b/src/components/Properties.astro @@ -0,0 +1,8 @@ +
+ +
diff --git a/src/components/Property.astro b/src/components/Property.astro new file mode 100644 index 000000000..8c4720a2d --- /dev/null +++ b/src/components/Property.astro @@ -0,0 +1,31 @@ + +--- +const { name, type } = Astro.props; +const customDataTypes = ['timestamp', 'bignumber', 'monetary', 'crn', 'location', 'phonenumber']; +const formattedType = type.toLowerCase(); +const isLink = customDataTypes.includes(formattedType); +--- + +
  • +
    +
    + Name +
    +
    + { name } +
    +
    Type
    +
    + {isLink ? + {formattedType} : + {formattedType} + } +
    +
    + Description +
    +
    + +
    +
    +
  • diff --git a/src/content/api/media-uploads.mdoc b/src/content/api/media-uploads.mdoc new file mode 100644 index 000000000..ec7ada107 --- /dev/null +++ b/src/content/api/media-uploads.mdoc @@ -0,0 +1,46 @@ +--- +title: Media Uploads +description: Media Uploads API Reference +draft: true +nav: + path: API + order: 7 +--- + +## Model + +### Properties + +{% properties %} +{% property name="id" type="string" %} +The Media Upload's unique identifier. +{% /property %} + +{% property name="accountId" type="string" %} +The Media Upload's owning Centrapay Account id. +{% /property %} + +{% property name="mimeType" type="string" %} +The media (MIME) type of the upload. +{% /property %} + +{% property name="fileName" type="string" %} +The file name of the upload. +{% /property %} + +{% property name="createdAt" type="timestamp" %} +When the Media Upload was created. +{% /property %} + +{% property name="createdBy" type="crn" %} +The User or API Key that created the Media Upload. +{% /property %} + +{% property name="updatedAt" type="timestamp" %} +When the Media Upload was updated. +{% /property %} + +{% property name="updatedBy" type="crn" %} +The User or API Key that updated the Media Upload. +{% /property %} +{% /properties %}