@digital8/laravel-auth-template-ts-sdk 0.0.6 → 0.0.8
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 +31 -1
- package/.openapi-generator/VERSION +1 -1
- package/README.md +121 -28
- package/dist/apis/{DefaultApi.d.ts → GeneralApi.d.ts} +13 -2
- package/dist/apis/{DefaultApi.js → GeneralApi.js} +67 -22
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AssetFileForUploadResource.d.ts +50 -0
- package/dist/models/AssetFileForUploadResource.js +63 -0
- package/dist/models/AssetFileForUploadResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetFileForUploadResourceArrayResponse.js +50 -0
- package/dist/models/AssetLiteResource.d.ts +38 -0
- package/dist/models/AssetLiteResource.js +55 -0
- package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
- package/dist/models/AssetResource.d.ts +68 -0
- package/dist/models/AssetResource.js +75 -0
- package/dist/models/AssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/AssetResourceArrayResponse.js +50 -0
- package/dist/models/IndexUserRequest.d.ts +28 -4
- package/dist/models/IndexUserRequest.js +25 -6
- package/dist/models/StoreAssetFileRequest.d.ts +38 -0
- package/dist/models/StoreAssetFileRequest.js +55 -0
- package/dist/models/UpdateUserRequest.d.ts +13 -1
- package/dist/models/UpdateUserRequest.js +12 -0
- package/dist/models/UserAuthTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserAuthTokenResourceArrayResponse.js +50 -0
- package/dist/models/UserResource.d.ts +7 -0
- package/dist/models/UserResource.js +7 -3
- package/dist/models/UserResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AssetFileForUploadResource.md +40 -0
- package/docs/AssetFileForUploadResourceArrayResponse.md +34 -0
- package/docs/AssetLiteResource.md +36 -0
- package/docs/AssetLiteResourceArrayResponse.md +34 -0
- package/docs/AssetResource.md +46 -0
- package/docs/AssetResourceArrayResponse.md +34 -0
- package/docs/GeneralApi.md +597 -0
- package/docs/GenericResponse.md +34 -0
- package/docs/IndexUserRequest.md +42 -0
- package/docs/LoginAuthRequest.md +36 -0
- package/docs/PaginatedUserResourceResponse.md +36 -0
- package/docs/PagingMetadata.md +46 -0
- package/docs/ResetPasswordAuthRequest.md +38 -0
- package/docs/SendForgotPasswordLinkAuthRequest.md +34 -0
- package/docs/StoreAssetFileRequest.md +36 -0
- package/docs/StoreUserRequest.md +40 -0
- package/docs/UpdateUserRequest.md +50 -0
- package/docs/UserAuthTokenResource.md +36 -0
- package/docs/UserAuthTokenResourceArrayResponse.md +34 -0
- package/docs/UserResource.md +50 -0
- package/docs/UserResourceArrayResponse.md +34 -0
- package/package.json +2 -2
- package/src/apis/{DefaultApi.ts → GeneralApi.ts} +43 -1
- package/src/apis/index.ts +1 -1
- package/src/models/AssetFileForUploadResource.ts +93 -0
- package/src/models/AssetFileForUploadResourceArrayResponse.ts +73 -0
- package/src/models/AssetLiteResource.ts +75 -0
- package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
- package/src/models/AssetResource.ts +120 -0
- package/src/models/AssetResourceArrayResponse.ts +73 -0
- package/src/models/IndexUserRequest.ts +40 -10
- package/src/models/StoreAssetFileRequest.ts +75 -0
- package/src/models/UpdateUserRequest.ts +16 -1
- package/src/models/UserAuthTokenResourceArrayResponse.ts +73 -0
- package/src/models/UserResource.ts +19 -2
- package/src/models/UserResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +9 -0
|
@@ -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 { AssetFileForUploadResource } from './AssetFileForUploadResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetFileForUploadResourceFromJSON,
|
|
19
|
+
AssetFileForUploadResourceFromJSONTyped,
|
|
20
|
+
AssetFileForUploadResourceToJSON,
|
|
21
|
+
AssetFileForUploadResourceToJSONTyped,
|
|
22
|
+
} from './AssetFileForUploadResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssetFileForUploadResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AssetFileForUploadResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AssetFileForUploadResource>}
|
|
33
|
+
* @memberof AssetFileForUploadResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AssetFileForUploadResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssetFileForUploadResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAssetFileForUploadResourceArrayResponse(value: object): value is AssetFileForUploadResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetFileForUploadResourceArrayResponseFromJSON(json: any): AssetFileForUploadResourceArrayResponse {
|
|
46
|
+
return AssetFileForUploadResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetFileForUploadResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetFileForUploadResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetFileForUploadResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssetFileForUploadResourceArrayResponseToJSON(json: any): AssetFileForUploadResourceArrayResponse {
|
|
60
|
+
return AssetFileForUploadResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssetFileForUploadResourceArrayResponseToJSONTyped(value?: AssetFileForUploadResourceArrayResponse | 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(AssetFileForUploadResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AssetLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AssetLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssetLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssetLiteResource
|
|
32
|
+
*/
|
|
33
|
+
filePath: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AssetLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetLiteResourceFromJSON(json: any): AssetLiteResource {
|
|
46
|
+
return AssetLiteResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'filePath': json['filePath'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AssetLiteResourceToJSON(json: any): AssetLiteResource {
|
|
61
|
+
return AssetLiteResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'filePath': value['filePath'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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 { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssetLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AssetLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AssetLiteResource>}
|
|
33
|
+
* @memberof AssetLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AssetLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssetLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse {
|
|
46
|
+
return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse {
|
|
60
|
+
return AssetLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | 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(AssetLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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 AssetResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AssetResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssetResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssetResource
|
|
32
|
+
*/
|
|
33
|
+
filePath: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AssetResource
|
|
38
|
+
*/
|
|
39
|
+
fileName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AssetResource
|
|
44
|
+
*/
|
|
45
|
+
mimeType: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AssetResource
|
|
50
|
+
*/
|
|
51
|
+
altText: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof AssetResource
|
|
56
|
+
*/
|
|
57
|
+
index: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof AssetResource
|
|
62
|
+
*/
|
|
63
|
+
fileId: number;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the AssetResource interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
75
|
+
if (!('index' in value) || value['index'] === undefined) return false;
|
|
76
|
+
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AssetResourceFromJSON(json: any): AssetResource {
|
|
81
|
+
return AssetResourceFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResource {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'filePath': json['filePath'],
|
|
92
|
+
'fileName': json['fileName'],
|
|
93
|
+
'mimeType': json['mimeType'],
|
|
94
|
+
'altText': json['altText'],
|
|
95
|
+
'index': json['index'],
|
|
96
|
+
'fileId': json['fileId'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AssetResourceToJSON(json: any): AssetResource {
|
|
101
|
+
return AssetResourceToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'filePath': value['filePath'],
|
|
113
|
+
'fileName': value['fileName'],
|
|
114
|
+
'mimeType': value['mimeType'],
|
|
115
|
+
'altText': value['altText'],
|
|
116
|
+
'index': value['index'],
|
|
117
|
+
'fileId': value['fileId'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -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 { AssetResource } from './AssetResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetResourceFromJSON,
|
|
19
|
+
AssetResourceFromJSONTyped,
|
|
20
|
+
AssetResourceToJSON,
|
|
21
|
+
AssetResourceToJSONTyped,
|
|
22
|
+
} from './AssetResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AssetResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AssetResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AssetResource>}
|
|
33
|
+
* @memberof AssetResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AssetResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AssetResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAssetResourceArrayResponse(value: object): value is AssetResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetResourceArrayResponseFromJSON(json: any): AssetResourceArrayResponse {
|
|
46
|
+
return AssetResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AssetResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AssetResourceArrayResponseToJSON(json: any): AssetResourceArrayResponse {
|
|
60
|
+
return AssetResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AssetResourceArrayResponseToJSONTyped(value?: AssetResourceArrayResponse | 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(AssetResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -30,21 +30,49 @@ export interface IndexUserRequest {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof IndexUserRequest
|
|
32
32
|
*/
|
|
33
|
-
sortBy?:
|
|
33
|
+
sortBy?: IndexUserRequestSortByEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IndexUserRequest
|
|
38
38
|
*/
|
|
39
|
-
sortDirection?:
|
|
39
|
+
sortDirection?: IndexUserRequestSortDirectionEnum;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexUserRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
43
49
|
* @memberof IndexUserRequest
|
|
44
50
|
*/
|
|
45
|
-
|
|
51
|
+
page?: number;
|
|
46
52
|
}
|
|
47
53
|
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const IndexUserRequestSortByEnum = {
|
|
59
|
+
FirstName: 'first_name',
|
|
60
|
+
LastName: 'last_name',
|
|
61
|
+
Email: 'email',
|
|
62
|
+
Mobile: 'mobile'
|
|
63
|
+
} as const;
|
|
64
|
+
export type IndexUserRequestSortByEnum = typeof IndexUserRequestSortByEnum[keyof typeof IndexUserRequestSortByEnum];
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export const IndexUserRequestSortDirectionEnum = {
|
|
70
|
+
Asc: 'asc',
|
|
71
|
+
Desc: 'desc'
|
|
72
|
+
} as const;
|
|
73
|
+
export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
|
|
74
|
+
|
|
75
|
+
|
|
48
76
|
/**
|
|
49
77
|
* Check if a given object implements the IndexUserRequest interface.
|
|
50
78
|
*/
|
|
@@ -63,9 +91,10 @@ export function IndexUserRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
63
91
|
return {
|
|
64
92
|
|
|
65
93
|
'search': json['search'] == null ? undefined : json['search'],
|
|
66
|
-
'sortBy': json['
|
|
67
|
-
'sortDirection': json['
|
|
68
|
-
'perPage': json['
|
|
94
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
95
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
96
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
97
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
69
98
|
};
|
|
70
99
|
}
|
|
71
100
|
|
|
@@ -81,9 +110,10 @@ export function IndexUserRequestToJSONTyped(value?: IndexUserRequest | null, ign
|
|
|
81
110
|
return {
|
|
82
111
|
|
|
83
112
|
'search': value['search'],
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
113
|
+
'sort_by': value['sortBy'],
|
|
114
|
+
'sort_direction': value['sortDirection'],
|
|
115
|
+
'per_page': value['perPage'],
|
|
116
|
+
'page': value['page'],
|
|
87
117
|
};
|
|
88
118
|
}
|
|
89
119
|
|
|
@@ -0,0 +1,75 @@
|
|
|
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 StoreAssetFileRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreAssetFileRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreAssetFileRequest
|
|
26
|
+
*/
|
|
27
|
+
fileName: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreAssetFileRequest
|
|
32
|
+
*/
|
|
33
|
+
fileType: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the StoreAssetFileRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfStoreAssetFileRequest(value: object): value is StoreAssetFileRequest {
|
|
40
|
+
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
41
|
+
if (!('fileType' in value) || value['fileType'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreAssetFileRequestFromJSON(json: any): StoreAssetFileRequest {
|
|
46
|
+
return StoreAssetFileRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreAssetFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreAssetFileRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'fileName': json['file_name'],
|
|
56
|
+
'fileType': json['file_type'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreAssetFileRequestToJSON(json: any): StoreAssetFileRequest {
|
|
61
|
+
return StoreAssetFileRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreAssetFileRequestToJSONTyped(value?: StoreAssetFileRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'file_name': value['fileName'],
|
|
72
|
+
'file_type': value['fileType'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -72,9 +72,24 @@ export interface UpdateUserRequest {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof UpdateUserRequest
|
|
74
74
|
*/
|
|
75
|
-
type:
|
|
75
|
+
type: UpdateUserRequestTypeEnum;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const UpdateUserRequestTypeEnum = {
|
|
83
|
+
Owner: 'OWNER',
|
|
84
|
+
Admin: 'ADMIN',
|
|
85
|
+
Manager: 'MANAGER',
|
|
86
|
+
Estimator: 'ESTIMATOR',
|
|
87
|
+
Supervisor: 'SUPERVISOR',
|
|
88
|
+
Tradesman: 'TRADESMAN'
|
|
89
|
+
} as const;
|
|
90
|
+
export type UpdateUserRequestTypeEnum = typeof UpdateUserRequestTypeEnum[keyof typeof UpdateUserRequestTypeEnum];
|
|
91
|
+
|
|
92
|
+
|
|
78
93
|
/**
|
|
79
94
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
80
95
|
*/
|
|
@@ -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 { UserAuthTokenResource } from './UserAuthTokenResource';
|
|
17
|
+
import {
|
|
18
|
+
UserAuthTokenResourceFromJSON,
|
|
19
|
+
UserAuthTokenResourceFromJSONTyped,
|
|
20
|
+
UserAuthTokenResourceToJSON,
|
|
21
|
+
UserAuthTokenResourceToJSONTyped,
|
|
22
|
+
} from './UserAuthTokenResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserAuthTokenResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface UserAuthTokenResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<UserAuthTokenResource>}
|
|
33
|
+
* @memberof UserAuthTokenResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<UserAuthTokenResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the UserAuthTokenResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfUserAuthTokenResourceArrayResponse(value: object): value is UserAuthTokenResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UserAuthTokenResourceArrayResponseFromJSON(json: any): UserAuthTokenResourceArrayResponse {
|
|
46
|
+
return UserAuthTokenResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UserAuthTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthTokenResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(UserAuthTokenResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function UserAuthTokenResourceArrayResponseToJSON(json: any): UserAuthTokenResourceArrayResponse {
|
|
60
|
+
return UserAuthTokenResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function UserAuthTokenResourceArrayResponseToJSONTyped(value?: UserAuthTokenResourceArrayResponse | 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(UserAuthTokenResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|