@digital8/security-registers-backend-ts-sdk 0.0.79 → 0.0.81

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.
Files changed (46) hide show
  1. package/.openapi-generator/FILES +0 -7
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +3 -28
  4. package/dist/apis/GeneralApi.js +4 -117
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/AssetResource.d.ts +1 -1
  8. package/dist/models/AssetResource.js +1 -3
  9. package/dist/models/StoreUserRequest.d.ts +2 -2
  10. package/dist/models/UpdateUserRequest.d.ts +17 -3
  11. package/dist/models/UpdateUserRequest.js +16 -2
  12. package/dist/models/UsersCreateWithRoleRequest.d.ts +6 -6
  13. package/dist/models/UsersCreateWithRoleRequest.js +4 -4
  14. package/dist/models/UsersRegisterVenueManagerRequest.d.ts +2 -2
  15. package/dist/models/index.d.ts +0 -7
  16. package/dist/models/index.js +0 -7
  17. package/package.json +1 -1
  18. package/src/apis/GeneralApi.ts +3 -113
  19. package/src/models/AddressResource.ts +2 -3
  20. package/src/models/AssetResource.ts +2 -3
  21. package/src/models/StoreUserRequest.ts +2 -2
  22. package/src/models/UpdateUserRequest.ts +26 -5
  23. package/src/models/UsersCreateWithRoleRequest.ts +10 -10
  24. package/src/models/UsersRegisterVenueManagerRequest.ts +2 -2
  25. package/src/models/index.ts +0 -7
  26. package/dist/models/IndexMinimalUserRequest.d.ts +0 -104
  27. package/dist/models/IndexMinimalUserRequest.js +0 -84
  28. package/dist/models/SecurityCompaniesListAllRequest.d.ts +0 -94
  29. package/dist/models/SecurityCompaniesListAllRequest.js +0 -82
  30. package/dist/models/SecurityCompanyLiteResource.d.ts +0 -38
  31. package/dist/models/SecurityCompanyLiteResource.js +0 -53
  32. package/dist/models/SecurityCompanyLiteResourceArrayResponse.d.ts +0 -33
  33. package/dist/models/SecurityCompanyLiteResourceArrayResponse.js +0 -50
  34. package/dist/models/VenueLiteResource.d.ts +0 -38
  35. package/dist/models/VenueLiteResource.js +0 -53
  36. package/dist/models/VenueLiteResourceArrayResponse.d.ts +0 -33
  37. package/dist/models/VenueLiteResourceArrayResponse.js +0 -50
  38. package/dist/models/VenuesListAllRequest.d.ts +0 -112
  39. package/dist/models/VenuesListAllRequest.js +0 -88
  40. package/src/models/IndexMinimalUserRequest.ts +0 -159
  41. package/src/models/SecurityCompaniesListAllRequest.ts +0 -145
  42. package/src/models/SecurityCompanyLiteResource.ts +0 -74
  43. package/src/models/SecurityCompanyLiteResourceArrayResponse.ts +0 -73
  44. package/src/models/VenueLiteResource.ts +0 -74
  45. package/src/models/VenueLiteResourceArrayResponse.ts +0 -73
  46. package/src/models/VenuesListAllRequest.ts +0 -169
@@ -1,88 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.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.VenuesListAllRequestSortDirectionEnum = exports.VenuesListAllRequestSortByEnum = void 0;
17
- exports.instanceOfVenuesListAllRequest = instanceOfVenuesListAllRequest;
18
- exports.VenuesListAllRequestFromJSON = VenuesListAllRequestFromJSON;
19
- exports.VenuesListAllRequestFromJSONTyped = VenuesListAllRequestFromJSONTyped;
20
- exports.VenuesListAllRequestToJSON = VenuesListAllRequestToJSON;
21
- exports.VenuesListAllRequestToJSONTyped = VenuesListAllRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.VenuesListAllRequestSortByEnum = {
26
- Name: 'name',
27
- VenueCode: 'venue_code',
28
- Timezone: 'timezone',
29
- IsEnabled: 'is_enabled',
30
- CreatedAt: 'created_at',
31
- UpdatedAt: 'updated_at'
32
- };
33
- /**
34
- * @export
35
- */
36
- exports.VenuesListAllRequestSortDirectionEnum = {
37
- Asc: 'asc',
38
- Desc: 'desc'
39
- };
40
- /**
41
- * Check if a given object implements the VenuesListAllRequest interface.
42
- */
43
- function instanceOfVenuesListAllRequest(value) {
44
- return true;
45
- }
46
- function VenuesListAllRequestFromJSON(json) {
47
- return VenuesListAllRequestFromJSONTyped(json, false);
48
- }
49
- function VenuesListAllRequestFromJSONTyped(json, ignoreDiscriminator) {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
- 'search': json['search'] == null ? undefined : json['search'],
55
- 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
56
- 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
57
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
58
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
59
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
60
- 'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
61
- 'badgeNumberRequired': json['badge_number_required'] == null ? undefined : json['badge_number_required'],
62
- 'venueSignOnCodeRequired': json['venue_sign_on_code_required'] == null ? undefined : json['venue_sign_on_code_required'],
63
- 'primaryManagerId': json['primary_manager_id'] == null ? undefined : json['primary_manager_id'],
64
- 'addressState': json['address-state'] == null ? undefined : json['address-state'],
65
- };
66
- }
67
- function VenuesListAllRequestToJSON(json) {
68
- return VenuesListAllRequestToJSONTyped(json, false);
69
- }
70
- function VenuesListAllRequestToJSONTyped(value, ignoreDiscriminator) {
71
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
72
- if (value == null) {
73
- return value;
74
- }
75
- return {
76
- 'search': value['search'],
77
- 'sort_by': value['sortBy'],
78
- 'sort_direction': value['sortDirection'],
79
- 'related_id': value['relatedId'],
80
- 'related_type': value['relatedType'],
81
- 'includes_relations': value['includesRelations'],
82
- 'is_enabled': value['isEnabled'],
83
- 'badge_number_required': value['badgeNumberRequired'],
84
- 'venue_sign_on_code_required': value['venueSignOnCodeRequired'],
85
- 'primary_manager_id': value['primaryManagerId'],
86
- 'address-state': value['addressState'],
87
- };
88
- }
@@ -1,159 +0,0 @@
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 IndexMinimalUserRequest
20
- */
21
- export interface IndexMinimalUserRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IndexMinimalUserRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IndexMinimalUserRequest
32
- */
33
- sortBy?: IndexMinimalUserRequestSortByEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IndexMinimalUserRequest
38
- */
39
- sortDirection?: IndexMinimalUserRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof IndexMinimalUserRequest
44
- */
45
- relatedId?: number;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof IndexMinimalUserRequest
50
- */
51
- relatedType?: string;
52
- /**
53
- *
54
- * @type {boolean}
55
- * @memberof IndexMinimalUserRequest
56
- */
57
- includesRelations?: boolean;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof IndexMinimalUserRequest
62
- */
63
- venuesId?: Array<string>;
64
- /**
65
- *
66
- * @type {Array<string>}
67
- * @memberof IndexMinimalUserRequest
68
- */
69
- securityCompaniesId?: Array<string>;
70
- /**
71
- *
72
- * @type {Array<string>}
73
- * @memberof IndexMinimalUserRequest
74
- */
75
- rolesName?: Array<string>;
76
- /**
77
- *
78
- * @type {Array<string>}
79
- * @memberof IndexMinimalUserRequest
80
- */
81
- rolesId?: Array<string>;
82
- }
83
-
84
-
85
- /**
86
- * @export
87
- */
88
- export const IndexMinimalUserRequestSortByEnum = {
89
- FirstName: 'first_name',
90
- LastName: 'last_name',
91
- Email: 'email',
92
- Mobile: 'mobile'
93
- } as const;
94
- export type IndexMinimalUserRequestSortByEnum = typeof IndexMinimalUserRequestSortByEnum[keyof typeof IndexMinimalUserRequestSortByEnum];
95
-
96
- /**
97
- * @export
98
- */
99
- export const IndexMinimalUserRequestSortDirectionEnum = {
100
- Asc: 'asc',
101
- Desc: 'desc'
102
- } as const;
103
- export type IndexMinimalUserRequestSortDirectionEnum = typeof IndexMinimalUserRequestSortDirectionEnum[keyof typeof IndexMinimalUserRequestSortDirectionEnum];
104
-
105
-
106
- /**
107
- * Check if a given object implements the IndexMinimalUserRequest interface.
108
- */
109
- export function instanceOfIndexMinimalUserRequest(value: object): value is IndexMinimalUserRequest {
110
- return true;
111
- }
112
-
113
- export function IndexMinimalUserRequestFromJSON(json: any): IndexMinimalUserRequest {
114
- return IndexMinimalUserRequestFromJSONTyped(json, false);
115
- }
116
-
117
- export function IndexMinimalUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexMinimalUserRequest {
118
- if (json == null) {
119
- return json;
120
- }
121
- return {
122
-
123
- 'search': json['search'] == null ? undefined : json['search'],
124
- 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
125
- 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
126
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
127
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
128
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
129
- 'venuesId': json['venues-id'] == null ? undefined : json['venues-id'],
130
- 'securityCompaniesId': json['securityCompanies-id'] == null ? undefined : json['securityCompanies-id'],
131
- 'rolesName': json['roles-name'] == null ? undefined : json['roles-name'],
132
- 'rolesId': json['roles-id'] == null ? undefined : json['roles-id'],
133
- };
134
- }
135
-
136
- export function IndexMinimalUserRequestToJSON(json: any): IndexMinimalUserRequest {
137
- return IndexMinimalUserRequestToJSONTyped(json, false);
138
- }
139
-
140
- export function IndexMinimalUserRequestToJSONTyped(value?: IndexMinimalUserRequest | null, ignoreDiscriminator: boolean = false): any {
141
- if (value == null) {
142
- return value;
143
- }
144
-
145
- return {
146
-
147
- 'search': value['search'],
148
- 'sort_by': value['sortBy'],
149
- 'sort_direction': value['sortDirection'],
150
- 'related_id': value['relatedId'],
151
- 'related_type': value['relatedType'],
152
- 'includes_relations': value['includesRelations'],
153
- 'venues-id': value['venuesId'],
154
- 'securityCompanies-id': value['securityCompaniesId'],
155
- 'roles-name': value['rolesName'],
156
- 'roles-id': value['rolesId'],
157
- };
158
- }
159
-
@@ -1,145 +0,0 @@
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 SecurityCompaniesListAllRequest
20
- */
21
- export interface SecurityCompaniesListAllRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SecurityCompaniesListAllRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof SecurityCompaniesListAllRequest
32
- */
33
- sortBy?: SecurityCompaniesListAllRequestSortByEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof SecurityCompaniesListAllRequest
38
- */
39
- sortDirection?: SecurityCompaniesListAllRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof SecurityCompaniesListAllRequest
44
- */
45
- relatedId?: number;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof SecurityCompaniesListAllRequest
50
- */
51
- relatedType?: string;
52
- /**
53
- *
54
- * @type {boolean}
55
- * @memberof SecurityCompaniesListAllRequest
56
- */
57
- includesRelations?: boolean;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof SecurityCompaniesListAllRequest
62
- */
63
- isEnabled?: Array<string>;
64
- /**
65
- *
66
- * @type {Array<string>}
67
- * @memberof SecurityCompaniesListAllRequest
68
- */
69
- addressState?: Array<string>;
70
- }
71
-
72
-
73
- /**
74
- * @export
75
- */
76
- export const SecurityCompaniesListAllRequestSortByEnum = {
77
- Name: 'name',
78
- Email: 'email',
79
- IsEnabled: 'is_enabled',
80
- LicenceNumber: 'licence_number',
81
- CreatedAt: 'created_at',
82
- UpdatedAt: 'updated_at'
83
- } as const;
84
- export type SecurityCompaniesListAllRequestSortByEnum = typeof SecurityCompaniesListAllRequestSortByEnum[keyof typeof SecurityCompaniesListAllRequestSortByEnum];
85
-
86
- /**
87
- * @export
88
- */
89
- export const SecurityCompaniesListAllRequestSortDirectionEnum = {
90
- Asc: 'asc',
91
- Desc: 'desc'
92
- } as const;
93
- export type SecurityCompaniesListAllRequestSortDirectionEnum = typeof SecurityCompaniesListAllRequestSortDirectionEnum[keyof typeof SecurityCompaniesListAllRequestSortDirectionEnum];
94
-
95
-
96
- /**
97
- * Check if a given object implements the SecurityCompaniesListAllRequest interface.
98
- */
99
- export function instanceOfSecurityCompaniesListAllRequest(value: object): value is SecurityCompaniesListAllRequest {
100
- return true;
101
- }
102
-
103
- export function SecurityCompaniesListAllRequestFromJSON(json: any): SecurityCompaniesListAllRequest {
104
- return SecurityCompaniesListAllRequestFromJSONTyped(json, false);
105
- }
106
-
107
- export function SecurityCompaniesListAllRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesListAllRequest {
108
- if (json == null) {
109
- return json;
110
- }
111
- return {
112
-
113
- 'search': json['search'] == null ? undefined : json['search'],
114
- 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
115
- 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
116
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
117
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
118
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
119
- 'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
120
- 'addressState': json['address-state'] == null ? undefined : json['address-state'],
121
- };
122
- }
123
-
124
- export function SecurityCompaniesListAllRequestToJSON(json: any): SecurityCompaniesListAllRequest {
125
- return SecurityCompaniesListAllRequestToJSONTyped(json, false);
126
- }
127
-
128
- export function SecurityCompaniesListAllRequestToJSONTyped(value?: SecurityCompaniesListAllRequest | null, ignoreDiscriminator: boolean = false): any {
129
- if (value == null) {
130
- return value;
131
- }
132
-
133
- return {
134
-
135
- 'search': value['search'],
136
- 'sort_by': value['sortBy'],
137
- 'sort_direction': value['sortDirection'],
138
- 'related_id': value['relatedId'],
139
- 'related_type': value['relatedType'],
140
- 'includes_relations': value['includesRelations'],
141
- 'is_enabled': value['isEnabled'],
142
- 'address-state': value['addressState'],
143
- };
144
- }
145
-
@@ -1,74 +0,0 @@
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 SecurityCompanyLiteResource
20
- */
21
- export interface SecurityCompanyLiteResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof SecurityCompanyLiteResource
26
- */
27
- id?: number | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof SecurityCompanyLiteResource
32
- */
33
- name: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the SecurityCompanyLiteResource interface.
38
- */
39
- export function instanceOfSecurityCompanyLiteResource(value: object): value is SecurityCompanyLiteResource {
40
- if (!('name' in value) || value['name'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function SecurityCompanyLiteResourceFromJSON(json: any): SecurityCompanyLiteResource {
45
- return SecurityCompanyLiteResourceFromJSONTyped(json, false);
46
- }
47
-
48
- export function SecurityCompanyLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResource {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'id': json['id'] == null ? undefined : json['id'],
55
- 'name': json['name'],
56
- };
57
- }
58
-
59
- export function SecurityCompanyLiteResourceToJSON(json: any): SecurityCompanyLiteResource {
60
- return SecurityCompanyLiteResourceToJSONTyped(json, false);
61
- }
62
-
63
- export function SecurityCompanyLiteResourceToJSONTyped(value?: SecurityCompanyLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'id': value['id'],
71
- 'name': value['name'],
72
- };
73
- }
74
-
@@ -1,73 +0,0 @@
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 { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
17
- import {
18
- SecurityCompanyLiteResourceFromJSON,
19
- SecurityCompanyLiteResourceFromJSONTyped,
20
- SecurityCompanyLiteResourceToJSON,
21
- SecurityCompanyLiteResourceToJSONTyped,
22
- } from './SecurityCompanyLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface SecurityCompanyLiteResourceArrayResponse
28
- */
29
- export interface SecurityCompanyLiteResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<SecurityCompanyLiteResource>}
33
- * @memberof SecurityCompanyLiteResourceArrayResponse
34
- */
35
- data?: Array<SecurityCompanyLiteResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the SecurityCompanyLiteResourceArrayResponse interface.
40
- */
41
- export function instanceOfSecurityCompanyLiteResourceArrayResponse(value: object): value is SecurityCompanyLiteResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function SecurityCompanyLiteResourceArrayResponseFromJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
46
- return SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function SecurityCompanyLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyLiteResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyLiteResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function SecurityCompanyLiteResourceArrayResponseToJSON(json: any): SecurityCompanyLiteResourceArrayResponse {
60
- return SecurityCompanyLiteResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function SecurityCompanyLiteResourceArrayResponseToJSONTyped(value?: SecurityCompanyLiteResourceArrayResponse | 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(SecurityCompanyLiteResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,74 +0,0 @@
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 VenueLiteResource
20
- */
21
- export interface VenueLiteResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof VenueLiteResource
26
- */
27
- id?: number | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof VenueLiteResource
32
- */
33
- name: string;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the VenueLiteResource interface.
38
- */
39
- export function instanceOfVenueLiteResource(value: object): value is VenueLiteResource {
40
- if (!('name' in value) || value['name'] === undefined) return false;
41
- return true;
42
- }
43
-
44
- export function VenueLiteResourceFromJSON(json: any): VenueLiteResource {
45
- return VenueLiteResourceFromJSONTyped(json, false);
46
- }
47
-
48
- export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResource {
49
- if (json == null) {
50
- return json;
51
- }
52
- return {
53
-
54
- 'id': json['id'] == null ? undefined : json['id'],
55
- 'name': json['name'],
56
- };
57
- }
58
-
59
- export function VenueLiteResourceToJSON(json: any): VenueLiteResource {
60
- return VenueLiteResourceToJSONTyped(json, false);
61
- }
62
-
63
- export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'id': value['id'],
71
- 'name': value['name'],
72
- };
73
- }
74
-
@@ -1,73 +0,0 @@
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 { VenueLiteResource } from './VenueLiteResource';
17
- import {
18
- VenueLiteResourceFromJSON,
19
- VenueLiteResourceFromJSONTyped,
20
- VenueLiteResourceToJSON,
21
- VenueLiteResourceToJSONTyped,
22
- } from './VenueLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface VenueLiteResourceArrayResponse
28
- */
29
- export interface VenueLiteResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<VenueLiteResource>}
33
- * @memberof VenueLiteResourceArrayResponse
34
- */
35
- data?: Array<VenueLiteResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the VenueLiteResourceArrayResponse interface.
40
- */
41
- export function instanceOfVenueLiteResourceArrayResponse(value: object): value is VenueLiteResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function VenueLiteResourceArrayResponseFromJSON(json: any): VenueLiteResourceArrayResponse {
46
- return VenueLiteResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function VenueLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VenueLiteResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(VenueLiteResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function VenueLiteResourceArrayResponseToJSON(json: any): VenueLiteResourceArrayResponse {
60
- return VenueLiteResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function VenueLiteResourceArrayResponseToJSONTyped(value?: VenueLiteResourceArrayResponse | 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(VenueLiteResourceToJSON)),
71
- };
72
- }
73
-