@digital8/security-registers-backend-ts-sdk 0.0.437 → 0.0.439
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 +1 -5
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -12
- package/dist/apis/GeneralApi.js +0 -55
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequest.js +4 -4
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +93 -0
- package/dist/models/{AuthRegisterGuardRequestLicence.js → AuthRegisterGuardRequestLicencesInner.js} +17 -17
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/MobileInitResource.d.ts +0 -7
- package/dist/models/MobileInitResource.js +0 -5
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +6 -6
- package/dist/models/RegisterListResource.js +13 -6
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/UserResource.d.ts +7 -0
- package/dist/models/UserResource.js +5 -0
- package/dist/models/UsersCreateWithRoleRequest.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequest.js +3 -3
- package/dist/models/index.d.ts +1 -5
- package/dist/models/index.js +1 -5
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -50
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +11 -11
- package/src/models/{AuthRegisterGuardRequestLicence.ts → AuthRegisterGuardRequestLicencesInner.ts} +29 -29
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/MobileInitResource.ts +0 -16
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +15 -11
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/UserResource.ts +16 -0
- package/src/models/UsersCreateWithRoleRequest.ts +10 -10
- package/src/models/index.ts +1 -5
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -93
- package/dist/models/MobileAppConfigRequest.d.ts +0 -46
- package/dist/models/MobileAppConfigRequest.js +0 -63
- package/dist/models/MobileAppConfigResource.d.ts +0 -58
- package/dist/models/MobileAppConfigResource.js +0 -69
- package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileAppConfigResourceArrayResponse.js +0 -50
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -93
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +0 -90
- package/src/models/MobileAppConfigRequest.ts +0 -86
- package/src/models/MobileAppConfigResource.ts +0 -103
- package/src/models/MobileAppConfigResourceArrayResponse.ts +0 -73
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +0 -176
|
@@ -1,33 +0,0 @@
|
|
|
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 { MobileAppConfigResource } from './MobileAppConfigResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MobileAppConfigResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MobileAppConfigResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<MobileAppConfigResource>}
|
|
22
|
-
* @memberof MobileAppConfigResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<MobileAppConfigResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse;
|
|
30
|
-
export declare function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse;
|
|
31
|
-
export declare function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse;
|
|
32
|
-
export declare function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse;
|
|
33
|
-
export declare function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfMobileAppConfigResourceArrayResponse = instanceOfMobileAppConfigResourceArrayResponse;
|
|
17
|
-
exports.MobileAppConfigResourceArrayResponseFromJSON = MobileAppConfigResourceArrayResponseFromJSON;
|
|
18
|
-
exports.MobileAppConfigResourceArrayResponseFromJSONTyped = MobileAppConfigResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.MobileAppConfigResourceArrayResponseToJSON = MobileAppConfigResourceArrayResponseToJSON;
|
|
20
|
-
exports.MobileAppConfigResourceArrayResponseToJSONTyped = MobileAppConfigResourceArrayResponseToJSONTyped;
|
|
21
|
-
var MobileAppConfigResource_1 = require("./MobileAppConfigResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfMobileAppConfigResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function MobileAppConfigResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function MobileAppConfigResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(MobileAppConfigResource_1.MobileAppConfigResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function MobileAppConfigResourceArrayResponseToJSON(json) {
|
|
40
|
-
return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function MobileAppConfigResourceArrayResponseToJSONTyped(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(MobileAppConfigResource_1.MobileAppConfigResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
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 { FirstAidAsset } from './FirstAidAsset';
|
|
13
|
-
import type { BackAsset } from './BackAsset';
|
|
14
|
-
import type { FrontAsset } from './FrontAsset';
|
|
15
|
-
import type { RsaAsset } from './RsaAsset';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UsersCreateWithRoleRequestLicencesInner
|
|
20
|
-
*/
|
|
21
|
-
export interface UsersCreateWithRoleRequestLicencesInner {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
26
|
-
*/
|
|
27
|
-
state: UsersCreateWithRoleRequestLicencesInnerStateEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
32
|
-
*/
|
|
33
|
-
licenceNumber: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
38
|
-
*/
|
|
39
|
-
firstName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
44
|
-
*/
|
|
45
|
-
lastName: string;
|
|
46
|
-
/**
|
|
47
|
-
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
50
|
-
*/
|
|
51
|
-
expiryDate: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {FrontAsset}
|
|
55
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
56
|
-
*/
|
|
57
|
-
frontAsset: FrontAsset;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {BackAsset}
|
|
61
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
62
|
-
*/
|
|
63
|
-
backAsset?: BackAsset | null;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {RsaAsset}
|
|
67
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
68
|
-
*/
|
|
69
|
-
rsaAsset?: RsaAsset | null;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {FirstAidAsset}
|
|
73
|
-
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
74
|
-
*/
|
|
75
|
-
firstAidAsset?: FirstAidAsset | null;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* @export
|
|
79
|
-
*/
|
|
80
|
-
export declare const UsersCreateWithRoleRequestLicencesInnerStateEnum: {
|
|
81
|
-
readonly Qld: "QLD";
|
|
82
|
-
readonly Nsw: "NSW";
|
|
83
|
-
readonly Vic: "VIC";
|
|
84
|
-
};
|
|
85
|
-
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
86
|
-
/**
|
|
87
|
-
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
|
88
|
-
*/
|
|
89
|
-
export declare function instanceOfUsersCreateWithRoleRequestLicencesInner(value: object): value is UsersCreateWithRoleRequestLicencesInner;
|
|
90
|
-
export declare function UsersCreateWithRoleRequestLicencesInnerFromJSON(json: any): UsersCreateWithRoleRequestLicencesInner;
|
|
91
|
-
export declare function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersCreateWithRoleRequestLicencesInner;
|
|
92
|
-
export declare function UsersCreateWithRoleRequestLicencesInnerToJSON(json: any): UsersCreateWithRoleRequestLicencesInner;
|
|
93
|
-
export declare function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value?: UsersCreateWithRoleRequestLicencesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,90 +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.UsersCreateWithRoleRequestLicencesInnerStateEnum = void 0;
|
|
17
|
-
exports.instanceOfUsersCreateWithRoleRequestLicencesInner = instanceOfUsersCreateWithRoleRequestLicencesInner;
|
|
18
|
-
exports.UsersCreateWithRoleRequestLicencesInnerFromJSON = UsersCreateWithRoleRequestLicencesInnerFromJSON;
|
|
19
|
-
exports.UsersCreateWithRoleRequestLicencesInnerFromJSONTyped = UsersCreateWithRoleRequestLicencesInnerFromJSONTyped;
|
|
20
|
-
exports.UsersCreateWithRoleRequestLicencesInnerToJSON = UsersCreateWithRoleRequestLicencesInnerToJSON;
|
|
21
|
-
exports.UsersCreateWithRoleRequestLicencesInnerToJSONTyped = UsersCreateWithRoleRequestLicencesInnerToJSONTyped;
|
|
22
|
-
var FirstAidAsset_1 = require("./FirstAidAsset");
|
|
23
|
-
var BackAsset_1 = require("./BackAsset");
|
|
24
|
-
var FrontAsset_1 = require("./FrontAsset");
|
|
25
|
-
var RsaAsset_1 = require("./RsaAsset");
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
exports.UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
30
|
-
Qld: 'QLD',
|
|
31
|
-
Nsw: 'NSW',
|
|
32
|
-
Vic: 'VIC'
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
|
36
|
-
*/
|
|
37
|
-
function instanceOfUsersCreateWithRoleRequestLicencesInner(value) {
|
|
38
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
47
|
-
return false;
|
|
48
|
-
if (!('frontAsset' in value) || value['frontAsset'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
function UsersCreateWithRoleRequestLicencesInnerFromJSON(json) {
|
|
53
|
-
return UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'state': json['state'],
|
|
61
|
-
'licenceNumber': json['licence_number'],
|
|
62
|
-
'firstName': json['first_name'],
|
|
63
|
-
'lastName': json['last_name'],
|
|
64
|
-
'expiryDate': json['expiry_date'],
|
|
65
|
-
'frontAsset': (0, FrontAsset_1.FrontAssetFromJSON)(json['front_asset']),
|
|
66
|
-
'backAsset': json['back_asset'] == null ? undefined : (0, BackAsset_1.BackAssetFromJSON)(json['back_asset']),
|
|
67
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, RsaAsset_1.RsaAssetFromJSON)(json['rsa_asset']),
|
|
68
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, FirstAidAsset_1.FirstAidAssetFromJSON)(json['first_aid_asset']),
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function UsersCreateWithRoleRequestLicencesInnerToJSON(json) {
|
|
72
|
-
return UsersCreateWithRoleRequestLicencesInnerToJSONTyped(json, false);
|
|
73
|
-
}
|
|
74
|
-
function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
-
if (value == null) {
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
'state': value['state'],
|
|
81
|
-
'licence_number': value['licenceNumber'],
|
|
82
|
-
'first_name': value['firstName'],
|
|
83
|
-
'last_name': value['lastName'],
|
|
84
|
-
'expiry_date': value['expiryDate'],
|
|
85
|
-
'front_asset': (0, FrontAsset_1.FrontAssetToJSON)(value['frontAsset']),
|
|
86
|
-
'back_asset': (0, BackAsset_1.BackAssetToJSON)(value['backAsset']),
|
|
87
|
-
'rsa_asset': (0, RsaAsset_1.RsaAssetToJSON)(value['rsaAsset']),
|
|
88
|
-
'first_aid_asset': (0, FirstAidAsset_1.FirstAidAssetToJSON)(value['firstAidAsset']),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
@@ -1,86 +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 MobileAppConfigRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface MobileAppConfigRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof MobileAppConfigRequest
|
|
26
|
-
*/
|
|
27
|
-
platform: MobileAppConfigRequestPlatformEnum;
|
|
28
|
-
/**
|
|
29
|
-
* The app's current version as a semantic version string (e.g. "1.4.2").
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof MobileAppConfigRequest
|
|
32
|
-
*/
|
|
33
|
-
appVersion: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export const MobileAppConfigRequestPlatformEnum = {
|
|
41
|
-
Ios: 'ios',
|
|
42
|
-
Android: 'android'
|
|
43
|
-
} as const;
|
|
44
|
-
export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Check if a given object implements the MobileAppConfigRequest interface.
|
|
49
|
-
*/
|
|
50
|
-
export function instanceOfMobileAppConfigRequest(value: object): value is MobileAppConfigRequest {
|
|
51
|
-
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
52
|
-
if (!('appVersion' in value) || value['appVersion'] === undefined) return false;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function MobileAppConfigRequestFromJSON(json: any): MobileAppConfigRequest {
|
|
57
|
-
return MobileAppConfigRequestFromJSONTyped(json, false);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function MobileAppConfigRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigRequest {
|
|
61
|
-
if (json == null) {
|
|
62
|
-
return json;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
|
|
66
|
-
'platform': json['platform'],
|
|
67
|
-
'appVersion': json['app_version'],
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function MobileAppConfigRequestToJSON(json: any): MobileAppConfigRequest {
|
|
72
|
-
return MobileAppConfigRequestToJSONTyped(json, false);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function MobileAppConfigRequestToJSONTyped(value?: MobileAppConfigRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
-
if (value == null) {
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
return {
|
|
81
|
-
|
|
82
|
-
'platform': value['platform'],
|
|
83
|
-
'app_version': value['appVersion'],
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
@@ -1,103 +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 MobileAppConfigResource
|
|
20
|
-
*/
|
|
21
|
-
export interface MobileAppConfigResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof MobileAppConfigResource
|
|
26
|
-
*/
|
|
27
|
-
platform: MobileAppConfigResourcePlatformEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {boolean}
|
|
31
|
-
* @memberof MobileAppConfigResource
|
|
32
|
-
*/
|
|
33
|
-
forceUpdate: boolean;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof MobileAppConfigResource
|
|
38
|
-
*/
|
|
39
|
-
updateUrl: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof MobileAppConfigResource
|
|
44
|
-
*/
|
|
45
|
-
message?: string | null;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
export const MobileAppConfigResourcePlatformEnum = {
|
|
53
|
-
Ios: 'ios',
|
|
54
|
-
Android: 'android'
|
|
55
|
-
} as const;
|
|
56
|
-
export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Check if a given object implements the MobileAppConfigResource interface.
|
|
61
|
-
*/
|
|
62
|
-
export function instanceOfMobileAppConfigResource(value: object): value is MobileAppConfigResource {
|
|
63
|
-
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
64
|
-
if (!('forceUpdate' in value) || value['forceUpdate'] === undefined) return false;
|
|
65
|
-
if (!('updateUrl' in value) || value['updateUrl'] === undefined) return false;
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function MobileAppConfigResourceFromJSON(json: any): MobileAppConfigResource {
|
|
70
|
-
return MobileAppConfigResourceFromJSONTyped(json, false);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function MobileAppConfigResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResource {
|
|
74
|
-
if (json == null) {
|
|
75
|
-
return json;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'platform': json['platform'],
|
|
80
|
-
'forceUpdate': json['forceUpdate'],
|
|
81
|
-
'updateUrl': json['updateUrl'],
|
|
82
|
-
'message': json['message'] == null ? undefined : json['message'],
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function MobileAppConfigResourceToJSON(json: any): MobileAppConfigResource {
|
|
87
|
-
return MobileAppConfigResourceToJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function MobileAppConfigResourceToJSONTyped(value?: MobileAppConfigResource | null, ignoreDiscriminator: boolean = false): any {
|
|
91
|
-
if (value == null) {
|
|
92
|
-
return value;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return {
|
|
96
|
-
|
|
97
|
-
'platform': value['platform'],
|
|
98
|
-
'forceUpdate': value['forceUpdate'],
|
|
99
|
-
'updateUrl': value['updateUrl'],
|
|
100
|
-
'message': value['message'],
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
@@ -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 { MobileAppConfigResource } from './MobileAppConfigResource';
|
|
17
|
-
import {
|
|
18
|
-
MobileAppConfigResourceFromJSON,
|
|
19
|
-
MobileAppConfigResourceFromJSONTyped,
|
|
20
|
-
MobileAppConfigResourceToJSON,
|
|
21
|
-
MobileAppConfigResourceToJSONTyped,
|
|
22
|
-
} from './MobileAppConfigResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface MobileAppConfigResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface MobileAppConfigResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<MobileAppConfigResource>}
|
|
33
|
-
* @memberof MobileAppConfigResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<MobileAppConfigResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse {
|
|
46
|
-
return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileAppConfigResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse {
|
|
60
|
-
return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | 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(MobileAppConfigResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|