@drxsuperapp/sdk 1.0.0
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.
- package/.openapi-generator/FILES +12 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/api.ts +469 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/deploy.log +357 -0
- package/dist/api.d.ts +257 -0
- package/dist/api.js +360 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +63 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +133 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +100 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +15 -0
- package/docs/ApiExamplesGet200ResponseInner.md +24 -0
- package/docs/ApiExamplesIdPutRequest.md +22 -0
- package/docs/ApiExamplesPostRequest.md +22 -0
- package/docs/ExampleApi.md +270 -0
- package/ecosystem.config.js +13 -0
- package/git_push.sh +57 -0
- package/hooks.json +26 -0
- package/index.ts +18 -0
- package/openapitools.json +7 -0
- package/package.json +30 -0
- package/tsconfig.json +17 -0
- package/workflow.sh +68 -0
package/common.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from "./configuration";
|
|
17
|
+
import type { RequestArgs } from "./base";
|
|
18
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
19
|
+
import { RequiredError } from "./base";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const DUMMY_BASE_URL = 'https://example.com'
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {
|
|
33
|
+
if (paramValue === null || paramValue === undefined) {
|
|
34
|
+
throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
*/
|
|
42
|
+
export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
|
|
43
|
+
if (configuration && configuration.apiKey) {
|
|
44
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
45
|
+
? await configuration.apiKey(keyParamName)
|
|
46
|
+
: await configuration.apiKey;
|
|
47
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {
|
|
56
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
57
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
66
|
+
if (configuration && configuration.accessToken) {
|
|
67
|
+
const accessToken = typeof configuration.accessToken === 'function'
|
|
68
|
+
? await configuration.accessToken()
|
|
69
|
+
: await configuration.accessToken;
|
|
70
|
+
object["Authorization"] = "Bearer " + accessToken;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {
|
|
79
|
+
if (configuration && configuration.accessToken) {
|
|
80
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
81
|
+
? await configuration.accessToken(name, scopes)
|
|
82
|
+
: await configuration.accessToken;
|
|
83
|
+
object["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
88
|
+
if (parameter == null) return;
|
|
89
|
+
if (typeof parameter === "object") {
|
|
90
|
+
if (Array.isArray(parameter)) {
|
|
91
|
+
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
Object.keys(parameter).forEach(currentKey =>
|
|
95
|
+
setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (urlSearchParams.has(key)) {
|
|
101
|
+
urlSearchParams.append(key, parameter);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
urlSearchParams.set(key, parameter);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
114
|
+
const searchParams = new URLSearchParams(url.search);
|
|
115
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
116
|
+
url.search = searchParams.toString();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
*/
|
|
123
|
+
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
124
|
+
const nonString = typeof value !== 'string';
|
|
125
|
+
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
126
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
127
|
+
: nonString;
|
|
128
|
+
return needsSerialization
|
|
129
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
130
|
+
: (value || "");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @export
|
|
136
|
+
*/
|
|
137
|
+
export const toPathString = function (url: URL) {
|
|
138
|
+
return url.pathname + url.search + url.hash
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @export
|
|
144
|
+
*/
|
|
145
|
+
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
146
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
147
|
+
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
148
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
149
|
+
};
|
|
150
|
+
}
|
package/configuration.ts
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* DRX API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface ConfigurationParameters {
|
|
17
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
|
+
basePath?: string;
|
|
22
|
+
serverIndex?: number;
|
|
23
|
+
baseOptions?: any;
|
|
24
|
+
formDataCtor?: new () => any;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class Configuration {
|
|
28
|
+
/**
|
|
29
|
+
* parameter for apiKey security
|
|
30
|
+
* @param name security name
|
|
31
|
+
* @memberof Configuration
|
|
32
|
+
*/
|
|
33
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
34
|
+
/**
|
|
35
|
+
* parameter for basic security
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Configuration
|
|
39
|
+
*/
|
|
40
|
+
username?: string;
|
|
41
|
+
/**
|
|
42
|
+
* parameter for basic security
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Configuration
|
|
46
|
+
*/
|
|
47
|
+
password?: string;
|
|
48
|
+
/**
|
|
49
|
+
* parameter for oauth2 security
|
|
50
|
+
* @param name security name
|
|
51
|
+
* @param scopes oauth2 scope
|
|
52
|
+
* @memberof Configuration
|
|
53
|
+
*/
|
|
54
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
55
|
+
/**
|
|
56
|
+
* override base path
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof Configuration
|
|
60
|
+
*/
|
|
61
|
+
basePath?: string;
|
|
62
|
+
/**
|
|
63
|
+
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
serverIndex?: number;
|
|
69
|
+
/**
|
|
70
|
+
* base options for axios calls
|
|
71
|
+
*
|
|
72
|
+
* @type {any}
|
|
73
|
+
* @memberof Configuration
|
|
74
|
+
*/
|
|
75
|
+
baseOptions?: any;
|
|
76
|
+
/**
|
|
77
|
+
* The FormData constructor that will be used to create multipart form data
|
|
78
|
+
* requests. You can inject this here so that execution environments that
|
|
79
|
+
* do not support the FormData class can still run the generated client.
|
|
80
|
+
*
|
|
81
|
+
* @type {new () => FormData}
|
|
82
|
+
*/
|
|
83
|
+
formDataCtor?: new () => any;
|
|
84
|
+
|
|
85
|
+
constructor(param: ConfigurationParameters = {}) {
|
|
86
|
+
this.apiKey = param.apiKey;
|
|
87
|
+
this.username = param.username;
|
|
88
|
+
this.password = param.password;
|
|
89
|
+
this.accessToken = param.accessToken;
|
|
90
|
+
this.basePath = param.basePath;
|
|
91
|
+
this.serverIndex = param.serverIndex;
|
|
92
|
+
this.baseOptions = {
|
|
93
|
+
...param.baseOptions,
|
|
94
|
+
headers: {
|
|
95
|
+
...param.baseOptions?.headers,
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
this.formDataCtor = param.formDataCtor;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if the given MIME is a JSON MIME.
|
|
103
|
+
* JSON MIME examples:
|
|
104
|
+
* application/json
|
|
105
|
+
* application/json; charset=UTF8
|
|
106
|
+
* APPLICATION/JSON
|
|
107
|
+
* application/vnd.company+json
|
|
108
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
109
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
110
|
+
*/
|
|
111
|
+
public isJsonMime(mime: string): boolean {
|
|
112
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
113
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
114
|
+
}
|
|
115
|
+
}
|
package/deploy.log
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
🚀 START: Thu Jun 5 09:00:56 UTC 2025
|
|
2
|
+
Already on 'master'
|
|
3
|
+
Your branch is up to date with 'origin/master'.
|
|
4
|
+
HEAD is now at ca72431 init
|
|
5
|
+
From https://gitlab.com/drxsuperapp/drx-sdk
|
|
6
|
+
* branch master -> FETCH_HEAD
|
|
7
|
+
Already up to date.
|
|
8
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false
|
|
9
|
+
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-axios (client)
|
|
10
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-axios' is considered stable.
|
|
11
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Hint: Environment variable 'TS_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export TS_POST_PROCESS_FILE="/usr/local/bin/prettier --write"' (Linux/Mac)
|
|
12
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
|
|
13
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
14
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
15
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
16
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
17
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
18
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesGet200ResponseInner.md
|
|
19
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesIdPutRequest.md
|
|
20
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesPostRequest.md
|
|
21
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
22
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
23
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
24
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
25
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
26
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
27
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ExampleApi.md
|
|
28
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
29
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
30
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./base.ts
|
|
31
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./common.ts
|
|
32
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./api.ts
|
|
33
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./configuration.ts
|
|
34
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./git_push.sh
|
|
35
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.gitignore
|
|
36
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.npmignore
|
|
37
|
+
[main] INFO o.o.codegen.TemplateManager - Skipped /root/drx-sdk/./.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.)
|
|
38
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/VERSION
|
|
39
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/FILES
|
|
40
|
+
################################################################################
|
|
41
|
+
# Thanks for using OpenAPI Generator. #
|
|
42
|
+
# Please consider donation to help us maintain this project 🙏 #
|
|
43
|
+
# https://opencollective.com/openapi_generator/donate #
|
|
44
|
+
################################################################################
|
|
45
|
+
✅ SDK generated
|
|
46
|
+
From https://gitlab.com/drxsuperapp/drx-sdk
|
|
47
|
+
* branch master -> FETCH_HEAD
|
|
48
|
+
Already up to date.
|
|
49
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false
|
|
50
|
+
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-axios (client)
|
|
51
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-axios' is considered stable.
|
|
52
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Hint: Environment variable 'TS_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export TS_POST_PROCESS_FILE="/usr/local/bin/prettier --write"' (Linux/Mac)
|
|
53
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
|
|
54
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
55
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
56
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
57
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
58
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
59
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesGet200ResponseInner.md
|
|
60
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesIdPutRequest.md
|
|
61
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesPostRequest.md
|
|
62
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
63
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
64
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
65
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
66
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
67
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
68
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ExampleApi.md
|
|
69
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
70
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
71
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./base.ts
|
|
72
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./common.ts
|
|
73
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./api.ts
|
|
74
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./configuration.ts
|
|
75
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./git_push.sh
|
|
76
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.gitignore
|
|
77
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.npmignore
|
|
78
|
+
[main] INFO o.o.codegen.TemplateManager - Skipped /root/drx-sdk/./.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.)
|
|
79
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/VERSION
|
|
80
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/FILES
|
|
81
|
+
################################################################################
|
|
82
|
+
# Thanks for using OpenAPI Generator. #
|
|
83
|
+
# Please consider donation to help us maintain this project 🙏 #
|
|
84
|
+
# https://opencollective.com/openapi_generator/donate #
|
|
85
|
+
################################################################################
|
|
86
|
+
✅ SDK generated
|
|
87
|
+
[master 2e7e263] VPS: Generated API SDK
|
|
88
|
+
2 files changed, 68 insertions(+)
|
|
89
|
+
create mode 100644 package.json
|
|
90
|
+
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
91
|
+
59ff01e..2e7e263 master -> master
|
|
92
|
+
✅ Changes committed and pushed
|
|
93
|
+
npm error Git working directory not clean.
|
|
94
|
+
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-05T09_05_36_696Z-debug-0.log
|
|
95
|
+
Everything up-to-date
|
|
96
|
+
✅ Version bumped
|
|
97
|
+
|
|
98
|
+
> @drx/sdk@1.0.0 prepublishOnly
|
|
99
|
+
> npm run build
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
> @drx/sdk@1.0.0 build
|
|
103
|
+
> tsc
|
|
104
|
+
|
|
105
|
+
sh: 1: tsc: not found
|
|
106
|
+
npm error code 127
|
|
107
|
+
npm error path /root/drx-sdk
|
|
108
|
+
npm error command failed
|
|
109
|
+
npm error command sh -c npm run build
|
|
110
|
+
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-05T09_05_37_942Z-debug-0.log
|
|
111
|
+
❌ NPM publish failed
|
|
112
|
+
From https://gitlab.com/drxsuperapp/drx-sdk
|
|
113
|
+
* branch master -> FETCH_HEAD
|
|
114
|
+
Already up to date.
|
|
115
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false
|
|
116
|
+
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-axios (client)
|
|
117
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-axios' is considered stable.
|
|
118
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Hint: Environment variable 'TS_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export TS_POST_PROCESS_FILE="/usr/local/bin/prettier --write"' (Linux/Mac)
|
|
119
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
|
|
120
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
121
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
122
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
123
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
124
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
125
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesGet200ResponseInner.md
|
|
126
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesIdPutRequest.md
|
|
127
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesPostRequest.md
|
|
128
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
129
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
130
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
131
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
132
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
133
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
134
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ExampleApi.md
|
|
135
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
136
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
137
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./base.ts
|
|
138
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./common.ts
|
|
139
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./api.ts
|
|
140
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./configuration.ts
|
|
141
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./git_push.sh
|
|
142
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.gitignore
|
|
143
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.npmignore
|
|
144
|
+
[main] INFO o.o.codegen.TemplateManager - Skipped /root/drx-sdk/./.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.)
|
|
145
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/VERSION
|
|
146
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/FILES
|
|
147
|
+
################################################################################
|
|
148
|
+
# Thanks for using OpenAPI Generator. #
|
|
149
|
+
# Please consider donation to help us maintain this project 🙏 #
|
|
150
|
+
# https://opencollective.com/openapi_generator/donate #
|
|
151
|
+
################################################################################
|
|
152
|
+
✅ SDK generated
|
|
153
|
+
From https://gitlab.com/drxsuperapp/drx-sdk
|
|
154
|
+
* branch master -> FETCH_HEAD
|
|
155
|
+
Already up to date.
|
|
156
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false
|
|
157
|
+
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-axios (client)
|
|
158
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-axios' is considered stable.
|
|
159
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Hint: Environment variable 'TS_POST_PROCESS_FILE' (optional) not defined. E.g. to format the source code, please try 'export TS_POST_PROCESS_FILE="/usr/local/bin/prettier --write"' (Linux/Mac)
|
|
160
|
+
[main] INFO o.o.c.l.AbstractTypeScriptClientCodegen - Note: To enable file post-processing, 'enablePostProcessFile' must be set to `true` (--enable-post-process-file for CLI).
|
|
161
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_get_200_response_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_get_200_response_inner=NewModel,ModelA=NewModelA in CLI).
|
|
162
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples_post_request=NewModel,ModelA=NewModelA in CLI).
|
|
163
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_examples__id__put_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_examples__id__put_request=NewModel,ModelA=NewModelA in CLI).
|
|
164
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
165
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
166
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesGet200ResponseInner.md
|
|
167
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesIdPutRequest.md
|
|
168
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ApiExamplesPostRequest.md
|
|
169
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
170
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
171
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
172
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
173
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
174
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
175
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./docs/ExampleApi.md
|
|
176
|
+
[main] INFO o.o.codegen.utils.URLPathUtils - 'host' (OAS 2.0) or 'servers' (OAS 3.0) not defined in the spec. Default to [http://localhost] for server URL [http://localhost/]
|
|
177
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
178
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./base.ts
|
|
179
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./common.ts
|
|
180
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./api.ts
|
|
181
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./configuration.ts
|
|
182
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./git_push.sh
|
|
183
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.gitignore
|
|
184
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.npmignore
|
|
185
|
+
[main] INFO o.o.codegen.TemplateManager - Skipped /root/drx-sdk/./.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.)
|
|
186
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/VERSION
|
|
187
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/FILES
|
|
188
|
+
################################################################################
|
|
189
|
+
# Thanks for using OpenAPI Generator. #
|
|
190
|
+
# Please consider donation to help us maintain this project 🙏 #
|
|
191
|
+
# https://opencollective.com/openapi_generator/donate #
|
|
192
|
+
################################################################################
|
|
193
|
+
✅ SDK generated
|
|
194
|
+
[master 5306192] VPS: Generated API SDK
|
|
195
|
+
1 file changed, 41 insertions(+)
|
|
196
|
+
To https://gitlab.com/drxsuperapp/drx-sdk.git
|
|
197
|
+
fce4117..5306192 master -> master
|
|
198
|
+
✅ Changes committed and pushed
|
|
199
|
+
npm error Git working directory not clean.
|
|
200
|
+
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-05T09_13_34_387Z-debug-0.log
|
|
201
|
+
Everything up-to-date
|
|
202
|
+
✅ Version bumped
|
|
203
|
+
|
|
204
|
+
> @drx/sdk@1.0.0 prepublishOnly
|
|
205
|
+
> npm run build
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
> @drx/sdk@1.0.0 build
|
|
209
|
+
> tsc
|
|
210
|
+
|
|
211
|
+
Version 5.8.3
|
|
212
|
+
tsc: The TypeScript Compiler - Version 5.8.3
|
|
213
|
+
|
|
214
|
+
COMMON COMMANDS
|
|
215
|
+
|
|
216
|
+
tsc
|
|
217
|
+
Compiles the current project (tsconfig.json in the working directory.)
|
|
218
|
+
|
|
219
|
+
tsc app.ts util.ts
|
|
220
|
+
Ignoring tsconfig.json, compiles the specified files with default compiler options.
|
|
221
|
+
|
|
222
|
+
tsc -b
|
|
223
|
+
Build a composite project in the working directory.
|
|
224
|
+
|
|
225
|
+
tsc --init
|
|
226
|
+
Creates a tsconfig.json with the recommended settings in the working directory.
|
|
227
|
+
|
|
228
|
+
tsc -p ./path/to/tsconfig.json
|
|
229
|
+
Compiles the TypeScript project located at the specified path.
|
|
230
|
+
|
|
231
|
+
tsc --help --all
|
|
232
|
+
An expanded version of this information, showing all possible compiler options
|
|
233
|
+
|
|
234
|
+
tsc --noEmit
|
|
235
|
+
tsc --target esnext
|
|
236
|
+
Compiles the current project, with additional settings.
|
|
237
|
+
|
|
238
|
+
COMMAND LINE FLAGS
|
|
239
|
+
|
|
240
|
+
--help, -h
|
|
241
|
+
Print this message.
|
|
242
|
+
|
|
243
|
+
--watch, -w
|
|
244
|
+
Watch input files.
|
|
245
|
+
|
|
246
|
+
--all
|
|
247
|
+
Show all compiler options.
|
|
248
|
+
|
|
249
|
+
--version, -v
|
|
250
|
+
Print the compiler's version.
|
|
251
|
+
|
|
252
|
+
--init
|
|
253
|
+
Initializes a TypeScript project and creates a tsconfig.json file.
|
|
254
|
+
|
|
255
|
+
--project, -p
|
|
256
|
+
Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.
|
|
257
|
+
|
|
258
|
+
--showConfig
|
|
259
|
+
Print the final configuration instead of building.
|
|
260
|
+
|
|
261
|
+
--build, -b
|
|
262
|
+
Build one or more projects and their dependencies, if out of date
|
|
263
|
+
|
|
264
|
+
COMMON COMPILER OPTIONS
|
|
265
|
+
|
|
266
|
+
--pretty
|
|
267
|
+
Enable color and formatting in TypeScript's output to make compiler errors easier to read.
|
|
268
|
+
type: boolean
|
|
269
|
+
default: true
|
|
270
|
+
|
|
271
|
+
--declaration, -d
|
|
272
|
+
Generate .d.ts files from TypeScript and JavaScript files in your project.
|
|
273
|
+
type: boolean
|
|
274
|
+
default: `false`, unless `composite` is set
|
|
275
|
+
|
|
276
|
+
--declarationMap
|
|
277
|
+
Create sourcemaps for d.ts files.
|
|
278
|
+
type: boolean
|
|
279
|
+
default: false
|
|
280
|
+
|
|
281
|
+
--emitDeclarationOnly
|
|
282
|
+
Only output d.ts files and not JavaScript files.
|
|
283
|
+
type: boolean
|
|
284
|
+
default: false
|
|
285
|
+
|
|
286
|
+
--sourceMap
|
|
287
|
+
Create source map files for emitted JavaScript files.
|
|
288
|
+
type: boolean
|
|
289
|
+
default: false
|
|
290
|
+
|
|
291
|
+
--noEmit
|
|
292
|
+
Disable emitting files from a compilation.
|
|
293
|
+
type: boolean
|
|
294
|
+
default: false
|
|
295
|
+
|
|
296
|
+
--target, -t
|
|
297
|
+
Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
|
298
|
+
one of: es5, es6/es2015, es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext
|
|
299
|
+
default: es5
|
|
300
|
+
|
|
301
|
+
--module, -m
|
|
302
|
+
Specify what module code is generated.
|
|
303
|
+
one of: none, commonjs, amd, umd, system, es6/es2015, es2020, es2022, esnext, node16, node18, nodenext, preserve
|
|
304
|
+
default: undefined
|
|
305
|
+
|
|
306
|
+
--lib
|
|
307
|
+
Specify a set of bundled library declaration files that describe the target runtime environment.
|
|
308
|
+
one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, decorators, decorators.legacy
|
|
309
|
+
default: undefined
|
|
310
|
+
|
|
311
|
+
--allowJs
|
|
312
|
+
Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files.
|
|
313
|
+
type: boolean
|
|
314
|
+
default: false
|
|
315
|
+
|
|
316
|
+
--checkJs
|
|
317
|
+
Enable error reporting in type-checked JavaScript files.
|
|
318
|
+
type: boolean
|
|
319
|
+
default: false
|
|
320
|
+
|
|
321
|
+
--jsx
|
|
322
|
+
Specify what JSX code is generated.
|
|
323
|
+
one of: preserve, react, react-native, react-jsx, react-jsxdev
|
|
324
|
+
default: undefined
|
|
325
|
+
|
|
326
|
+
--outFile
|
|
327
|
+
Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output.
|
|
328
|
+
|
|
329
|
+
--outDir
|
|
330
|
+
Specify an output folder for all emitted files.
|
|
331
|
+
|
|
332
|
+
--removeComments
|
|
333
|
+
Disable emitting comments.
|
|
334
|
+
type: boolean
|
|
335
|
+
default: false
|
|
336
|
+
|
|
337
|
+
--strict
|
|
338
|
+
Enable all strict type-checking options.
|
|
339
|
+
type: boolean
|
|
340
|
+
default: false
|
|
341
|
+
|
|
342
|
+
--types
|
|
343
|
+
Specify type package names to be included without being referenced in a source file.
|
|
344
|
+
|
|
345
|
+
--esModuleInterop
|
|
346
|
+
Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility.
|
|
347
|
+
type: boolean
|
|
348
|
+
default: false
|
|
349
|
+
|
|
350
|
+
You can learn about all of the compiler options at https://aka.ms/tsc
|
|
351
|
+
|
|
352
|
+
npm error code 1
|
|
353
|
+
npm error path /root/drx-sdk
|
|
354
|
+
npm error command failed
|
|
355
|
+
npm error command sh -c npm run build
|
|
356
|
+
npm error A complete log of this run can be found in: /root/.npm/_logs/2025-06-05T09_13_36_082Z-debug-0.log
|
|
357
|
+
❌ NPM publish failed
|