summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 19:48:30 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-13 19:48:30 +0100
commit6728f6fe5baaaefaeb50e95a90c3491ae6484cca (patch)
tree6242cb88f91df7f4f8e6c0ca150e54ac85a4310e
parent8c1fff45fb5340a338416586162ac247b2b190c0 (diff)
Defines ScotsounId
-rw-r--r--src/types/Scotsoun.d.ts3
-rw-r--r--src/types/ScotsounId.d.ts81
2 files changed, 83 insertions, 1 deletions
diff --git a/src/types/Scotsoun.d.ts b/src/types/Scotsoun.d.ts
index 64b0ab1..7ae49a6 100644
--- a/src/types/Scotsoun.d.ts
+++ b/src/types/Scotsoun.d.ts
@@ -2,6 +2,7 @@ import type { defaultLocale } from '$i18n/locales';
import type Date from './Date';
import type Locale from './Locale';
import type Price from './Price';
+import type ScotsounId from './ScotsounId';
type Scotsoun = {
title: string;
@@ -10,7 +11,7 @@ type Scotsoun = {
author?: string;
cdCount: number;
price: Price;
- scotsounId: string;
+ scotsounId: ScotsounId;
description?: { [key in Locale]?: string } & { [key in typeof defaultLocale]: string };
coverArtist?: string;
trackList?: string[];
diff --git a/src/types/ScotsounId.d.ts b/src/types/ScotsounId.d.ts
new file mode 100644
index 0000000..356d908
--- /dev/null
+++ b/src/types/ScotsounId.d.ts
@@ -0,0 +1,81 @@
+type ScotsounId =
+ | '001'
+ | '003'
+ | '008'
+ | '012'
+ | '014'
+ | '015'
+ | '017'
+ | '018'
+ | '020'
+ | '021'
+ | '022'
+ | '024'
+ | '028'
+ | '034'
+ | '035'
+ | '039'
+ | '042'
+ | '043'
+ | '046'
+ | '047'
+ | '048'
+ | '050'
+ | '051'
+ | '056'
+ | '057'
+ | '061'
+ | '063'
+ | '065'
+ | '067'
+ | '069'
+ | '070'
+ | '071'
+ | '072'
+ | '079'
+ | '080'
+ | '081'
+ | '083'
+ | '084'
+ | '087'
+ | '089'
+ | '092'
+ | '094'
+ | '095'
+ | '099'
+ | '105'
+ | '110'
+ | '111'
+ | '112'
+ | '115'
+ | '117'
+ | '118'
+ | '120'
+ | '121'
+ | '122'
+ | '137-8'
+ | '146'
+ | '147'
+ | '504'
+ | '518'
+ | '800'
+ | '801'
+ | '802'
+ | '803'
+ | '804'
+ | '805'
+ | '806'
+ | '807'
+ | '808'
+ | '809'
+ | '810'
+ | '811'
+ | '812'
+ | '813'
+ | '814'
+ | '815'
+ | '816'
+ | 'M150'
+ | 'U1';
+
+export default ScotsounId;