@juki-team/commons 0.2.13 → 0.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import type { CodeLanguage, EntityAccess, ProblemScoringMode, ProblemType } from '../enums/index.js';
1
+ import type { CodeLanguage, EntityRole, ProblemScoringMode, ProblemType } from '../enums/index.js';
2
2
  import type { EntityMembers } from './entity.js';
3
3
  import type { ProblemTestCase } from './services.js';
4
4
  import type { TextLanguage } from './text.js';
@@ -47,7 +47,7 @@ export type ProblemSettings = {
47
47
  pointsByGroups: ProblemSettingsPointsByGroups;
48
48
  };
49
49
  export type ProblemUserDTO = {
50
- role: EntityAccess;
50
+ role: EntityRole;
51
51
  solved: boolean;
52
52
  tried: boolean;
53
53
  };
@@ -75,3 +75,4 @@ export interface ProblemBaseDocument {
75
75
  forSolvingInAnExtraLanguage: number;
76
76
  };
77
77
  }
78
+ export type KeyFileType = 'input' | 'output';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juki-team/commons",
3
- "version": "0.2.13",
3
+ "version": "0.2.16",
4
4
  "author": "juki-team",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "watch": "tsc --watch",
46
46
  "build": "rm -rf docs && rm -rf dist && tsc && npm run docs",
47
47
  "commit-push": "f() { param=${1}; message=${param:-chore}; git add .; git commit -m \"$message\"; npm version patch --no-git-tag-version; npm run build; npm publish; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; git commit -m $version; git push origin main; git tag -a $version -m $version; git push origin --tags; }; f",
48
- "push": "f() { npm version patch --no-git-tag-version; npm run build; npm publish; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; git commit -m $version; git push origin main; git tag -a $version -m $version; git push origin --tags; }; f",
48
+ "push": "f() { npm login; npm version patch --no-git-tag-version; npm run build; npm publish; version=\"v$(node -p \"require('./package.json').version\")\"; git add .; git commit -m $version; git push origin main; git tag -a $version -m $version; git push origin --tags; }; f",
49
49
  "lint": "biome check src/",
50
50
  "lint:fix": "biome check --write src/",
51
51
  "lint:format": "biome format --write src/"