-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(license-service): update license service (#15204)
* feat:updat emodels * feat/bunch * feat: updates * feat: add and remove * chore: stash merge * feat: more stuff * fix: license type * feat: license overivew works * chore:revert * chore: revert messages * chore: console * chore: revert * chore: nx format:write update dirty files * fix: passports * chore: start details * chore: nx format:write update dirty files * feat: update details * fix: enum * fix: date format * fix: type import * chore:small fixes * chore:rename-liceinse-service ' ' * chore: remove original license service * chore: add unchanged license service * chore: add mocks back * chore: add to resolver * chore:renmae license * chore: readd licens service * fix: license-v2 * fix: readd ls-v1 * feat: rename * chore: nx format:write update dirty files * fix: passport display * chore: codeowners * chore: move datafields * fix: html semantics * fix:pkpass display * chore:console log * chore: use types * feat: remove v2 and merge in v1 * chore:import * fix: expires * fix:navigation * fix: mapping * chore: import * fix: time format * fix:fix * chore: clean up types * fix: async * fix: messages * fix: update display slightly * fix: mcoks * chore: deprecate model * chore: import clean up * fix: update mapping * chore: import clean up * fix: reimport reaect * chore: use tag map * chore: coderabbit improvements * fix: const issues * chore: concising --------- Co-authored-by: Þorkell Máni Þorkelsson <[email protected]> Co-authored-by: andes-it <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- Loading branch information
Showing
86 changed files
with
3,154 additions
and
1,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
libs/api/domains/license-service/src/lib/dto/GenericLicenseCollection.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql' | ||
import { GenericLicenseError } from './GenericLicenseError.dto' | ||
import { GenericUserLicense } from './GenericUserLicense.dto' | ||
|
||
@ObjectType('GenericLicenseCollection') | ||
export class LicenseCollection { | ||
@Field(() => [GenericUserLicense], { nullable: true }) | ||
licenses!: Array<GenericUserLicense> | ||
|
||
@Field(() => [GenericLicenseError], { nullable: true }) | ||
errors?: Array<GenericLicenseError> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
libs/api/domains/license-service/src/lib/dto/GenericLicenseError.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Field, Int, ObjectType } from '@nestjs/graphql' | ||
import { GenericLicenseType } from '../licenceService.type' | ||
import { GenericLicenseProvider } from './GenericLicenseProvider.dto' | ||
import { GenericLicenseFetch } from './GenericLicenseFetch.dto' | ||
|
||
@ObjectType('GenericLicenseError') | ||
export class GenericLicenseError { | ||
@Field(() => GenericLicenseType) | ||
type!: GenericLicenseType | ||
|
||
@Field(() => GenericLicenseFetch, { description: 'Info about license fetch' }) | ||
fetch!: GenericLicenseFetch | ||
|
||
@Field(() => GenericLicenseProvider, { nullable: true }) | ||
provider?: GenericLicenseProvider | ||
|
||
@Field(() => Int, { nullable: true }) | ||
code?: number | ||
|
||
@Field({ nullable: true }) | ||
message?: string | ||
|
||
@Field({ nullable: true }) | ||
extraData?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
libs/api/domains/license-service/src/lib/dto/GenericUserLicenseAlert.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Field, ObjectType, registerEnumType } from '@nestjs/graphql' | ||
import { AlertType } from '../licenceService.type' | ||
|
||
registerEnumType(AlertType, { | ||
name: 'GenericUserLicenseAlertType', | ||
}) | ||
|
||
@ObjectType('GenericUserLicenseAlert') | ||
export class GenericUserLicenseAlert { | ||
@Field() | ||
title!: string | ||
|
||
@Field(() => AlertType, { defaultValue: AlertType.WARNING }) | ||
type?: AlertType | ||
|
||
@Field({ nullable: true }) | ||
message?: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
libs/api/domains/license-service/src/lib/dto/GenericUserLicenseMetaTag.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Field, ObjectType, registerEnumType } from '@nestjs/graphql' | ||
import { | ||
GenericUserLicenseDataFieldTagColor, | ||
GenericUserLicenseDataFieldTagType, | ||
} from '../licenceService.type' | ||
|
||
registerEnumType(GenericUserLicenseDataFieldTagType, { | ||
name: 'GenericUserLicenseDataFieldTagType', | ||
description: 'Exhaustive list of possible tag icons', | ||
}) | ||
registerEnumType(GenericUserLicenseDataFieldTagColor, { | ||
name: 'GenericUserLicenseDataFieldTagColor', | ||
description: 'Exhaustive list of possible tag icon color', | ||
}) | ||
|
||
@ObjectType('GenericUserLicenseMetaTag') | ||
export class GenericUserLicenseMetaTag { | ||
@Field() | ||
text!: string | ||
|
||
@Field({ nullable: true }) | ||
color?: string | ||
|
||
@Field(() => GenericUserLicenseDataFieldTagType, { nullable: true }) | ||
icon?: GenericUserLicenseDataFieldTagType | ||
|
||
@Field(() => GenericUserLicenseDataFieldTagColor, { nullable: true }) | ||
iconColor?: GenericUserLicenseDataFieldTagColor | ||
|
||
@Field({ | ||
nullable: true, | ||
description: | ||
'Defaults to the text property if icon defined but iconText left undefined', | ||
}) | ||
iconText?: string | ||
} |
Oops, something went wrong.