@digital8/security-registers-backend-ts-sdk 0.0.55 → 0.0.56
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/.openapi-generator/FILES +2 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.js +48 -288
- package/dist/models/UserRelationResource.d.ts +50 -0
- package/dist/models/UserRelationResource.js +63 -0
- package/dist/models/UserRelationResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserRelationResourceArrayResponse.js +50 -0
- package/dist/models/VenueResource.d.ts +7 -0
- package/dist/models/VenueResource.js +5 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -192
- package/src/models/UserRelationResource.ts +93 -0
- package/src/models/UserRelationResourceArrayResponse.ts +73 -0
- package/src/models/VenueResource.ts +16 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,93 @@
|
|
|
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 UserRelationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface UserRelationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserRelationResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UserRelationResource
|
|
32
|
+
*/
|
|
33
|
+
fullName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UserRelationResource
|
|
38
|
+
*/
|
|
39
|
+
email: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UserRelationResource
|
|
44
|
+
*/
|
|
45
|
+
phone: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the UserRelationResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfUserRelationResource(value: object): value is UserRelationResource {
|
|
52
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
53
|
+
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
54
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
55
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UserRelationResourceFromJSON(json: any): UserRelationResource {
|
|
60
|
+
return UserRelationResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UserRelationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRelationResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'id': json['id'],
|
|
70
|
+
'fullName': json['fullName'],
|
|
71
|
+
'email': json['email'],
|
|
72
|
+
'phone': json['phone'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function UserRelationResourceToJSON(json: any): UserRelationResource {
|
|
77
|
+
return UserRelationResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function UserRelationResourceToJSONTyped(value?: UserRelationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value['id'],
|
|
88
|
+
'fullName': value['fullName'],
|
|
89
|
+
'email': value['email'],
|
|
90
|
+
'phone': value['phone'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -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 { UserRelationResource } from './UserRelationResource';
|
|
17
|
+
import {
|
|
18
|
+
UserRelationResourceFromJSON,
|
|
19
|
+
UserRelationResourceFromJSONTyped,
|
|
20
|
+
UserRelationResourceToJSON,
|
|
21
|
+
UserRelationResourceToJSONTyped,
|
|
22
|
+
} from './UserRelationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserRelationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface UserRelationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<UserRelationResource>}
|
|
33
|
+
* @memberof UserRelationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<UserRelationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserRelationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUserRelationResourceArrayResponse(value: object): value is UserRelationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserRelationResourceArrayResponseFromJSON(json: any): UserRelationResourceArrayResponse {
|
|
46
|
+
return UserRelationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserRelationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRelationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UserRelationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UserRelationResourceArrayResponseToJSON(json: any): UserRelationResourceArrayResponse {
|
|
60
|
+
return UserRelationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UserRelationResourceArrayResponseToJSONTyped(value?: UserRelationResourceArrayResponse | 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(UserRelationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
AddressResourceToJSON,
|
|
21
21
|
AddressResourceToJSONTyped,
|
|
22
22
|
} from './AddressResource';
|
|
23
|
+
import type { UserRelationResource } from './UserRelationResource';
|
|
24
|
+
import {
|
|
25
|
+
UserRelationResourceFromJSON,
|
|
26
|
+
UserRelationResourceFromJSONTyped,
|
|
27
|
+
UserRelationResourceToJSON,
|
|
28
|
+
UserRelationResourceToJSONTyped,
|
|
29
|
+
} from './UserRelationResource';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -63,6 +70,12 @@ export interface VenueResource {
|
|
|
63
70
|
* @memberof VenueResource
|
|
64
71
|
*/
|
|
65
72
|
primaryManagerId?: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {UserRelationResource}
|
|
76
|
+
* @memberof VenueResource
|
|
77
|
+
*/
|
|
78
|
+
primaryManager: UserRelationResource | null;
|
|
66
79
|
/**
|
|
67
80
|
*
|
|
68
81
|
* @type {string}
|
|
@@ -121,6 +134,7 @@ export function instanceOfVenueResource(value: object): value is VenueResource {
|
|
|
121
134
|
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
122
135
|
if (!('badgeNumberRequired' in value) || value['badgeNumberRequired'] === undefined) return false;
|
|
123
136
|
if (!('venueSignOnCodeRequired' in value) || value['venueSignOnCodeRequired'] === undefined) return false;
|
|
137
|
+
if (!('primaryManager' in value) || value['primaryManager'] === undefined) return false;
|
|
124
138
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
125
139
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
126
140
|
if (!('geofenceRadius' in value) || value['geofenceRadius'] === undefined) return false;
|
|
@@ -146,6 +160,7 @@ export function VenueResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
146
160
|
'badgeNumberRequired': json['badgeNumberRequired'],
|
|
147
161
|
'venueSignOnCodeRequired': json['venueSignOnCodeRequired'],
|
|
148
162
|
'primaryManagerId': json['primaryManagerId'] == null ? undefined : json['primaryManagerId'],
|
|
163
|
+
'primaryManager': UserRelationResourceFromJSON(json['primaryManager']),
|
|
149
164
|
'timezone': json['timezone'],
|
|
150
165
|
'isEnabled': json['isEnabled'],
|
|
151
166
|
'geofenceRadius': json['geofenceRadius'],
|
|
@@ -174,6 +189,7 @@ export function VenueResourceToJSONTyped(value?: VenueResource | null, ignoreDis
|
|
|
174
189
|
'badgeNumberRequired': value['badgeNumberRequired'],
|
|
175
190
|
'venueSignOnCodeRequired': value['venueSignOnCodeRequired'],
|
|
176
191
|
'primaryManagerId': value['primaryManagerId'],
|
|
192
|
+
'primaryManager': UserRelationResourceToJSON(value['primaryManager']),
|
|
177
193
|
'timezone': value['timezone'],
|
|
178
194
|
'isEnabled': value['isEnabled'],
|
|
179
195
|
'geofenceRadius': value['geofenceRadius'],
|
package/src/models/index.ts
CHANGED
|
@@ -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 './UserRelationResource';
|
|
32
|
+
export * from './UserRelationResourceArrayResponse';
|
|
31
33
|
export * from './UserResource';
|
|
32
34
|
export * from './UserResourceArrayResponse';
|
|
33
35
|
export * from './UsersRegisterVenueManagerRequest';
|