@libgot/whatsapp-bridge-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/README.md ADDED
@@ -0,0 +1,45 @@
1
+ ## @1.0.0
2
+
3
+ This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run ```npm publish```
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @1.0.0 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
package/api.ts ADDED
@@ -0,0 +1,19 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ export * from './apis/auth-api';
15
+ export * from './apis/contacts-api';
16
+ export * from './apis/default-api';
17
+ export * from './apis/healthchecks-api';
18
+ export * from './apis/users-api';
19
+
@@ -0,0 +1,274 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
16
+ import { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ import { ApiResponseAuthDto } from '../models';
21
+ import { AuthDto } from '../models';
22
+ import { UnauthorizedDto } from '../models';
23
+ import { UnauthorizedTokenDto } from '../models';
24
+ /**
25
+ * AuthApi - axios parameter creator
26
+ * @export
27
+ */
28
+ export const AuthApiAxiosParamCreator = function (configuration?: Configuration) {
29
+ return {
30
+ /**
31
+ *
32
+ * @param {AuthDto} body
33
+ * @param {*} [options] Override http request option.
34
+ * @throws {RequiredError}
35
+ */
36
+ login: async (body: AuthDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
37
+ // verify required parameter 'body' is not null or undefined
38
+ if (body === null || body === undefined) {
39
+ throw new RequiredError('body','Required parameter body was null or undefined when calling login.');
40
+ }
41
+ const localVarPath = `/api/auth/login`;
42
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
44
+ let baseOptions;
45
+ if (configuration) {
46
+ baseOptions = configuration.baseOptions;
47
+ }
48
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
49
+ const localVarHeaderParameter = {} as any;
50
+ const localVarQueryParameter = {} as any;
51
+
52
+ localVarHeaderParameter['Content-Type'] = 'application/json';
53
+
54
+ const query = new URLSearchParams(localVarUrlObj.search);
55
+ for (const key in localVarQueryParameter) {
56
+ query.set(key, localVarQueryParameter[key]);
57
+ }
58
+ for (const key in options.params) {
59
+ query.set(key, options.params[key]);
60
+ }
61
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
64
+ const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
65
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
66
+
67
+ return {
68
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
69
+ options: localVarRequestOptions,
70
+ };
71
+ },
72
+ /**
73
+ *
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ logout: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
78
+ const localVarPath = `/api/auth/logout`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
86
+ const localVarHeaderParameter = {} as any;
87
+ const localVarQueryParameter = {} as any;
88
+
89
+ // authentication access-token required
90
+ // http bearer authentication required
91
+ if (configuration && configuration.accessToken) {
92
+ const accessToken = typeof configuration.accessToken === 'function'
93
+ ? await configuration.accessToken()
94
+ : await configuration.accessToken;
95
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
96
+ }
97
+
98
+ const query = new URLSearchParams(localVarUrlObj.search);
99
+ for (const key in localVarQueryParameter) {
100
+ query.set(key, localVarQueryParameter[key]);
101
+ }
102
+ for (const key in options.params) {
103
+ query.set(key, options.params[key]);
104
+ }
105
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
107
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
108
+
109
+ return {
110
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
111
+ options: localVarRequestOptions,
112
+ };
113
+ },
114
+ /**
115
+ *
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ refreshToken: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
120
+ const localVarPath = `/api/auth/refresh`;
121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
123
+ let baseOptions;
124
+ if (configuration) {
125
+ baseOptions = configuration.baseOptions;
126
+ }
127
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
128
+ const localVarHeaderParameter = {} as any;
129
+ const localVarQueryParameter = {} as any;
130
+
131
+ // authentication access-token required
132
+ // http bearer authentication required
133
+ if (configuration && configuration.accessToken) {
134
+ const accessToken = typeof configuration.accessToken === 'function'
135
+ ? await configuration.accessToken()
136
+ : await configuration.accessToken;
137
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
138
+ }
139
+
140
+ const query = new URLSearchParams(localVarUrlObj.search);
141
+ for (const key in localVarQueryParameter) {
142
+ query.set(key, localVarQueryParameter[key]);
143
+ }
144
+ for (const key in options.params) {
145
+ query.set(key, options.params[key]);
146
+ }
147
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
150
+
151
+ return {
152
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
153
+ options: localVarRequestOptions,
154
+ };
155
+ },
156
+ }
157
+ };
158
+
159
+ /**
160
+ * AuthApi - functional programming interface
161
+ * @export
162
+ */
163
+ export const AuthApiFp = function(configuration?: Configuration) {
164
+ return {
165
+ /**
166
+ *
167
+ * @param {AuthDto} body
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ async login(body: AuthDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ApiResponseAuthDto>>> {
172
+ const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).login(body, options);
173
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
174
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
175
+ return axios.request(axiosRequestArgs);
176
+ };
177
+ },
178
+ /**
179
+ *
180
+ * @param {*} [options] Override http request option.
181
+ * @throws {RequiredError}
182
+ */
183
+ async logout(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
184
+ const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).logout(options);
185
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
186
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
187
+ return axios.request(axiosRequestArgs);
188
+ };
189
+ },
190
+ /**
191
+ *
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ async refreshToken(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ApiResponseAuthDto>>> {
196
+ const localVarAxiosArgs = await AuthApiAxiosParamCreator(configuration).refreshToken(options);
197
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
198
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
199
+ return axios.request(axiosRequestArgs);
200
+ };
201
+ },
202
+ }
203
+ };
204
+
205
+ /**
206
+ * AuthApi - factory interface
207
+ * @export
208
+ */
209
+ export const AuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
210
+ return {
211
+ /**
212
+ *
213
+ * @param {AuthDto} body
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ async login(body: AuthDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ApiResponseAuthDto>> {
218
+ return AuthApiFp(configuration).login(body, options).then((request) => request(axios, basePath));
219
+ },
220
+ /**
221
+ *
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ async logout(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
226
+ return AuthApiFp(configuration).logout(options).then((request) => request(axios, basePath));
227
+ },
228
+ /**
229
+ *
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ async refreshToken(options?: AxiosRequestConfig): Promise<AxiosResponse<ApiResponseAuthDto>> {
234
+ return AuthApiFp(configuration).refreshToken(options).then((request) => request(axios, basePath));
235
+ },
236
+ };
237
+ };
238
+
239
+ /**
240
+ * AuthApi - object-oriented interface
241
+ * @export
242
+ * @class AuthApi
243
+ * @extends {BaseAPI}
244
+ */
245
+ export class AuthApi extends BaseAPI {
246
+ /**
247
+ *
248
+ * @param {AuthDto} body
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof AuthApi
252
+ */
253
+ public async login(body: AuthDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<ApiResponseAuthDto>> {
254
+ return AuthApiFp(this.configuration).login(body, options).then((request) => request(this.axios, this.basePath));
255
+ }
256
+ /**
257
+ *
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof AuthApi
261
+ */
262
+ public async logout(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
263
+ return AuthApiFp(this.configuration).logout(options).then((request) => request(this.axios, this.basePath));
264
+ }
265
+ /**
266
+ *
267
+ * @param {*} [options] Override http request option.
268
+ * @throws {RequiredError}
269
+ * @memberof AuthApi
270
+ */
271
+ public async refreshToken(options?: AxiosRequestConfig) : Promise<AxiosResponse<ApiResponseAuthDto>> {
272
+ return AuthApiFp(this.configuration).refreshToken(options).then((request) => request(this.axios, this.basePath));
273
+ }
274
+ }
@@ -0,0 +1,117 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
16
+ import { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ import { ContactsResponseDTO } from '../models';
21
+ /**
22
+ * ContactsApi - axios parameter creator
23
+ * @export
24
+ */
25
+ export const ContactsApiAxiosParamCreator = function (configuration?: Configuration) {
26
+ return {
27
+ /**
28
+ *
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getContacts: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33
+ const localVarPath = `/api/contacts`;
34
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
35
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
36
+ let baseOptions;
37
+ if (configuration) {
38
+ baseOptions = configuration.baseOptions;
39
+ }
40
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
41
+ const localVarHeaderParameter = {} as any;
42
+ const localVarQueryParameter = {} as any;
43
+
44
+ const query = new URLSearchParams(localVarUrlObj.search);
45
+ for (const key in localVarQueryParameter) {
46
+ query.set(key, localVarQueryParameter[key]);
47
+ }
48
+ for (const key in options.params) {
49
+ query.set(key, options.params[key]);
50
+ }
51
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
52
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54
+
55
+ return {
56
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
57
+ options: localVarRequestOptions,
58
+ };
59
+ },
60
+ }
61
+ };
62
+
63
+ /**
64
+ * ContactsApi - functional programming interface
65
+ * @export
66
+ */
67
+ export const ContactsApiFp = function(configuration?: Configuration) {
68
+ return {
69
+ /**
70
+ *
71
+ * @param {*} [options] Override http request option.
72
+ * @throws {RequiredError}
73
+ */
74
+ async getContacts(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ContactsResponseDTO>>> {
75
+ const localVarAxiosArgs = await ContactsApiAxiosParamCreator(configuration).getContacts(options);
76
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
77
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
78
+ return axios.request(axiosRequestArgs);
79
+ };
80
+ },
81
+ }
82
+ };
83
+
84
+ /**
85
+ * ContactsApi - factory interface
86
+ * @export
87
+ */
88
+ export const ContactsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
89
+ return {
90
+ /**
91
+ *
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ async getContacts(options?: AxiosRequestConfig): Promise<AxiosResponse<ContactsResponseDTO>> {
96
+ return ContactsApiFp(configuration).getContacts(options).then((request) => request(axios, basePath));
97
+ },
98
+ };
99
+ };
100
+
101
+ /**
102
+ * ContactsApi - object-oriented interface
103
+ * @export
104
+ * @class ContactsApi
105
+ * @extends {BaseAPI}
106
+ */
107
+ export class ContactsApi extends BaseAPI {
108
+ /**
109
+ *
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ * @memberof ContactsApi
113
+ */
114
+ public async getContacts(options?: AxiosRequestConfig) : Promise<AxiosResponse<ContactsResponseDTO>> {
115
+ return ContactsApiFp(this.configuration).getContacts(options).then((request) => request(this.axios, this.basePath));
116
+ }
117
+ }
@@ -0,0 +1,178 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * whatsapp-bridge Node Api
5
+ * The whatsapp-bridge API description
6
+ *
7
+ * OpenAPI spec version: 0.0.1
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
16
+ import { Configuration } from '../configuration';
17
+ // Some imports not used depending on template conditions
18
+ // @ts-ignore
19
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
20
+ /**
21
+ * DefaultApi - axios parameter creator
22
+ * @export
23
+ */
24
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
25
+ return {
26
+ /**
27
+ *
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ appControllerGetHello: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32
+ const localVarPath = `/`;
33
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
35
+ let baseOptions;
36
+ if (configuration) {
37
+ baseOptions = configuration.baseOptions;
38
+ }
39
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
40
+ const localVarHeaderParameter = {} as any;
41
+ const localVarQueryParameter = {} as any;
42
+
43
+ const query = new URLSearchParams(localVarUrlObj.search);
44
+ for (const key in localVarQueryParameter) {
45
+ query.set(key, localVarQueryParameter[key]);
46
+ }
47
+ for (const key in options.params) {
48
+ query.set(key, options.params[key]);
49
+ }
50
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
51
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
52
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
53
+
54
+ return {
55
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
56
+ options: localVarRequestOptions,
57
+ };
58
+ },
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ getChats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
65
+ const localVarPath = `/api/chats`;
66
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
67
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
68
+ let baseOptions;
69
+ if (configuration) {
70
+ baseOptions = configuration.baseOptions;
71
+ }
72
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ const query = new URLSearchParams(localVarUrlObj.search);
77
+ for (const key in localVarQueryParameter) {
78
+ query.set(key, localVarQueryParameter[key]);
79
+ }
80
+ for (const key in options.params) {
81
+ query.set(key, options.params[key]);
82
+ }
83
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
84
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
85
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
86
+
87
+ return {
88
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ }
93
+ };
94
+
95
+ /**
96
+ * DefaultApi - functional programming interface
97
+ * @export
98
+ */
99
+ export const DefaultApiFp = function(configuration?: Configuration) {
100
+ return {
101
+ /**
102
+ *
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ async appControllerGetHello(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
107
+ const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).appControllerGetHello(options);
108
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
109
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
110
+ return axios.request(axiosRequestArgs);
111
+ };
112
+ },
113
+ /**
114
+ *
115
+ * @param {*} [options] Override http request option.
116
+ * @throws {RequiredError}
117
+ */
118
+ async getChats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
119
+ const localVarAxiosArgs = await DefaultApiAxiosParamCreator(configuration).getChats(options);
120
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
121
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
122
+ return axios.request(axiosRequestArgs);
123
+ };
124
+ },
125
+ }
126
+ };
127
+
128
+ /**
129
+ * DefaultApi - factory interface
130
+ * @export
131
+ */
132
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
133
+ return {
134
+ /**
135
+ *
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ async appControllerGetHello(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
140
+ return DefaultApiFp(configuration).appControllerGetHello(options).then((request) => request(axios, basePath));
141
+ },
142
+ /**
143
+ *
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ async getChats(options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
148
+ return DefaultApiFp(configuration).getChats(options).then((request) => request(axios, basePath));
149
+ },
150
+ };
151
+ };
152
+
153
+ /**
154
+ * DefaultApi - object-oriented interface
155
+ * @export
156
+ * @class DefaultApi
157
+ * @extends {BaseAPI}
158
+ */
159
+ export class DefaultApi extends BaseAPI {
160
+ /**
161
+ *
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ * @memberof DefaultApi
165
+ */
166
+ public async appControllerGetHello(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
167
+ return DefaultApiFp(this.configuration).appControllerGetHello(options).then((request) => request(this.axios, this.basePath));
168
+ }
169
+ /**
170
+ *
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ * @memberof DefaultApi
174
+ */
175
+ public async getChats(options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
176
+ return DefaultApiFp(this.configuration).getChats(options).then((request) => request(this.axios, this.basePath));
177
+ }
178
+ }