electric-coop-api 0.1.71 → 0.1.72

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.
@@ -174,6 +174,7 @@ src/models/PaginatedNotifications.ts
174
174
  src/models/PaginatedResponseDto.ts
175
175
  src/models/PaginationMetaDto.ts
176
176
  src/models/PerformanceReportSuccessResponse.ts
177
+ src/models/PickTypeClass.ts
177
178
  src/models/PreviewBillDto.ts
178
179
  src/models/PreviewMeterReadingDto.ts
179
180
  src/models/Rate.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## electric-coop-api@0.1.71
1
+ ## electric-coop-api@0.1.72
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.71 --save
39
+ npm install electric-coop-api@0.1.72 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Electric Cooperative Consumer Portal API
3
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PickTypeClass
16
+ */
17
+ export interface PickTypeClass {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PickTypeClass
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PickTypeClass
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PickTypeClass interface.
33
+ */
34
+ export declare function instanceOfPickTypeClass(value: object): value is PickTypeClass;
35
+ export declare function PickTypeClassFromJSON(json: any): PickTypeClass;
36
+ export declare function PickTypeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickTypeClass;
37
+ export declare function PickTypeClassToJSON(json: any): PickTypeClass;
38
+ export declare function PickTypeClassToJSONTyped(value?: PickTypeClass | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Electric Cooperative Consumer Portal API
5
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PickTypeClass interface.
16
+ */
17
+ export function instanceOfPickTypeClass(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PickTypeClassFromJSON(json) {
25
+ return PickTypeClassFromJSONTyped(json, false);
26
+ }
27
+ export function PickTypeClassFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'id': json['id'],
33
+ 'name': json['name'],
34
+ };
35
+ }
36
+ export function PickTypeClassToJSON(json) {
37
+ return PickTypeClassToJSONTyped(json, false);
38
+ }
39
+ export function PickTypeClassToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'id': value['id'],
45
+ 'name': value['name'],
46
+ };
47
+ }
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ServiceRequestPriorityEnum } from './ServiceRequestPriorityEnum';
13
- import type { User } from './User';
14
13
  import type { Consumer } from './Consumer';
14
+ import type { PickTypeClass } from './PickTypeClass';
15
15
  import type { ServiceRequestTypeEnum } from './ServiceRequestTypeEnum';
16
16
  import type { ServiceRequestStatusEnum } from './ServiceRequestStatusEnum';
17
17
  /**
@@ -106,10 +106,10 @@ export interface ServiceRequest {
106
106
  assignedTo?: string;
107
107
  /**
108
108
  *
109
- * @type {User}
109
+ * @type {PickTypeClass}
110
110
  * @memberof ServiceRequest
111
111
  */
112
- assignedUser?: User;
112
+ assignedUser?: PickTypeClass;
113
113
  /**
114
114
  *
115
115
  * @type {Date}
@@ -12,8 +12,8 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { ServiceRequestPriorityEnumFromJSON, ServiceRequestPriorityEnumToJSON, } from './ServiceRequestPriorityEnum';
15
- import { UserFromJSON, UserToJSON, } from './User';
16
15
  import { ConsumerFromJSON, ConsumerToJSON, } from './Consumer';
16
+ import { PickTypeClassFromJSON, PickTypeClassToJSON, } from './PickTypeClass';
17
17
  import { ServiceRequestTypeEnumFromJSON, ServiceRequestTypeEnumToJSON, } from './ServiceRequestTypeEnum';
18
18
  import { ServiceRequestStatusEnumFromJSON, ServiceRequestStatusEnumToJSON, } from './ServiceRequestStatusEnum';
19
19
  /**
@@ -66,7 +66,7 @@ export function ServiceRequestFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'subject': json['subject'],
67
67
  'description': json['description'],
68
68
  'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
69
- 'assignedUser': json['assignedUser'] == null ? undefined : UserFromJSON(json['assignedUser']),
69
+ 'assignedUser': json['assignedUser'] == null ? undefined : PickTypeClassFromJSON(json['assignedUser']),
70
70
  'scheduledDate': json['scheduledDate'] == null ? undefined : (new Date(json['scheduledDate'])),
71
71
  'completedAt': json['completedAt'] == null ? undefined : (new Date(json['completedAt'])),
72
72
  'completionNotes': json['completionNotes'] == null ? undefined : json['completionNotes'],
@@ -98,7 +98,7 @@ export function ServiceRequestToJSONTyped(value, ignoreDiscriminator = false) {
98
98
  'subject': value['subject'],
99
99
  'description': value['description'],
100
100
  'assignedTo': value['assignedTo'],
101
- 'assignedUser': UserToJSON(value['assignedUser']),
101
+ 'assignedUser': PickTypeClassToJSON(value['assignedUser']),
102
102
  'scheduledDate': value['scheduledDate'] == null ? undefined : ((value['scheduledDate']).toISOString()),
103
103
  'completedAt': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
104
104
  'completionNotes': value['completionNotes'],
@@ -113,12 +113,6 @@ export interface User {
113
113
  * @memberof User
114
114
  */
115
115
  assignedComplaints?: Array<Complaint>;
116
- /**
117
- *
118
- * @type {object}
119
- * @memberof User
120
- */
121
- metadata?: object;
122
116
  /**
123
117
  * Field roles assigned to field_operations staff. Supports multiple roles (e.g. line_man + service_crew).
124
118
  * @type {Array<FieldRoleEnum>}
@@ -66,7 +66,6 @@ export function UserFromJSONTyped(json, ignoreDiscriminator) {
66
66
  'status': UserStatusEnumFromJSON(json['status']),
67
67
  'ownedConsumers': json['ownedConsumers'] == null ? undefined : (json['ownedConsumers'].map(ConsumerFromJSON)),
68
68
  'assignedComplaints': json['assignedComplaints'] == null ? undefined : (json['assignedComplaints'].map(ComplaintFromJSON)),
69
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
70
69
  'fieldRoles': json['fieldRoles'] == null ? undefined : (json['fieldRoles'].map(FieldRoleEnumFromJSON)),
71
70
  'lastLogoutAt': json['lastLogoutAt'] == null ? undefined : json['lastLogoutAt'],
72
71
  };
@@ -94,7 +93,6 @@ export function UserToJSONTyped(value, ignoreDiscriminator = false) {
94
93
  'status': UserStatusEnumToJSON(value['status']),
95
94
  'ownedConsumers': value['ownedConsumers'] == null ? undefined : (value['ownedConsumers'].map(ConsumerToJSON)),
96
95
  'assignedComplaints': value['assignedComplaints'] == null ? undefined : (value['assignedComplaints'].map(ComplaintToJSON)),
97
- 'metadata': value['metadata'],
98
96
  'fieldRoles': value['fieldRoles'] == null ? undefined : (value['fieldRoles'].map(FieldRoleEnumToJSON)),
99
97
  'lastLogoutAt': value['lastLogoutAt'],
100
98
  };
@@ -139,6 +139,7 @@ export * from './PaginatedNotifications';
139
139
  export * from './PaginatedResponseDto';
140
140
  export * from './PaginationMetaDto';
141
141
  export * from './PerformanceReportSuccessResponse';
142
+ export * from './PickTypeClass';
142
143
  export * from './PreviewBillDto';
143
144
  export * from './PreviewMeterReadingDto';
144
145
  export * from './Rate';
@@ -141,6 +141,7 @@ export * from './PaginatedNotifications';
141
141
  export * from './PaginatedResponseDto';
142
142
  export * from './PaginationMetaDto';
143
143
  export * from './PerformanceReportSuccessResponse';
144
+ export * from './PickTypeClass';
144
145
  export * from './PreviewBillDto';
145
146
  export * from './PreviewMeterReadingDto';
146
147
  export * from './Rate';
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Electric Cooperative Consumer Portal API
3
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PickTypeClass
16
+ */
17
+ export interface PickTypeClass {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PickTypeClass
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PickTypeClass
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PickTypeClass interface.
33
+ */
34
+ export declare function instanceOfPickTypeClass(value: object): value is PickTypeClass;
35
+ export declare function PickTypeClassFromJSON(json: any): PickTypeClass;
36
+ export declare function PickTypeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickTypeClass;
37
+ export declare function PickTypeClassToJSON(json: any): PickTypeClass;
38
+ export declare function PickTypeClassToJSONTyped(value?: PickTypeClass | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Electric Cooperative Consumer Portal API
6
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPickTypeClass = instanceOfPickTypeClass;
17
+ exports.PickTypeClassFromJSON = PickTypeClassFromJSON;
18
+ exports.PickTypeClassFromJSONTyped = PickTypeClassFromJSONTyped;
19
+ exports.PickTypeClassToJSON = PickTypeClassToJSON;
20
+ exports.PickTypeClassToJSONTyped = PickTypeClassToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PickTypeClass interface.
23
+ */
24
+ function instanceOfPickTypeClass(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PickTypeClassFromJSON(json) {
32
+ return PickTypeClassFromJSONTyped(json, false);
33
+ }
34
+ function PickTypeClassFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function PickTypeClassToJSON(json) {
44
+ return PickTypeClassToJSONTyped(json, false);
45
+ }
46
+ function PickTypeClassToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -10,8 +10,8 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ServiceRequestPriorityEnum } from './ServiceRequestPriorityEnum';
13
- import type { User } from './User';
14
13
  import type { Consumer } from './Consumer';
14
+ import type { PickTypeClass } from './PickTypeClass';
15
15
  import type { ServiceRequestTypeEnum } from './ServiceRequestTypeEnum';
16
16
  import type { ServiceRequestStatusEnum } from './ServiceRequestStatusEnum';
17
17
  /**
@@ -106,10 +106,10 @@ export interface ServiceRequest {
106
106
  assignedTo?: string;
107
107
  /**
108
108
  *
109
- * @type {User}
109
+ * @type {PickTypeClass}
110
110
  * @memberof ServiceRequest
111
111
  */
112
- assignedUser?: User;
112
+ assignedUser?: PickTypeClass;
113
113
  /**
114
114
  *
115
115
  * @type {Date}
@@ -19,8 +19,8 @@ exports.ServiceRequestFromJSONTyped = ServiceRequestFromJSONTyped;
19
19
  exports.ServiceRequestToJSON = ServiceRequestToJSON;
20
20
  exports.ServiceRequestToJSONTyped = ServiceRequestToJSONTyped;
21
21
  const ServiceRequestPriorityEnum_1 = require("./ServiceRequestPriorityEnum");
22
- const User_1 = require("./User");
23
22
  const Consumer_1 = require("./Consumer");
23
+ const PickTypeClass_1 = require("./PickTypeClass");
24
24
  const ServiceRequestTypeEnum_1 = require("./ServiceRequestTypeEnum");
25
25
  const ServiceRequestStatusEnum_1 = require("./ServiceRequestStatusEnum");
26
26
  /**
@@ -73,7 +73,7 @@ function ServiceRequestFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'subject': json['subject'],
74
74
  'description': json['description'],
75
75
  'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
76
- 'assignedUser': json['assignedUser'] == null ? undefined : (0, User_1.UserFromJSON)(json['assignedUser']),
76
+ 'assignedUser': json['assignedUser'] == null ? undefined : (0, PickTypeClass_1.PickTypeClassFromJSON)(json['assignedUser']),
77
77
  'scheduledDate': json['scheduledDate'] == null ? undefined : (new Date(json['scheduledDate'])),
78
78
  'completedAt': json['completedAt'] == null ? undefined : (new Date(json['completedAt'])),
79
79
  'completionNotes': json['completionNotes'] == null ? undefined : json['completionNotes'],
@@ -105,7 +105,7 @@ function ServiceRequestToJSONTyped(value, ignoreDiscriminator = false) {
105
105
  'subject': value['subject'],
106
106
  'description': value['description'],
107
107
  'assignedTo': value['assignedTo'],
108
- 'assignedUser': (0, User_1.UserToJSON)(value['assignedUser']),
108
+ 'assignedUser': (0, PickTypeClass_1.PickTypeClassToJSON)(value['assignedUser']),
109
109
  'scheduledDate': value['scheduledDate'] == null ? undefined : ((value['scheduledDate']).toISOString()),
110
110
  'completedAt': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
111
111
  'completionNotes': value['completionNotes'],
@@ -113,12 +113,6 @@ export interface User {
113
113
  * @memberof User
114
114
  */
115
115
  assignedComplaints?: Array<Complaint>;
116
- /**
117
- *
118
- * @type {object}
119
- * @memberof User
120
- */
121
- metadata?: object;
122
116
  /**
123
117
  * Field roles assigned to field_operations staff. Supports multiple roles (e.g. line_man + service_crew).
124
118
  * @type {Array<FieldRoleEnum>}
@@ -73,7 +73,6 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
73
73
  'status': (0, UserStatusEnum_1.UserStatusEnumFromJSON)(json['status']),
74
74
  'ownedConsumers': json['ownedConsumers'] == null ? undefined : (json['ownedConsumers'].map(Consumer_1.ConsumerFromJSON)),
75
75
  'assignedComplaints': json['assignedComplaints'] == null ? undefined : (json['assignedComplaints'].map(Complaint_1.ComplaintFromJSON)),
76
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
77
76
  'fieldRoles': json['fieldRoles'] == null ? undefined : (json['fieldRoles'].map(FieldRoleEnum_1.FieldRoleEnumFromJSON)),
78
77
  'lastLogoutAt': json['lastLogoutAt'] == null ? undefined : json['lastLogoutAt'],
79
78
  };
@@ -101,7 +100,6 @@ function UserToJSONTyped(value, ignoreDiscriminator = false) {
101
100
  'status': (0, UserStatusEnum_1.UserStatusEnumToJSON)(value['status']),
102
101
  'ownedConsumers': value['ownedConsumers'] == null ? undefined : (value['ownedConsumers'].map(Consumer_1.ConsumerToJSON)),
103
102
  'assignedComplaints': value['assignedComplaints'] == null ? undefined : (value['assignedComplaints'].map(Complaint_1.ComplaintToJSON)),
104
- 'metadata': value['metadata'],
105
103
  'fieldRoles': value['fieldRoles'] == null ? undefined : (value['fieldRoles'].map(FieldRoleEnum_1.FieldRoleEnumToJSON)),
106
104
  'lastLogoutAt': value['lastLogoutAt'],
107
105
  };
@@ -139,6 +139,7 @@ export * from './PaginatedNotifications';
139
139
  export * from './PaginatedResponseDto';
140
140
  export * from './PaginationMetaDto';
141
141
  export * from './PerformanceReportSuccessResponse';
142
+ export * from './PickTypeClass';
142
143
  export * from './PreviewBillDto';
143
144
  export * from './PreviewMeterReadingDto';
144
145
  export * from './Rate';
@@ -157,6 +157,7 @@ __exportStar(require("./PaginatedNotifications"), exports);
157
157
  __exportStar(require("./PaginatedResponseDto"), exports);
158
158
  __exportStar(require("./PaginationMetaDto"), exports);
159
159
  __exportStar(require("./PerformanceReportSuccessResponse"), exports);
160
+ __exportStar(require("./PickTypeClass"), exports);
160
161
  __exportStar(require("./PreviewBillDto"), exports);
161
162
  __exportStar(require("./PreviewMeterReadingDto"), exports);
162
163
  __exportStar(require("./Rate"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electric-coop-api",
3
- "version": "0.1.71",
3
+ "version": "0.1.72",
4
4
  "description": "OpenAPI client for electric-coop-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Electric Cooperative Consumer Portal API
5
+ * Multi-tenant SaaS platform for Philippine electric cooperatives
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PickTypeClass
20
+ */
21
+ export interface PickTypeClass {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PickTypeClass
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PickTypeClass
32
+ */
33
+ name: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PickTypeClass interface.
38
+ */
39
+ export function instanceOfPickTypeClass(value: object): value is PickTypeClass {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('name' in value) || value['name'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function PickTypeClassFromJSON(json: any): PickTypeClass {
46
+ return PickTypeClassFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function PickTypeClassFromJSONTyped(json: any, ignoreDiscriminator: boolean): PickTypeClass {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'name': json['name'],
57
+ };
58
+ }
59
+
60
+ export function PickTypeClassToJSON(json: any): PickTypeClass {
61
+ return PickTypeClassToJSONTyped(json, false);
62
+ }
63
+
64
+ export function PickTypeClassToJSONTyped(value?: PickTypeClass | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ };
74
+ }
75
+
@@ -20,13 +20,6 @@ import {
20
20
  ServiceRequestPriorityEnumToJSON,
21
21
  ServiceRequestPriorityEnumToJSONTyped,
22
22
  } from './ServiceRequestPriorityEnum';
23
- import type { User } from './User';
24
- import {
25
- UserFromJSON,
26
- UserFromJSONTyped,
27
- UserToJSON,
28
- UserToJSONTyped,
29
- } from './User';
30
23
  import type { Consumer } from './Consumer';
31
24
  import {
32
25
  ConsumerFromJSON,
@@ -34,6 +27,13 @@ import {
34
27
  ConsumerToJSON,
35
28
  ConsumerToJSONTyped,
36
29
  } from './Consumer';
30
+ import type { PickTypeClass } from './PickTypeClass';
31
+ import {
32
+ PickTypeClassFromJSON,
33
+ PickTypeClassFromJSONTyped,
34
+ PickTypeClassToJSON,
35
+ PickTypeClassToJSONTyped,
36
+ } from './PickTypeClass';
37
37
  import type { ServiceRequestTypeEnum } from './ServiceRequestTypeEnum';
38
38
  import {
39
39
  ServiceRequestTypeEnumFromJSON,
@@ -141,10 +141,10 @@ export interface ServiceRequest {
141
141
  assignedTo?: string;
142
142
  /**
143
143
  *
144
- * @type {User}
144
+ * @type {PickTypeClass}
145
145
  * @memberof ServiceRequest
146
146
  */
147
- assignedUser?: User;
147
+ assignedUser?: PickTypeClass;
148
148
  /**
149
149
  *
150
150
  * @type {Date}
@@ -233,7 +233,7 @@ export function ServiceRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
233
233
  'subject': json['subject'],
234
234
  'description': json['description'],
235
235
  'assignedTo': json['assignedTo'] == null ? undefined : json['assignedTo'],
236
- 'assignedUser': json['assignedUser'] == null ? undefined : UserFromJSON(json['assignedUser']),
236
+ 'assignedUser': json['assignedUser'] == null ? undefined : PickTypeClassFromJSON(json['assignedUser']),
237
237
  'scheduledDate': json['scheduledDate'] == null ? undefined : (new Date(json['scheduledDate'])),
238
238
  'completedAt': json['completedAt'] == null ? undefined : (new Date(json['completedAt'])),
239
239
  'completionNotes': json['completionNotes'] == null ? undefined : json['completionNotes'],
@@ -269,7 +269,7 @@ export function ServiceRequestToJSONTyped(value?: ServiceRequest | null, ignoreD
269
269
  'subject': value['subject'],
270
270
  'description': value['description'],
271
271
  'assignedTo': value['assignedTo'],
272
- 'assignedUser': UserToJSON(value['assignedUser']),
272
+ 'assignedUser': PickTypeClassToJSON(value['assignedUser']),
273
273
  'scheduledDate': value['scheduledDate'] == null ? undefined : ((value['scheduledDate']).toISOString()),
274
274
  'completedAt': value['completedAt'] == null ? undefined : ((value['completedAt']).toISOString()),
275
275
  'completionNotes': value['completionNotes'],
@@ -166,12 +166,6 @@ export interface User {
166
166
  * @memberof User
167
167
  */
168
168
  assignedComplaints?: Array<Complaint>;
169
- /**
170
- *
171
- * @type {object}
172
- * @memberof User
173
- */
174
- metadata?: object;
175
169
  /**
176
170
  * Field roles assigned to field_operations staff. Supports multiple roles (e.g. line_man + service_crew).
177
171
  * @type {Array<FieldRoleEnum>}
@@ -229,7 +223,6 @@ export function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User
229
223
  'status': UserStatusEnumFromJSON(json['status']),
230
224
  'ownedConsumers': json['ownedConsumers'] == null ? undefined : ((json['ownedConsumers'] as Array<any>).map(ConsumerFromJSON)),
231
225
  'assignedComplaints': json['assignedComplaints'] == null ? undefined : ((json['assignedComplaints'] as Array<any>).map(ComplaintFromJSON)),
232
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
233
226
  'fieldRoles': json['fieldRoles'] == null ? undefined : ((json['fieldRoles'] as Array<any>).map(FieldRoleEnumFromJSON)),
234
227
  'lastLogoutAt': json['lastLogoutAt'] == null ? undefined : json['lastLogoutAt'],
235
228
  };
@@ -261,7 +254,6 @@ export function UserToJSONTyped(value?: User | null, ignoreDiscriminator: boolea
261
254
  'status': UserStatusEnumToJSON(value['status']),
262
255
  'ownedConsumers': value['ownedConsumers'] == null ? undefined : ((value['ownedConsumers'] as Array<any>).map(ConsumerToJSON)),
263
256
  'assignedComplaints': value['assignedComplaints'] == null ? undefined : ((value['assignedComplaints'] as Array<any>).map(ComplaintToJSON)),
264
- 'metadata': value['metadata'],
265
257
  'fieldRoles': value['fieldRoles'] == null ? undefined : ((value['fieldRoles'] as Array<any>).map(FieldRoleEnumToJSON)),
266
258
  'lastLogoutAt': value['lastLogoutAt'],
267
259
  };
@@ -141,6 +141,7 @@ export * from './PaginatedNotifications';
141
141
  export * from './PaginatedResponseDto';
142
142
  export * from './PaginationMetaDto';
143
143
  export * from './PerformanceReportSuccessResponse';
144
+ export * from './PickTypeClass';
144
145
  export * from './PreviewBillDto';
145
146
  export * from './PreviewMeterReadingDto';
146
147
  export * from './Rate';