ob-bms-sdk 0.0.63 → 0.0.64

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/api/api.ts CHANGED
@@ -1576,6 +1576,66 @@ export interface ServiceRequestData {
1576
1576
  */
1577
1577
  'id': string;
1578
1578
  }
1579
+ /**
1580
+ *
1581
+ * @export
1582
+ * @interface ServiceRequestQuery
1583
+ */
1584
+ export interface ServiceRequestQuery {
1585
+ /**
1586
+ *
1587
+ * @type {string}
1588
+ * @memberof ServiceRequestQuery
1589
+ */
1590
+ 'requester_id'?: string;
1591
+ /**
1592
+ *
1593
+ * @type {string}
1594
+ * @memberof ServiceRequestQuery
1595
+ */
1596
+ 'order_by'?: string;
1597
+ /**
1598
+ *
1599
+ * @type {string}
1600
+ * @memberof ServiceRequestQuery
1601
+ */
1602
+ 'order_direction'?: string;
1603
+ /**
1604
+ *
1605
+ * @type {number}
1606
+ * @memberof ServiceRequestQuery
1607
+ */
1608
+ 'page_number'?: number;
1609
+ /**
1610
+ *
1611
+ * @type {number}
1612
+ * @memberof ServiceRequestQuery
1613
+ */
1614
+ 'page_size'?: number;
1615
+ /**
1616
+ *
1617
+ * @type {ServiceRequestStatus}
1618
+ * @memberof ServiceRequestQuery
1619
+ */
1620
+ 'status'?: ServiceRequestStatus;
1621
+ }
1622
+
1623
+
1624
+ /**
1625
+ *
1626
+ * @export
1627
+ * @enum {string}
1628
+ */
1629
+
1630
+ export const ServiceRequestStatus = {
1631
+ Submitted: 'submitted',
1632
+ InProgress: 'in_progress',
1633
+ Done: 'done'
1634
+ } as const;
1635
+
1636
+ export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
1637
+
1638
+
1579
1639
  /**
1580
1640
  *
1581
1641
  * @export
@@ -2965,6 +3025,92 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
2965
3025
 
2966
3026
  export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
2967
3027
 
3028
+ /**
3029
+ *
3030
+ * @export
3031
+ * @interface WrappedResponseServiceRequestData
3032
+ */
3033
+ export interface WrappedResponseServiceRequestData {
3034
+ /**
3035
+ *
3036
+ * @type {WrappedResponseServiceRequestDataData}
3037
+ * @memberof WrappedResponseServiceRequestData
3038
+ */
3039
+ 'data': WrappedResponseServiceRequestDataData | null;
3040
+ }
3041
+ /**
3042
+ *
3043
+ * @export
3044
+ * @interface WrappedResponseServiceRequestDataData
3045
+ */
3046
+ export interface WrappedResponseServiceRequestDataData {
3047
+ /**
3048
+ *
3049
+ * @type {string}
3050
+ * @memberof WrappedResponseServiceRequestDataData
3051
+ */
3052
+ 'updated_at': string;
3053
+ /**
3054
+ *
3055
+ * @type {string}
3056
+ * @memberof WrappedResponseServiceRequestDataData
3057
+ */
3058
+ 'created_at': string;
3059
+ /**
3060
+ *
3061
+ * @type {string}
3062
+ * @memberof WrappedResponseServiceRequestDataData
3063
+ */
3064
+ 'description': string;
3065
+ /**
3066
+ *
3067
+ * @type {string}
3068
+ * @memberof WrappedResponseServiceRequestDataData
3069
+ */
3070
+ 'status': string;
3071
+ /**
3072
+ *
3073
+ * @type {string}
3074
+ * @memberof WrappedResponseServiceRequestDataData
3075
+ */
3076
+ 'title': string;
3077
+ /**
3078
+ *
3079
+ * @type {string}
3080
+ * @memberof WrappedResponseServiceRequestDataData
3081
+ */
3082
+ 'requester_id': string;
3083
+ /**
3084
+ *
3085
+ * @type {IssueTypeData}
3086
+ * @memberof WrappedResponseServiceRequestDataData
3087
+ */
3088
+ 'issue_type': IssueTypeData;
3089
+ /**
3090
+ *
3091
+ * @type {FloorData}
3092
+ * @memberof WrappedResponseServiceRequestDataData
3093
+ */
3094
+ 'floor': FloorData;
3095
+ /**
3096
+ *
3097
+ * @type {TowerData}
3098
+ * @memberof WrappedResponseServiceRequestDataData
3099
+ */
3100
+ 'tower': TowerData;
3101
+ /**
3102
+ *
3103
+ * @type {Array<string>}
3104
+ * @memberof WrappedResponseServiceRequestDataData
3105
+ */
3106
+ 'image_url': Array<string>;
3107
+ /**
3108
+ *
3109
+ * @type {string}
3110
+ * @memberof WrappedResponseServiceRequestDataData
3111
+ */
3112
+ 'id': string;
3113
+ }
2968
3114
  /**
2969
3115
  *
2970
3116
  * @export
@@ -3839,10 +3985,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3839
3985
  /**
3840
3986
  *
3841
3987
  * @param {string} [requesterId]
3988
+ * @param {string} [orderBy]
3989
+ * @param {string} [orderDirection]
3990
+ * @param {number} [pageNumber]
3991
+ * @param {number} [pageSize]
3992
+ * @param {ServiceRequestStatus} [status]
3842
3993
  * @param {*} [options] Override http request option.
3843
3994
  * @throws {RequiredError}
3844
3995
  */
3845
- serviceRequestsIndex: async (requesterId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3996
+ serviceRequestsIndex: async (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3846
3997
  const localVarPath = `/service_requests`;
3847
3998
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3848
3999
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -3859,6 +4010,59 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
3859
4010
  localVarQueryParameter['requester_id'] = requesterId;
3860
4011
  }
3861
4012
 
4013
+ if (orderBy !== undefined) {
4014
+ localVarQueryParameter['order_by'] = orderBy;
4015
+ }
4016
+
4017
+ if (orderDirection !== undefined) {
4018
+ localVarQueryParameter['order_direction'] = orderDirection;
4019
+ }
4020
+
4021
+ if (pageNumber !== undefined) {
4022
+ localVarQueryParameter['page_number'] = pageNumber;
4023
+ }
4024
+
4025
+ if (pageSize !== undefined) {
4026
+ localVarQueryParameter['page_size'] = pageSize;
4027
+ }
4028
+
4029
+ if (status !== undefined) {
4030
+ localVarQueryParameter['status'] = status;
4031
+ }
4032
+
4033
+
4034
+
4035
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4036
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4037
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4038
+
4039
+ return {
4040
+ url: toPathString(localVarUrlObj),
4041
+ options: localVarRequestOptions,
4042
+ };
4043
+ },
4044
+ /**
4045
+ *
4046
+ * @param {string} id
4047
+ * @param {*} [options] Override http request option.
4048
+ * @throws {RequiredError}
4049
+ */
4050
+ serviceRequestsShow: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
4051
+ // verify required parameter 'id' is not null or undefined
4052
+ assertParamExists('serviceRequestsShow', 'id', id)
4053
+ const localVarPath = `/service_requests/{id}`
4054
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4056
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4057
+ let baseOptions;
4058
+ if (configuration) {
4059
+ baseOptions = configuration.baseOptions;
4060
+ }
4061
+
4062
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4063
+ const localVarHeaderParameter = {} as any;
4064
+ const localVarQueryParameter = {} as any;
4065
+
3862
4066
 
3863
4067
 
3864
4068
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -4254,11 +4458,26 @@ export const DefaultApiFp = function(configuration?: Configuration) {
4254
4458
  /**
4255
4459
  *
4256
4460
  * @param {string} [requesterId]
4461
+ * @param {string} [orderBy]
4462
+ * @param {string} [orderDirection]
4463
+ * @param {number} [pageNumber]
4464
+ * @param {number} [pageSize]
4465
+ * @param {ServiceRequestStatus} [status]
4466
+ * @param {*} [options] Override http request option.
4467
+ * @throws {RequiredError}
4468
+ */
4469
+ async serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
4470
+ const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
4471
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4472
+ },
4473
+ /**
4474
+ *
4475
+ * @param {string} id
4257
4476
  * @param {*} [options] Override http request option.
4258
4477
  * @throws {RequiredError}
4259
4478
  */
4260
- async serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
4261
- const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, options);
4479
+ async serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>> {
4480
+ const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsShow(id, options);
4262
4481
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4263
4482
  },
4264
4483
  /**
@@ -4506,11 +4725,25 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
4506
4725
  /**
4507
4726
  *
4508
4727
  * @param {string} [requesterId]
4728
+ * @param {string} [orderBy]
4729
+ * @param {string} [orderDirection]
4730
+ * @param {number} [pageNumber]
4731
+ * @param {number} [pageSize]
4732
+ * @param {ServiceRequestStatus} [status]
4509
4733
  * @param {*} [options] Override http request option.
4510
4734
  * @throws {RequiredError}
4511
4735
  */
4512
- serviceRequestsIndex(requesterId?: string, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
4513
- return localVarFp.serviceRequestsIndex(requesterId, options).then((request) => request(axios, basePath));
4736
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
4737
+ return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
4738
+ },
4739
+ /**
4740
+ *
4741
+ * @param {string} id
4742
+ * @param {*} [options] Override http request option.
4743
+ * @throws {RequiredError}
4744
+ */
4745
+ serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData> {
4746
+ return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
4514
4747
  },
4515
4748
  /**
4516
4749
  *
@@ -4790,12 +5023,28 @@ export class DefaultApi extends BaseAPI {
4790
5023
  /**
4791
5024
  *
4792
5025
  * @param {string} [requesterId]
5026
+ * @param {string} [orderBy]
5027
+ * @param {string} [orderDirection]
5028
+ * @param {number} [pageNumber]
5029
+ * @param {number} [pageSize]
5030
+ * @param {ServiceRequestStatus} [status]
5031
+ * @param {*} [options] Override http request option.
5032
+ * @throws {RequiredError}
5033
+ * @memberof DefaultApi
5034
+ */
5035
+ public serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) {
5036
+ return DefaultApiFp(this.configuration).serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(this.axios, this.basePath));
5037
+ }
5038
+
5039
+ /**
5040
+ *
5041
+ * @param {string} id
4793
5042
  * @param {*} [options] Override http request option.
4794
5043
  * @throws {RequiredError}
4795
5044
  * @memberof DefaultApi
4796
5045
  */
4797
- public serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig) {
4798
- return DefaultApiFp(this.configuration).serviceRequestsIndex(requesterId, options).then((request) => request(this.axios, this.basePath));
5046
+ public serviceRequestsShow(id: string, options?: AxiosRequestConfig) {
5047
+ return DefaultApiFp(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
4799
5048
  }
4800
5049
 
4801
5050
  /**
package/dist/api/api.d.ts CHANGED
@@ -1559,6 +1559,60 @@ export interface ServiceRequestData {
1559
1559
  */
1560
1560
  'id': string;
1561
1561
  }
1562
+ /**
1563
+ *
1564
+ * @export
1565
+ * @interface ServiceRequestQuery
1566
+ */
1567
+ export interface ServiceRequestQuery {
1568
+ /**
1569
+ *
1570
+ * @type {string}
1571
+ * @memberof ServiceRequestQuery
1572
+ */
1573
+ 'requester_id'?: string;
1574
+ /**
1575
+ *
1576
+ * @type {string}
1577
+ * @memberof ServiceRequestQuery
1578
+ */
1579
+ 'order_by'?: string;
1580
+ /**
1581
+ *
1582
+ * @type {string}
1583
+ * @memberof ServiceRequestQuery
1584
+ */
1585
+ 'order_direction'?: string;
1586
+ /**
1587
+ *
1588
+ * @type {number}
1589
+ * @memberof ServiceRequestQuery
1590
+ */
1591
+ 'page_number'?: number;
1592
+ /**
1593
+ *
1594
+ * @type {number}
1595
+ * @memberof ServiceRequestQuery
1596
+ */
1597
+ 'page_size'?: number;
1598
+ /**
1599
+ *
1600
+ * @type {ServiceRequestStatus}
1601
+ * @memberof ServiceRequestQuery
1602
+ */
1603
+ 'status'?: ServiceRequestStatus;
1604
+ }
1605
+ /**
1606
+ *
1607
+ * @export
1608
+ * @enum {string}
1609
+ */
1610
+ export declare const ServiceRequestStatus: {
1611
+ readonly Submitted: "submitted";
1612
+ readonly InProgress: "in_progress";
1613
+ readonly Done: "done";
1614
+ };
1615
+ export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
1562
1616
  /**
1563
1617
  *
1564
1618
  * @export
@@ -2939,6 +2993,92 @@ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
2939
2993
  readonly Confirmed: "confirmed";
2940
2994
  };
2941
2995
  export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
2996
+ /**
2997
+ *
2998
+ * @export
2999
+ * @interface WrappedResponseServiceRequestData
3000
+ */
3001
+ export interface WrappedResponseServiceRequestData {
3002
+ /**
3003
+ *
3004
+ * @type {WrappedResponseServiceRequestDataData}
3005
+ * @memberof WrappedResponseServiceRequestData
3006
+ */
3007
+ 'data': WrappedResponseServiceRequestDataData | null;
3008
+ }
3009
+ /**
3010
+ *
3011
+ * @export
3012
+ * @interface WrappedResponseServiceRequestDataData
3013
+ */
3014
+ export interface WrappedResponseServiceRequestDataData {
3015
+ /**
3016
+ *
3017
+ * @type {string}
3018
+ * @memberof WrappedResponseServiceRequestDataData
3019
+ */
3020
+ 'updated_at': string;
3021
+ /**
3022
+ *
3023
+ * @type {string}
3024
+ * @memberof WrappedResponseServiceRequestDataData
3025
+ */
3026
+ 'created_at': string;
3027
+ /**
3028
+ *
3029
+ * @type {string}
3030
+ * @memberof WrappedResponseServiceRequestDataData
3031
+ */
3032
+ 'description': string;
3033
+ /**
3034
+ *
3035
+ * @type {string}
3036
+ * @memberof WrappedResponseServiceRequestDataData
3037
+ */
3038
+ 'status': string;
3039
+ /**
3040
+ *
3041
+ * @type {string}
3042
+ * @memberof WrappedResponseServiceRequestDataData
3043
+ */
3044
+ 'title': string;
3045
+ /**
3046
+ *
3047
+ * @type {string}
3048
+ * @memberof WrappedResponseServiceRequestDataData
3049
+ */
3050
+ 'requester_id': string;
3051
+ /**
3052
+ *
3053
+ * @type {IssueTypeData}
3054
+ * @memberof WrappedResponseServiceRequestDataData
3055
+ */
3056
+ 'issue_type': IssueTypeData;
3057
+ /**
3058
+ *
3059
+ * @type {FloorData}
3060
+ * @memberof WrappedResponseServiceRequestDataData
3061
+ */
3062
+ 'floor': FloorData;
3063
+ /**
3064
+ *
3065
+ * @type {TowerData}
3066
+ * @memberof WrappedResponseServiceRequestDataData
3067
+ */
3068
+ 'tower': TowerData;
3069
+ /**
3070
+ *
3071
+ * @type {Array<string>}
3072
+ * @memberof WrappedResponseServiceRequestDataData
3073
+ */
3074
+ 'image_url': Array<string>;
3075
+ /**
3076
+ *
3077
+ * @type {string}
3078
+ * @memberof WrappedResponseServiceRequestDataData
3079
+ */
3080
+ 'id': string;
3081
+ }
2942
3082
  /**
2943
3083
  *
2944
3084
  * @export
@@ -3244,10 +3384,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
3244
3384
  /**
3245
3385
  *
3246
3386
  * @param {string} [requesterId]
3387
+ * @param {string} [orderBy]
3388
+ * @param {string} [orderDirection]
3389
+ * @param {number} [pageNumber]
3390
+ * @param {number} [pageSize]
3391
+ * @param {ServiceRequestStatus} [status]
3247
3392
  * @param {*} [options] Override http request option.
3248
3393
  * @throws {RequiredError}
3249
3394
  */
3250
- serviceRequestsIndex: (requesterId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3395
+ serviceRequestsIndex: (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3396
+ /**
3397
+ *
3398
+ * @param {string} id
3399
+ * @param {*} [options] Override http request option.
3400
+ * @throws {RequiredError}
3401
+ */
3402
+ serviceRequestsShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
3251
3403
  /**
3252
3404
  *
3253
3405
  * @param {SyncBody} syncBody
@@ -3436,10 +3588,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
3436
3588
  /**
3437
3589
  *
3438
3590
  * @param {string} [requesterId]
3591
+ * @param {string} [orderBy]
3592
+ * @param {string} [orderDirection]
3593
+ * @param {number} [pageNumber]
3594
+ * @param {number} [pageSize]
3595
+ * @param {ServiceRequestStatus} [status]
3439
3596
  * @param {*} [options] Override http request option.
3440
3597
  * @throws {RequiredError}
3441
3598
  */
3442
- serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>>;
3599
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>>;
3600
+ /**
3601
+ *
3602
+ * @param {string} id
3603
+ * @param {*} [options] Override http request option.
3604
+ * @throws {RequiredError}
3605
+ */
3606
+ serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>>;
3443
3607
  /**
3444
3608
  *
3445
3609
  * @param {SyncBody} syncBody
@@ -3628,10 +3792,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
3628
3792
  /**
3629
3793
  *
3630
3794
  * @param {string} [requesterId]
3795
+ * @param {string} [orderBy]
3796
+ * @param {string} [orderDirection]
3797
+ * @param {number} [pageNumber]
3798
+ * @param {number} [pageSize]
3799
+ * @param {ServiceRequestStatus} [status]
3631
3800
  * @param {*} [options] Override http request option.
3632
3801
  * @throws {RequiredError}
3633
3802
  */
3634
- serviceRequestsIndex(requesterId?: string, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
3803
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
3804
+ /**
3805
+ *
3806
+ * @param {string} id
3807
+ * @param {*} [options] Override http request option.
3808
+ * @throws {RequiredError}
3809
+ */
3810
+ serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData>;
3635
3811
  /**
3636
3812
  *
3637
3813
  * @param {SyncBody} syncBody
@@ -3841,11 +4017,24 @@ export declare class DefaultApi extends BaseAPI {
3841
4017
  /**
3842
4018
  *
3843
4019
  * @param {string} [requesterId]
4020
+ * @param {string} [orderBy]
4021
+ * @param {string} [orderDirection]
4022
+ * @param {number} [pageNumber]
4023
+ * @param {number} [pageSize]
4024
+ * @param {ServiceRequestStatus} [status]
4025
+ * @param {*} [options] Override http request option.
4026
+ * @throws {RequiredError}
4027
+ * @memberof DefaultApi
4028
+ */
4029
+ serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestResponse, any>>;
4030
+ /**
4031
+ *
4032
+ * @param {string} id
3844
4033
  * @param {*} [options] Override http request option.
3845
4034
  * @throws {RequiredError}
3846
4035
  * @memberof DefaultApi
3847
4036
  */
3848
- serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestResponse, any>>;
4037
+ serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestData, any>>;
3849
4038
  /**
3850
4039
  *
3851
4040
  * @param {SyncBody} syncBody
package/dist/api/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.SensorType = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
28
+ exports.ParkingTicketsIndexTypeEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.WrappedResponsePassConsentResponseDataStatusEnum = exports.WrappedResponseNullDataEnum = exports.ShowPassResponseStatusEnum = exports.ServiceRequestStatus = exports.SensorType = exports.PassDataStatusEnum = exports.PassConsentResponseStatusEnum = exports.ParkingTicketsIndexQueryTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -57,6 +57,16 @@ exports.SensorType = {
57
57
  Temperature: 'temperature',
58
58
  Humidity: 'humidity'
59
59
  };
60
+ /**
61
+ *
62
+ * @export
63
+ * @enum {string}
64
+ */
65
+ exports.ServiceRequestStatus = {
66
+ Submitted: 'submitted',
67
+ InProgress: 'in_progress',
68
+ Done: 'done'
69
+ };
60
70
  exports.ShowPassResponseStatusEnum = {
61
71
  Pending: 'pending',
62
72
  Confirmed: 'confirmed'
@@ -671,10 +681,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
671
681
  /**
672
682
  *
673
683
  * @param {string} [requesterId]
684
+ * @param {string} [orderBy]
685
+ * @param {string} [orderDirection]
686
+ * @param {number} [pageNumber]
687
+ * @param {number} [pageSize]
688
+ * @param {ServiceRequestStatus} [status]
674
689
  * @param {*} [options] Override http request option.
675
690
  * @throws {RequiredError}
676
691
  */
677
- serviceRequestsIndex: (requesterId, options = {}) => __awaiter(this, void 0, void 0, function* () {
692
+ serviceRequestsIndex: (requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options = {}) => __awaiter(this, void 0, void 0, function* () {
678
693
  const localVarPath = `/service_requests`;
679
694
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
680
695
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -688,6 +703,49 @@ const DefaultApiAxiosParamCreator = function (configuration) {
688
703
  if (requesterId !== undefined) {
689
704
  localVarQueryParameter['requester_id'] = requesterId;
690
705
  }
706
+ if (orderBy !== undefined) {
707
+ localVarQueryParameter['order_by'] = orderBy;
708
+ }
709
+ if (orderDirection !== undefined) {
710
+ localVarQueryParameter['order_direction'] = orderDirection;
711
+ }
712
+ if (pageNumber !== undefined) {
713
+ localVarQueryParameter['page_number'] = pageNumber;
714
+ }
715
+ if (pageSize !== undefined) {
716
+ localVarQueryParameter['page_size'] = pageSize;
717
+ }
718
+ if (status !== undefined) {
719
+ localVarQueryParameter['status'] = status;
720
+ }
721
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
724
+ return {
725
+ url: (0, common_1.toPathString)(localVarUrlObj),
726
+ options: localVarRequestOptions,
727
+ };
728
+ }),
729
+ /**
730
+ *
731
+ * @param {string} id
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ serviceRequestsShow: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
736
+ // verify required parameter 'id' is not null or undefined
737
+ (0, common_1.assertParamExists)('serviceRequestsShow', 'id', id);
738
+ const localVarPath = `/service_requests/{id}`
739
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
740
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
741
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
742
+ let baseOptions;
743
+ if (configuration) {
744
+ baseOptions = configuration.baseOptions;
745
+ }
746
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
747
+ const localVarHeaderParameter = {};
748
+ const localVarQueryParameter = {};
691
749
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
692
750
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
751
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1090,12 +1148,29 @@ const DefaultApiFp = function (configuration) {
1090
1148
  /**
1091
1149
  *
1092
1150
  * @param {string} [requesterId]
1151
+ * @param {string} [orderBy]
1152
+ * @param {string} [orderDirection]
1153
+ * @param {number} [pageNumber]
1154
+ * @param {number} [pageSize]
1155
+ * @param {ServiceRequestStatus} [status]
1093
1156
  * @param {*} [options] Override http request option.
1094
1157
  * @throws {RequiredError}
1095
1158
  */
1096
- serviceRequestsIndex(requesterId, options) {
1159
+ serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
1097
1160
  return __awaiter(this, void 0, void 0, function* () {
1098
- const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsIndex(requesterId, options);
1161
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
1162
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1163
+ });
1164
+ },
1165
+ /**
1166
+ *
1167
+ * @param {string} id
1168
+ * @param {*} [options] Override http request option.
1169
+ * @throws {RequiredError}
1170
+ */
1171
+ serviceRequestsShow(id, options) {
1172
+ return __awaiter(this, void 0, void 0, function* () {
1173
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.serviceRequestsShow(id, options);
1099
1174
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
1100
1175
  });
1101
1176
  },
@@ -1354,11 +1429,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
1354
1429
  /**
1355
1430
  *
1356
1431
  * @param {string} [requesterId]
1432
+ * @param {string} [orderBy]
1433
+ * @param {string} [orderDirection]
1434
+ * @param {number} [pageNumber]
1435
+ * @param {number} [pageSize]
1436
+ * @param {ServiceRequestStatus} [status]
1357
1437
  * @param {*} [options] Override http request option.
1358
1438
  * @throws {RequiredError}
1359
1439
  */
1360
- serviceRequestsIndex(requesterId, options) {
1361
- return localVarFp.serviceRequestsIndex(requesterId, options).then((request) => request(axios, basePath));
1440
+ serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
1441
+ return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
1442
+ },
1443
+ /**
1444
+ *
1445
+ * @param {string} id
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ */
1449
+ serviceRequestsShow(id, options) {
1450
+ return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
1362
1451
  },
1363
1452
  /**
1364
1453
  *
@@ -1619,12 +1708,27 @@ class DefaultApi extends base_1.BaseAPI {
1619
1708
  /**
1620
1709
  *
1621
1710
  * @param {string} [requesterId]
1711
+ * @param {string} [orderBy]
1712
+ * @param {string} [orderDirection]
1713
+ * @param {number} [pageNumber]
1714
+ * @param {number} [pageSize]
1715
+ * @param {ServiceRequestStatus} [status]
1716
+ * @param {*} [options] Override http request option.
1717
+ * @throws {RequiredError}
1718
+ * @memberof DefaultApi
1719
+ */
1720
+ serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options) {
1721
+ return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(this.axios, this.basePath));
1722
+ }
1723
+ /**
1724
+ *
1725
+ * @param {string} id
1622
1726
  * @param {*} [options] Override http request option.
1623
1727
  * @throws {RequiredError}
1624
1728
  * @memberof DefaultApi
1625
1729
  */
1626
- serviceRequestsIndex(requesterId, options) {
1627
- return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsIndex(requesterId, options).then((request) => request(this.axios, this.basePath));
1730
+ serviceRequestsShow(id, options) {
1731
+ return (0, exports.DefaultApiFp)(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
1628
1732
  }
1629
1733
  /**
1630
1734
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ob-bms-sdk",
3
- "version": "0.0.63",
3
+ "version": "0.0.64",
4
4
  "description": "API interfaces for OB BMS",
5
5
  "main": "./dist/index.js",
6
6
  "license": "MIT"
package/test.ts DELETED
@@ -1,15 +0,0 @@
1
- import * as OB_BMS_SDK from './index';
2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ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.tfqYJop4iJNlIbBVztf7DFfVhaYAFnUGDhLjik2OGA4',
7
- );
8
- (async () => {
9
- try {
10
- const res = await OB_BMS_SDK.client.sensorsIndex('mock');
11
- console.dir({ x: res.data.data[0] }, { depth: null });
12
- } catch (err) {
13
- console.log(err);
14
- }
15
- })();