@nextplus/js-sdk 0.0.5 → 0.0.6

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,45 +0,0 @@
1
- import { defineConfig } from '@hey-api/openapi-ts';
2
-
3
- export default defineConfig({
4
- input: 'http://127.0.0.1:3000/explorer/swagger.json',
5
- output: {
6
- format: 'prettier',
7
- lint: 'eslint',
8
- path: './src/sdk',
9
- },
10
- plugins: [
11
- '@hey-api/schemas',
12
- {
13
- dates: true,
14
- name: '@hey-api/transformers',
15
- },
16
- {
17
- enums: 'javascript',
18
- name: '@hey-api/typescript',
19
- },
20
- {
21
- name: '@hey-api/sdk',
22
- asClass: true,
23
- transformer: true,
24
- classNameBuilder(name) {
25
- return `${name}Service`;
26
- },
27
- methodNameBuilder(operation) {
28
- const opId = String(operation.id || '');
29
- // Disambiguate prototype operations across models to avoid collisions
30
- // e.g. "Table.prototype.patchAttributes" -> "patchAttributesTable"
31
- if (opId.includes('.prototype.')) {
32
- const [model, , method] = opId.split('.');
33
- if (model && method) {
34
- return `${method}${model}`;
35
- }
36
- }
37
- return opId;
38
- },
39
- },
40
- {
41
- enums: 'javascript',
42
- name: '@hey-api/typescript',
43
- },
44
- ],
45
- });
@@ -1,5 +0,0 @@
1
- /** @type {import("prettier").Config} */
2
- export default {
3
- semi: true,
4
- singleQuote: true,
5
- };
package/tsconfig.json DELETED
@@ -1,23 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "module": "ESNext",
7
- "skipLibCheck": true,
8
- "rewriteRelativeImportExtensions": true,
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "resolveJsonModule": true,
12
- "isolatedModules": true,
13
- "noEmit": false,
14
- "declaration": true,
15
- "outDir": "./dist",
16
- "strict": true,
17
- "noUnusedLocals": true,
18
- "noUnusedParameters": true,
19
- "noFallthroughCasesInSwitch": true
20
- },
21
- "include": ["src"],
22
- "references": [{ "path": "./tsconfig.node.json" }]
23
- }
@@ -1,11 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "skipLibCheck": true,
5
- "module": "ESNext",
6
- "moduleResolution": "bundler",
7
- "allowSyntheticDefaultImports": true,
8
- "strict": true
9
- },
10
- "include": []
11
- }