@digital8/laravel-auth-template-ts-sdk 0.0.7 → 0.0.9
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 +10 -2
- package/README.md +2 -2
- package/dist/apis/{AuthApi.d.ts → GeneralApi.d.ts} +47 -2
- package/dist/apis/{AuthApi.js → GeneralApi.js} +200 -16
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- 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 +73 -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 +5 -0
- 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/package.json +1 -1
- package/src/apis/{AuthApi.ts → GeneralApi.ts} +174 -1
- package/src/apis/index.ts +1 -2
- 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 +119 -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 +17 -0
- package/src/models/UserResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +9 -0
- package/dist/apis/UsersApi.d.ts +0 -52
- package/dist/apis/UsersApi.js +0 -219
- package/src/apis/UsersApi.ts +0 -164
|
@@ -0,0 +1,38 @@
|
|
|
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 AssetLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface AssetLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AssetLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssetLiteResource
|
|
28
|
+
*/
|
|
29
|
+
filePath: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AssetLiteResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAssetLiteResource(value: object): value is AssetLiteResource;
|
|
35
|
+
export declare function AssetLiteResourceFromJSON(json: any): AssetLiteResource;
|
|
36
|
+
export declare function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResource;
|
|
37
|
+
export declare function AssetLiteResourceToJSON(json: any): AssetLiteResource;
|
|
38
|
+
export declare function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfAssetLiteResource = instanceOfAssetLiteResource;
|
|
17
|
+
exports.AssetLiteResourceFromJSON = AssetLiteResourceFromJSON;
|
|
18
|
+
exports.AssetLiteResourceFromJSONTyped = AssetLiteResourceFromJSONTyped;
|
|
19
|
+
exports.AssetLiteResourceToJSON = AssetLiteResourceToJSON;
|
|
20
|
+
exports.AssetLiteResourceToJSONTyped = AssetLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AssetLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAssetLiteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AssetLiteResourceFromJSON(json) {
|
|
32
|
+
return AssetLiteResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'filePath': json['filePath'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AssetLiteResourceToJSON(json) {
|
|
44
|
+
return AssetLiteResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
'filePath': value['filePath'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 { AssetLiteResource } from './AssetLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssetLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AssetLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AssetLiteResource>}
|
|
22
|
+
* @memberof AssetLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<AssetLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AssetLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAssetLiteResourceArrayResponse(value: object): value is AssetLiteResourceArrayResponse;
|
|
30
|
+
export declare function AssetLiteResourceArrayResponseFromJSON(json: any): AssetLiteResourceArrayResponse;
|
|
31
|
+
export declare function AssetLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetLiteResourceArrayResponse;
|
|
32
|
+
export declare function AssetLiteResourceArrayResponseToJSON(json: any): AssetLiteResourceArrayResponse;
|
|
33
|
+
export declare function AssetLiteResourceArrayResponseToJSONTyped(value?: AssetLiteResourceArrayResponse | 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.instanceOfAssetLiteResourceArrayResponse = instanceOfAssetLiteResourceArrayResponse;
|
|
17
|
+
exports.AssetLiteResourceArrayResponseFromJSON = AssetLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.AssetLiteResourceArrayResponseFromJSONTyped = AssetLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.AssetLiteResourceArrayResponseToJSON = AssetLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.AssetLiteResourceArrayResponseToJSONTyped = AssetLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssetLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssetLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AssetLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return AssetLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AssetLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AssetLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return AssetLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AssetLiteResourceArrayResponseToJSONTyped(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(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 AssetResource
|
|
16
|
+
*/
|
|
17
|
+
export interface AssetResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AssetResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssetResource
|
|
28
|
+
*/
|
|
29
|
+
filePath: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AssetResource
|
|
34
|
+
*/
|
|
35
|
+
fileName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssetResource
|
|
40
|
+
*/
|
|
41
|
+
mimeType: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AssetResource
|
|
46
|
+
*/
|
|
47
|
+
altText?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof AssetResource
|
|
52
|
+
*/
|
|
53
|
+
index: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AssetResource
|
|
58
|
+
*/
|
|
59
|
+
fileId: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AssetResource interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAssetResource(value: object): value is AssetResource;
|
|
65
|
+
export declare function AssetResourceFromJSON(json: any): AssetResource;
|
|
66
|
+
export declare function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResource;
|
|
67
|
+
export declare function AssetResourceToJSON(json: any): AssetResource;
|
|
68
|
+
export declare function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfAssetResource = instanceOfAssetResource;
|
|
17
|
+
exports.AssetResourceFromJSON = AssetResourceFromJSON;
|
|
18
|
+
exports.AssetResourceFromJSONTyped = AssetResourceFromJSONTyped;
|
|
19
|
+
exports.AssetResourceToJSON = AssetResourceToJSON;
|
|
20
|
+
exports.AssetResourceToJSONTyped = AssetResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AssetResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAssetResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('index' in value) || value['index'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AssetResourceFromJSON(json) {
|
|
40
|
+
return AssetResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'filePath': json['filePath'],
|
|
49
|
+
'fileName': json['fileName'],
|
|
50
|
+
'mimeType': json['mimeType'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
52
|
+
'index': json['index'],
|
|
53
|
+
'fileId': json['fileId'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AssetResourceToJSON(json) {
|
|
57
|
+
return AssetResourceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'filePath': value['filePath'],
|
|
67
|
+
'fileName': value['fileName'],
|
|
68
|
+
'mimeType': value['mimeType'],
|
|
69
|
+
'altText': value['altText'],
|
|
70
|
+
'index': value['index'],
|
|
71
|
+
'fileId': value['fileId'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 { AssetResource } from './AssetResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AssetResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AssetResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AssetResource>}
|
|
22
|
+
* @memberof AssetResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<AssetResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AssetResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAssetResourceArrayResponse(value: object): value is AssetResourceArrayResponse;
|
|
30
|
+
export declare function AssetResourceArrayResponseFromJSON(json: any): AssetResourceArrayResponse;
|
|
31
|
+
export declare function AssetResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResourceArrayResponse;
|
|
32
|
+
export declare function AssetResourceArrayResponseToJSON(json: any): AssetResourceArrayResponse;
|
|
33
|
+
export declare function AssetResourceArrayResponseToJSONTyped(value?: AssetResourceArrayResponse | 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.instanceOfAssetResourceArrayResponse = instanceOfAssetResourceArrayResponse;
|
|
17
|
+
exports.AssetResourceArrayResponseFromJSON = AssetResourceArrayResponseFromJSON;
|
|
18
|
+
exports.AssetResourceArrayResponseFromJSONTyped = AssetResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.AssetResourceArrayResponseToJSON = AssetResourceArrayResponseToJSON;
|
|
20
|
+
exports.AssetResourceArrayResponseToJSONTyped = AssetResourceArrayResponseToJSONTyped;
|
|
21
|
+
var AssetResource_1 = require("./AssetResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AssetResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAssetResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function AssetResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return AssetResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function AssetResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function AssetResourceArrayResponseToJSON(json) {
|
|
40
|
+
return AssetResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AssetResourceArrayResponseToJSONTyped(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(AssetResource_1.AssetResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -26,20 +26,44 @@ export interface IndexUserRequest {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof IndexUserRequest
|
|
28
28
|
*/
|
|
29
|
-
sortBy?:
|
|
29
|
+
sortBy?: IndexUserRequestSortByEnum;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof IndexUserRequest
|
|
34
34
|
*/
|
|
35
|
-
sortDirection?:
|
|
35
|
+
sortDirection?: IndexUserRequestSortDirectionEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IndexUserRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
39
45
|
* @memberof IndexUserRequest
|
|
40
46
|
*/
|
|
41
|
-
|
|
47
|
+
page?: number;
|
|
42
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const IndexUserRequestSortByEnum: {
|
|
53
|
+
readonly FirstName: "first_name";
|
|
54
|
+
readonly LastName: "last_name";
|
|
55
|
+
readonly Email: "email";
|
|
56
|
+
readonly Mobile: "mobile";
|
|
57
|
+
};
|
|
58
|
+
export type IndexUserRequestSortByEnum = typeof IndexUserRequestSortByEnum[keyof typeof IndexUserRequestSortByEnum];
|
|
59
|
+
/**
|
|
60
|
+
* @export
|
|
61
|
+
*/
|
|
62
|
+
export declare const IndexUserRequestSortDirectionEnum: {
|
|
63
|
+
readonly Asc: "asc";
|
|
64
|
+
readonly Desc: "desc";
|
|
65
|
+
};
|
|
66
|
+
export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
|
|
43
67
|
/**
|
|
44
68
|
* Check if a given object implements the IndexUserRequest interface.
|
|
45
69
|
*/
|
|
@@ -13,11 +13,28 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
|
|
16
17
|
exports.instanceOfIndexUserRequest = instanceOfIndexUserRequest;
|
|
17
18
|
exports.IndexUserRequestFromJSON = IndexUserRequestFromJSON;
|
|
18
19
|
exports.IndexUserRequestFromJSONTyped = IndexUserRequestFromJSONTyped;
|
|
19
20
|
exports.IndexUserRequestToJSON = IndexUserRequestToJSON;
|
|
20
21
|
exports.IndexUserRequestToJSONTyped = IndexUserRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IndexUserRequestSortByEnum = {
|
|
26
|
+
FirstName: 'first_name',
|
|
27
|
+
LastName: 'last_name',
|
|
28
|
+
Email: 'email',
|
|
29
|
+
Mobile: 'mobile'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
exports.IndexUserRequestSortDirectionEnum = {
|
|
35
|
+
Asc: 'asc',
|
|
36
|
+
Desc: 'desc'
|
|
37
|
+
};
|
|
21
38
|
/**
|
|
22
39
|
* Check if a given object implements the IndexUserRequest interface.
|
|
23
40
|
*/
|
|
@@ -33,9 +50,10 @@ function IndexUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
50
|
}
|
|
34
51
|
return {
|
|
35
52
|
'search': json['search'] == null ? undefined : json['search'],
|
|
36
|
-
'sortBy': json['
|
|
37
|
-
'sortDirection': json['
|
|
38
|
-
'perPage': json['
|
|
53
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
54
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
55
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
56
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
39
57
|
};
|
|
40
58
|
}
|
|
41
59
|
function IndexUserRequestToJSON(json) {
|
|
@@ -48,8 +66,9 @@ function IndexUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
48
66
|
}
|
|
49
67
|
return {
|
|
50
68
|
'search': value['search'],
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
69
|
+
'sort_by': value['sortBy'],
|
|
70
|
+
'sort_direction': value['sortDirection'],
|
|
71
|
+
'per_page': value['perPage'],
|
|
72
|
+
'page': value['page'],
|
|
54
73
|
};
|
|
55
74
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 StoreAssetFileRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreAssetFileRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreAssetFileRequest
|
|
22
|
+
*/
|
|
23
|
+
fileName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreAssetFileRequest
|
|
28
|
+
*/
|
|
29
|
+
fileType: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the StoreAssetFileRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfStoreAssetFileRequest(value: object): value is StoreAssetFileRequest;
|
|
35
|
+
export declare function StoreAssetFileRequestFromJSON(json: any): StoreAssetFileRequest;
|
|
36
|
+
export declare function StoreAssetFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreAssetFileRequest;
|
|
37
|
+
export declare function StoreAssetFileRequestToJSON(json: any): StoreAssetFileRequest;
|
|
38
|
+
export declare function StoreAssetFileRequestToJSONTyped(value?: StoreAssetFileRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfStoreAssetFileRequest = instanceOfStoreAssetFileRequest;
|
|
17
|
+
exports.StoreAssetFileRequestFromJSON = StoreAssetFileRequestFromJSON;
|
|
18
|
+
exports.StoreAssetFileRequestFromJSONTyped = StoreAssetFileRequestFromJSONTyped;
|
|
19
|
+
exports.StoreAssetFileRequestToJSON = StoreAssetFileRequestToJSON;
|
|
20
|
+
exports.StoreAssetFileRequestToJSONTyped = StoreAssetFileRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreAssetFileRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreAssetFileRequest(value) {
|
|
25
|
+
if (!('fileName' in value) || value['fileName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fileType' in value) || value['fileType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreAssetFileRequestFromJSON(json) {
|
|
32
|
+
return StoreAssetFileRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreAssetFileRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'fileName': json['file_name'],
|
|
40
|
+
'fileType': json['file_type'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function StoreAssetFileRequestToJSON(json) {
|
|
44
|
+
return StoreAssetFileRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function StoreAssetFileRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'file_name': value['fileName'],
|
|
53
|
+
'file_type': value['fileType'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -68,8 +68,20 @@ export interface UpdateUserRequest {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof UpdateUserRequest
|
|
70
70
|
*/
|
|
71
|
-
type:
|
|
71
|
+
type: UpdateUserRequestTypeEnum;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const UpdateUserRequestTypeEnum: {
|
|
77
|
+
readonly Owner: "OWNER";
|
|
78
|
+
readonly Admin: "ADMIN";
|
|
79
|
+
readonly Manager: "MANAGER";
|
|
80
|
+
readonly Estimator: "ESTIMATOR";
|
|
81
|
+
readonly Supervisor: "SUPERVISOR";
|
|
82
|
+
readonly Tradesman: "TRADESMAN";
|
|
83
|
+
};
|
|
84
|
+
export type UpdateUserRequestTypeEnum = typeof UpdateUserRequestTypeEnum[keyof typeof UpdateUserRequestTypeEnum];
|
|
73
85
|
/**
|
|
74
86
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
75
87
|
*/
|
|
@@ -13,11 +13,23 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateUserRequestTypeEnum = void 0;
|
|
16
17
|
exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
|
|
17
18
|
exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
|
|
18
19
|
exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
|
|
19
20
|
exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
|
|
20
21
|
exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UpdateUserRequestTypeEnum = {
|
|
26
|
+
Owner: 'OWNER',
|
|
27
|
+
Admin: 'ADMIN',
|
|
28
|
+
Manager: 'MANAGER',
|
|
29
|
+
Estimator: 'ESTIMATOR',
|
|
30
|
+
Supervisor: 'SUPERVISOR',
|
|
31
|
+
Tradesman: 'TRADESMAN'
|
|
32
|
+
};
|
|
21
33
|
/**
|
|
22
34
|
* Check if a given object implements the UpdateUserRequest interface.
|
|
23
35
|
*/
|