@drxsuperapp/sdk 1.1.42 → 1.1.44
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 +39 -39
- package/.openapi-generator-ignore +23 -23
- package/api.ts +1491 -1491
- package/base.ts +86 -86
- package/common.ts +150 -150
- package/configuration.ts +115 -115
- package/deploy.log +158 -0
- package/ecosystem.config.js +13 -13
- package/git_push.sh +57 -57
- package/hooks.json +30 -30
- package/openapitools.json +7 -7
- package/package.json +30 -30
- package/tsconfig.json +17 -17
- package/workflow.sh +1 -1
- package/.idea/drx-sdk.iml +0 -12
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/configuration.ts
CHANGED
|
@@ -1,115 +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
|
-
}
|
|
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,158 @@
|
|
|
1
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generating with dryRun=false
|
|
2
|
+
[main] INFO o.o.codegen.DefaultGenerator - OpenAPI Generator: typescript-fetch (client)
|
|
3
|
+
[main] INFO o.o.codegen.DefaultGenerator - Generator 'typescript-fetch' is considered stable.
|
|
4
|
+
[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)
|
|
5
|
+
[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).
|
|
6
|
+
[main] WARN o.o.codegen.DefaultCodegen - The value (generator's option) must be either boolean or string. Default to `false`.
|
|
7
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_healthCheck_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_healthCheck_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_healthCheck_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
8
|
+
[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).
|
|
9
|
+
[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).
|
|
10
|
+
[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).
|
|
11
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
12
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
13
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
14
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject_leagues_inner_league. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner_league=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner_league=NewModel,ModelA=NewModelA in CLI).
|
|
15
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject_leagues_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject_leagues_inner=NewModel,ModelA=NewModelA in CLI).
|
|
16
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
17
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
18
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_categories_list_get_200_response_responseObject_categories_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_categories_list_get_200_response_responseObject_categories_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_categories_list_get_200_response_responseObject_categories_inner=NewModel,ModelA=NewModelA in CLI).
|
|
19
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_categories_list_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_categories_list_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_categories_list_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
20
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_news_categories_list_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_news_categories_list_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_news_categories_list_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
21
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_filter_parameter_id_anyOf. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_filter_parameter_id_anyOf=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_filter_parameter_id_anyOf=NewModel,ModelA=NewModelA in CLI).
|
|
22
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_filter_parameter_id. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_filter_parameter_id=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_filter_parameter_id=NewModel,ModelA=NewModelA in CLI).
|
|
23
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_filter_parameter. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_filter_parameter=NewModel,ModelA=NewModelA in CLI).
|
|
24
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject_items_inner_score_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_score_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_score_inner=NewModel,ModelA=NewModelA in CLI).
|
|
25
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject_items_inner_players_team_1_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_players_team_1_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_players_team_1_inner=NewModel,ModelA=NewModelA in CLI).
|
|
26
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject_items_inner_players. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_players=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner_players=NewModel,ModelA=NewModelA in CLI).
|
|
27
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject_items_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject_items_inner=NewModel,ModelA=NewModelA in CLI).
|
|
28
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
|
|
29
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
30
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_stats_match_value. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_stats_match_value=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_stats_match_value=NewModel,ModelA=NewModelA in CLI).
|
|
31
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_stats_connections. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_stats_connections=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_stats_connections=NewModel,ModelA=NewModelA in CLI).
|
|
32
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_stats. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_stats=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_stats=NewModel,ModelA=NewModelA in CLI).
|
|
33
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_sets_sets_inner_games_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_sets_sets_inner_games_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_sets_sets_inner_games_inner=NewModel,ModelA=NewModelA in CLI).
|
|
34
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_sets_sets_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_sets_sets_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_sets_sets_inner=NewModel,ModelA=NewModelA in CLI).
|
|
35
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response_sets. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response_sets=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response_sets=NewModel,ModelA=NewModelA in CLI).
|
|
36
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_matches__id__get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_matches__id__get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_matches__id__get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
37
|
+
[main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_padel_cron_point_by_point_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_padel_cron_point_by_point_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_padel_cron_point_by_point_get_200_response=NewModel,ModelA=NewModelA in CLI).
|
|
38
|
+
[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/]
|
|
39
|
+
[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/]
|
|
40
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesGet200ResponseInner.ts
|
|
41
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesIdPutRequest.ts
|
|
42
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiExamplesPostRequest.ts
|
|
43
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiHealthCheckGet200Response.ts
|
|
44
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200Response.ts
|
|
45
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
46
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.ts
|
|
47
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsGet200Response.ts
|
|
48
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsGet200ResponseResponseObject.ts
|
|
49
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsGet200ResponseResponseObjectItemsInner.ts
|
|
50
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200Response.ts
|
|
51
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
52
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
53
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
54
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelCronPointByPointGet200Response.ts
|
|
55
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200Response.ts
|
|
56
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObject.ts
|
|
57
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
58
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers.ts
|
|
59
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersTeam1Inner.ts
|
|
60
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInner.ts
|
|
61
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGetFilterParameter.ts
|
|
62
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGetFilterParameterId.ts
|
|
63
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesGetFilterParameterIdAnyOf.ts
|
|
64
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200Response.ts
|
|
65
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseSets.ts
|
|
66
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseSetsSetsInner.ts
|
|
67
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseSetsSetsInnerGamesInner.ts
|
|
68
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseStats.ts
|
|
69
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseStatsConnections.ts
|
|
70
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiPadelMatchesIdGet200ResponseStatsMatchValue.ts
|
|
71
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/healthCheck. Renamed to auto-generated operationId: apiHealthCheckGet
|
|
72
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples. Renamed to auto-generated operationId: apiExamplesGet
|
|
73
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: post /api/examples. Renamed to auto-generated operationId: apiExamplesPost
|
|
74
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdGet
|
|
75
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: put /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdPut
|
|
76
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: delete /api/examples/{id}. Renamed to auto-generated operationId: apiExamplesIdDelete
|
|
77
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news. Renamed to auto-generated operationId: apiNewsGet
|
|
78
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/{id}. Renamed to auto-generated operationId: apiNewsIdGet
|
|
79
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/news/categories/list. Renamed to auto-generated operationId: apiNewsCategoriesListGet
|
|
80
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/matches. Renamed to auto-generated operationId: apiPadelMatchesGet
|
|
81
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/matches/{id}. Renamed to auto-generated operationId: apiPadelMatchesIdGet
|
|
82
|
+
[main] WARN o.o.codegen.DefaultCodegen - Empty operationId found for path: get /api/padel/cron/point-by-point. Renamed to auto-generated operationId: apiPadelCronPointByPointGet
|
|
83
|
+
[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/]
|
|
84
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/ExampleApi.ts
|
|
85
|
+
[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/]
|
|
86
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/HealthCheckApi.ts
|
|
87
|
+
[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/]
|
|
88
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/NewsApi.ts
|
|
89
|
+
[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/]
|
|
90
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/PadelApi.ts
|
|
91
|
+
[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/]
|
|
92
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./index.ts
|
|
93
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./runtime.ts
|
|
94
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/index.ts
|
|
95
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./apis/index.ts
|
|
96
|
+
[main] INFO o.o.codegen.TemplateManager - Skipped /root/drx-sdk/./.openapi-generator-ignore (Skipped by supportingFiles options supplied by user.)
|
|
97
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/VERSION
|
|
98
|
+
[main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./.openapi-generator/FILES
|
|
99
|
+
################################################################################
|
|
100
|
+
# Thanks for using OpenAPI Generator. #
|
|
101
|
+
# Please consider donation to help us maintain this project 🙏 #
|
|
102
|
+
# https://opencollective.com/openapi_generator/donate #
|
|
103
|
+
################################################################################
|
|
104
|
+
✅ SDK generated
|
|
105
|
+
[master c8de5b7] VPS: Generated API SDK
|
|
106
|
+
37 files changed, 3984 insertions(+)
|
|
107
|
+
create mode 100644 apis/ExampleApi.ts
|
|
108
|
+
create mode 100644 apis/HealthCheckApi.ts
|
|
109
|
+
create mode 100644 apis/NewsApi.ts
|
|
110
|
+
create mode 100644 apis/PadelApi.ts
|
|
111
|
+
create mode 100644 apis/index.ts
|
|
112
|
+
create mode 100644 models/ApiExamplesGet200ResponseInner.ts
|
|
113
|
+
create mode 100644 models/ApiExamplesIdPutRequest.ts
|
|
114
|
+
create mode 100644 models/ApiExamplesPostRequest.ts
|
|
115
|
+
create mode 100644 models/ApiHealthCheckGet200Response.ts
|
|
116
|
+
create mode 100644 models/ApiNewsCategoriesListGet200Response.ts
|
|
117
|
+
create mode 100644 models/ApiNewsCategoriesListGet200ResponseResponseObject.ts
|
|
118
|
+
create mode 100644 models/ApiNewsCategoriesListGet200ResponseResponseObjectCategoriesInner.ts
|
|
119
|
+
create mode 100644 models/ApiNewsGet200Response.ts
|
|
120
|
+
create mode 100644 models/ApiNewsGet200ResponseResponseObject.ts
|
|
121
|
+
create mode 100644 models/ApiNewsGet200ResponseResponseObjectItemsInner.ts
|
|
122
|
+
create mode 100644 models/ApiNewsIdGet200Response.ts
|
|
123
|
+
create mode 100644 models/ApiNewsIdGet200ResponseResponseObject.ts
|
|
124
|
+
create mode 100644 models/ApiNewsIdGet200ResponseResponseObjectLeaguesInner.ts
|
|
125
|
+
create mode 100644 models/ApiNewsIdGet200ResponseResponseObjectLeaguesInnerLeague.ts
|
|
126
|
+
create mode 100644 models/ApiPadelCronPointByPointGet200Response.ts
|
|
127
|
+
create mode 100644 models/ApiPadelMatchesGet200Response.ts
|
|
128
|
+
create mode 100644 models/ApiPadelMatchesGet200ResponseResponseObject.ts
|
|
129
|
+
create mode 100644 models/ApiPadelMatchesGet200ResponseResponseObjectItemsInner.ts
|
|
130
|
+
create mode 100644 models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayers.ts
|
|
131
|
+
create mode 100644 models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerPlayersTeam1Inner.ts
|
|
132
|
+
create mode 100644 models/ApiPadelMatchesGet200ResponseResponseObjectItemsInnerScoreInner.ts
|
|
133
|
+
create mode 100644 models/ApiPadelMatchesGetFilterParameter.ts
|
|
134
|
+
create mode 100644 models/ApiPadelMatchesGetFilterParameterId.ts
|
|
135
|
+
create mode 100644 models/ApiPadelMatchesGetFilterParameterIdAnyOf.ts
|
|
136
|
+
create mode 100644 models/ApiPadelMatchesIdGet200Response.ts
|
|
137
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseSets.ts
|
|
138
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseSetsSetsInner.ts
|
|
139
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseSetsSetsInnerGamesInner.ts
|
|
140
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseStats.ts
|
|
141
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseStatsConnections.ts
|
|
142
|
+
create mode 100644 models/ApiPadelMatchesIdGet200ResponseStatsMatchValue.ts
|
|
143
|
+
create mode 100644 models/index.ts
|
|
144
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
145
|
+
739636a..c8de5b7 master -> master
|
|
146
|
+
✅ Changes committed and pushed
|
|
147
|
+
v1.1.44
|
|
148
|
+
To https://gitlab.com/drx-super/drx-sdk.git
|
|
149
|
+
c8de5b7..9ace32c master -> master
|
|
150
|
+
✅ Version bumped
|
|
151
|
+
|
|
152
|
+
> @drxsuperapp/sdk@1.1.44 prepublishOnly
|
|
153
|
+
> npm run build
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
> @drxsuperapp/sdk@1.1.44 build
|
|
157
|
+
> tsc
|
|
158
|
+
|
package/ecosystem.config.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
module.exports = {
|
|
3
|
-
apps: [
|
|
4
|
-
{
|
|
5
|
-
name: 'drx-sdk-webhook',
|
|
6
|
-
script: '/usr/local/bin/webhook', // path to `webhook` binary
|
|
7
|
-
args: '-hooks /root/drx-sdk/hooks.json -port 9000 -verbose',
|
|
8
|
-
cwd: '/root/drx-sdk',
|
|
9
|
-
watch: false,
|
|
10
|
-
autorestart: true
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
};
|
|
1
|
+
|
|
2
|
+
module.exports = {
|
|
3
|
+
apps: [
|
|
4
|
+
{
|
|
5
|
+
name: 'drx-sdk-webhook',
|
|
6
|
+
script: '/usr/local/bin/webhook', // path to `webhook` binary
|
|
7
|
+
args: '-hooks /root/drx-sdk/hooks.json -port 9000 -verbose',
|
|
8
|
+
cwd: '/root/drx-sdk',
|
|
9
|
+
watch: false,
|
|
10
|
+
autorestart: true
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
};
|
package/git_push.sh
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
-
#
|
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
-
|
|
6
|
-
git_user_id=$1
|
|
7
|
-
git_repo_id=$2
|
|
8
|
-
release_note=$3
|
|
9
|
-
git_host=$4
|
|
10
|
-
|
|
11
|
-
if [ "$git_host" = "" ]; then
|
|
12
|
-
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
-
fi
|
|
15
|
-
|
|
16
|
-
if [ "$git_user_id" = "" ]; then
|
|
17
|
-
git_user_id="GIT_USER_ID"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
-
fi
|
|
20
|
-
|
|
21
|
-
if [ "$git_repo_id" = "" ]; then
|
|
22
|
-
git_repo_id="GIT_REPO_ID"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
-
fi
|
|
25
|
-
|
|
26
|
-
if [ "$release_note" = "" ]; then
|
|
27
|
-
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
-
fi
|
|
30
|
-
|
|
31
|
-
# Initialize the local directory as a Git repository
|
|
32
|
-
git init
|
|
33
|
-
|
|
34
|
-
# Adds the files in the local repository and stages them for commit.
|
|
35
|
-
git add .
|
|
36
|
-
|
|
37
|
-
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
39
|
-
|
|
40
|
-
# Sets the new remote
|
|
41
|
-
git_remote=$(git remote)
|
|
42
|
-
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
-
|
|
44
|
-
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
-
else
|
|
48
|
-
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
-
fi
|
|
50
|
-
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
git pull origin master
|
|
54
|
-
|
|
55
|
-
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
-
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
-
git push origin master 2>&1 | grep -v 'To https'
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/hooks.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "sdk-deploy",
|
|
4
|
-
"execute-command": "/root/drx-sdk/workflow.sh",
|
|
5
|
-
"command-working-directory": "/root/drx-sdk",
|
|
6
|
-
"response-message": "Triggered SDK deployment.",
|
|
7
|
-
"trigger-rule": {
|
|
8
|
-
"match": {
|
|
9
|
-
"type": "value",
|
|
10
|
-
"value": "supersecret",
|
|
11
|
-
"parameter": {
|
|
12
|
-
"source": "header",
|
|
13
|
-
"name": "X-Hook-Secret"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"include-command-output-in-response": true,
|
|
18
|
-
"pass-environment-to-command": [
|
|
19
|
-
{
|
|
20
|
-
"source": "header",
|
|
21
|
-
"name": "X-Hook-Secret",
|
|
22
|
-
"envname": "HTTP_X_HOOK_SECRET"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"source": "header",
|
|
26
|
-
"name": "Authorization",
|
|
27
|
-
"envname": "HTTP_AUTHORIZATION"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "sdk-deploy",
|
|
4
|
+
"execute-command": "/root/drx-sdk/workflow.sh",
|
|
5
|
+
"command-working-directory": "/root/drx-sdk",
|
|
6
|
+
"response-message": "Triggered SDK deployment.",
|
|
7
|
+
"trigger-rule": {
|
|
8
|
+
"match": {
|
|
9
|
+
"type": "value",
|
|
10
|
+
"value": "supersecret",
|
|
11
|
+
"parameter": {
|
|
12
|
+
"source": "header",
|
|
13
|
+
"name": "X-Hook-Secret"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"include-command-output-in-response": true,
|
|
18
|
+
"pass-environment-to-command": [
|
|
19
|
+
{
|
|
20
|
+
"source": "header",
|
|
21
|
+
"name": "X-Hook-Secret",
|
|
22
|
+
"envname": "HTTP_X_HOOK_SECRET"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"source": "header",
|
|
26
|
+
"name": "Authorization",
|
|
27
|
+
"envname": "HTTP_AUTHORIZATION"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
31
|
]
|
package/openapitools.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
|
3
|
-
"spaces": 2,
|
|
4
|
-
"generator-cli": {
|
|
5
|
-
"version": "7.13.0"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
|
3
|
+
"spaces": 2,
|
|
4
|
+
"generator-cli": {
|
|
5
|
+
"version": "7.13.0"
|
|
6
|
+
}
|
|
7
|
+
}
|