ob-bms-sdk 0.0.63 → 0.0.65
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 +329 -7
- package/dist/api/api.d.ts +266 -4
- package/dist/api/api.js +112 -8
- package/package.json +1 -1
- package/test.ts +0 -15
package/api/api.ts
CHANGED
|
@@ -764,6 +764,12 @@ export interface MemberIndexInterface {
|
|
|
764
764
|
* @memberof MemberIndexInterface
|
|
765
765
|
*/
|
|
766
766
|
'redemption_authorized': boolean;
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @type {Tenant}
|
|
770
|
+
* @memberof MemberIndexInterface
|
|
771
|
+
*/
|
|
772
|
+
'tenant': Tenant | null;
|
|
767
773
|
}
|
|
768
774
|
/**
|
|
769
775
|
*
|
|
@@ -1576,6 +1582,66 @@ export interface ServiceRequestData {
|
|
|
1576
1582
|
*/
|
|
1577
1583
|
'id': string;
|
|
1578
1584
|
}
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @export
|
|
1588
|
+
* @interface ServiceRequestQuery
|
|
1589
|
+
*/
|
|
1590
|
+
export interface ServiceRequestQuery {
|
|
1591
|
+
/**
|
|
1592
|
+
*
|
|
1593
|
+
* @type {string}
|
|
1594
|
+
* @memberof ServiceRequestQuery
|
|
1595
|
+
*/
|
|
1596
|
+
'requester_id'?: string;
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @type {string}
|
|
1600
|
+
* @memberof ServiceRequestQuery
|
|
1601
|
+
*/
|
|
1602
|
+
'order_by'?: string;
|
|
1603
|
+
/**
|
|
1604
|
+
*
|
|
1605
|
+
* @type {string}
|
|
1606
|
+
* @memberof ServiceRequestQuery
|
|
1607
|
+
*/
|
|
1608
|
+
'order_direction'?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
*
|
|
1611
|
+
* @type {number}
|
|
1612
|
+
* @memberof ServiceRequestQuery
|
|
1613
|
+
*/
|
|
1614
|
+
'page_number'?: number;
|
|
1615
|
+
/**
|
|
1616
|
+
*
|
|
1617
|
+
* @type {number}
|
|
1618
|
+
* @memberof ServiceRequestQuery
|
|
1619
|
+
*/
|
|
1620
|
+
'page_size'?: number;
|
|
1621
|
+
/**
|
|
1622
|
+
*
|
|
1623
|
+
* @type {ServiceRequestStatus}
|
|
1624
|
+
* @memberof ServiceRequestQuery
|
|
1625
|
+
*/
|
|
1626
|
+
'status'?: ServiceRequestStatus;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
*
|
|
1632
|
+
* @export
|
|
1633
|
+
* @enum {string}
|
|
1634
|
+
*/
|
|
1635
|
+
|
|
1636
|
+
export const ServiceRequestStatus = {
|
|
1637
|
+
Submitted: 'submitted',
|
|
1638
|
+
InProgress: 'in_progress',
|
|
1639
|
+
Done: 'done'
|
|
1640
|
+
} as const;
|
|
1641
|
+
|
|
1642
|
+
export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
|
|
1643
|
+
|
|
1644
|
+
|
|
1579
1645
|
/**
|
|
1580
1646
|
*
|
|
1581
1647
|
* @export
|
|
@@ -1868,6 +1934,73 @@ export interface SyncResultSyncJobErrorInner {
|
|
|
1868
1934
|
*/
|
|
1869
1935
|
'type': string;
|
|
1870
1936
|
}
|
|
1937
|
+
/**
|
|
1938
|
+
*
|
|
1939
|
+
* @export
|
|
1940
|
+
* @interface Tenant
|
|
1941
|
+
*/
|
|
1942
|
+
export interface Tenant {
|
|
1943
|
+
/**
|
|
1944
|
+
*
|
|
1945
|
+
* @type {string}
|
|
1946
|
+
* @memberof Tenant
|
|
1947
|
+
*/
|
|
1948
|
+
'id'?: string;
|
|
1949
|
+
/**
|
|
1950
|
+
*
|
|
1951
|
+
* @type {string}
|
|
1952
|
+
* @memberof Tenant
|
|
1953
|
+
*/
|
|
1954
|
+
'uid'?: string;
|
|
1955
|
+
/**
|
|
1956
|
+
*
|
|
1957
|
+
* @type {string}
|
|
1958
|
+
* @memberof Tenant
|
|
1959
|
+
*/
|
|
1960
|
+
'name'?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
*
|
|
1963
|
+
* @type {PrismaJsonValue}
|
|
1964
|
+
* @memberof Tenant
|
|
1965
|
+
*/
|
|
1966
|
+
'display_name'?: PrismaJsonValue | null;
|
|
1967
|
+
/**
|
|
1968
|
+
*
|
|
1969
|
+
* @type {string}
|
|
1970
|
+
* @memberof Tenant
|
|
1971
|
+
*/
|
|
1972
|
+
'email'?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
*
|
|
1975
|
+
* @type {string}
|
|
1976
|
+
* @memberof Tenant
|
|
1977
|
+
*/
|
|
1978
|
+
'phone_number'?: string;
|
|
1979
|
+
/**
|
|
1980
|
+
*
|
|
1981
|
+
* @type {string}
|
|
1982
|
+
* @memberof Tenant
|
|
1983
|
+
*/
|
|
1984
|
+
'address'?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
*
|
|
1987
|
+
* @type {PrismaJsonValue}
|
|
1988
|
+
* @memberof Tenant
|
|
1989
|
+
*/
|
|
1990
|
+
'metadata'?: PrismaJsonValue | null;
|
|
1991
|
+
/**
|
|
1992
|
+
*
|
|
1993
|
+
* @type {string}
|
|
1994
|
+
* @memberof Tenant
|
|
1995
|
+
*/
|
|
1996
|
+
'created_at'?: string;
|
|
1997
|
+
/**
|
|
1998
|
+
*
|
|
1999
|
+
* @type {string}
|
|
2000
|
+
* @memberof Tenant
|
|
2001
|
+
*/
|
|
2002
|
+
'updated_at'?: string;
|
|
2003
|
+
}
|
|
1871
2004
|
/**
|
|
1872
2005
|
*
|
|
1873
2006
|
* @export
|
|
@@ -2965,6 +3098,92 @@ export const WrappedResponsePassConsentResponseDataStatusEnum = {
|
|
|
2965
3098
|
|
|
2966
3099
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
2967
3100
|
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @export
|
|
3104
|
+
* @interface WrappedResponseServiceRequestData
|
|
3105
|
+
*/
|
|
3106
|
+
export interface WrappedResponseServiceRequestData {
|
|
3107
|
+
/**
|
|
3108
|
+
*
|
|
3109
|
+
* @type {WrappedResponseServiceRequestDataData}
|
|
3110
|
+
* @memberof WrappedResponseServiceRequestData
|
|
3111
|
+
*/
|
|
3112
|
+
'data': WrappedResponseServiceRequestDataData | null;
|
|
3113
|
+
}
|
|
3114
|
+
/**
|
|
3115
|
+
*
|
|
3116
|
+
* @export
|
|
3117
|
+
* @interface WrappedResponseServiceRequestDataData
|
|
3118
|
+
*/
|
|
3119
|
+
export interface WrappedResponseServiceRequestDataData {
|
|
3120
|
+
/**
|
|
3121
|
+
*
|
|
3122
|
+
* @type {string}
|
|
3123
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3124
|
+
*/
|
|
3125
|
+
'updated_at': string;
|
|
3126
|
+
/**
|
|
3127
|
+
*
|
|
3128
|
+
* @type {string}
|
|
3129
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3130
|
+
*/
|
|
3131
|
+
'created_at': string;
|
|
3132
|
+
/**
|
|
3133
|
+
*
|
|
3134
|
+
* @type {string}
|
|
3135
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3136
|
+
*/
|
|
3137
|
+
'description': string;
|
|
3138
|
+
/**
|
|
3139
|
+
*
|
|
3140
|
+
* @type {string}
|
|
3141
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3142
|
+
*/
|
|
3143
|
+
'status': string;
|
|
3144
|
+
/**
|
|
3145
|
+
*
|
|
3146
|
+
* @type {string}
|
|
3147
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3148
|
+
*/
|
|
3149
|
+
'title': string;
|
|
3150
|
+
/**
|
|
3151
|
+
*
|
|
3152
|
+
* @type {string}
|
|
3153
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3154
|
+
*/
|
|
3155
|
+
'requester_id': string;
|
|
3156
|
+
/**
|
|
3157
|
+
*
|
|
3158
|
+
* @type {IssueTypeData}
|
|
3159
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3160
|
+
*/
|
|
3161
|
+
'issue_type': IssueTypeData;
|
|
3162
|
+
/**
|
|
3163
|
+
*
|
|
3164
|
+
* @type {FloorData}
|
|
3165
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3166
|
+
*/
|
|
3167
|
+
'floor': FloorData;
|
|
3168
|
+
/**
|
|
3169
|
+
*
|
|
3170
|
+
* @type {TowerData}
|
|
3171
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3172
|
+
*/
|
|
3173
|
+
'tower': TowerData;
|
|
3174
|
+
/**
|
|
3175
|
+
*
|
|
3176
|
+
* @type {Array<string>}
|
|
3177
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3178
|
+
*/
|
|
3179
|
+
'image_url': Array<string>;
|
|
3180
|
+
/**
|
|
3181
|
+
*
|
|
3182
|
+
* @type {string}
|
|
3183
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3184
|
+
*/
|
|
3185
|
+
'id': string;
|
|
3186
|
+
}
|
|
2968
3187
|
/**
|
|
2969
3188
|
*
|
|
2970
3189
|
* @export
|
|
@@ -3839,10 +4058,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3839
4058
|
/**
|
|
3840
4059
|
*
|
|
3841
4060
|
* @param {string} [requesterId]
|
|
4061
|
+
* @param {string} [orderBy]
|
|
4062
|
+
* @param {string} [orderDirection]
|
|
4063
|
+
* @param {number} [pageNumber]
|
|
4064
|
+
* @param {number} [pageSize]
|
|
4065
|
+
* @param {ServiceRequestStatus} [status]
|
|
3842
4066
|
* @param {*} [options] Override http request option.
|
|
3843
4067
|
* @throws {RequiredError}
|
|
3844
4068
|
*/
|
|
3845
|
-
serviceRequestsIndex: async (requesterId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4069
|
+
serviceRequestsIndex: async (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3846
4070
|
const localVarPath = `/service_requests`;
|
|
3847
4071
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3848
4072
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3859,6 +4083,59 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
3859
4083
|
localVarQueryParameter['requester_id'] = requesterId;
|
|
3860
4084
|
}
|
|
3861
4085
|
|
|
4086
|
+
if (orderBy !== undefined) {
|
|
4087
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
4088
|
+
}
|
|
4089
|
+
|
|
4090
|
+
if (orderDirection !== undefined) {
|
|
4091
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
4092
|
+
}
|
|
4093
|
+
|
|
4094
|
+
if (pageNumber !== undefined) {
|
|
4095
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
4096
|
+
}
|
|
4097
|
+
|
|
4098
|
+
if (pageSize !== undefined) {
|
|
4099
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
4100
|
+
}
|
|
4101
|
+
|
|
4102
|
+
if (status !== undefined) {
|
|
4103
|
+
localVarQueryParameter['status'] = status;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4111
|
+
|
|
4112
|
+
return {
|
|
4113
|
+
url: toPathString(localVarUrlObj),
|
|
4114
|
+
options: localVarRequestOptions,
|
|
4115
|
+
};
|
|
4116
|
+
},
|
|
4117
|
+
/**
|
|
4118
|
+
*
|
|
4119
|
+
* @param {string} id
|
|
4120
|
+
* @param {*} [options] Override http request option.
|
|
4121
|
+
* @throws {RequiredError}
|
|
4122
|
+
*/
|
|
4123
|
+
serviceRequestsShow: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4124
|
+
// verify required parameter 'id' is not null or undefined
|
|
4125
|
+
assertParamExists('serviceRequestsShow', 'id', id)
|
|
4126
|
+
const localVarPath = `/service_requests/{id}`
|
|
4127
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
4128
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4129
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4130
|
+
let baseOptions;
|
|
4131
|
+
if (configuration) {
|
|
4132
|
+
baseOptions = configuration.baseOptions;
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4136
|
+
const localVarHeaderParameter = {} as any;
|
|
4137
|
+
const localVarQueryParameter = {} as any;
|
|
4138
|
+
|
|
3862
4139
|
|
|
3863
4140
|
|
|
3864
4141
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4254,11 +4531,26 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
4254
4531
|
/**
|
|
4255
4532
|
*
|
|
4256
4533
|
* @param {string} [requesterId]
|
|
4534
|
+
* @param {string} [orderBy]
|
|
4535
|
+
* @param {string} [orderDirection]
|
|
4536
|
+
* @param {number} [pageNumber]
|
|
4537
|
+
* @param {number} [pageSize]
|
|
4538
|
+
* @param {ServiceRequestStatus} [status]
|
|
4257
4539
|
* @param {*} [options] Override http request option.
|
|
4258
4540
|
* @throws {RequiredError}
|
|
4259
4541
|
*/
|
|
4260
|
-
async serviceRequestsIndex(requesterId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
|
|
4261
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, options);
|
|
4542
|
+
async serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>> {
|
|
4543
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options);
|
|
4544
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4545
|
+
},
|
|
4546
|
+
/**
|
|
4547
|
+
*
|
|
4548
|
+
* @param {string} id
|
|
4549
|
+
* @param {*} [options] Override http request option.
|
|
4550
|
+
* @throws {RequiredError}
|
|
4551
|
+
*/
|
|
4552
|
+
async serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>> {
|
|
4553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.serviceRequestsShow(id, options);
|
|
4262
4554
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4263
4555
|
},
|
|
4264
4556
|
/**
|
|
@@ -4506,11 +4798,25 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
4506
4798
|
/**
|
|
4507
4799
|
*
|
|
4508
4800
|
* @param {string} [requesterId]
|
|
4801
|
+
* @param {string} [orderBy]
|
|
4802
|
+
* @param {string} [orderDirection]
|
|
4803
|
+
* @param {number} [pageNumber]
|
|
4804
|
+
* @param {number} [pageSize]
|
|
4805
|
+
* @param {ServiceRequestStatus} [status]
|
|
4806
|
+
* @param {*} [options] Override http request option.
|
|
4807
|
+
* @throws {RequiredError}
|
|
4808
|
+
*/
|
|
4809
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse> {
|
|
4810
|
+
return localVarFp.serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(axios, basePath));
|
|
4811
|
+
},
|
|
4812
|
+
/**
|
|
4813
|
+
*
|
|
4814
|
+
* @param {string} id
|
|
4509
4815
|
* @param {*} [options] Override http request option.
|
|
4510
4816
|
* @throws {RequiredError}
|
|
4511
4817
|
*/
|
|
4512
|
-
|
|
4513
|
-
return localVarFp.
|
|
4818
|
+
serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData> {
|
|
4819
|
+
return localVarFp.serviceRequestsShow(id, options).then((request) => request(axios, basePath));
|
|
4514
4820
|
},
|
|
4515
4821
|
/**
|
|
4516
4822
|
*
|
|
@@ -4790,12 +5096,28 @@ export class DefaultApi extends BaseAPI {
|
|
|
4790
5096
|
/**
|
|
4791
5097
|
*
|
|
4792
5098
|
* @param {string} [requesterId]
|
|
5099
|
+
* @param {string} [orderBy]
|
|
5100
|
+
* @param {string} [orderDirection]
|
|
5101
|
+
* @param {number} [pageNumber]
|
|
5102
|
+
* @param {number} [pageSize]
|
|
5103
|
+
* @param {ServiceRequestStatus} [status]
|
|
5104
|
+
* @param {*} [options] Override http request option.
|
|
5105
|
+
* @throws {RequiredError}
|
|
5106
|
+
* @memberof DefaultApi
|
|
5107
|
+
*/
|
|
5108
|
+
public serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) {
|
|
5109
|
+
return DefaultApiFp(this.configuration).serviceRequestsIndex(requesterId, orderBy, orderDirection, pageNumber, pageSize, status, options).then((request) => request(this.axios, this.basePath));
|
|
5110
|
+
}
|
|
5111
|
+
|
|
5112
|
+
/**
|
|
5113
|
+
*
|
|
5114
|
+
* @param {string} id
|
|
4793
5115
|
* @param {*} [options] Override http request option.
|
|
4794
5116
|
* @throws {RequiredError}
|
|
4795
5117
|
* @memberof DefaultApi
|
|
4796
5118
|
*/
|
|
4797
|
-
public
|
|
4798
|
-
return DefaultApiFp(this.configuration).
|
|
5119
|
+
public serviceRequestsShow(id: string, options?: AxiosRequestConfig) {
|
|
5120
|
+
return DefaultApiFp(this.configuration).serviceRequestsShow(id, options).then((request) => request(this.axios, this.basePath));
|
|
4799
5121
|
}
|
|
4800
5122
|
|
|
4801
5123
|
/**
|
package/dist/api/api.d.ts
CHANGED
|
@@ -762,6 +762,12 @@ export interface MemberIndexInterface {
|
|
|
762
762
|
* @memberof MemberIndexInterface
|
|
763
763
|
*/
|
|
764
764
|
'redemption_authorized': boolean;
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @type {Tenant}
|
|
768
|
+
* @memberof MemberIndexInterface
|
|
769
|
+
*/
|
|
770
|
+
'tenant': Tenant | null;
|
|
765
771
|
}
|
|
766
772
|
/**
|
|
767
773
|
*
|
|
@@ -1559,6 +1565,60 @@ export interface ServiceRequestData {
|
|
|
1559
1565
|
*/
|
|
1560
1566
|
'id': string;
|
|
1561
1567
|
}
|
|
1568
|
+
/**
|
|
1569
|
+
*
|
|
1570
|
+
* @export
|
|
1571
|
+
* @interface ServiceRequestQuery
|
|
1572
|
+
*/
|
|
1573
|
+
export interface ServiceRequestQuery {
|
|
1574
|
+
/**
|
|
1575
|
+
*
|
|
1576
|
+
* @type {string}
|
|
1577
|
+
* @memberof ServiceRequestQuery
|
|
1578
|
+
*/
|
|
1579
|
+
'requester_id'?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
*
|
|
1582
|
+
* @type {string}
|
|
1583
|
+
* @memberof ServiceRequestQuery
|
|
1584
|
+
*/
|
|
1585
|
+
'order_by'?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
*
|
|
1588
|
+
* @type {string}
|
|
1589
|
+
* @memberof ServiceRequestQuery
|
|
1590
|
+
*/
|
|
1591
|
+
'order_direction'?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
*
|
|
1594
|
+
* @type {number}
|
|
1595
|
+
* @memberof ServiceRequestQuery
|
|
1596
|
+
*/
|
|
1597
|
+
'page_number'?: number;
|
|
1598
|
+
/**
|
|
1599
|
+
*
|
|
1600
|
+
* @type {number}
|
|
1601
|
+
* @memberof ServiceRequestQuery
|
|
1602
|
+
*/
|
|
1603
|
+
'page_size'?: number;
|
|
1604
|
+
/**
|
|
1605
|
+
*
|
|
1606
|
+
* @type {ServiceRequestStatus}
|
|
1607
|
+
* @memberof ServiceRequestQuery
|
|
1608
|
+
*/
|
|
1609
|
+
'status'?: ServiceRequestStatus;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
*
|
|
1613
|
+
* @export
|
|
1614
|
+
* @enum {string}
|
|
1615
|
+
*/
|
|
1616
|
+
export declare const ServiceRequestStatus: {
|
|
1617
|
+
readonly Submitted: "submitted";
|
|
1618
|
+
readonly InProgress: "in_progress";
|
|
1619
|
+
readonly Done: "done";
|
|
1620
|
+
};
|
|
1621
|
+
export type ServiceRequestStatus = typeof ServiceRequestStatus[keyof typeof ServiceRequestStatus];
|
|
1562
1622
|
/**
|
|
1563
1623
|
*
|
|
1564
1624
|
* @export
|
|
@@ -1848,6 +1908,73 @@ export interface SyncResultSyncJobErrorInner {
|
|
|
1848
1908
|
*/
|
|
1849
1909
|
'type': string;
|
|
1850
1910
|
}
|
|
1911
|
+
/**
|
|
1912
|
+
*
|
|
1913
|
+
* @export
|
|
1914
|
+
* @interface Tenant
|
|
1915
|
+
*/
|
|
1916
|
+
export interface Tenant {
|
|
1917
|
+
/**
|
|
1918
|
+
*
|
|
1919
|
+
* @type {string}
|
|
1920
|
+
* @memberof Tenant
|
|
1921
|
+
*/
|
|
1922
|
+
'id'?: string;
|
|
1923
|
+
/**
|
|
1924
|
+
*
|
|
1925
|
+
* @type {string}
|
|
1926
|
+
* @memberof Tenant
|
|
1927
|
+
*/
|
|
1928
|
+
'uid'?: string;
|
|
1929
|
+
/**
|
|
1930
|
+
*
|
|
1931
|
+
* @type {string}
|
|
1932
|
+
* @memberof Tenant
|
|
1933
|
+
*/
|
|
1934
|
+
'name'?: string;
|
|
1935
|
+
/**
|
|
1936
|
+
*
|
|
1937
|
+
* @type {PrismaJsonValue}
|
|
1938
|
+
* @memberof Tenant
|
|
1939
|
+
*/
|
|
1940
|
+
'display_name'?: PrismaJsonValue | null;
|
|
1941
|
+
/**
|
|
1942
|
+
*
|
|
1943
|
+
* @type {string}
|
|
1944
|
+
* @memberof Tenant
|
|
1945
|
+
*/
|
|
1946
|
+
'email'?: string;
|
|
1947
|
+
/**
|
|
1948
|
+
*
|
|
1949
|
+
* @type {string}
|
|
1950
|
+
* @memberof Tenant
|
|
1951
|
+
*/
|
|
1952
|
+
'phone_number'?: string;
|
|
1953
|
+
/**
|
|
1954
|
+
*
|
|
1955
|
+
* @type {string}
|
|
1956
|
+
* @memberof Tenant
|
|
1957
|
+
*/
|
|
1958
|
+
'address'?: string;
|
|
1959
|
+
/**
|
|
1960
|
+
*
|
|
1961
|
+
* @type {PrismaJsonValue}
|
|
1962
|
+
* @memberof Tenant
|
|
1963
|
+
*/
|
|
1964
|
+
'metadata'?: PrismaJsonValue | null;
|
|
1965
|
+
/**
|
|
1966
|
+
*
|
|
1967
|
+
* @type {string}
|
|
1968
|
+
* @memberof Tenant
|
|
1969
|
+
*/
|
|
1970
|
+
'created_at'?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
*
|
|
1973
|
+
* @type {string}
|
|
1974
|
+
* @memberof Tenant
|
|
1975
|
+
*/
|
|
1976
|
+
'updated_at'?: string;
|
|
1977
|
+
}
|
|
1851
1978
|
/**
|
|
1852
1979
|
*
|
|
1853
1980
|
* @export
|
|
@@ -2939,6 +3066,92 @@ export declare const WrappedResponsePassConsentResponseDataStatusEnum: {
|
|
|
2939
3066
|
readonly Confirmed: "confirmed";
|
|
2940
3067
|
};
|
|
2941
3068
|
export type WrappedResponsePassConsentResponseDataStatusEnum = typeof WrappedResponsePassConsentResponseDataStatusEnum[keyof typeof WrappedResponsePassConsentResponseDataStatusEnum];
|
|
3069
|
+
/**
|
|
3070
|
+
*
|
|
3071
|
+
* @export
|
|
3072
|
+
* @interface WrappedResponseServiceRequestData
|
|
3073
|
+
*/
|
|
3074
|
+
export interface WrappedResponseServiceRequestData {
|
|
3075
|
+
/**
|
|
3076
|
+
*
|
|
3077
|
+
* @type {WrappedResponseServiceRequestDataData}
|
|
3078
|
+
* @memberof WrappedResponseServiceRequestData
|
|
3079
|
+
*/
|
|
3080
|
+
'data': WrappedResponseServiceRequestDataData | null;
|
|
3081
|
+
}
|
|
3082
|
+
/**
|
|
3083
|
+
*
|
|
3084
|
+
* @export
|
|
3085
|
+
* @interface WrappedResponseServiceRequestDataData
|
|
3086
|
+
*/
|
|
3087
|
+
export interface WrappedResponseServiceRequestDataData {
|
|
3088
|
+
/**
|
|
3089
|
+
*
|
|
3090
|
+
* @type {string}
|
|
3091
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3092
|
+
*/
|
|
3093
|
+
'updated_at': string;
|
|
3094
|
+
/**
|
|
3095
|
+
*
|
|
3096
|
+
* @type {string}
|
|
3097
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3098
|
+
*/
|
|
3099
|
+
'created_at': string;
|
|
3100
|
+
/**
|
|
3101
|
+
*
|
|
3102
|
+
* @type {string}
|
|
3103
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3104
|
+
*/
|
|
3105
|
+
'description': string;
|
|
3106
|
+
/**
|
|
3107
|
+
*
|
|
3108
|
+
* @type {string}
|
|
3109
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3110
|
+
*/
|
|
3111
|
+
'status': string;
|
|
3112
|
+
/**
|
|
3113
|
+
*
|
|
3114
|
+
* @type {string}
|
|
3115
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3116
|
+
*/
|
|
3117
|
+
'title': string;
|
|
3118
|
+
/**
|
|
3119
|
+
*
|
|
3120
|
+
* @type {string}
|
|
3121
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3122
|
+
*/
|
|
3123
|
+
'requester_id': string;
|
|
3124
|
+
/**
|
|
3125
|
+
*
|
|
3126
|
+
* @type {IssueTypeData}
|
|
3127
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3128
|
+
*/
|
|
3129
|
+
'issue_type': IssueTypeData;
|
|
3130
|
+
/**
|
|
3131
|
+
*
|
|
3132
|
+
* @type {FloorData}
|
|
3133
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3134
|
+
*/
|
|
3135
|
+
'floor': FloorData;
|
|
3136
|
+
/**
|
|
3137
|
+
*
|
|
3138
|
+
* @type {TowerData}
|
|
3139
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3140
|
+
*/
|
|
3141
|
+
'tower': TowerData;
|
|
3142
|
+
/**
|
|
3143
|
+
*
|
|
3144
|
+
* @type {Array<string>}
|
|
3145
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3146
|
+
*/
|
|
3147
|
+
'image_url': Array<string>;
|
|
3148
|
+
/**
|
|
3149
|
+
*
|
|
3150
|
+
* @type {string}
|
|
3151
|
+
* @memberof WrappedResponseServiceRequestDataData
|
|
3152
|
+
*/
|
|
3153
|
+
'id': string;
|
|
3154
|
+
}
|
|
2942
3155
|
/**
|
|
2943
3156
|
*
|
|
2944
3157
|
* @export
|
|
@@ -3244,10 +3457,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
3244
3457
|
/**
|
|
3245
3458
|
*
|
|
3246
3459
|
* @param {string} [requesterId]
|
|
3460
|
+
* @param {string} [orderBy]
|
|
3461
|
+
* @param {string} [orderDirection]
|
|
3462
|
+
* @param {number} [pageNumber]
|
|
3463
|
+
* @param {number} [pageSize]
|
|
3464
|
+
* @param {ServiceRequestStatus} [status]
|
|
3247
3465
|
* @param {*} [options] Override http request option.
|
|
3248
3466
|
* @throws {RequiredError}
|
|
3249
3467
|
*/
|
|
3250
|
-
serviceRequestsIndex: (requesterId?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3468
|
+
serviceRequestsIndex: (requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3469
|
+
/**
|
|
3470
|
+
*
|
|
3471
|
+
* @param {string} id
|
|
3472
|
+
* @param {*} [options] Override http request option.
|
|
3473
|
+
* @throws {RequiredError}
|
|
3474
|
+
*/
|
|
3475
|
+
serviceRequestsShow: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3251
3476
|
/**
|
|
3252
3477
|
*
|
|
3253
3478
|
* @param {SyncBody} syncBody
|
|
@@ -3436,10 +3661,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
3436
3661
|
/**
|
|
3437
3662
|
*
|
|
3438
3663
|
* @param {string} [requesterId]
|
|
3664
|
+
* @param {string} [orderBy]
|
|
3665
|
+
* @param {string} [orderDirection]
|
|
3666
|
+
* @param {number} [pageNumber]
|
|
3667
|
+
* @param {number} [pageSize]
|
|
3668
|
+
* @param {ServiceRequestStatus} [status]
|
|
3669
|
+
* @param {*} [options] Override http request option.
|
|
3670
|
+
* @throws {RequiredError}
|
|
3671
|
+
*/
|
|
3672
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestResponse>>;
|
|
3673
|
+
/**
|
|
3674
|
+
*
|
|
3675
|
+
* @param {string} id
|
|
3439
3676
|
* @param {*} [options] Override http request option.
|
|
3440
3677
|
* @throws {RequiredError}
|
|
3441
3678
|
*/
|
|
3442
|
-
|
|
3679
|
+
serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WrappedResponseServiceRequestData>>;
|
|
3443
3680
|
/**
|
|
3444
3681
|
*
|
|
3445
3682
|
* @param {SyncBody} syncBody
|
|
@@ -3628,10 +3865,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
3628
3865
|
/**
|
|
3629
3866
|
*
|
|
3630
3867
|
* @param {string} [requesterId]
|
|
3868
|
+
* @param {string} [orderBy]
|
|
3869
|
+
* @param {string} [orderDirection]
|
|
3870
|
+
* @param {number} [pageNumber]
|
|
3871
|
+
* @param {number} [pageSize]
|
|
3872
|
+
* @param {ServiceRequestStatus} [status]
|
|
3631
3873
|
* @param {*} [options] Override http request option.
|
|
3632
3874
|
* @throws {RequiredError}
|
|
3633
3875
|
*/
|
|
3634
|
-
serviceRequestsIndex(requesterId?: string, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
|
|
3876
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: any): AxiosPromise<WrappedResponseServiceRequestResponse>;
|
|
3877
|
+
/**
|
|
3878
|
+
*
|
|
3879
|
+
* @param {string} id
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
serviceRequestsShow(id: string, options?: any): AxiosPromise<WrappedResponseServiceRequestData>;
|
|
3635
3884
|
/**
|
|
3636
3885
|
*
|
|
3637
3886
|
* @param {SyncBody} syncBody
|
|
@@ -3841,11 +4090,24 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
3841
4090
|
/**
|
|
3842
4091
|
*
|
|
3843
4092
|
* @param {string} [requesterId]
|
|
4093
|
+
* @param {string} [orderBy]
|
|
4094
|
+
* @param {string} [orderDirection]
|
|
4095
|
+
* @param {number} [pageNumber]
|
|
4096
|
+
* @param {number} [pageSize]
|
|
4097
|
+
* @param {ServiceRequestStatus} [status]
|
|
4098
|
+
* @param {*} [options] Override http request option.
|
|
4099
|
+
* @throws {RequiredError}
|
|
4100
|
+
* @memberof DefaultApi
|
|
4101
|
+
*/
|
|
4102
|
+
serviceRequestsIndex(requesterId?: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, status?: ServiceRequestStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestResponse, any>>;
|
|
4103
|
+
/**
|
|
4104
|
+
*
|
|
4105
|
+
* @param {string} id
|
|
3844
4106
|
* @param {*} [options] Override http request option.
|
|
3845
4107
|
* @throws {RequiredError}
|
|
3846
4108
|
* @memberof DefaultApi
|
|
3847
4109
|
*/
|
|
3848
|
-
|
|
4110
|
+
serviceRequestsShow(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WrappedResponseServiceRequestData, any>>;
|
|
3849
4111
|
/**
|
|
3850
4112
|
*
|
|
3851
4113
|
* @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
|
-
|
|
1627
|
-
return (0, exports.DefaultApiFp)(this.configuration).
|
|
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
package/test.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as OB_BMS_SDK from './index';
|
|
2
|
-
|
|
3
|
-
// OB_BMS_SDK.setAcessToken('789');
|
|
4
|
-
OB_BMS_SDK.setBaseUrl('http://localhost:3000');
|
|
5
|
-
OB_BMS_SDK.setAcessToken(
|
|
6
|
-
'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJpYXQiOjE2OTg5MzU2ODcsImV4cCI6MTcwMTUyNzY4NywicGVybWlzc2lvbiI6W3siaWQiOiJmY2Q1NDZmYy1lNThmLTQ2MjctOTU5Yy1jNWFlYTljMGQ0ODMiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOmFjY291bnQiLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJyZWFkIiwidXBkYXRlIiwiZGVsZXRlIl0sInJlc291cmNlX3R5cGUiOiJhY2NvdW50IiwicmVzb3VyY2UiOnsiaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiNWY0MDlmYzYtNDRkMi00YzQyLThhOGYtYzFiNTQ1MWZjODZiIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTpwcm9maWxlIiwic2VydmljZSI6Im9iLWlhbSIsImFjdGlvbnMiOlsicmVhZCIsInVwZGF0ZSJdLCJyZXNvdXJjZV90eXBlIjoicHJvZmlsZSIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfSx7ImlkIjoiMDNlM2MxODctOTY3NC00MTdiLThjOGMtNDBmNGE0MjEyMDlkIiwicGVybWl0dGVlX3R5cGUiOiJhY2NvdW50IiwidmFsdWUiOnsibmFtZSI6Im9iLWlhbTppZGVudGl0eSIsInNlcnZpY2UiOiJvYi1pYW0iLCJhY3Rpb25zIjpbIioiXSwicmVzb3VyY2VfdHlwZSI6ImlkZW50aXR5IiwicmVzb3VyY2UiOnsiYWNjb3VudF9pZCI6InNlbGYifX0sImNyZWF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJ1cGRhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwiZGVsZXRlZF9hdCI6bnVsbCwiYWNjb3VudF9pZCI6IjgyNDI3MDVmLTM1YjUtNGQ3MS04ZTE5LWM1YTQxYWMyZTBhNCIsImFjY291bnRfZ3JvdXBfaWQiOm51bGx9LHsiaWQiOiIzMjU0MTEyNi00Nzc2LTQ0NzYtOTc5MS1mYjZhNjA2ZWUxNDIiLCJwZXJtaXR0ZWVfdHlwZSI6ImFjY291bnQiLCJ2YWx1ZSI6eyJuYW1lIjoib2ItaWFtOnNldHRpbmciLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJ1cGRhdGUiXSwicmVzb3VyY2VfdHlwZSI6InNldHRpbmciLCJyZXNvdXJjZSI6eyJhY2NvdW50X2lkIjoic2VsZiJ9fSwiY3JlYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsInVwZGF0ZWRfYXQiOiIyMDIzLTExLTAyVDA4OjUxOjQyLjc3MVoiLCJkZWxldGVkX2F0IjpudWxsLCJhY2NvdW50X2lkIjoiODI0MjcwNWYtMzViNS00ZDcxLThlMTktYzVhNDFhYzJlMGE0IiwiYWNjb3VudF9ncm91cF9pZCI6bnVsbH0seyJpZCI6ImZjYzE3MTY4LWRmNTQtNDIyMy04MzYxLTY4NTlkZmNmMzU2NSIsInBlcm1pdHRlZV90eXBlIjoiYWNjb3VudCIsInZhbHVlIjp7Im5hbWUiOiJvYi1pYW06dG9rZW4iLCJzZXJ2aWNlIjoib2ItaWFtIiwiYWN0aW9ucyI6WyJjcmVhdGUiLCJyZWFkIl0sInJlc291cmNlX3R5cGUiOiJ0b2tlbiIsInJlc291cmNlIjp7ImFjY291bnRfaWQiOiJzZWxmIn19LCJjcmVhdGVkX2F0IjoiMjAyMy0xMS0wMlQwODo1MTo0Mi43NzFaIiwidXBkYXRlZF9hdCI6IjIwMjMtMTEtMDJUMDg6NTE6NDIuNzcxWiIsImRlbGV0ZWRfYXQiOm51bGwsImFjY291bnRfaWQiOiI4MjQyNzA1Zi0zNWI1LTRkNzEtOGUxOS1jNWE0MWFjMmUwYTQiLCJhY2NvdW50X2dyb3VwX2lkIjpudWxsfV19.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
|
-
})();
|