@digital8/security-registers-backend-ts-sdk 0.0.289 → 0.0.291
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 +0 -7
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -50
- package/dist/apis/GeneralApi.js +40 -253
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +6 -9
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/index.d.ts +0 -7
- package/dist/models/index.js +0 -7
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +45 -217
- package/src/models/AssetResource.ts +2 -3
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +10 -11
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/index.ts +0 -7
- package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
- package/dist/models/AuthChangePasswordRequest.js +0 -55
- package/dist/models/AuthProfileUpdateRequest.d.ts +0 -56
- package/dist/models/AuthProfileUpdateRequest.js +0 -57
- package/dist/models/DevicesRegisterRequest.d.ts +0 -70
- package/dist/models/DevicesRegisterRequest.js +0 -71
- package/dist/models/MobileDeviceResource.d.ts +0 -86
- package/dist/models/MobileDeviceResource.js +0 -82
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
- package/dist/models/MobileInitResource.d.ts +0 -47
- package/dist/models/MobileInitResource.js +0 -62
- package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileInitResourceArrayResponse.js +0 -50
- package/src/models/AuthChangePasswordRequest.ts +0 -75
- package/src/models/AuthProfileUpdateRequest.ts +0 -97
- package/src/models/DevicesRegisterRequest.ts +0 -118
- package/src/models/MobileDeviceResource.ts +0 -144
- package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
- package/src/models/MobileInitResource.ts +0 -106
- package/src/models/MobileInitResourceArrayResponse.ts +0 -73
|
@@ -1,82 +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.instanceOfMobileDeviceResource = instanceOfMobileDeviceResource;
|
|
17
|
-
exports.MobileDeviceResourceFromJSON = MobileDeviceResourceFromJSON;
|
|
18
|
-
exports.MobileDeviceResourceFromJSONTyped = MobileDeviceResourceFromJSONTyped;
|
|
19
|
-
exports.MobileDeviceResourceToJSON = MobileDeviceResourceToJSON;
|
|
20
|
-
exports.MobileDeviceResourceToJSONTyped = MobileDeviceResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the MobileDeviceResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfMobileDeviceResource(value) {
|
|
25
|
-
if (!('deviceId' in value) || value['deviceId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('platform' in value) || value['platform'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('osVersion' in value) || value['osVersion'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('appVersion' in value) || value['appVersion'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('model' in value) || value['model'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('pushToken' in value) || value['pushToken'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
function MobileDeviceResourceFromJSON(json) {
|
|
42
|
-
return MobileDeviceResourceFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function MobileDeviceResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
if (json == null) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
50
|
-
'deviceId': json['deviceId'],
|
|
51
|
-
'platform': json['platform'],
|
|
52
|
-
'osVersion': json['osVersion'],
|
|
53
|
-
'appVersion': json['appVersion'],
|
|
54
|
-
'model': json['model'],
|
|
55
|
-
'pushToken': json['pushToken'],
|
|
56
|
-
'lastSeenAt': (new Date(json['lastSeenAt'])),
|
|
57
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
function MobileDeviceResourceToJSON(json) {
|
|
62
|
-
return MobileDeviceResourceToJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
function MobileDeviceResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
-
var _a, _b;
|
|
66
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
67
|
-
if (value == null) {
|
|
68
|
-
return value;
|
|
69
|
-
}
|
|
70
|
-
return {
|
|
71
|
-
'id': value['id'],
|
|
72
|
-
'deviceId': value['deviceId'],
|
|
73
|
-
'platform': value['platform'],
|
|
74
|
-
'osVersion': value['osVersion'],
|
|
75
|
-
'appVersion': value['appVersion'],
|
|
76
|
-
'model': value['model'],
|
|
77
|
-
'pushToken': value['pushToken'],
|
|
78
|
-
'lastSeenAt': ((value['lastSeenAt']).toISOString()),
|
|
79
|
-
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
80
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
@@ -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 { MobileDeviceResource } from './MobileDeviceResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MobileDeviceResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MobileDeviceResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<MobileDeviceResource>}
|
|
22
|
-
* @memberof MobileDeviceResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<MobileDeviceResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the MobileDeviceResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfMobileDeviceResourceArrayResponse(value: object): value is MobileDeviceResourceArrayResponse;
|
|
30
|
-
export declare function MobileDeviceResourceArrayResponseFromJSON(json: any): MobileDeviceResourceArrayResponse;
|
|
31
|
-
export declare function MobileDeviceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResourceArrayResponse;
|
|
32
|
-
export declare function MobileDeviceResourceArrayResponseToJSON(json: any): MobileDeviceResourceArrayResponse;
|
|
33
|
-
export declare function MobileDeviceResourceArrayResponseToJSONTyped(value?: MobileDeviceResourceArrayResponse | 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.instanceOfMobileDeviceResourceArrayResponse = instanceOfMobileDeviceResourceArrayResponse;
|
|
17
|
-
exports.MobileDeviceResourceArrayResponseFromJSON = MobileDeviceResourceArrayResponseFromJSON;
|
|
18
|
-
exports.MobileDeviceResourceArrayResponseFromJSONTyped = MobileDeviceResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.MobileDeviceResourceArrayResponseToJSON = MobileDeviceResourceArrayResponseToJSON;
|
|
20
|
-
exports.MobileDeviceResourceArrayResponseToJSONTyped = MobileDeviceResourceArrayResponseToJSONTyped;
|
|
21
|
-
var MobileDeviceResource_1 = require("./MobileDeviceResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the MobileDeviceResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfMobileDeviceResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function MobileDeviceResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return MobileDeviceResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function MobileDeviceResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(MobileDeviceResource_1.MobileDeviceResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function MobileDeviceResourceArrayResponseToJSON(json) {
|
|
40
|
-
return MobileDeviceResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function MobileDeviceResourceArrayResponseToJSONTyped(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(MobileDeviceResource_1.MobileDeviceResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,47 +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 { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
13
|
-
import type { UserResource } from './UserResource';
|
|
14
|
-
import type { RosterListResource } from './RosterListResource';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface MobileInitResource
|
|
19
|
-
*/
|
|
20
|
-
export interface MobileInitResource {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {UserResource}
|
|
24
|
-
* @memberof MobileInitResource
|
|
25
|
-
*/
|
|
26
|
-
user: UserResource | null;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Array<RosterListResource>}
|
|
30
|
-
* @memberof MobileInitResource
|
|
31
|
-
*/
|
|
32
|
-
rosters: Array<RosterListResource> | null;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Array<NotificationPreferenceResource>}
|
|
36
|
-
* @memberof MobileInitResource
|
|
37
|
-
*/
|
|
38
|
-
notificationPreferences: Array<NotificationPreferenceResource> | null;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Check if a given object implements the MobileInitResource interface.
|
|
42
|
-
*/
|
|
43
|
-
export declare function instanceOfMobileInitResource(value: object): value is MobileInitResource;
|
|
44
|
-
export declare function MobileInitResourceFromJSON(json: any): MobileInitResource;
|
|
45
|
-
export declare function MobileInitResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResource;
|
|
46
|
-
export declare function MobileInitResourceToJSON(json: any): MobileInitResource;
|
|
47
|
-
export declare function MobileInitResourceToJSONTyped(value?: MobileInitResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,62 +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.instanceOfMobileInitResource = instanceOfMobileInitResource;
|
|
17
|
-
exports.MobileInitResourceFromJSON = MobileInitResourceFromJSON;
|
|
18
|
-
exports.MobileInitResourceFromJSONTyped = MobileInitResourceFromJSONTyped;
|
|
19
|
-
exports.MobileInitResourceToJSON = MobileInitResourceToJSON;
|
|
20
|
-
exports.MobileInitResourceToJSONTyped = MobileInitResourceToJSONTyped;
|
|
21
|
-
var NotificationPreferenceResource_1 = require("./NotificationPreferenceResource");
|
|
22
|
-
var UserResource_1 = require("./UserResource");
|
|
23
|
-
var RosterListResource_1 = require("./RosterListResource");
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the MobileInitResource interface.
|
|
26
|
-
*/
|
|
27
|
-
function instanceOfMobileInitResource(value) {
|
|
28
|
-
if (!('user' in value) || value['user'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
if (!('rosters' in value) || value['rosters'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
function MobileInitResourceFromJSON(json) {
|
|
37
|
-
return MobileInitResourceFromJSONTyped(json, false);
|
|
38
|
-
}
|
|
39
|
-
function MobileInitResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
-
if (json == null) {
|
|
41
|
-
return json;
|
|
42
|
-
}
|
|
43
|
-
return {
|
|
44
|
-
'user': (0, UserResource_1.UserResourceFromJSON)(json['user']),
|
|
45
|
-
'rosters': (json['rosters'] == null ? null : json['rosters'].map(RosterListResource_1.RosterListResourceFromJSON)),
|
|
46
|
-
'notificationPreferences': (json['notificationPreferences'] == null ? null : json['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceFromJSON)),
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
function MobileInitResourceToJSON(json) {
|
|
50
|
-
return MobileInitResourceToJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function MobileInitResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
-
if (value == null) {
|
|
55
|
-
return value;
|
|
56
|
-
}
|
|
57
|
-
return {
|
|
58
|
-
'user': (0, UserResource_1.UserResourceToJSON)(value['user']),
|
|
59
|
-
'rosters': (value['rosters'] == null ? null : value['rosters'].map(RosterListResource_1.RosterListResourceToJSON)),
|
|
60
|
-
'notificationPreferences': (value['notificationPreferences'] == null ? null : value['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceToJSON)),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
@@ -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 { MobileInitResource } from './MobileInitResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface MobileInitResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface MobileInitResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<MobileInitResource>}
|
|
22
|
-
* @memberof MobileInitResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<MobileInitResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the MobileInitResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfMobileInitResourceArrayResponse(value: object): value is MobileInitResourceArrayResponse;
|
|
30
|
-
export declare function MobileInitResourceArrayResponseFromJSON(json: any): MobileInitResourceArrayResponse;
|
|
31
|
-
export declare function MobileInitResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResourceArrayResponse;
|
|
32
|
-
export declare function MobileInitResourceArrayResponseToJSON(json: any): MobileInitResourceArrayResponse;
|
|
33
|
-
export declare function MobileInitResourceArrayResponseToJSONTyped(value?: MobileInitResourceArrayResponse | 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.instanceOfMobileInitResourceArrayResponse = instanceOfMobileInitResourceArrayResponse;
|
|
17
|
-
exports.MobileInitResourceArrayResponseFromJSON = MobileInitResourceArrayResponseFromJSON;
|
|
18
|
-
exports.MobileInitResourceArrayResponseFromJSONTyped = MobileInitResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.MobileInitResourceArrayResponseToJSON = MobileInitResourceArrayResponseToJSON;
|
|
20
|
-
exports.MobileInitResourceArrayResponseToJSONTyped = MobileInitResourceArrayResponseToJSONTyped;
|
|
21
|
-
var MobileInitResource_1 = require("./MobileInitResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the MobileInitResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfMobileInitResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function MobileInitResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return MobileInitResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function MobileInitResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(MobileInitResource_1.MobileInitResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function MobileInitResourceArrayResponseToJSON(json) {
|
|
40
|
-
return MobileInitResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function MobileInitResourceArrayResponseToJSONTyped(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(MobileInitResource_1.MobileInitResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,75 +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 AuthChangePasswordRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AuthChangePasswordRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AuthChangePasswordRequest
|
|
26
|
-
*/
|
|
27
|
-
currentPassword: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AuthChangePasswordRequest
|
|
32
|
-
*/
|
|
33
|
-
newPassword: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the AuthChangePasswordRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfAuthChangePasswordRequest(value: object): value is AuthChangePasswordRequest {
|
|
40
|
-
if (!('currentPassword' in value) || value['currentPassword'] === undefined) return false;
|
|
41
|
-
if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function AuthChangePasswordRequestFromJSON(json: any): AuthChangePasswordRequest {
|
|
46
|
-
return AuthChangePasswordRequestFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function AuthChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthChangePasswordRequest {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'currentPassword': json['current_password'],
|
|
56
|
-
'newPassword': json['new_password'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function AuthChangePasswordRequestToJSON(json: any): AuthChangePasswordRequest {
|
|
61
|
-
return AuthChangePasswordRequestToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function AuthChangePasswordRequestToJSONTyped(value?: AuthChangePasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'current_password': value['currentPassword'],
|
|
72
|
-
'new_password': value['newPassword'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,97 +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 AuthProfileUpdateRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AuthProfileUpdateRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AuthProfileUpdateRequest
|
|
26
|
-
*/
|
|
27
|
-
firstName?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AuthProfileUpdateRequest
|
|
32
|
-
*/
|
|
33
|
-
lastName?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof AuthProfileUpdateRequest
|
|
38
|
-
*/
|
|
39
|
-
email?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof AuthProfileUpdateRequest
|
|
44
|
-
*/
|
|
45
|
-
mobile?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof AuthProfileUpdateRequest
|
|
50
|
-
*/
|
|
51
|
-
signatureAssetId?: number;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfAuthProfileUpdateRequest(value: object): value is AuthProfileUpdateRequest {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function AuthProfileUpdateRequestFromJSON(json: any): AuthProfileUpdateRequest {
|
|
62
|
-
return AuthProfileUpdateRequestFromJSONTyped(json, false);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export function AuthProfileUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthProfileUpdateRequest {
|
|
66
|
-
if (json == null) {
|
|
67
|
-
return json;
|
|
68
|
-
}
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
72
|
-
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
73
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
74
|
-
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
75
|
-
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function AuthProfileUpdateRequestToJSON(json: any): AuthProfileUpdateRequest {
|
|
80
|
-
return AuthProfileUpdateRequestToJSONTyped(json, false);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function AuthProfileUpdateRequestToJSONTyped(value?: AuthProfileUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
84
|
-
if (value == null) {
|
|
85
|
-
return value;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
'first_name': value['firstName'],
|
|
91
|
-
'last_name': value['lastName'],
|
|
92
|
-
'email': value['email'],
|
|
93
|
-
'mobile': value['mobile'],
|
|
94
|
-
'signature_asset_id': value['signatureAssetId'],
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
|
|
@@ -1,118 +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 DevicesRegisterRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DevicesRegisterRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof DevicesRegisterRequest
|
|
26
|
-
*/
|
|
27
|
-
deviceId: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof DevicesRegisterRequest
|
|
32
|
-
*/
|
|
33
|
-
platform: DevicesRegisterRequestPlatformEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof DevicesRegisterRequest
|
|
38
|
-
*/
|
|
39
|
-
osVersion?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof DevicesRegisterRequest
|
|
44
|
-
*/
|
|
45
|
-
appVersion?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof DevicesRegisterRequest
|
|
50
|
-
*/
|
|
51
|
-
model?: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof DevicesRegisterRequest
|
|
56
|
-
*/
|
|
57
|
-
pushToken?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @export
|
|
63
|
-
*/
|
|
64
|
-
export const DevicesRegisterRequestPlatformEnum = {
|
|
65
|
-
Ios: 'ios',
|
|
66
|
-
Android: 'android'
|
|
67
|
-
} as const;
|
|
68
|
-
export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Check if a given object implements the DevicesRegisterRequest interface.
|
|
73
|
-
*/
|
|
74
|
-
export function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest {
|
|
75
|
-
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
|
|
76
|
-
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest {
|
|
81
|
-
return DevicesRegisterRequestFromJSONTyped(json, false);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest {
|
|
85
|
-
if (json == null) {
|
|
86
|
-
return json;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
|
|
90
|
-
'deviceId': json['device_id'],
|
|
91
|
-
'platform': json['platform'],
|
|
92
|
-
'osVersion': json['os_version'] == null ? undefined : json['os_version'],
|
|
93
|
-
'appVersion': json['app_version'] == null ? undefined : json['app_version'],
|
|
94
|
-
'model': json['model'] == null ? undefined : json['model'],
|
|
95
|
-
'pushToken': json['push_token'] == null ? undefined : json['push_token'],
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest {
|
|
100
|
-
return DevicesRegisterRequestToJSONTyped(json, false);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
-
if (value == null) {
|
|
105
|
-
return value;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return {
|
|
109
|
-
|
|
110
|
-
'device_id': value['deviceId'],
|
|
111
|
-
'platform': value['platform'],
|
|
112
|
-
'os_version': value['osVersion'],
|
|
113
|
-
'app_version': value['appVersion'],
|
|
114
|
-
'model': value['model'],
|
|
115
|
-
'push_token': value['pushToken'],
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
|