Skip to content

Commit

Permalink
feat: remove old cc license (#724)
Browse files Browse the repository at this point in the history
* feat: remove old cc license

* refactor: do not export old cc license
  • Loading branch information
pyphilia authored Dec 12, 2024
1 parent 27d1734 commit c4c95ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
7 changes: 0 additions & 7 deletions src/enums/ccLicenses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,3 @@ export enum CCLicenseAdaptions {
CC_BY_NC_ND = 'CC BY-NC-ND',
CC0 = 'CC0',
}
/**
* @deprecated old license format that might be removed at some point
*/
export enum OldCCLicenseAdaptations {
allow = 'allow',
alike = 'alike',
}
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ export * from './enums/permissionLevel/permissionLevel.js';
/**
* Creative common licenses
*/
export {
CCLicenseAdaptions,
OldCCLicenseAdaptations,
} from './enums/ccLicenses.js';
export { CCLicenseAdaptions } from './enums/ccLicenses.js';

/**
* Graasp Services
Expand Down
12 changes: 2 additions & 10 deletions src/item/itemSettings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import {
CCLicenseAdaptions,
OldCCLicenseAdaptations,
} from '@/enums/ccLicenses.js';
import { CCLicenseAdaptions } from '@/enums/ccLicenses.js';
import { DescriptionPlacementType } from '@/enums/descriptionPlacement.js';
import { Nullable } from '@/typeUtils.js';

Expand All @@ -20,11 +17,6 @@ export type ItemSettings = {
tags?: string[];
displayCoEditors?: boolean;
// allow null to delete setting in the backend
ccLicenseAdaption?: Nullable<
| `${CCLicenseAdaptions}`
| CCLicenseAdaptions
// TODO: these are the old licenses, we might remove them at some point.
| `${OldCCLicenseAdaptations}`
>;
ccLicenseAdaption?: Nullable<`${CCLicenseAdaptions}` | CCLicenseAdaptions>;
descriptionPlacement?: DescriptionPlacementType;
};

0 comments on commit c4c95ae

Please sign in to comment.