@pocketprep/types 1.14.11 → 1.14.14

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.
@@ -15,7 +15,7 @@ jobs:
15
15
  - uses: actions/checkout@v2
16
16
  - uses: actions/setup-node@v2
17
17
  with:
18
- node-version: 16.14.0
18
+ node-version: 20.17.0
19
19
  registry-url: https://registry.npmjs.org/
20
20
  - run: npm ci
21
21
  - run: npm run lint
package/CMS/Cloud.d.ts CHANGED
@@ -13,7 +13,6 @@ import {
13
13
  BundlePayload,
14
14
  ExamMetadata,
15
15
  ExamDataJSON,
16
- ExamData,
17
16
  MockExam,
18
17
  QuestionJSON,
19
18
  BloomTaxonomyLevel,
package/Study/Cloud.d.ts CHANGED
@@ -676,4 +676,8 @@ export type fetchQuestionsByExamV2 = (params: {
676
676
  export type fetchQuestionsByExamV3 = (params: {
677
677
  compositeKey: string
678
678
  includeMatrixQuestions?: boolean
679
- }) => QuestionJSON[]
679
+ }) => QuestionJSON[]
680
+
681
+ export type fetchExamNamesByQuestionSerials = (params: { serials: string[] }) => {
682
+ [serial: string]: string[]
683
+ }
@@ -0,0 +1,41 @@
1
+ import typescriptEslint from '@typescript-eslint/eslint-plugin'
2
+ import tsParser from '@typescript-eslint/parser'
3
+ import eslint from '@eslint/js'
4
+ import tslint from 'typescript-eslint'
5
+ import stylistic from '@stylistic/eslint-plugin'
6
+
7
+ export default [
8
+ eslint.configs.recommended,
9
+ ...tslint.configs.recommended,
10
+ {
11
+ plugins: {
12
+ '@stylistic': stylistic,
13
+ '@typescript-eslint': typescriptEslint,
14
+ },
15
+ languageOptions: {
16
+ globals: {
17
+ Parse: 'readonly'
18
+ },
19
+ parser: tsParser,
20
+ },
21
+ rules: {
22
+ 'quotes': ['error', 'single'],
23
+ 'comma-dangle': ['error', 'always-multiline'],
24
+ 'semi': ['error', 'never'],
25
+ 'max-len': ['error', { code: 120 }],
26
+ 'object-curly-spacing': ['error', 'always'],
27
+ 'array-bracket-spacing': ['error', 'always', { objectsInArrays: false, arraysInArrays: false }],
28
+ 'space-in-parens': ['error', 'never'],
29
+ 'space-before-function-paren': ['error', 'always'],
30
+ 'space-infix-ops': ['error', { int32Hint: true }],
31
+ 'eqeqeq': 'error',
32
+ 'prefer-const': 'error',
33
+ '@stylistic/indent': ['error', 4],
34
+ '@typescript-eslint/no-angle-bracket-type-assertion': 'off',
35
+ '@typescript-eslint/explicit-function-return-type': 'off',
36
+ '@typescript-eslint/explicit-member-accessibility': 'off',
37
+ '@typescript-eslint/no-var-requires': 'off',
38
+ '@typescript-eslint/interface-name-prefix': 'off'
39
+ },
40
+ }
41
+ ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pocketprep/types",
3
- "version": "1.14.11",
3
+ "version": "1.14.14",
4
4
  "description": "Pocket Prep type declarations",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,12 +23,14 @@
23
23
  "homepage": "https://github.com/Pocket-Prep/types#readme",
24
24
  "dependencies": {
25
25
  "@types/parse": "3.0.9",
26
- "stripe": "14.8.0"
26
+ "stripe": "16.12.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@typescript-eslint/eslint-plugin": "6.13.2",
30
- "@typescript-eslint/parser": "6.13.2",
31
- "eslint": "8.55.0",
32
- "typescript": "5.3.3"
29
+ "@stylistic/eslint-plugin": "2.8.0",
30
+ "@typescript-eslint/eslint-plugin": "8.6.0",
31
+ "@typescript-eslint/parser": "8.6.0",
32
+ "eslint": "9.11.0",
33
+ "typescript": "5.6.2",
34
+ "typescript-eslint": "8.6.0"
33
35
  }
34
36
  }
package/.eslintrc.js DELETED
@@ -1,34 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- globals: {
4
- Parse: 'readonly'
5
- },
6
- extends: [
7
- 'eslint:recommended',
8
- 'plugin:@typescript-eslint/recommended',
9
- ],
10
- parser: '@typescript-eslint/parser',
11
- plugins: ['@typescript-eslint'],
12
- rules: {
13
- 'quotes': [ 'error', 'single' ],
14
- 'comma-dangle': [ 'error', 'always-multiline' ],
15
- 'semi': [ 'error', 'never' ],
16
- 'max-len': [ 'error', { 'code': 120 }],
17
- 'object-curly-spacing': [ 'error', 'always' ],
18
- 'array-bracket-spacing': [ 'error', 'always', { 'objectsInArrays': false, 'arraysInArrays': false }],
19
- 'space-in-parens': [ 'error', 'never' ],
20
- 'space-before-function-paren': [ 'error', 'always' ],
21
- 'eqeqeq': 'error',
22
- 'prefer-const': 'error',
23
- "indent": "off", // There is a @typescript-eslint/indent instead
24
- "@typescript-eslint/indent": ["error", 4],
25
- '@typescript-eslint/member-delimiter-style': [ 'error', { 'multiline': { delimiter: 'none' } }],
26
- '@typescript-eslint/interface-name-prefix': [ 'error', 'always' ],
27
- '@typescript-eslint/no-angle-bracket-type-assertion': 'off',
28
- '@typescript-eslint/explicit-function-return-type': 'off',
29
- '@typescript-eslint/explicit-member-accessibility': 'off',
30
- '@typescript-eslint/no-var-requires': 'off',
31
- '@typescript-eslint/no-unused-vars': 'off',
32
- '@typescript-eslint/interface-name-prefix': 'off'
33
- }
34
- }
package/type-tests.ts DELETED
File without changes