@digital8/security-registers-backend-ts-sdk 0.0.55 → 0.0.57

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.
@@ -33,6 +33,7 @@ import type {
33
33
  StoreUserRequest,
34
34
  UpdateUserRequest,
35
35
  UserAuthTokenResource,
36
+ UserLiteResourceArrayResponse,
36
37
  UserResource,
37
38
  UsersRegisterVenueManagerRequest,
38
39
  VenueResource,
@@ -77,6 +78,8 @@ import {
77
78
  UpdateUserRequestToJSON,
78
79
  UserAuthTokenResourceFromJSON,
79
80
  UserAuthTokenResourceToJSON,
81
+ UserLiteResourceArrayResponseFromJSON,
82
+ UserLiteResourceArrayResponseToJSON,
80
83
  UserResourceFromJSON,
81
84
  UserResourceToJSON,
82
85
  UsersRegisterVenueManagerRequestFromJSON,
@@ -197,14 +200,6 @@ export class GeneralApi extends runtime.BaseAPI {
197
200
 
198
201
  headerParameters['Content-Type'] = 'application/json';
199
202
 
200
- if (this.configuration && this.configuration.accessToken) {
201
- const token = this.configuration.accessToken;
202
- const tokenString = await token("bearerAuth", []);
203
-
204
- if (tokenString) {
205
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
206
- }
207
- }
208
203
 
209
204
  let urlPath = `/api/users/register-admin-user`;
210
205
 
@@ -242,14 +237,6 @@ export class GeneralApi extends runtime.BaseAPI {
242
237
 
243
238
  const headerParameters: runtime.HTTPHeaders = {};
244
239
 
245
- if (this.configuration && this.configuration.accessToken) {
246
- const token = this.configuration.accessToken;
247
- const tokenString = await token("bearerAuth", []);
248
-
249
- if (tokenString) {
250
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
251
- }
252
- }
253
240
 
254
241
  let urlPath = `/api/users/{user}/delete`;
255
242
  urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user'])));
@@ -280,14 +267,6 @@ export class GeneralApi extends runtime.BaseAPI {
280
267
 
281
268
  const headerParameters: runtime.HTTPHeaders = {};
282
269
 
283
- if (this.configuration && this.configuration.accessToken) {
284
- const token = this.configuration.accessToken;
285
- const tokenString = await token("bearerAuth", []);
286
-
287
- if (tokenString) {
288
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
- }
290
- }
291
270
 
292
271
  let urlPath = `/api/auth/profile`;
293
272
 
@@ -309,6 +288,35 @@ export class GeneralApi extends runtime.BaseAPI {
309
288
  return await response.value();
310
289
  }
311
290
 
291
+ /**
292
+ * Auto-generated: indexMinimalUser
293
+ */
294
+ async indexMinimalUserRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>> {
295
+ const queryParameters: any = {};
296
+
297
+ const headerParameters: runtime.HTTPHeaders = {};
298
+
299
+
300
+ let urlPath = `/api/users/list/all`;
301
+
302
+ const response = await this.request({
303
+ path: urlPath,
304
+ method: 'POST',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ }, initOverrides);
308
+
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserLiteResourceArrayResponseFromJSON(jsonValue));
310
+ }
311
+
312
+ /**
313
+ * Auto-generated: indexMinimalUser
314
+ */
315
+ async indexMinimalUser(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse> {
316
+ const response = await this.indexMinimalUserRaw(initOverrides);
317
+ return await response.value();
318
+ }
319
+
312
320
  /**
313
321
  * Auto-generated: indexUser
314
322
  */
@@ -319,14 +327,6 @@ export class GeneralApi extends runtime.BaseAPI {
319
327
 
320
328
  headerParameters['Content-Type'] = 'application/json';
321
329
 
322
- if (this.configuration && this.configuration.accessToken) {
323
- const token = this.configuration.accessToken;
324
- const tokenString = await token("bearerAuth", []);
325
-
326
- if (tokenString) {
327
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
328
- }
329
- }
330
330
 
331
331
  let urlPath = `/api/users/list`;
332
332
 
@@ -359,14 +359,6 @@ export class GeneralApi extends runtime.BaseAPI {
359
359
 
360
360
  headerParameters['Content-Type'] = 'application/json';
361
361
 
362
- if (this.configuration && this.configuration.accessToken) {
363
- const token = this.configuration.accessToken;
364
- const tokenString = await token("bearerAuth", []);
365
-
366
- if (tokenString) {
367
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
368
- }
369
- }
370
362
 
371
363
  let urlPath = `/api/auth/login`;
372
364
 
@@ -397,14 +389,6 @@ export class GeneralApi extends runtime.BaseAPI {
397
389
 
398
390
  const headerParameters: runtime.HTTPHeaders = {};
399
391
 
400
- if (this.configuration && this.configuration.accessToken) {
401
- const token = this.configuration.accessToken;
402
- const tokenString = await token("bearerAuth", []);
403
-
404
- if (tokenString) {
405
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
406
- }
407
- }
408
392
 
409
393
  let urlPath = `/api/auth/logout`;
410
394
 
@@ -436,14 +420,6 @@ export class GeneralApi extends runtime.BaseAPI {
436
420
 
437
421
  headerParameters['Content-Type'] = 'application/json';
438
422
 
439
- if (this.configuration && this.configuration.accessToken) {
440
- const token = this.configuration.accessToken;
441
- const tokenString = await token("bearerAuth", []);
442
-
443
- if (tokenString) {
444
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
445
- }
446
- }
447
423
 
448
424
  let urlPath = `/api/auth/reset-password`;
449
425
 
@@ -481,14 +457,6 @@ export class GeneralApi extends runtime.BaseAPI {
481
457
 
482
458
  const headerParameters: runtime.HTTPHeaders = {};
483
459
 
484
- if (this.configuration && this.configuration.accessToken) {
485
- const token = this.configuration.accessToken;
486
- const tokenString = await token("bearerAuth", []);
487
-
488
- if (tokenString) {
489
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
490
- }
491
- }
492
460
 
493
461
  let urlPath = `/api/security-companies/{securityCompany}/delete`;
494
462
  urlPath = urlPath.replace(`{${"securityCompany"}}`, encodeURIComponent(String(requestParameters['securityCompany'])));
@@ -521,14 +489,6 @@ export class GeneralApi extends runtime.BaseAPI {
521
489
 
522
490
  headerParameters['Content-Type'] = 'application/json';
523
491
 
524
- if (this.configuration && this.configuration.accessToken) {
525
- const token = this.configuration.accessToken;
526
- const tokenString = await token("bearerAuth", []);
527
-
528
- if (tokenString) {
529
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
530
- }
531
- }
532
492
 
533
493
  let urlPath = `/api/security-companies/list`;
534
494
 
@@ -566,14 +526,6 @@ export class GeneralApi extends runtime.BaseAPI {
566
526
 
567
527
  const headerParameters: runtime.HTTPHeaders = {};
568
528
 
569
- if (this.configuration && this.configuration.accessToken) {
570
- const token = this.configuration.accessToken;
571
- const tokenString = await token("bearerAuth", []);
572
-
573
- if (tokenString) {
574
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
575
- }
576
- }
577
529
 
578
530
  let urlPath = `/api/security-companies/{securityCompany}`;
579
531
  urlPath = urlPath.replace(`{${"securityCompany"}}`, encodeURIComponent(String(requestParameters['securityCompany'])));
@@ -606,14 +558,6 @@ export class GeneralApi extends runtime.BaseAPI {
606
558
 
607
559
  headerParameters['Content-Type'] = 'application/json';
608
560
 
609
- if (this.configuration && this.configuration.accessToken) {
610
- const token = this.configuration.accessToken;
611
- const tokenString = await token("bearerAuth", []);
612
-
613
- if (tokenString) {
614
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
615
- }
616
- }
617
561
 
618
562
  let urlPath = `/api/security-companies`;
619
563
 
@@ -653,14 +597,6 @@ export class GeneralApi extends runtime.BaseAPI {
653
597
 
654
598
  headerParameters['Content-Type'] = 'application/json';
655
599
 
656
- if (this.configuration && this.configuration.accessToken) {
657
- const token = this.configuration.accessToken;
658
- const tokenString = await token("bearerAuth", []);
659
-
660
- if (tokenString) {
661
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
662
- }
663
- }
664
600
 
665
601
  let urlPath = `/api/security-companies/{securityCompany}/update`;
666
602
  urlPath = urlPath.replace(`{${"securityCompany"}}`, encodeURIComponent(String(requestParameters['securityCompany'])));
@@ -694,14 +630,6 @@ export class GeneralApi extends runtime.BaseAPI {
694
630
 
695
631
  headerParameters['Content-Type'] = 'application/json';
696
632
 
697
- if (this.configuration && this.configuration.accessToken) {
698
- const token = this.configuration.accessToken;
699
- const tokenString = await token("bearerAuth", []);
700
-
701
- if (tokenString) {
702
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
703
- }
704
- }
705
633
 
706
634
  let urlPath = `/api/auth/forgot-password`;
707
635
 
@@ -734,14 +662,6 @@ export class GeneralApi extends runtime.BaseAPI {
734
662
 
735
663
  headerParameters['Content-Type'] = 'application/json';
736
664
 
737
- if (this.configuration && this.configuration.accessToken) {
738
- const token = this.configuration.accessToken;
739
- const tokenString = await token("bearerAuth", []);
740
-
741
- if (tokenString) {
742
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
743
- }
744
- }
745
665
 
746
666
  let urlPath = `/api/assets/file`;
747
667
 
@@ -774,14 +694,6 @@ export class GeneralApi extends runtime.BaseAPI {
774
694
 
775
695
  headerParameters['Content-Type'] = 'application/json';
776
696
 
777
- if (this.configuration && this.configuration.accessToken) {
778
- const token = this.configuration.accessToken;
779
- const tokenString = await token("bearerAuth", []);
780
-
781
- if (tokenString) {
782
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
783
- }
784
- }
785
697
 
786
698
  let urlPath = `/api/auth/register`;
787
699
 
@@ -821,14 +733,6 @@ export class GeneralApi extends runtime.BaseAPI {
821
733
 
822
734
  headerParameters['Content-Type'] = 'application/json';
823
735
 
824
- if (this.configuration && this.configuration.accessToken) {
825
- const token = this.configuration.accessToken;
826
- const tokenString = await token("bearerAuth", []);
827
-
828
- if (tokenString) {
829
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
830
- }
831
- }
832
736
 
833
737
  let urlPath = `/api/users/{user}/update`;
834
738
  urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user'])));
@@ -862,14 +766,6 @@ export class GeneralApi extends runtime.BaseAPI {
862
766
 
863
767
  headerParameters['Content-Type'] = 'application/json';
864
768
 
865
- if (this.configuration && this.configuration.accessToken) {
866
- const token = this.configuration.accessToken;
867
- const tokenString = await token("bearerAuth", []);
868
-
869
- if (tokenString) {
870
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
871
- }
872
- }
873
769
 
874
770
  let urlPath = `/api/users/register-venue-manager`;
875
771
 
@@ -907,14 +803,6 @@ export class GeneralApi extends runtime.BaseAPI {
907
803
 
908
804
  const headerParameters: runtime.HTTPHeaders = {};
909
805
 
910
- if (this.configuration && this.configuration.accessToken) {
911
- const token = this.configuration.accessToken;
912
- const tokenString = await token("bearerAuth", []);
913
-
914
- if (tokenString) {
915
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
916
- }
917
- }
918
806
 
919
807
  let urlPath = `/api/users/{user}`;
920
808
  urlPath = urlPath.replace(`{${"user"}}`, encodeURIComponent(String(requestParameters['user'])));
@@ -952,14 +840,6 @@ export class GeneralApi extends runtime.BaseAPI {
952
840
 
953
841
  const headerParameters: runtime.HTTPHeaders = {};
954
842
 
955
- if (this.configuration && this.configuration.accessToken) {
956
- const token = this.configuration.accessToken;
957
- const tokenString = await token("bearerAuth", []);
958
-
959
- if (tokenString) {
960
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
961
- }
962
- }
963
843
 
964
844
  let urlPath = `/api/venues/{venue}/delete`;
965
845
  urlPath = urlPath.replace(`{${"venue"}}`, encodeURIComponent(String(requestParameters['venue'])));
@@ -992,14 +872,6 @@ export class GeneralApi extends runtime.BaseAPI {
992
872
 
993
873
  headerParameters['Content-Type'] = 'application/json';
994
874
 
995
- if (this.configuration && this.configuration.accessToken) {
996
- const token = this.configuration.accessToken;
997
- const tokenString = await token("bearerAuth", []);
998
-
999
- if (tokenString) {
1000
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1001
- }
1002
- }
1003
875
 
1004
876
  let urlPath = `/api/venues/list`;
1005
877
 
@@ -1032,14 +904,6 @@ export class GeneralApi extends runtime.BaseAPI {
1032
904
 
1033
905
  headerParameters['Content-Type'] = 'application/json';
1034
906
 
1035
- if (this.configuration && this.configuration.accessToken) {
1036
- const token = this.configuration.accessToken;
1037
- const tokenString = await token("bearerAuth", []);
1038
-
1039
- if (tokenString) {
1040
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1041
- }
1042
- }
1043
907
 
1044
908
  let urlPath = `/api/venues/public`;
1045
909
 
@@ -1077,14 +941,6 @@ export class GeneralApi extends runtime.BaseAPI {
1077
941
 
1078
942
  const headerParameters: runtime.HTTPHeaders = {};
1079
943
 
1080
- if (this.configuration && this.configuration.accessToken) {
1081
- const token = this.configuration.accessToken;
1082
- const tokenString = await token("bearerAuth", []);
1083
-
1084
- if (tokenString) {
1085
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1086
- }
1087
- }
1088
944
 
1089
945
  let urlPath = `/api/venues/{venue}`;
1090
946
  urlPath = urlPath.replace(`{${"venue"}}`, encodeURIComponent(String(requestParameters['venue'])));
@@ -1117,14 +973,6 @@ export class GeneralApi extends runtime.BaseAPI {
1117
973
 
1118
974
  headerParameters['Content-Type'] = 'application/json';
1119
975
 
1120
- if (this.configuration && this.configuration.accessToken) {
1121
- const token = this.configuration.accessToken;
1122
- const tokenString = await token("bearerAuth", []);
1123
-
1124
- if (tokenString) {
1125
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1126
- }
1127
- }
1128
976
 
1129
977
  let urlPath = `/api/venues`;
1130
978
 
@@ -1164,14 +1012,6 @@ export class GeneralApi extends runtime.BaseAPI {
1164
1012
 
1165
1013
  headerParameters['Content-Type'] = 'application/json';
1166
1014
 
1167
- if (this.configuration && this.configuration.accessToken) {
1168
- const token = this.configuration.accessToken;
1169
- const tokenString = await token("bearerAuth", []);
1170
-
1171
- if (tokenString) {
1172
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1173
- }
1174
- }
1175
1015
 
1176
1016
  let urlPath = `/api/venues/{venue}/update`;
1177
1017
  urlPath = urlPath.replace(`{${"venue"}}`, encodeURIComponent(String(requestParameters['venue'])));
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2?: string | null;
39
+ addressLine2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,6 +80,7 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
83
84
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
84
85
  if (!('city' in value) || value['city'] === undefined) return false;
85
86
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
101
102
 
102
103
  'id': json['id'] == null ? undefined : json['id'],
103
104
  'addressLine1': json['addressLine1'],
104
- 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
105
+ 'addressLine2': json['addressLine2'],
105
106
  'suburb': json['suburb'],
106
107
  'city': json['city'],
107
108
  'state': json['state'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
71
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
72
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
73
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
+ if (!('altText' in value) || value['altText'] === undefined) return false;
74
75
  if (!('index' in value) || value['index'] === undefined) return false;
75
76
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
76
77
  return true;
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
90
91
  'filePath': json['filePath'],
91
92
  'fileName': json['fileName'],
92
93
  'mimeType': json['mimeType'],
93
- 'altText': json['altText'] == null ? undefined : json['altText'],
94
+ 'altText': json['altText'],
94
95
  'index': json['index'],
95
96
  'fileId': json['fileId'],
96
97
  };
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
47
+ email?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
85
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
86
  if (!('address' in value) || value['address'] === undefined) return false;
88
87
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'name': json['name'],
104
- 'email': json['email'],
103
+ 'email': json['email'] == null ? undefined : json['email'],
105
104
  'isEnabled': json['isEnabled'],
106
105
  'address': AddressResourceFromJSON(json['address']),
107
106
  'licenceNumber': json['licenceNumber'],
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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 UserLiteResource
20
+ */
21
+ export interface UserLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof UserLiteResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof UserLiteResource
32
+ */
33
+ firstName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof UserLiteResource
38
+ */
39
+ lastName: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the UserLiteResource interface.
44
+ */
45
+ export function instanceOfUserLiteResource(value: object): value is UserLiteResource {
46
+ if (!('id' in value) || value['id'] === undefined) return false;
47
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
48
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function UserLiteResourceFromJSON(json: any): UserLiteResource {
53
+ return UserLiteResourceFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function UserLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLiteResource {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'id': json['id'],
63
+ 'firstName': json['firstName'],
64
+ 'lastName': json['lastName'],
65
+ };
66
+ }
67
+
68
+ export function UserLiteResourceToJSON(json: any): UserLiteResource {
69
+ return UserLiteResourceToJSONTyped(json, false);
70
+ }
71
+
72
+ export function UserLiteResourceToJSONTyped(value?: UserLiteResource | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'id': value['id'],
80
+ 'firstName': value['firstName'],
81
+ 'lastName': value['lastName'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.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
+ import type { UserLiteResource } from './UserLiteResource';
17
+ import {
18
+ UserLiteResourceFromJSON,
19
+ UserLiteResourceFromJSONTyped,
20
+ UserLiteResourceToJSON,
21
+ UserLiteResourceToJSONTyped,
22
+ } from './UserLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface UserLiteResourceArrayResponse
28
+ */
29
+ export interface UserLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<UserLiteResource>}
33
+ * @memberof UserLiteResourceArrayResponse
34
+ */
35
+ data?: Array<UserLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the UserLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfUserLiteResourceArrayResponse(value: object): value is UserLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function UserLiteResourceArrayResponseFromJSON(json: any): UserLiteResourceArrayResponse {
46
+ return UserLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function UserLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UserLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function UserLiteResourceArrayResponseToJSON(json: any): UserLiteResourceArrayResponse {
60
+ return UserLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function UserLiteResourceArrayResponseToJSONTyped(value?: UserLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(UserLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -28,6 +28,8 @@ export * from './StoreUserRequest';
28
28
  export * from './UpdateUserRequest';
29
29
  export * from './UserAuthTokenResource';
30
30
  export * from './UserAuthTokenResourceArrayResponse';
31
+ export * from './UserLiteResource';
32
+ export * from './UserLiteResourceArrayResponse';
31
33
  export * from './UserResource';
32
34
  export * from './UserResourceArrayResponse';
33
35
  export * from './UsersRegisterVenueManagerRequest';