@joao.sumi/qdule 0.0.9 → 0.0.10
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 +2 -1
- package/README.md +4 -3
- package/api.ts +10 -7
- package/dist/api.d.ts +12 -9
- package/docs/CalendarListResponse.md +20 -0
- package/docs/CalendarResourceApi.md +4 -4
- package/docs/CalendarResponse.md +24 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -8,8 +8,9 @@ configuration.ts
|
|
|
8
8
|
docs/AuthRequest.md
|
|
9
9
|
docs/AuthResourceApi.md
|
|
10
10
|
docs/AuthResponse.md
|
|
11
|
-
docs/
|
|
11
|
+
docs/CalendarListResponse.md
|
|
12
12
|
docs/CalendarResourceApi.md
|
|
13
|
+
docs/CalendarResponse.md
|
|
13
14
|
docs/ChangelogCreateRequest.md
|
|
14
15
|
docs/ChangelogResourceApi.md
|
|
15
16
|
docs/ChangelogResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @joao.sumi/qdule@0.0.
|
|
1
|
+
## @joao.sumi/qdule@0.0.10
|
|
2
2
|
|
|
3
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
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @joao.sumi/qdule@0.0.
|
|
39
|
+
npm install @joao.sumi/qdule@0.0.10 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -86,7 +86,8 @@ Class | Method | HTTP request | Description
|
|
|
86
86
|
|
|
87
87
|
- [AuthRequest](docs/AuthRequest.md)
|
|
88
88
|
- [AuthResponse](docs/AuthResponse.md)
|
|
89
|
-
- [
|
|
89
|
+
- [CalendarListResponse](docs/CalendarListResponse.md)
|
|
90
|
+
- [CalendarResponse](docs/CalendarResponse.md)
|
|
90
91
|
- [ChangelogCreateRequest](docs/ChangelogCreateRequest.md)
|
|
91
92
|
- [ChangelogResponse](docs/ChangelogResponse.md)
|
|
92
93
|
- [ChangelogUpdateRequest](docs/ChangelogUpdateRequest.md)
|
package/api.ts
CHANGED
|
@@ -30,7 +30,10 @@ export interface AuthRequest {
|
|
|
30
30
|
export interface AuthResponse {
|
|
31
31
|
'token'?: string;
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
33
|
+
export interface CalendarListResponse {
|
|
34
|
+
'calendarList'?: Array<CalendarResponse>;
|
|
35
|
+
}
|
|
36
|
+
export interface CalendarResponse {
|
|
34
37
|
'treatmentId'?: number;
|
|
35
38
|
'date'?: string;
|
|
36
39
|
'hours'?: Array<string>;
|
|
@@ -475,7 +478,7 @@ export const CalendarResourceApiFp = function(configuration?: Configuration) {
|
|
|
475
478
|
* @param {*} [options] Override http request option.
|
|
476
479
|
* @throws {RequiredError}
|
|
477
480
|
*/
|
|
478
|
-
async calendarYearMonthAvailableGet(year: number, month: number, treatmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
481
|
+
async calendarYearMonthAvailableGet(year: number, month: number, treatmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarListResponse>> {
|
|
479
482
|
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarYearMonthAvailableGet(year, month, treatmentId, options);
|
|
480
483
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
481
484
|
const localVarOperationServerBasePath = operationServerMap['CalendarResourceApi.calendarYearMonthAvailableGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -489,7 +492,7 @@ export const CalendarResourceApiFp = function(configuration?: Configuration) {
|
|
|
489
492
|
* @param {*} [options] Override http request option.
|
|
490
493
|
* @throws {RequiredError}
|
|
491
494
|
*/
|
|
492
|
-
async calendarYearMonthScheduledGet(year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
495
|
+
async calendarYearMonthScheduledGet(year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarListResponse>> {
|
|
493
496
|
const localVarAxiosArgs = await localVarAxiosParamCreator.calendarYearMonthScheduledGet(year, month, options);
|
|
494
497
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
495
498
|
const localVarOperationServerBasePath = operationServerMap['CalendarResourceApi.calendarYearMonthScheduledGet']?.[localVarOperationServerIndex]?.url;
|
|
@@ -511,7 +514,7 @@ export const CalendarResourceApiFactory = function (configuration?: Configuratio
|
|
|
511
514
|
* @param {*} [options] Override http request option.
|
|
512
515
|
* @throws {RequiredError}
|
|
513
516
|
*/
|
|
514
|
-
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
517
|
+
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse> {
|
|
515
518
|
return localVarFp.calendarYearMonthAvailableGet(requestParameters.year, requestParameters.month, requestParameters.treatmentId, options).then((request) => request(axios, basePath));
|
|
516
519
|
},
|
|
517
520
|
/**
|
|
@@ -521,7 +524,7 @@ export const CalendarResourceApiFactory = function (configuration?: Configuratio
|
|
|
521
524
|
* @param {*} [options] Override http request option.
|
|
522
525
|
* @throws {RequiredError}
|
|
523
526
|
*/
|
|
524
|
-
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
527
|
+
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse> {
|
|
525
528
|
return localVarFp.calendarYearMonthScheduledGet(requestParameters.year, requestParameters.month, options).then((request) => request(axios, basePath));
|
|
526
529
|
},
|
|
527
530
|
};
|
|
@@ -538,7 +541,7 @@ export interface CalendarResourceApiInterface {
|
|
|
538
541
|
* @param {*} [options] Override http request option.
|
|
539
542
|
* @throws {RequiredError}
|
|
540
543
|
*/
|
|
541
|
-
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
544
|
+
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
542
545
|
|
|
543
546
|
/**
|
|
544
547
|
*
|
|
@@ -547,7 +550,7 @@ export interface CalendarResourceApiInterface {
|
|
|
547
550
|
* @param {*} [options] Override http request option.
|
|
548
551
|
* @throws {RequiredError}
|
|
549
552
|
*/
|
|
550
|
-
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
553
|
+
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
551
554
|
|
|
552
555
|
}
|
|
553
556
|
|
package/dist/api.d.ts
CHANGED
|
@@ -20,7 +20,10 @@ export interface AuthRequest {
|
|
|
20
20
|
export interface AuthResponse {
|
|
21
21
|
'token'?: string;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface CalendarListResponse {
|
|
24
|
+
'calendarList'?: Array<CalendarResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface CalendarResponse {
|
|
24
27
|
'treatmentId'?: number;
|
|
25
28
|
'date'?: string;
|
|
26
29
|
'hours'?: Array<string>;
|
|
@@ -304,7 +307,7 @@ export declare const CalendarResourceApiFp: (configuration?: Configuration) => {
|
|
|
304
307
|
* @param {*} [options] Override http request option.
|
|
305
308
|
* @throws {RequiredError}
|
|
306
309
|
*/
|
|
307
|
-
calendarYearMonthAvailableGet(year: number, month: number, treatmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
310
|
+
calendarYearMonthAvailableGet(year: number, month: number, treatmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarListResponse>>;
|
|
308
311
|
/**
|
|
309
312
|
*
|
|
310
313
|
* @summary Scheduled Treatment
|
|
@@ -313,7 +316,7 @@ export declare const CalendarResourceApiFp: (configuration?: Configuration) => {
|
|
|
313
316
|
* @param {*} [options] Override http request option.
|
|
314
317
|
* @throws {RequiredError}
|
|
315
318
|
*/
|
|
316
|
-
calendarYearMonthScheduledGet(year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
319
|
+
calendarYearMonthScheduledGet(year: number, month: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalendarListResponse>>;
|
|
317
320
|
};
|
|
318
321
|
/**
|
|
319
322
|
* CalendarResourceApi - factory interface
|
|
@@ -326,7 +329,7 @@ export declare const CalendarResourceApiFactory: (configuration?: Configuration,
|
|
|
326
329
|
* @param {*} [options] Override http request option.
|
|
327
330
|
* @throws {RequiredError}
|
|
328
331
|
*/
|
|
329
|
-
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
332
|
+
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
330
333
|
/**
|
|
331
334
|
*
|
|
332
335
|
* @summary Scheduled Treatment
|
|
@@ -334,7 +337,7 @@ export declare const CalendarResourceApiFactory: (configuration?: Configuration,
|
|
|
334
337
|
* @param {*} [options] Override http request option.
|
|
335
338
|
* @throws {RequiredError}
|
|
336
339
|
*/
|
|
337
|
-
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
340
|
+
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
338
341
|
};
|
|
339
342
|
/**
|
|
340
343
|
* CalendarResourceApi - interface
|
|
@@ -347,7 +350,7 @@ export interface CalendarResourceApiInterface {
|
|
|
347
350
|
* @param {*} [options] Override http request option.
|
|
348
351
|
* @throws {RequiredError}
|
|
349
352
|
*/
|
|
350
|
-
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
353
|
+
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
351
354
|
/**
|
|
352
355
|
*
|
|
353
356
|
* @summary Scheduled Treatment
|
|
@@ -355,7 +358,7 @@ export interface CalendarResourceApiInterface {
|
|
|
355
358
|
* @param {*} [options] Override http request option.
|
|
356
359
|
* @throws {RequiredError}
|
|
357
360
|
*/
|
|
358
|
-
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
361
|
+
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<CalendarListResponse>;
|
|
359
362
|
}
|
|
360
363
|
/**
|
|
361
364
|
* Request parameters for calendarYearMonthAvailableGet operation in CalendarResourceApi.
|
|
@@ -383,7 +386,7 @@ export declare class CalendarResourceApi extends BaseAPI implements CalendarReso
|
|
|
383
386
|
* @param {*} [options] Override http request option.
|
|
384
387
|
* @throws {RequiredError}
|
|
385
388
|
*/
|
|
386
|
-
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
389
|
+
calendarYearMonthAvailableGet(requestParameters: CalendarResourceApiCalendarYearMonthAvailableGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CalendarListResponse, any, {}>>;
|
|
387
390
|
/**
|
|
388
391
|
*
|
|
389
392
|
* @summary Scheduled Treatment
|
|
@@ -391,7 +394,7 @@ export declare class CalendarResourceApi extends BaseAPI implements CalendarReso
|
|
|
391
394
|
* @param {*} [options] Override http request option.
|
|
392
395
|
* @throws {RequiredError}
|
|
393
396
|
*/
|
|
394
|
-
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
397
|
+
calendarYearMonthScheduledGet(requestParameters: CalendarResourceApiCalendarYearMonthScheduledGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CalendarListResponse, any, {}>>;
|
|
395
398
|
}
|
|
396
399
|
/**
|
|
397
400
|
* ChangelogResourceApi - axios parameter creator
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CalendarListResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**calendarList** | [**Array<CalendarResponse>**](CalendarResponse.md) | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { CalendarListResponse } from '@joao.sumi/qdule';
|
|
14
|
+
|
|
15
|
+
const instance: CalendarListResponse = {
|
|
16
|
+
calendarList,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,7 +8,7 @@ All URIs are relative to *http://localhost*
|
|
|
8
8
|
|[**calendarYearMonthScheduledGet**](#calendaryearmonthscheduledget) | **GET** /calendar/{year}/{month}/scheduled | Scheduled Treatment|
|
|
9
9
|
|
|
10
10
|
# **calendarYearMonthAvailableGet**
|
|
11
|
-
>
|
|
11
|
+
> CalendarListResponse calendarYearMonthAvailableGet()
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
### Example
|
|
@@ -44,7 +44,7 @@ const { status, data } = await apiInstance.calendarYearMonthAvailableGet(
|
|
|
44
44
|
|
|
45
45
|
### Return type
|
|
46
46
|
|
|
47
|
-
**
|
|
47
|
+
**CalendarListResponse**
|
|
48
48
|
|
|
49
49
|
### Authorization
|
|
50
50
|
|
|
@@ -64,7 +64,7 @@ No authorization required
|
|
|
64
64
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
65
|
|
|
66
66
|
# **calendarYearMonthScheduledGet**
|
|
67
|
-
>
|
|
67
|
+
> CalendarListResponse calendarYearMonthScheduledGet()
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
### Example
|
|
@@ -97,7 +97,7 @@ const { status, data } = await apiInstance.calendarYearMonthScheduledGet(
|
|
|
97
97
|
|
|
98
98
|
### Return type
|
|
99
99
|
|
|
100
|
-
**
|
|
100
|
+
**CalendarListResponse**
|
|
101
101
|
|
|
102
102
|
### Authorization
|
|
103
103
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CalendarResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**treatmentId** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**date** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**hours** | **Array<string>** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { CalendarResponse } from '@joao.sumi/qdule';
|
|
16
|
+
|
|
17
|
+
const instance: CalendarResponse = {
|
|
18
|
+
treatmentId,
|
|
19
|
+
date,
|
|
20
|
+
hours,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|