@digital8/security-registers-backend-ts-sdk 0.0.57 → 0.0.59
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 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -9
- package/dist/apis/GeneralApi.js +288 -90
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- 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 -2
- package/dist/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +192 -32
- package/src/models/AddressResource.ts +2 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- 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 -2
- package/dist/models/UserLiteResource.d.ts +0 -44
- package/dist/models/UserLiteResource.js +0 -59
- package/dist/models/UserLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/UserLiteResourceArrayResponse.js +0 -50
- package/src/models/UserLiteResource.ts +0 -84
- package/src/models/UserLiteResourceArrayResponse.ts +0 -73
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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 UserRelationResource
|
|
16
|
+
*/
|
|
17
|
+
export interface UserRelationResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UserRelationResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserRelationResource
|
|
28
|
+
*/
|
|
29
|
+
fullName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserRelationResource
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserRelationResource
|
|
40
|
+
*/
|
|
41
|
+
phone: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UserRelationResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUserRelationResource(value: object): value is UserRelationResource;
|
|
47
|
+
export declare function UserRelationResourceFromJSON(json: any): UserRelationResource;
|
|
48
|
+
export declare function UserRelationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRelationResource;
|
|
49
|
+
export declare function UserRelationResourceToJSON(json: any): UserRelationResource;
|
|
50
|
+
export declare function UserRelationResourceToJSONTyped(value?: UserRelationResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.instanceOfUserRelationResource = instanceOfUserRelationResource;
|
|
17
|
+
exports.UserRelationResourceFromJSON = UserRelationResourceFromJSON;
|
|
18
|
+
exports.UserRelationResourceFromJSONTyped = UserRelationResourceFromJSONTyped;
|
|
19
|
+
exports.UserRelationResourceToJSON = UserRelationResourceToJSON;
|
|
20
|
+
exports.UserRelationResourceToJSONTyped = UserRelationResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserRelationResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserRelationResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('phone' in value) || value['phone'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function UserRelationResourceFromJSON(json) {
|
|
36
|
+
return UserRelationResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function UserRelationResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'fullName': json['fullName'],
|
|
45
|
+
'email': json['email'],
|
|
46
|
+
'phone': json['phone'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function UserRelationResourceToJSON(json) {
|
|
50
|
+
return UserRelationResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function UserRelationResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'fullName': value['fullName'],
|
|
60
|
+
'email': value['email'],
|
|
61
|
+
'phone': value['phone'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.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
|
+
import type { UserRelationResource } from './UserRelationResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserRelationResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface UserRelationResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<UserRelationResource>}
|
|
22
|
+
* @memberof UserRelationResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<UserRelationResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserRelationResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserRelationResourceArrayResponse(value: object): value is UserRelationResourceArrayResponse;
|
|
30
|
+
export declare function UserRelationResourceArrayResponseFromJSON(json: any): UserRelationResourceArrayResponse;
|
|
31
|
+
export declare function UserRelationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserRelationResourceArrayResponse;
|
|
32
|
+
export declare function UserRelationResourceArrayResponseToJSON(json: any): UserRelationResourceArrayResponse;
|
|
33
|
+
export declare function UserRelationResourceArrayResponseToJSONTyped(value?: UserRelationResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfUserRelationResourceArrayResponse = instanceOfUserRelationResourceArrayResponse;
|
|
17
|
+
exports.UserRelationResourceArrayResponseFromJSON = UserRelationResourceArrayResponseFromJSON;
|
|
18
|
+
exports.UserRelationResourceArrayResponseFromJSONTyped = UserRelationResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.UserRelationResourceArrayResponseToJSON = UserRelationResourceArrayResponseToJSON;
|
|
20
|
+
exports.UserRelationResourceArrayResponseToJSONTyped = UserRelationResourceArrayResponseToJSONTyped;
|
|
21
|
+
var UserRelationResource_1 = require("./UserRelationResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserRelationResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserRelationResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UserRelationResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return UserRelationResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UserRelationResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(UserRelationResource_1.UserRelationResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UserRelationResourceArrayResponseToJSON(json) {
|
|
40
|
+
return UserRelationResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UserRelationResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(UserRelationResource_1.UserRelationResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { AddressResource } from './AddressResource';
|
|
13
|
+
import type { UserRelationResource } from './UserRelationResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface VenueResource {
|
|
|
52
53
|
* @memberof VenueResource
|
|
53
54
|
*/
|
|
54
55
|
primaryManagerId?: number | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {UserRelationResource}
|
|
59
|
+
* @memberof VenueResource
|
|
60
|
+
*/
|
|
61
|
+
primaryManager: UserRelationResource | null;
|
|
55
62
|
/**
|
|
56
63
|
*
|
|
57
64
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.VenueResourceFromJSONTyped = VenueResourceFromJSONTyped;
|
|
|
19
19
|
exports.VenueResourceToJSON = VenueResourceToJSON;
|
|
20
20
|
exports.VenueResourceToJSONTyped = VenueResourceToJSONTyped;
|
|
21
21
|
var AddressResource_1 = require("./AddressResource");
|
|
22
|
+
var UserRelationResource_1 = require("./UserRelationResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the VenueResource interface.
|
|
24
25
|
*/
|
|
@@ -31,6 +32,8 @@ function instanceOfVenueResource(value) {
|
|
|
31
32
|
return false;
|
|
32
33
|
if (!('venueSignOnCodeRequired' in value) || value['venueSignOnCodeRequired'] === undefined)
|
|
33
34
|
return false;
|
|
35
|
+
if (!('primaryManager' in value) || value['primaryManager'] === undefined)
|
|
36
|
+
return false;
|
|
34
37
|
if (!('timezone' in value) || value['timezone'] === undefined)
|
|
35
38
|
return false;
|
|
36
39
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
@@ -59,6 +62,7 @@ function VenueResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
62
|
'badgeNumberRequired': json['badgeNumberRequired'],
|
|
60
63
|
'venueSignOnCodeRequired': json['venueSignOnCodeRequired'],
|
|
61
64
|
'primaryManagerId': json['primaryManagerId'] == null ? undefined : json['primaryManagerId'],
|
|
65
|
+
'primaryManager': (0, UserRelationResource_1.UserRelationResourceFromJSON)(json['primaryManager']),
|
|
62
66
|
'timezone': json['timezone'],
|
|
63
67
|
'isEnabled': json['isEnabled'],
|
|
64
68
|
'geofenceRadius': json['geofenceRadius'],
|
|
@@ -85,6 +89,7 @@ function VenueResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
89
|
'badgeNumberRequired': value['badgeNumberRequired'],
|
|
86
90
|
'venueSignOnCodeRequired': value['venueSignOnCodeRequired'],
|
|
87
91
|
'primaryManagerId': value['primaryManagerId'],
|
|
92
|
+
'primaryManager': (0, UserRelationResource_1.UserRelationResourceToJSON)(value['primaryManager']),
|
|
88
93
|
'timezone': value['timezone'],
|
|
89
94
|
'isEnabled': value['isEnabled'],
|
|
90
95
|
'geofenceRadius': value['geofenceRadius'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ export * from './StoreUserRequest';
|
|
|
26
26
|
export * from './UpdateUserRequest';
|
|
27
27
|
export * from './UserAuthTokenResource';
|
|
28
28
|
export * from './UserAuthTokenResourceArrayResponse';
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
29
|
+
export * from './UserRelationResource';
|
|
30
|
+
export * from './UserRelationResourceArrayResponse';
|
|
31
31
|
export * from './UserResource';
|
|
32
32
|
export * from './UserResourceArrayResponse';
|
|
33
33
|
export * from './UsersRegisterVenueManagerRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -44,8 +44,8 @@ __exportStar(require("./StoreUserRequest"), exports);
|
|
|
44
44
|
__exportStar(require("./UpdateUserRequest"), exports);
|
|
45
45
|
__exportStar(require("./UserAuthTokenResource"), exports);
|
|
46
46
|
__exportStar(require("./UserAuthTokenResourceArrayResponse"), exports);
|
|
47
|
-
__exportStar(require("./
|
|
48
|
-
__exportStar(require("./
|
|
47
|
+
__exportStar(require("./UserRelationResource"), exports);
|
|
48
|
+
__exportStar(require("./UserRelationResourceArrayResponse"), exports);
|
|
49
49
|
__exportStar(require("./UserResource"), exports);
|
|
50
50
|
__exportStar(require("./UserResourceArrayResponse"), exports);
|
|
51
51
|
__exportStar(require("./UsersRegisterVenueManagerRequest"), exports);
|