electric-coop-api 0.1.63 → 0.1.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## electric-coop-api@0.1.63
1
+ ## electric-coop-api@0.1.64
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.63 --save
39
+ npm install electric-coop-api@0.1.64 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -27,6 +27,7 @@ export interface GetAdminConsumersRequest {
27
27
  status?: ConsumerStatusEnum;
28
28
  sortBy?: GetAdminConsumersSortByEnum;
29
29
  order?: GetAdminConsumersOrderEnum;
30
+ excludeLinkedUserId?: string;
30
31
  }
31
32
  export interface GetAdminUnbilledConsumersRequest {
32
33
  billingPeriod: string;
@@ -93,6 +94,7 @@ export interface AdminConsumersApiInterface {
93
94
  * @param {ConsumerStatusEnum} [status]
94
95
  * @param {'accountNumber' | 'name' | 'email' | 'createdAt'} [sortBy]
95
96
  * @param {'asc' | 'desc' | 'ASC' | 'DESC'} [order]
97
+ * @param {string} [excludeLinkedUserId] Exclude consumers already linked to this user ID
96
98
  * @param {*} [options] Override http request option.
97
99
  * @throws {RequiredError}
98
100
  * @memberof AdminConsumersApiInterface
@@ -164,6 +164,9 @@ class AdminConsumersApi extends runtime.BaseAPI {
164
164
  if (requestParameters['order'] != null) {
165
165
  queryParameters['order'] = requestParameters['order'];
166
166
  }
167
+ if (requestParameters['excludeLinkedUserId'] != null) {
168
+ queryParameters['excludeLinkedUserId'] = requestParameters['excludeLinkedUserId'];
169
+ }
167
170
  const headerParameters = {};
168
171
  if (this.configuration && this.configuration.accessToken) {
169
172
  const token = this.configuration.accessToken;
@@ -27,6 +27,7 @@ export interface GetAdminConsumersRequest {
27
27
  status?: ConsumerStatusEnum;
28
28
  sortBy?: GetAdminConsumersSortByEnum;
29
29
  order?: GetAdminConsumersOrderEnum;
30
+ excludeLinkedUserId?: string;
30
31
  }
31
32
  export interface GetAdminUnbilledConsumersRequest {
32
33
  billingPeriod: string;
@@ -93,6 +94,7 @@ export interface AdminConsumersApiInterface {
93
94
  * @param {ConsumerStatusEnum} [status]
94
95
  * @param {'accountNumber' | 'name' | 'email' | 'createdAt'} [sortBy]
95
96
  * @param {'asc' | 'desc' | 'ASC' | 'DESC'} [order]
97
+ * @param {string} [excludeLinkedUserId] Exclude consumers already linked to this user ID
96
98
  * @param {*} [options] Override http request option.
97
99
  * @throws {RequiredError}
98
100
  * @memberof AdminConsumersApiInterface
@@ -161,6 +161,9 @@ export class AdminConsumersApi extends runtime.BaseAPI {
161
161
  if (requestParameters['order'] != null) {
162
162
  queryParameters['order'] = requestParameters['order'];
163
163
  }
164
+ if (requestParameters['excludeLinkedUserId'] != null) {
165
+ queryParameters['excludeLinkedUserId'] = requestParameters['excludeLinkedUserId'];
166
+ }
164
167
  const headerParameters = {};
165
168
  if (this.configuration && this.configuration.accessToken) {
166
169
  const token = this.configuration.accessToken;
@@ -16,6 +16,8 @@
16
16
  export declare const AuditLogEntityTypeEnum: {
17
17
  readonly Outage: "outage";
18
18
  readonly WorkOrder: "work_order";
19
+ readonly User: "user";
20
+ readonly ConsumerAccount: "consumer_account";
19
21
  };
20
22
  export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
21
23
  export declare function instanceOfAuditLogEntityTypeEnum(value: any): boolean;
@@ -17,7 +17,9 @@
17
17
  */
18
18
  export const AuditLogEntityTypeEnum = {
19
19
  Outage: 'outage',
20
- WorkOrder: 'work_order'
20
+ WorkOrder: 'work_order',
21
+ User: 'user',
22
+ ConsumerAccount: 'consumer_account'
21
23
  };
22
24
  export function instanceOfAuditLogEntityTypeEnum(value) {
23
25
  for (const key in AuditLogEntityTypeEnum) {
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -33,6 +34,18 @@ export interface CreateConsumerAccountDto {
33
34
  * @memberof CreateConsumerAccountDto
34
35
  */
35
36
  mobile?: string;
37
+ /**
38
+ *
39
+ * @type {ConsumerTypeEnum}
40
+ * @memberof CreateConsumerAccountDto
41
+ */
42
+ consumerType?: ConsumerTypeEnum;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof CreateConsumerAccountDto
47
+ */
48
+ hasNetMetering?: boolean;
36
49
  }
37
50
  /**
38
51
  * Check if a given object implements the CreateConsumerAccountDto interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ConsumerTypeEnumFromJSON, ConsumerTypeEnumToJSON, } from './ConsumerTypeEnum';
14
15
  /**
15
16
  * Check if a given object implements the CreateConsumerAccountDto interface.
16
17
  */
@@ -28,6 +29,8 @@ export function CreateConsumerAccountDtoFromJSONTyped(json, ignoreDiscriminator)
28
29
  'name': json['name'] == null ? undefined : json['name'],
29
30
  'address': json['address'] == null ? undefined : json['address'],
30
31
  'mobile': json['mobile'] == null ? undefined : json['mobile'],
32
+ 'consumerType': json['consumerType'] == null ? undefined : ConsumerTypeEnumFromJSON(json['consumerType']),
33
+ 'hasNetMetering': json['hasNetMetering'] == null ? undefined : json['hasNetMetering'],
31
34
  };
32
35
  }
33
36
  export function CreateConsumerAccountDtoToJSON(json) {
@@ -41,5 +44,7 @@ export function CreateConsumerAccountDtoToJSONTyped(value, ignoreDiscriminator =
41
44
  'name': value['name'],
42
45
  'address': value['address'],
43
46
  'mobile': value['mobile'],
47
+ 'consumerType': ConsumerTypeEnumToJSON(value['consumerType']),
48
+ 'hasNetMetering': value['hasNetMetering'],
44
49
  };
45
50
  }
@@ -16,6 +16,8 @@
16
16
  export declare const AuditLogEntityTypeEnum: {
17
17
  readonly Outage: "outage";
18
18
  readonly WorkOrder: "work_order";
19
+ readonly User: "user";
20
+ readonly ConsumerAccount: "consumer_account";
19
21
  };
20
22
  export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
21
23
  export declare function instanceOfAuditLogEntityTypeEnum(value: any): boolean;
@@ -25,7 +25,9 @@ exports.AuditLogEntityTypeEnumToJSONTyped = AuditLogEntityTypeEnumToJSONTyped;
25
25
  */
26
26
  exports.AuditLogEntityTypeEnum = {
27
27
  Outage: 'outage',
28
- WorkOrder: 'work_order'
28
+ WorkOrder: 'work_order',
29
+ User: 'user',
30
+ ConsumerAccount: 'consumer_account'
29
31
  };
30
32
  function instanceOfAuditLogEntityTypeEnum(value) {
31
33
  for (const key in exports.AuditLogEntityTypeEnum) {
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -33,6 +34,18 @@ export interface CreateConsumerAccountDto {
33
34
  * @memberof CreateConsumerAccountDto
34
35
  */
35
36
  mobile?: string;
37
+ /**
38
+ *
39
+ * @type {ConsumerTypeEnum}
40
+ * @memberof CreateConsumerAccountDto
41
+ */
42
+ consumerType?: ConsumerTypeEnum;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof CreateConsumerAccountDto
47
+ */
48
+ hasNetMetering?: boolean;
36
49
  }
37
50
  /**
38
51
  * Check if a given object implements the CreateConsumerAccountDto interface.
@@ -18,6 +18,7 @@ exports.CreateConsumerAccountDtoFromJSON = CreateConsumerAccountDtoFromJSON;
18
18
  exports.CreateConsumerAccountDtoFromJSONTyped = CreateConsumerAccountDtoFromJSONTyped;
19
19
  exports.CreateConsumerAccountDtoToJSON = CreateConsumerAccountDtoToJSON;
20
20
  exports.CreateConsumerAccountDtoToJSONTyped = CreateConsumerAccountDtoToJSONTyped;
21
+ const ConsumerTypeEnum_1 = require("./ConsumerTypeEnum");
21
22
  /**
22
23
  * Check if a given object implements the CreateConsumerAccountDto interface.
23
24
  */
@@ -35,6 +36,8 @@ function CreateConsumerAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
35
36
  'name': json['name'] == null ? undefined : json['name'],
36
37
  'address': json['address'] == null ? undefined : json['address'],
37
38
  'mobile': json['mobile'] == null ? undefined : json['mobile'],
39
+ 'consumerType': json['consumerType'] == null ? undefined : (0, ConsumerTypeEnum_1.ConsumerTypeEnumFromJSON)(json['consumerType']),
40
+ 'hasNetMetering': json['hasNetMetering'] == null ? undefined : json['hasNetMetering'],
38
41
  };
39
42
  }
40
43
  function CreateConsumerAccountDtoToJSON(json) {
@@ -48,5 +51,7 @@ function CreateConsumerAccountDtoToJSONTyped(value, ignoreDiscriminator = false)
48
51
  'name': value['name'],
49
52
  'address': value['address'],
50
53
  'mobile': value['mobile'],
54
+ 'consumerType': (0, ConsumerTypeEnum_1.ConsumerTypeEnumToJSON)(value['consumerType']),
55
+ 'hasNetMetering': value['hasNetMetering'],
51
56
  };
52
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electric-coop-api",
3
- "version": "0.1.63",
3
+ "version": "0.1.64",
4
4
  "description": "OpenAPI client for electric-coop-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -59,6 +59,7 @@ export interface GetAdminConsumersRequest {
59
59
  status?: ConsumerStatusEnum;
60
60
  sortBy?: GetAdminConsumersSortByEnum;
61
61
  order?: GetAdminConsumersOrderEnum;
62
+ excludeLinkedUserId?: string;
62
63
  }
63
64
 
64
65
  export interface GetAdminUnbilledConsumersRequest {
@@ -134,6 +135,7 @@ export interface AdminConsumersApiInterface {
134
135
  * @param {ConsumerStatusEnum} [status]
135
136
  * @param {'accountNumber' | 'name' | 'email' | 'createdAt'} [sortBy]
136
137
  * @param {'asc' | 'desc' | 'ASC' | 'DESC'} [order]
138
+ * @param {string} [excludeLinkedUserId] Exclude consumers already linked to this user ID
137
139
  * @param {*} [options] Override http request option.
138
140
  * @throws {RequiredError}
139
141
  * @memberof AdminConsumersApiInterface
@@ -352,6 +354,10 @@ export class AdminConsumersApi extends runtime.BaseAPI implements AdminConsumers
352
354
  queryParameters['order'] = requestParameters['order'];
353
355
  }
354
356
 
357
+ if (requestParameters['excludeLinkedUserId'] != null) {
358
+ queryParameters['excludeLinkedUserId'] = requestParameters['excludeLinkedUserId'];
359
+ }
360
+
355
361
  const headerParameters: runtime.HTTPHeaders = {};
356
362
 
357
363
  if (this.configuration && this.configuration.accessToken) {
@@ -19,7 +19,9 @@
19
19
  */
20
20
  export const AuditLogEntityTypeEnum = {
21
21
  Outage: 'outage',
22
- WorkOrder: 'work_order'
22
+ WorkOrder: 'work_order',
23
+ User: 'user',
24
+ ConsumerAccount: 'consumer_account'
23
25
  } as const;
24
26
  export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
25
27
 
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ConsumerTypeEnum } from './ConsumerTypeEnum';
17
+ import {
18
+ ConsumerTypeEnumFromJSON,
19
+ ConsumerTypeEnumFromJSONTyped,
20
+ ConsumerTypeEnumToJSON,
21
+ ConsumerTypeEnumToJSONTyped,
22
+ } from './ConsumerTypeEnum';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -37,8 +45,22 @@ export interface CreateConsumerAccountDto {
37
45
  * @memberof CreateConsumerAccountDto
38
46
  */
39
47
  mobile?: string;
48
+ /**
49
+ *
50
+ * @type {ConsumerTypeEnum}
51
+ * @memberof CreateConsumerAccountDto
52
+ */
53
+ consumerType?: ConsumerTypeEnum;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof CreateConsumerAccountDto
58
+ */
59
+ hasNetMetering?: boolean;
40
60
  }
41
61
 
62
+
63
+
42
64
  /**
43
65
  * Check if a given object implements the CreateConsumerAccountDto interface.
44
66
  */
@@ -59,6 +81,8 @@ export function CreateConsumerAccountDtoFromJSONTyped(json: any, ignoreDiscrimin
59
81
  'name': json['name'] == null ? undefined : json['name'],
60
82
  'address': json['address'] == null ? undefined : json['address'],
61
83
  'mobile': json['mobile'] == null ? undefined : json['mobile'],
84
+ 'consumerType': json['consumerType'] == null ? undefined : ConsumerTypeEnumFromJSON(json['consumerType']),
85
+ 'hasNetMetering': json['hasNetMetering'] == null ? undefined : json['hasNetMetering'],
62
86
  };
63
87
  }
64
88
 
@@ -76,6 +100,8 @@ export function CreateConsumerAccountDtoToJSONTyped(value?: CreateConsumerAccoun
76
100
  'name': value['name'],
77
101
  'address': value['address'],
78
102
  'mobile': value['mobile'],
103
+ 'consumerType': ConsumerTypeEnumToJSON(value['consumerType']),
104
+ 'hasNetMetering': value['hasNetMetering'],
79
105
  };
80
106
  }
81
107