Skip to content

Commit 3cc6646

Browse files
Merge pull request #18 from ClicknClear/vod
Vod
2 parents deb7f96 + 9c083df commit 3cc6646

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

.github/workflows/bootstrap.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
bootstrap:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
1414
with:

packages/lvs-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@clicknclear-public/lvs-types",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "A collection of shared public types for the License Verification Platform",
55
"main": "build/lib",
66
"module": "build/es",

packages/lvs-types/src/v1/verificationJob.ts

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ export const verificationJobLicenseDetailsV1 = z.object({
3636
licenseFileURLs: z.string().url().array()
3737
});
3838

39+
export enum VerificationJobTypeV1 {
40+
/**
41+
* VOD (Video On Demand) verification jobs cover all jobs where the audio/video will be uploaded to a video on demand platform
42+
*/
43+
VOD = 'VOD',
44+
/**
45+
* Routine verification jobs cover all events where teams/athletes submit their music to use in a routine
46+
*/
47+
Routine = 'Routine'
48+
}
49+
3950
export const verificationJobTagSchemaV1 = z.string().min(2).max(255);
4051

4152
/**
@@ -62,7 +73,10 @@ export const verificationJobCreateSchemaV1 = z.object({
6273
//An array of tags which can be used to search or categorise the verification job
6374
tags: verificationJobTagSchemaV1.array(),
6475
//Any licensing information the Team/Athlete/Licensee can provide, for ClicknClear licenses or if they don't have any license please leave empty.
65-
licenseDetails: verificationJobLicenseDetailsV1.array()
76+
licenseDetails: verificationJobLicenseDetailsV1.array(),
77+
//The type of verification job this is, this type will change how this job is displayed and which rights are required
78+
type: z.nativeEnum(VerificationJobTypeV1)
79+
.default(VerificationJobTypeV1.Routine)
6680
});
6781

6882
export interface IVerificationJobV1 {
@@ -125,6 +139,10 @@ export interface IVerificationJobV1 {
125139
* The recording that was downloaded from audioFileURL, all songs and license status are contained within this property.
126140
*/
127141
recording: ISoundRecordingVerificationV1 | null
142+
/**
143+
* The type of verification job this is, this type will change how this job is displayed and which rights are required
144+
*/
145+
type: VerificationJobTypeV1
128146
}
129147

130148
/**

0 commit comments

Comments
 (0)