electric-coop-api 0.1.69 → 0.1.71
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 +2 -2
- package/dist/apis/AdminServiceRequestsApi.d.ts +4 -2
- package/dist/apis/AdminServiceRequestsApi.js +3 -0
- package/dist/esm/apis/AdminServiceRequestsApi.d.ts +4 -2
- package/dist/esm/apis/AdminServiceRequestsApi.js +3 -0
- package/dist/esm/models/CreateServiceRequestDto.d.ts +3 -5
- package/dist/esm/models/CreateServiceRequestDto.js +2 -2
- package/dist/models/CreateServiceRequestDto.d.ts +3 -5
- package/dist/models/CreateServiceRequestDto.js +2 -2
- package/package.json +1 -1
- package/src/apis/AdminServiceRequestsApi.ts +10 -1
- package/src/models/CreateServiceRequestDto.ts +5 -5
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## electric-coop-api@0.1.
|
|
1
|
+
## electric-coop-api@0.1.71
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). 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 electric-coop-api@0.1.
|
|
39
|
+
npm install electric-coop-api@0.1.71 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminCreateServiceRequestResponse, AdminServiceRequestResponse, AdminServiceRequestStatsResponse, AdminServiceRequestsPaginatedResponse, AdminUpdateServiceRequestResponse, CreateServiceRequestDto, ServiceRequestStatusEnum, UpdateServiceRequestDto } from '../models/index';
|
|
13
|
+
import type { AdminCreateServiceRequestResponse, AdminServiceRequestResponse, AdminServiceRequestStatsResponse, AdminServiceRequestsPaginatedResponse, AdminUpdateServiceRequestResponse, CreateServiceRequestDto, ServiceRequestStatusEnum, ServiceRequestTypeEnum, UpdateServiceRequestDto } from '../models/index';
|
|
14
14
|
export interface CreateAdminServiceRequestRequest {
|
|
15
15
|
createServiceRequestDto: CreateServiceRequestDto;
|
|
16
16
|
}
|
|
@@ -22,6 +22,7 @@ export interface GetAdminServiceRequestsRequest {
|
|
|
22
22
|
limit?: number;
|
|
23
23
|
search?: string;
|
|
24
24
|
status?: ServiceRequestStatusEnum;
|
|
25
|
+
type?: ServiceRequestTypeEnum;
|
|
25
26
|
consumerId?: string;
|
|
26
27
|
}
|
|
27
28
|
export interface UpdateAdminServiceRequestRequest {
|
|
@@ -78,8 +79,9 @@ export interface AdminServiceRequestsApiInterface {
|
|
|
78
79
|
* @summary List service requests (admin)
|
|
79
80
|
* @param {number} [page]
|
|
80
81
|
* @param {number} [limit]
|
|
81
|
-
* @param {string} [search]
|
|
82
|
+
* @param {string} [search] Search by request number or consumer name/account
|
|
82
83
|
* @param {ServiceRequestStatusEnum} [status]
|
|
84
|
+
* @param {ServiceRequestTypeEnum} [type]
|
|
83
85
|
* @param {string} [consumerId]
|
|
84
86
|
* @param {*} [options] Override http request option.
|
|
85
87
|
* @throws {RequiredError}
|
|
@@ -155,6 +155,9 @@ class AdminServiceRequestsApi extends runtime.BaseAPI {
|
|
|
155
155
|
if (requestParameters['status'] != null) {
|
|
156
156
|
queryParameters['status'] = requestParameters['status'];
|
|
157
157
|
}
|
|
158
|
+
if (requestParameters['type'] != null) {
|
|
159
|
+
queryParameters['type'] = requestParameters['type'];
|
|
160
|
+
}
|
|
158
161
|
if (requestParameters['consumerId'] != null) {
|
|
159
162
|
queryParameters['consumerId'] = requestParameters['consumerId'];
|
|
160
163
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminCreateServiceRequestResponse, AdminServiceRequestResponse, AdminServiceRequestStatsResponse, AdminServiceRequestsPaginatedResponse, AdminUpdateServiceRequestResponse, CreateServiceRequestDto, ServiceRequestStatusEnum, UpdateServiceRequestDto } from '../models/index';
|
|
13
|
+
import type { AdminCreateServiceRequestResponse, AdminServiceRequestResponse, AdminServiceRequestStatsResponse, AdminServiceRequestsPaginatedResponse, AdminUpdateServiceRequestResponse, CreateServiceRequestDto, ServiceRequestStatusEnum, ServiceRequestTypeEnum, UpdateServiceRequestDto } from '../models/index';
|
|
14
14
|
export interface CreateAdminServiceRequestRequest {
|
|
15
15
|
createServiceRequestDto: CreateServiceRequestDto;
|
|
16
16
|
}
|
|
@@ -22,6 +22,7 @@ export interface GetAdminServiceRequestsRequest {
|
|
|
22
22
|
limit?: number;
|
|
23
23
|
search?: string;
|
|
24
24
|
status?: ServiceRequestStatusEnum;
|
|
25
|
+
type?: ServiceRequestTypeEnum;
|
|
25
26
|
consumerId?: string;
|
|
26
27
|
}
|
|
27
28
|
export interface UpdateAdminServiceRequestRequest {
|
|
@@ -78,8 +79,9 @@ export interface AdminServiceRequestsApiInterface {
|
|
|
78
79
|
* @summary List service requests (admin)
|
|
79
80
|
* @param {number} [page]
|
|
80
81
|
* @param {number} [limit]
|
|
81
|
-
* @param {string} [search]
|
|
82
|
+
* @param {string} [search] Search by request number or consumer name/account
|
|
82
83
|
* @param {ServiceRequestStatusEnum} [status]
|
|
84
|
+
* @param {ServiceRequestTypeEnum} [type]
|
|
83
85
|
* @param {string} [consumerId]
|
|
84
86
|
* @param {*} [options] Override http request option.
|
|
85
87
|
* @throws {RequiredError}
|
|
@@ -152,6 +152,9 @@ export class AdminServiceRequestsApi extends runtime.BaseAPI {
|
|
|
152
152
|
if (requestParameters['status'] != null) {
|
|
153
153
|
queryParameters['status'] = requestParameters['status'];
|
|
154
154
|
}
|
|
155
|
+
if (requestParameters['type'] != null) {
|
|
156
|
+
queryParameters['type'] = requestParameters['type'];
|
|
157
|
+
}
|
|
155
158
|
if (requestParameters['consumerId'] != null) {
|
|
156
159
|
queryParameters['consumerId'] = requestParameters['consumerId'];
|
|
157
160
|
}
|
|
@@ -48,13 +48,11 @@ export interface CreateServiceRequestDto {
|
|
|
48
48
|
*/
|
|
49
49
|
description: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
51
|
+
* Assign to a service crew member
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof CreateServiceRequestDto
|
|
54
54
|
*/
|
|
55
|
-
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
};
|
|
55
|
+
assignedTo?: string;
|
|
58
56
|
/**
|
|
59
57
|
*
|
|
60
58
|
* @type {Array<string>}
|
|
@@ -40,7 +40,7 @@ export function CreateServiceRequestDtoFromJSONTyped(json, ignoreDiscriminator)
|
|
|
40
40
|
'priority': json['priority'] == null ? undefined : ServiceRequestPriorityEnumFromJSON(json['priority']),
|
|
41
41
|
'subject': json['subject'],
|
|
42
42
|
'description': json['description'],
|
|
43
|
-
'
|
|
43
|
+
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
44
44
|
'documentUrls': json['documentUrls'] == null ? undefined : json['documentUrls'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -57,7 +57,7 @@ export function CreateServiceRequestDtoToJSONTyped(value, ignoreDiscriminator =
|
|
|
57
57
|
'priority': ServiceRequestPriorityEnumToJSON(value['priority']),
|
|
58
58
|
'subject': value['subject'],
|
|
59
59
|
'description': value['description'],
|
|
60
|
-
'
|
|
60
|
+
'assignedTo': value['assignedTo'],
|
|
61
61
|
'documentUrls': value['documentUrls'],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -48,13 +48,11 @@ export interface CreateServiceRequestDto {
|
|
|
48
48
|
*/
|
|
49
49
|
description: string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {
|
|
51
|
+
* Assign to a service crew member
|
|
52
|
+
* @type {string}
|
|
53
53
|
* @memberof CreateServiceRequestDto
|
|
54
54
|
*/
|
|
55
|
-
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
};
|
|
55
|
+
assignedTo?: string;
|
|
58
56
|
/**
|
|
59
57
|
*
|
|
60
58
|
* @type {Array<string>}
|
|
@@ -47,7 +47,7 @@ function CreateServiceRequestDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'priority': json['priority'] == null ? undefined : (0, ServiceRequestPriorityEnum_1.ServiceRequestPriorityEnumFromJSON)(json['priority']),
|
|
48
48
|
'subject': json['subject'],
|
|
49
49
|
'description': json['description'],
|
|
50
|
-
'
|
|
50
|
+
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
51
51
|
'documentUrls': json['documentUrls'] == null ? undefined : json['documentUrls'],
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -64,7 +64,7 @@ function CreateServiceRequestDtoToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
64
64
|
'priority': (0, ServiceRequestPriorityEnum_1.ServiceRequestPriorityEnumToJSON)(value['priority']),
|
|
65
65
|
'subject': value['subject'],
|
|
66
66
|
'description': value['description'],
|
|
67
|
-
'
|
|
67
|
+
'assignedTo': value['assignedTo'],
|
|
68
68
|
'documentUrls': value['documentUrls'],
|
|
69
69
|
};
|
|
70
70
|
}
|
package/package.json
CHANGED
|
@@ -23,6 +23,7 @@ import type {
|
|
|
23
23
|
CreateServiceRequestDto,
|
|
24
24
|
ErrorResponseDto,
|
|
25
25
|
ServiceRequestStatusEnum,
|
|
26
|
+
ServiceRequestTypeEnum,
|
|
26
27
|
UpdateServiceRequestDto,
|
|
27
28
|
} from '../models/index';
|
|
28
29
|
import {
|
|
@@ -42,6 +43,8 @@ import {
|
|
|
42
43
|
ErrorResponseDtoToJSON,
|
|
43
44
|
ServiceRequestStatusEnumFromJSON,
|
|
44
45
|
ServiceRequestStatusEnumToJSON,
|
|
46
|
+
ServiceRequestTypeEnumFromJSON,
|
|
47
|
+
ServiceRequestTypeEnumToJSON,
|
|
45
48
|
UpdateServiceRequestDtoFromJSON,
|
|
46
49
|
UpdateServiceRequestDtoToJSON,
|
|
47
50
|
} from '../models/index';
|
|
@@ -59,6 +62,7 @@ export interface GetAdminServiceRequestsRequest {
|
|
|
59
62
|
limit?: number;
|
|
60
63
|
search?: string;
|
|
61
64
|
status?: ServiceRequestStatusEnum;
|
|
65
|
+
type?: ServiceRequestTypeEnum;
|
|
62
66
|
consumerId?: string;
|
|
63
67
|
}
|
|
64
68
|
|
|
@@ -123,8 +127,9 @@ export interface AdminServiceRequestsApiInterface {
|
|
|
123
127
|
* @summary List service requests (admin)
|
|
124
128
|
* @param {number} [page]
|
|
125
129
|
* @param {number} [limit]
|
|
126
|
-
* @param {string} [search]
|
|
130
|
+
* @param {string} [search] Search by request number or consumer name/account
|
|
127
131
|
* @param {ServiceRequestStatusEnum} [status]
|
|
132
|
+
* @param {ServiceRequestTypeEnum} [type]
|
|
128
133
|
* @param {string} [consumerId]
|
|
129
134
|
* @param {*} [options] Override http request option.
|
|
130
135
|
* @throws {RequiredError}
|
|
@@ -311,6 +316,10 @@ export class AdminServiceRequestsApi extends runtime.BaseAPI implements AdminSer
|
|
|
311
316
|
queryParameters['status'] = requestParameters['status'];
|
|
312
317
|
}
|
|
313
318
|
|
|
319
|
+
if (requestParameters['type'] != null) {
|
|
320
|
+
queryParameters['type'] = requestParameters['type'];
|
|
321
|
+
}
|
|
322
|
+
|
|
314
323
|
if (requestParameters['consumerId'] != null) {
|
|
315
324
|
queryParameters['consumerId'] = requestParameters['consumerId'];
|
|
316
325
|
}
|
|
@@ -65,11 +65,11 @@ export interface CreateServiceRequestDto {
|
|
|
65
65
|
*/
|
|
66
66
|
description: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {
|
|
68
|
+
* Assign to a service crew member
|
|
69
|
+
* @type {string}
|
|
70
70
|
* @memberof CreateServiceRequestDto
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
assignedTo?: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<string>}
|
|
@@ -106,7 +106,7 @@ export function CreateServiceRequestDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
106
106
|
'priority': json['priority'] == null ? undefined : ServiceRequestPriorityEnumFromJSON(json['priority']),
|
|
107
107
|
'subject': json['subject'],
|
|
108
108
|
'description': json['description'],
|
|
109
|
-
'
|
|
109
|
+
'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
|
|
110
110
|
'documentUrls': json['documentUrls'] == null ? undefined : json['documentUrls'],
|
|
111
111
|
};
|
|
112
112
|
}
|
|
@@ -127,7 +127,7 @@ export function CreateServiceRequestDtoToJSONTyped(value?: CreateServiceRequestD
|
|
|
127
127
|
'priority': ServiceRequestPriorityEnumToJSON(value['priority']),
|
|
128
128
|
'subject': value['subject'],
|
|
129
129
|
'description': value['description'],
|
|
130
|
-
'
|
|
130
|
+
'assignedTo': value['assignedTo'],
|
|
131
131
|
'documentUrls': value['documentUrls'],
|
|
132
132
|
};
|
|
133
133
|
}
|