@joao.sumi/qdule 0.0.5 → 0.0.7
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 +3 -2
- package/api.ts +124 -5
- package/dist/api.d.ts +57 -2
- package/dist/api.js +115 -8
- package/docs/ScheduleResourceApi.md +57 -0
- package/docs/TreatmentResourceApi.md +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @joao.sumi/qdule@0.0.
|
|
1
|
+
## @joao.sumi/qdule@0.0.7
|
|
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.7 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -61,6 +61,7 @@ Class | Method | HTTP request | Description
|
|
|
61
61
|
*ClientResourceApi* | [**clientsIdGet**](docs/ClientResourceApi.md#clientsidget) | **GET** /clients/{id} | Find Client By Id
|
|
62
62
|
*ClientResourceApi* | [**clientsIdPut**](docs/ClientResourceApi.md#clientsidput) | **PUT** /clients/{id} | Update Client
|
|
63
63
|
*ClientResourceApi* | [**clientsPost**](docs/ClientResourceApi.md#clientspost) | **POST** /clients | Create Client
|
|
64
|
+
*ScheduleResourceApi* | [**schedulesAvailableGet**](docs/ScheduleResourceApi.md#schedulesavailableget) | **GET** /schedules/available | Available Schedule
|
|
64
65
|
*ScheduleResourceApi* | [**schedulesGet**](docs/ScheduleResourceApi.md#schedulesget) | **GET** /schedules | Get Schedules
|
|
65
66
|
*ScheduleResourceApi* | [**schedulesIdDelete**](docs/ScheduleResourceApi.md#schedulesiddelete) | **DELETE** /schedules/{id} | Delete Schedule By Id
|
|
66
67
|
*ScheduleResourceApi* | [**schedulesIdGet**](docs/ScheduleResourceApi.md#schedulesidget) | **GET** /schedules/{id} | Find Schedule By Id
|
package/api.ts
CHANGED
|
@@ -1240,6 +1240,61 @@ export class ClientResourceApi extends BaseAPI implements ClientResourceApiInter
|
|
|
1240
1240
|
*/
|
|
1241
1241
|
export const ScheduleResourceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1242
1242
|
return {
|
|
1243
|
+
/**
|
|
1244
|
+
*
|
|
1245
|
+
* @summary Available Schedule
|
|
1246
|
+
* @param {number} treatmentId
|
|
1247
|
+
* @param {string} startDate
|
|
1248
|
+
* @param {string} endDate
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
*/
|
|
1252
|
+
schedulesAvailableGet: async (treatmentId: number, startDate: string, endDate: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1253
|
+
// verify required parameter 'treatmentId' is not null or undefined
|
|
1254
|
+
assertParamExists('schedulesAvailableGet', 'treatmentId', treatmentId)
|
|
1255
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
1256
|
+
assertParamExists('schedulesAvailableGet', 'startDate', startDate)
|
|
1257
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
1258
|
+
assertParamExists('schedulesAvailableGet', 'endDate', endDate)
|
|
1259
|
+
const localVarPath = `/schedules/available`;
|
|
1260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1262
|
+
let baseOptions;
|
|
1263
|
+
if (configuration) {
|
|
1264
|
+
baseOptions = configuration.baseOptions;
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1268
|
+
const localVarHeaderParameter = {} as any;
|
|
1269
|
+
const localVarQueryParameter = {} as any;
|
|
1270
|
+
|
|
1271
|
+
if (treatmentId !== undefined) {
|
|
1272
|
+
localVarQueryParameter['treatmentId'] = treatmentId;
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
if (startDate !== undefined) {
|
|
1276
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
1277
|
+
(startDate as any).toISOString().substring(0,10) :
|
|
1278
|
+
startDate;
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
if (endDate !== undefined) {
|
|
1282
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
1283
|
+
(endDate as any).toISOString().substring(0,10) :
|
|
1284
|
+
endDate;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1288
|
+
|
|
1289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1291
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1292
|
+
|
|
1293
|
+
return {
|
|
1294
|
+
url: toPathString(localVarUrlObj),
|
|
1295
|
+
options: localVarRequestOptions,
|
|
1296
|
+
};
|
|
1297
|
+
},
|
|
1243
1298
|
/**
|
|
1244
1299
|
*
|
|
1245
1300
|
* @summary Get Schedules
|
|
@@ -1461,6 +1516,21 @@ export const ScheduleResourceApiAxiosParamCreator = function (configuration?: Co
|
|
|
1461
1516
|
export const ScheduleResourceApiFp = function(configuration?: Configuration) {
|
|
1462
1517
|
const localVarAxiosParamCreator = ScheduleResourceApiAxiosParamCreator(configuration)
|
|
1463
1518
|
return {
|
|
1519
|
+
/**
|
|
1520
|
+
*
|
|
1521
|
+
* @summary Available Schedule
|
|
1522
|
+
* @param {number} treatmentId
|
|
1523
|
+
* @param {string} startDate
|
|
1524
|
+
* @param {string} endDate
|
|
1525
|
+
* @param {*} [options] Override http request option.
|
|
1526
|
+
* @throws {RequiredError}
|
|
1527
|
+
*/
|
|
1528
|
+
async schedulesAvailableGet(treatmentId: number, startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
1529
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.schedulesAvailableGet(treatmentId, startDate, endDate, options);
|
|
1530
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1531
|
+
const localVarOperationServerBasePath = operationServerMap['ScheduleResourceApi.schedulesAvailableGet']?.[localVarOperationServerIndex]?.url;
|
|
1532
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1533
|
+
},
|
|
1464
1534
|
/**
|
|
1465
1535
|
*
|
|
1466
1536
|
* @summary Get Schedules
|
|
@@ -1540,6 +1610,16 @@ export const ScheduleResourceApiFp = function(configuration?: Configuration) {
|
|
|
1540
1610
|
export const ScheduleResourceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1541
1611
|
const localVarFp = ScheduleResourceApiFp(configuration)
|
|
1542
1612
|
return {
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @summary Available Schedule
|
|
1616
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
*/
|
|
1620
|
+
schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
1621
|
+
return localVarFp.schedulesAvailableGet(requestParameters.treatmentId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(axios, basePath));
|
|
1622
|
+
},
|
|
1543
1623
|
/**
|
|
1544
1624
|
*
|
|
1545
1625
|
* @summary Get Schedules
|
|
@@ -1597,6 +1677,15 @@ export const ScheduleResourceApiFactory = function (configuration?: Configuratio
|
|
|
1597
1677
|
* ScheduleResourceApi - interface
|
|
1598
1678
|
*/
|
|
1599
1679
|
export interface ScheduleResourceApiInterface {
|
|
1680
|
+
/**
|
|
1681
|
+
*
|
|
1682
|
+
* @summary Available Schedule
|
|
1683
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1684
|
+
* @param {*} [options] Override http request option.
|
|
1685
|
+
* @throws {RequiredError}
|
|
1686
|
+
*/
|
|
1687
|
+
schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse>;
|
|
1688
|
+
|
|
1600
1689
|
/**
|
|
1601
1690
|
*
|
|
1602
1691
|
* @summary Get Schedules
|
|
@@ -1644,6 +1733,17 @@ export interface ScheduleResourceApiInterface {
|
|
|
1644
1733
|
|
|
1645
1734
|
}
|
|
1646
1735
|
|
|
1736
|
+
/**
|
|
1737
|
+
* Request parameters for schedulesAvailableGet operation in ScheduleResourceApi.
|
|
1738
|
+
*/
|
|
1739
|
+
export interface ScheduleResourceApiSchedulesAvailableGetRequest {
|
|
1740
|
+
readonly treatmentId: number
|
|
1741
|
+
|
|
1742
|
+
readonly startDate: string
|
|
1743
|
+
|
|
1744
|
+
readonly endDate: string
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1647
1747
|
/**
|
|
1648
1748
|
* Request parameters for schedulesGet operation in ScheduleResourceApi.
|
|
1649
1749
|
*/
|
|
@@ -1693,6 +1793,17 @@ export interface ScheduleResourceApiSchedulesPostRequest {
|
|
|
1693
1793
|
* ScheduleResourceApi - object-oriented interface
|
|
1694
1794
|
*/
|
|
1695
1795
|
export class ScheduleResourceApi extends BaseAPI implements ScheduleResourceApiInterface {
|
|
1796
|
+
/**
|
|
1797
|
+
*
|
|
1798
|
+
* @summary Available Schedule
|
|
1799
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1800
|
+
* @param {*} [options] Override http request option.
|
|
1801
|
+
* @throws {RequiredError}
|
|
1802
|
+
*/
|
|
1803
|
+
public schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig) {
|
|
1804
|
+
return ScheduleResourceApiFp(this.configuration).schedulesAvailableGet(requestParameters.treatmentId, requestParameters.startDate, requestParameters.endDate, options).then((request) => request(this.axios, this.basePath));
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1696
1807
|
/**
|
|
1697
1808
|
*
|
|
1698
1809
|
* @summary Get Schedules
|
|
@@ -2253,11 +2364,12 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2253
2364
|
* @summary Get Treatments
|
|
2254
2365
|
* @param {number} [page]
|
|
2255
2366
|
* @param {number} [size]
|
|
2367
|
+
* @param {string} [text]
|
|
2256
2368
|
* @param {TreatmentType} [type]
|
|
2257
2369
|
* @param {*} [options] Override http request option.
|
|
2258
2370
|
* @throws {RequiredError}
|
|
2259
2371
|
*/
|
|
2260
|
-
treatmentsGet: async (page?: number, size?: number, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2372
|
+
treatmentsGet: async (page?: number, size?: number, text?: string, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2261
2373
|
const localVarPath = `/treatments`;
|
|
2262
2374
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2263
2375
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2278,6 +2390,10 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2278
2390
|
localVarQueryParameter['size'] = size;
|
|
2279
2391
|
}
|
|
2280
2392
|
|
|
2393
|
+
if (text !== undefined) {
|
|
2394
|
+
localVarQueryParameter['text'] = text;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2281
2397
|
if (type !== undefined) {
|
|
2282
2398
|
localVarQueryParameter['type'] = type;
|
|
2283
2399
|
}
|
|
@@ -2460,12 +2576,13 @@ export const TreatmentResourceApiFp = function(configuration?: Configuration) {
|
|
|
2460
2576
|
* @summary Get Treatments
|
|
2461
2577
|
* @param {number} [page]
|
|
2462
2578
|
* @param {number} [size]
|
|
2579
|
+
* @param {string} [text]
|
|
2463
2580
|
* @param {TreatmentType} [type]
|
|
2464
2581
|
* @param {*} [options] Override http request option.
|
|
2465
2582
|
* @throws {RequiredError}
|
|
2466
2583
|
*/
|
|
2467
|
-
async treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2468
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, type, options);
|
|
2584
|
+
async treatmentsGet(page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2585
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options);
|
|
2469
2586
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2470
2587
|
const localVarOperationServerBasePath = operationServerMap['TreatmentResourceApi.treatmentsGet']?.[localVarOperationServerIndex]?.url;
|
|
2471
2588
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2540,7 +2657,7 @@ export const TreatmentResourceApiFactory = function (configuration?: Configurati
|
|
|
2540
2657
|
* @throws {RequiredError}
|
|
2541
2658
|
*/
|
|
2542
2659
|
treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
2543
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2660
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2544
2661
|
},
|
|
2545
2662
|
/**
|
|
2546
2663
|
*
|
|
@@ -2644,6 +2761,8 @@ export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
|
2644
2761
|
|
|
2645
2762
|
readonly size?: number
|
|
2646
2763
|
|
|
2764
|
+
readonly text?: string
|
|
2765
|
+
|
|
2647
2766
|
readonly type?: TreatmentType
|
|
2648
2767
|
}
|
|
2649
2768
|
|
|
@@ -2689,7 +2808,7 @@ export class TreatmentResourceApi extends BaseAPI implements TreatmentResourceAp
|
|
|
2689
2808
|
* @throws {RequiredError}
|
|
2690
2809
|
*/
|
|
2691
2810
|
public treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2692
|
-
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2811
|
+
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2693
2812
|
}
|
|
2694
2813
|
|
|
2695
2814
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -739,6 +739,16 @@ export declare class ClientResourceApi extends BaseAPI implements ClientResource
|
|
|
739
739
|
* ScheduleResourceApi - axios parameter creator
|
|
740
740
|
*/
|
|
741
741
|
export declare const ScheduleResourceApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @summary Available Schedule
|
|
745
|
+
* @param {number} treatmentId
|
|
746
|
+
* @param {string} startDate
|
|
747
|
+
* @param {string} endDate
|
|
748
|
+
* @param {*} [options] Override http request option.
|
|
749
|
+
* @throws {RequiredError}
|
|
750
|
+
*/
|
|
751
|
+
schedulesAvailableGet: (treatmentId: number, startDate: string, endDate: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
742
752
|
/**
|
|
743
753
|
*
|
|
744
754
|
* @summary Get Schedules
|
|
@@ -789,6 +799,16 @@ export declare const ScheduleResourceApiAxiosParamCreator: (configuration?: Conf
|
|
|
789
799
|
* ScheduleResourceApi - functional programming interface
|
|
790
800
|
*/
|
|
791
801
|
export declare const ScheduleResourceApiFp: (configuration?: Configuration) => {
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @summary Available Schedule
|
|
805
|
+
* @param {number} treatmentId
|
|
806
|
+
* @param {string} startDate
|
|
807
|
+
* @param {string} endDate
|
|
808
|
+
* @param {*} [options] Override http request option.
|
|
809
|
+
* @throws {RequiredError}
|
|
810
|
+
*/
|
|
811
|
+
schedulesAvailableGet(treatmentId: number, startDate: string, endDate: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
792
812
|
/**
|
|
793
813
|
*
|
|
794
814
|
* @summary Get Schedules
|
|
@@ -839,6 +859,14 @@ export declare const ScheduleResourceApiFp: (configuration?: Configuration) => {
|
|
|
839
859
|
* ScheduleResourceApi - factory interface
|
|
840
860
|
*/
|
|
841
861
|
export declare const ScheduleResourceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
862
|
+
/**
|
|
863
|
+
*
|
|
864
|
+
* @summary Available Schedule
|
|
865
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse>;
|
|
842
870
|
/**
|
|
843
871
|
*
|
|
844
872
|
* @summary Get Schedules
|
|
@@ -884,6 +912,14 @@ export declare const ScheduleResourceApiFactory: (configuration?: Configuration,
|
|
|
884
912
|
* ScheduleResourceApi - interface
|
|
885
913
|
*/
|
|
886
914
|
export interface ScheduleResourceApiInterface {
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @summary Available Schedule
|
|
918
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
919
|
+
* @param {*} [options] Override http request option.
|
|
920
|
+
* @throws {RequiredError}
|
|
921
|
+
*/
|
|
922
|
+
schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse>;
|
|
887
923
|
/**
|
|
888
924
|
*
|
|
889
925
|
* @summary Get Schedules
|
|
@@ -925,6 +961,14 @@ export interface ScheduleResourceApiInterface {
|
|
|
925
961
|
*/
|
|
926
962
|
schedulesPost(requestParameters: ScheduleResourceApiSchedulesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<ScheduleResponse>;
|
|
927
963
|
}
|
|
964
|
+
/**
|
|
965
|
+
* Request parameters for schedulesAvailableGet operation in ScheduleResourceApi.
|
|
966
|
+
*/
|
|
967
|
+
export interface ScheduleResourceApiSchedulesAvailableGetRequest {
|
|
968
|
+
readonly treatmentId: number;
|
|
969
|
+
readonly startDate: string;
|
|
970
|
+
readonly endDate: string;
|
|
971
|
+
}
|
|
928
972
|
/**
|
|
929
973
|
* Request parameters for schedulesGet operation in ScheduleResourceApi.
|
|
930
974
|
*/
|
|
@@ -964,6 +1008,14 @@ export interface ScheduleResourceApiSchedulesPostRequest {
|
|
|
964
1008
|
* ScheduleResourceApi - object-oriented interface
|
|
965
1009
|
*/
|
|
966
1010
|
export declare class ScheduleResourceApi extends BaseAPI implements ScheduleResourceApiInterface {
|
|
1011
|
+
/**
|
|
1012
|
+
*
|
|
1013
|
+
* @summary Available Schedule
|
|
1014
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1015
|
+
* @param {*} [options] Override http request option.
|
|
1016
|
+
* @throws {RequiredError}
|
|
1017
|
+
*/
|
|
1018
|
+
schedulesAvailableGet(requestParameters: ScheduleResourceApiSchedulesAvailableGetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PageResponse, any, {}>>;
|
|
967
1019
|
/**
|
|
968
1020
|
*
|
|
969
1021
|
* @summary Get Schedules
|
|
@@ -1275,11 +1327,12 @@ export declare const TreatmentResourceApiAxiosParamCreator: (configuration?: Con
|
|
|
1275
1327
|
* @summary Get Treatments
|
|
1276
1328
|
* @param {number} [page]
|
|
1277
1329
|
* @param {number} [size]
|
|
1330
|
+
* @param {string} [text]
|
|
1278
1331
|
* @param {TreatmentType} [type]
|
|
1279
1332
|
* @param {*} [options] Override http request option.
|
|
1280
1333
|
* @throws {RequiredError}
|
|
1281
1334
|
*/
|
|
1282
|
-
treatmentsGet: (page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1335
|
+
treatmentsGet: (page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1283
1336
|
/**
|
|
1284
1337
|
*
|
|
1285
1338
|
* @summary Delete Treatment By Id
|
|
@@ -1323,11 +1376,12 @@ export declare const TreatmentResourceApiFp: (configuration?: Configuration) =>
|
|
|
1323
1376
|
* @summary Get Treatments
|
|
1324
1377
|
* @param {number} [page]
|
|
1325
1378
|
* @param {number} [size]
|
|
1379
|
+
* @param {string} [text]
|
|
1326
1380
|
* @param {TreatmentType} [type]
|
|
1327
1381
|
* @param {*} [options] Override http request option.
|
|
1328
1382
|
* @throws {RequiredError}
|
|
1329
1383
|
*/
|
|
1330
|
-
treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1384
|
+
treatmentsGet(page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1331
1385
|
/**
|
|
1332
1386
|
*
|
|
1333
1387
|
* @summary Delete Treatment By Id
|
|
@@ -1458,6 +1512,7 @@ export interface TreatmentResourceApiInterface {
|
|
|
1458
1512
|
export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
1459
1513
|
readonly page?: number;
|
|
1460
1514
|
readonly size?: number;
|
|
1515
|
+
readonly text?: string;
|
|
1461
1516
|
readonly type?: TreatmentType;
|
|
1462
1517
|
}
|
|
1463
1518
|
/**
|
package/dist/api.js
CHANGED
|
@@ -1110,6 +1110,62 @@ exports.ClientResourceApi = ClientResourceApi;
|
|
|
1110
1110
|
var ScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
1111
1111
|
var _this = this;
|
|
1112
1112
|
return {
|
|
1113
|
+
/**
|
|
1114
|
+
*
|
|
1115
|
+
* @summary Available Schedule
|
|
1116
|
+
* @param {number} treatmentId
|
|
1117
|
+
* @param {string} startDate
|
|
1118
|
+
* @param {string} endDate
|
|
1119
|
+
* @param {*} [options] Override http request option.
|
|
1120
|
+
* @throws {RequiredError}
|
|
1121
|
+
*/
|
|
1122
|
+
schedulesAvailableGet: function (treatmentId_1, startDate_1, endDate_1) {
|
|
1123
|
+
var args_1 = [];
|
|
1124
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
1125
|
+
args_1[_i - 3] = arguments[_i];
|
|
1126
|
+
}
|
|
1127
|
+
return __awaiter(_this, __spreadArray([treatmentId_1, startDate_1, endDate_1], args_1, true), void 0, function (treatmentId, startDate, endDate, options) {
|
|
1128
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1129
|
+
if (options === void 0) { options = {}; }
|
|
1130
|
+
return __generator(this, function (_a) {
|
|
1131
|
+
// verify required parameter 'treatmentId' is not null or undefined
|
|
1132
|
+
(0, common_1.assertParamExists)('schedulesAvailableGet', 'treatmentId', treatmentId);
|
|
1133
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
1134
|
+
(0, common_1.assertParamExists)('schedulesAvailableGet', 'startDate', startDate);
|
|
1135
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
1136
|
+
(0, common_1.assertParamExists)('schedulesAvailableGet', 'endDate', endDate);
|
|
1137
|
+
localVarPath = "/schedules/available";
|
|
1138
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1139
|
+
if (configuration) {
|
|
1140
|
+
baseOptions = configuration.baseOptions;
|
|
1141
|
+
}
|
|
1142
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1143
|
+
localVarHeaderParameter = {};
|
|
1144
|
+
localVarQueryParameter = {};
|
|
1145
|
+
if (treatmentId !== undefined) {
|
|
1146
|
+
localVarQueryParameter['treatmentId'] = treatmentId;
|
|
1147
|
+
}
|
|
1148
|
+
if (startDate !== undefined) {
|
|
1149
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
1150
|
+
startDate.toISOString().substring(0, 10) :
|
|
1151
|
+
startDate;
|
|
1152
|
+
}
|
|
1153
|
+
if (endDate !== undefined) {
|
|
1154
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
1155
|
+
endDate.toISOString().substring(0, 10) :
|
|
1156
|
+
endDate;
|
|
1157
|
+
}
|
|
1158
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1159
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1160
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1161
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1162
|
+
return [2 /*return*/, {
|
|
1163
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1164
|
+
options: localVarRequestOptions,
|
|
1165
|
+
}];
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
},
|
|
1113
1169
|
/**
|
|
1114
1170
|
*
|
|
1115
1171
|
* @summary Get Schedules
|
|
@@ -1358,6 +1414,31 @@ exports.ScheduleResourceApiAxiosParamCreator = ScheduleResourceApiAxiosParamCrea
|
|
|
1358
1414
|
var ScheduleResourceApiFp = function (configuration) {
|
|
1359
1415
|
var localVarAxiosParamCreator = (0, exports.ScheduleResourceApiAxiosParamCreator)(configuration);
|
|
1360
1416
|
return {
|
|
1417
|
+
/**
|
|
1418
|
+
*
|
|
1419
|
+
* @summary Available Schedule
|
|
1420
|
+
* @param {number} treatmentId
|
|
1421
|
+
* @param {string} startDate
|
|
1422
|
+
* @param {string} endDate
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
schedulesAvailableGet: function (treatmentId, startDate, endDate, options) {
|
|
1427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1428
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1429
|
+
var _a, _b, _c;
|
|
1430
|
+
return __generator(this, function (_d) {
|
|
1431
|
+
switch (_d.label) {
|
|
1432
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesAvailableGet(treatmentId, startDate, endDate, options)];
|
|
1433
|
+
case 1:
|
|
1434
|
+
localVarAxiosArgs = _d.sent();
|
|
1435
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1436
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesAvailableGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1437
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1438
|
+
}
|
|
1439
|
+
});
|
|
1440
|
+
});
|
|
1441
|
+
},
|
|
1361
1442
|
/**
|
|
1362
1443
|
*
|
|
1363
1444
|
* @summary Get Schedules
|
|
@@ -1487,6 +1568,16 @@ exports.ScheduleResourceApiFp = ScheduleResourceApiFp;
|
|
|
1487
1568
|
var ScheduleResourceApiFactory = function (configuration, basePath, axios) {
|
|
1488
1569
|
var localVarFp = (0, exports.ScheduleResourceApiFp)(configuration);
|
|
1489
1570
|
return {
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @summary Available Schedule
|
|
1574
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1575
|
+
* @param {*} [options] Override http request option.
|
|
1576
|
+
* @throws {RequiredError}
|
|
1577
|
+
*/
|
|
1578
|
+
schedulesAvailableGet: function (requestParameters, options) {
|
|
1579
|
+
return localVarFp.schedulesAvailableGet(requestParameters.treatmentId, requestParameters.startDate, requestParameters.endDate, options).then(function (request) { return request(axios, basePath); });
|
|
1580
|
+
},
|
|
1490
1581
|
/**
|
|
1491
1582
|
*
|
|
1492
1583
|
* @summary Get Schedules
|
|
@@ -1548,6 +1639,17 @@ var ScheduleResourceApi = /** @class */ (function (_super) {
|
|
|
1548
1639
|
function ScheduleResourceApi() {
|
|
1549
1640
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1550
1641
|
}
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @summary Available Schedule
|
|
1645
|
+
* @param {ScheduleResourceApiSchedulesAvailableGetRequest} requestParameters Request parameters.
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
*/
|
|
1649
|
+
ScheduleResourceApi.prototype.schedulesAvailableGet = function (requestParameters, options) {
|
|
1650
|
+
var _this = this;
|
|
1651
|
+
return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesAvailableGet(requestParameters.treatmentId, requestParameters.startDate, requestParameters.endDate, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1652
|
+
};
|
|
1551
1653
|
/**
|
|
1552
1654
|
*
|
|
1553
1655
|
* @summary Get Schedules
|
|
@@ -2118,16 +2220,17 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2118
2220
|
* @summary Get Treatments
|
|
2119
2221
|
* @param {number} [page]
|
|
2120
2222
|
* @param {number} [size]
|
|
2223
|
+
* @param {string} [text]
|
|
2121
2224
|
* @param {TreatmentType} [type]
|
|
2122
2225
|
* @param {*} [options] Override http request option.
|
|
2123
2226
|
* @throws {RequiredError}
|
|
2124
2227
|
*/
|
|
2125
|
-
treatmentsGet: function (page_1, size_1, type_1) {
|
|
2228
|
+
treatmentsGet: function (page_1, size_1, text_1, type_1) {
|
|
2126
2229
|
var args_1 = [];
|
|
2127
|
-
for (var _i =
|
|
2128
|
-
args_1[_i -
|
|
2230
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
2231
|
+
args_1[_i - 4] = arguments[_i];
|
|
2129
2232
|
}
|
|
2130
|
-
return __awaiter(_this, __spreadArray([page_1, size_1, type_1], args_1, true), void 0, function (page, size, type, options) {
|
|
2233
|
+
return __awaiter(_this, __spreadArray([page_1, size_1, text_1, type_1], args_1, true), void 0, function (page, size, text, type, options) {
|
|
2131
2234
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2132
2235
|
if (options === void 0) { options = {}; }
|
|
2133
2236
|
return __generator(this, function (_a) {
|
|
@@ -2145,6 +2248,9 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2145
2248
|
if (size !== undefined) {
|
|
2146
2249
|
localVarQueryParameter['size'] = size;
|
|
2147
2250
|
}
|
|
2251
|
+
if (text !== undefined) {
|
|
2252
|
+
localVarQueryParameter['text'] = text;
|
|
2253
|
+
}
|
|
2148
2254
|
if (type !== undefined) {
|
|
2149
2255
|
localVarQueryParameter['type'] = type;
|
|
2150
2256
|
}
|
|
@@ -2360,17 +2466,18 @@ var TreatmentResourceApiFp = function (configuration) {
|
|
|
2360
2466
|
* @summary Get Treatments
|
|
2361
2467
|
* @param {number} [page]
|
|
2362
2468
|
* @param {number} [size]
|
|
2469
|
+
* @param {string} [text]
|
|
2363
2470
|
* @param {TreatmentType} [type]
|
|
2364
2471
|
* @param {*} [options] Override http request option.
|
|
2365
2472
|
* @throws {RequiredError}
|
|
2366
2473
|
*/
|
|
2367
|
-
treatmentsGet: function (page, size, type, options) {
|
|
2474
|
+
treatmentsGet: function (page, size, text, type, options) {
|
|
2368
2475
|
return __awaiter(this, void 0, void 0, function () {
|
|
2369
2476
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2370
2477
|
var _a, _b, _c;
|
|
2371
2478
|
return __generator(this, function (_d) {
|
|
2372
2479
|
switch (_d.label) {
|
|
2373
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, type, options)];
|
|
2480
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options)];
|
|
2374
2481
|
case 1:
|
|
2375
2482
|
localVarAxiosArgs = _d.sent();
|
|
2376
2483
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2491,7 +2598,7 @@ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
2491
2598
|
*/
|
|
2492
2599
|
treatmentsGet: function (requestParameters, options) {
|
|
2493
2600
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2494
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2601
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2495
2602
|
},
|
|
2496
2603
|
/**
|
|
2497
2604
|
*
|
|
@@ -2554,7 +2661,7 @@ var TreatmentResourceApi = /** @class */ (function (_super) {
|
|
|
2554
2661
|
TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
|
|
2555
2662
|
var _this = this;
|
|
2556
2663
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2557
|
-
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2664
|
+
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2558
2665
|
};
|
|
2559
2666
|
/**
|
|
2560
2667
|
*
|
|
@@ -4,12 +4,69 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**schedulesAvailableGet**](#schedulesavailableget) | **GET** /schedules/available | Available Schedule|
|
|
7
8
|
|[**schedulesGet**](#schedulesget) | **GET** /schedules | Get Schedules|
|
|
8
9
|
|[**schedulesIdDelete**](#schedulesiddelete) | **DELETE** /schedules/{id} | Delete Schedule By Id|
|
|
9
10
|
|[**schedulesIdGet**](#schedulesidget) | **GET** /schedules/{id} | Find Schedule By Id|
|
|
10
11
|
|[**schedulesIdPut**](#schedulesidput) | **PUT** /schedules/{id} | Update Schedule|
|
|
11
12
|
|[**schedulesPost**](#schedulespost) | **POST** /schedules | Create Schedule|
|
|
12
13
|
|
|
14
|
+
# **schedulesAvailableGet**
|
|
15
|
+
> PageResponse schedulesAvailableGet()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
ScheduleResourceApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from '@joao.sumi/qdule';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
28
|
+
|
|
29
|
+
let treatmentId: number; // (default to undefined)
|
|
30
|
+
let startDate: string; // (default to undefined)
|
|
31
|
+
let endDate: string; // (default to undefined)
|
|
32
|
+
|
|
33
|
+
const { status, data } = await apiInstance.schedulesAvailableGet(
|
|
34
|
+
treatmentId,
|
|
35
|
+
startDate,
|
|
36
|
+
endDate
|
|
37
|
+
);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Parameters
|
|
41
|
+
|
|
42
|
+
|Name | Type | Description | Notes|
|
|
43
|
+
|------------- | ------------- | ------------- | -------------|
|
|
44
|
+
| **treatmentId** | [**number**] | | defaults to undefined|
|
|
45
|
+
| **startDate** | [**string**] | | defaults to undefined|
|
|
46
|
+
| **endDate** | [**string**] | | defaults to undefined|
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
**PageResponse**
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
No authorization required
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: Not defined
|
|
60
|
+
- **Accept**: application/json
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**200** | Avaliable times to schedule | - |
|
|
67
|
+
|
|
68
|
+
[[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)
|
|
69
|
+
|
|
13
70
|
# **schedulesGet**
|
|
14
71
|
> PageResponse schedulesGet()
|
|
15
72
|
|
|
@@ -27,11 +27,13 @@ const apiInstance = new TreatmentResourceApi(configuration);
|
|
|
27
27
|
|
|
28
28
|
let page: number; // (optional) (default to undefined)
|
|
29
29
|
let size: number; // (optional) (default to undefined)
|
|
30
|
+
let text: string; // (optional) (default to undefined)
|
|
30
31
|
let type: TreatmentType; // (optional) (default to undefined)
|
|
31
32
|
|
|
32
33
|
const { status, data } = await apiInstance.treatmentsGet(
|
|
33
34
|
page,
|
|
34
35
|
size,
|
|
36
|
+
text,
|
|
35
37
|
type
|
|
36
38
|
);
|
|
37
39
|
```
|
|
@@ -42,6 +44,7 @@ const { status, data } = await apiInstance.treatmentsGet(
|
|
|
42
44
|
|------------- | ------------- | ------------- | -------------|
|
|
43
45
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
44
46
|
| **size** | [**number**] | | (optional) defaults to undefined|
|
|
47
|
+
| **text** | [**string**] | | (optional) defaults to undefined|
|
|
45
48
|
| **type** | **TreatmentType** | | (optional) defaults to undefined|
|
|
46
49
|
|
|
47
50
|
|