@digital8/security-registers-backend-ts-sdk 0.0.1
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 +33 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/GeneralApi.d.ts +123 -0
- package/dist/apis/GeneralApi.js +528 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +19 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddressResource.d.ts +80 -0
- package/dist/models/AddressResource.js +79 -0
- package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressResourceArrayResponse.js +50 -0
- 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/GenericResponse.d.ts +32 -0
- package/dist/models/GenericResponse.js +49 -0
- package/dist/models/IndexUserRequest.d.ts +92 -0
- package/dist/models/IndexUserRequest.js +80 -0
- package/dist/models/LoginAuthRequest.d.ts +38 -0
- package/dist/models/LoginAuthRequest.js +55 -0
- package/dist/models/PaginatedUserResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedUserResourceResponse.js +57 -0
- package/dist/models/PagingMetadata.d.ts +68 -0
- package/dist/models/PagingMetadata.js +75 -0
- package/dist/models/ResetPasswordAuthRequest.d.ts +44 -0
- package/dist/models/ResetPasswordAuthRequest.js +59 -0
- package/dist/models/SendForgotPasswordLinkAuthRequest.d.ts +32 -0
- package/dist/models/SendForgotPasswordLinkAuthRequest.js +51 -0
- package/dist/models/StoreAssetFileRequest.d.ts +38 -0
- package/dist/models/StoreAssetFileRequest.js +55 -0
- package/dist/models/StoreUserRequest.d.ts +50 -0
- package/dist/models/StoreUserRequest.js +63 -0
- package/dist/models/UpdateUserRequest.d.ts +56 -0
- package/dist/models/UpdateUserRequest.js +57 -0
- package/dist/models/UserAuthTokenResource.d.ts +39 -0
- package/dist/models/UserAuthTokenResource.js +56 -0
- package/dist/models/UserAuthTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserAuthTokenResourceArrayResponse.js +50 -0
- package/dist/models/UserResource.d.ts +81 -0
- package/dist/models/UserResource.js +81 -0
- package/dist/models/UserResourceArrayResponse.d.ts +33 -0
- package/dist/models/UserResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +40 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/package.json +19 -0
- package/src/apis/GeneralApi.ts +423 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/AddressResource.ts +136 -0
- package/src/models/AddressResourceArrayResponse.ts +73 -0
- 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/GenericResponse.ts +65 -0
- package/src/models/IndexUserRequest.ts +143 -0
- package/src/models/LoginAuthRequest.ts +75 -0
- package/src/models/PaginatedUserResourceResponse.ts +90 -0
- package/src/models/PagingMetadata.ts +120 -0
- package/src/models/ResetPasswordAuthRequest.ts +84 -0
- package/src/models/SendForgotPasswordLinkAuthRequest.ts +66 -0
- package/src/models/StoreAssetFileRequest.ts +75 -0
- package/src/models/StoreUserRequest.ts +93 -0
- package/src/models/UpdateUserRequest.ts +97 -0
- package/src/models/UserAuthTokenResource.ts +83 -0
- package/src/models/UserAuthTokenResourceArrayResponse.ts +73 -0
- package/src/models/UserResource.ts +144 -0
- package/src/models/UserResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +24 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
|
@@ -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.instanceOfUserAuthTokenResourceArrayResponse = instanceOfUserAuthTokenResourceArrayResponse;
|
|
17
|
+
exports.UserAuthTokenResourceArrayResponseFromJSON = UserAuthTokenResourceArrayResponseFromJSON;
|
|
18
|
+
exports.UserAuthTokenResourceArrayResponseFromJSONTyped = UserAuthTokenResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.UserAuthTokenResourceArrayResponseToJSON = UserAuthTokenResourceArrayResponseToJSON;
|
|
20
|
+
exports.UserAuthTokenResourceArrayResponseToJSONTyped = UserAuthTokenResourceArrayResponseToJSONTyped;
|
|
21
|
+
var UserAuthTokenResource_1 = require("./UserAuthTokenResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserAuthTokenResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserAuthTokenResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UserAuthTokenResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return UserAuthTokenResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UserAuthTokenResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(UserAuthTokenResource_1.UserAuthTokenResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UserAuthTokenResourceArrayResponseToJSON(json) {
|
|
40
|
+
return UserAuthTokenResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UserAuthTokenResourceArrayResponseToJSONTyped(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(UserAuthTokenResource_1.UserAuthTokenResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 UserResource
|
|
17
|
+
*/
|
|
18
|
+
export interface UserResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof UserResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UserResource
|
|
29
|
+
*/
|
|
30
|
+
firstName: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UserResource
|
|
35
|
+
*/
|
|
36
|
+
lastName: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UserResource
|
|
41
|
+
*/
|
|
42
|
+
fullName: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UserResource
|
|
47
|
+
*/
|
|
48
|
+
email: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UserResource
|
|
53
|
+
*/
|
|
54
|
+
mobile: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<AssetLiteResource>}
|
|
58
|
+
* @memberof UserResource
|
|
59
|
+
*/
|
|
60
|
+
assets: Array<AssetLiteResource> | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof UserResource
|
|
65
|
+
*/
|
|
66
|
+
createdAt?: Date | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof UserResource
|
|
71
|
+
*/
|
|
72
|
+
updatedAt?: Date | null;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the UserResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfUserResource(value: object): value is UserResource;
|
|
78
|
+
export declare function UserResourceFromJSON(json: any): UserResource;
|
|
79
|
+
export declare function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResource;
|
|
80
|
+
export declare function UserResourceToJSON(json: any): UserResource;
|
|
81
|
+
export declare function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,81 @@
|
|
|
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.instanceOfUserResource = instanceOfUserResource;
|
|
17
|
+
exports.UserResourceFromJSON = UserResourceFromJSON;
|
|
18
|
+
exports.UserResourceFromJSONTyped = UserResourceFromJSONTyped;
|
|
19
|
+
exports.UserResourceToJSON = UserResourceToJSON;
|
|
20
|
+
exports.UserResourceToJSONTyped = UserResourceToJSONTyped;
|
|
21
|
+
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function UserResourceFromJSON(json) {
|
|
43
|
+
return UserResourceFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'firstName': json['firstName'],
|
|
52
|
+
'lastName': json['lastName'],
|
|
53
|
+
'fullName': json['fullName'],
|
|
54
|
+
'email': json['email'],
|
|
55
|
+
'mobile': json['mobile'],
|
|
56
|
+
'assets': (json['assets'] == null ? null : json['assets'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
57
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
58
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function UserResourceToJSON(json) {
|
|
62
|
+
return UserResourceToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function UserResourceToJSONTyped(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
|
+
'firstName': value['firstName'],
|
|
73
|
+
'lastName': value['lastName'],
|
|
74
|
+
'fullName': value['fullName'],
|
|
75
|
+
'email': value['email'],
|
|
76
|
+
'mobile': value['mobile'],
|
|
77
|
+
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
78
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
79
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
@@ -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 { UserResource } from './UserResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UserResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface UserResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<UserResource>}
|
|
22
|
+
* @memberof UserResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<UserResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UserResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUserResourceArrayResponse(value: object): value is UserResourceArrayResponse;
|
|
30
|
+
export declare function UserResourceArrayResponseFromJSON(json: any): UserResourceArrayResponse;
|
|
31
|
+
export declare function UserResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResourceArrayResponse;
|
|
32
|
+
export declare function UserResourceArrayResponseToJSON(json: any): UserResourceArrayResponse;
|
|
33
|
+
export declare function UserResourceArrayResponseToJSONTyped(value?: UserResourceArrayResponse | 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.instanceOfUserResourceArrayResponse = instanceOfUserResourceArrayResponse;
|
|
17
|
+
exports.UserResourceArrayResponseFromJSON = UserResourceArrayResponseFromJSON;
|
|
18
|
+
exports.UserResourceArrayResponseFromJSONTyped = UserResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.UserResourceArrayResponseToJSON = UserResourceArrayResponseToJSON;
|
|
20
|
+
exports.UserResourceArrayResponseToJSONTyped = UserResourceArrayResponseToJSONTyped;
|
|
21
|
+
var UserResource_1 = require("./UserResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UserResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUserResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UserResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return UserResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UserResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(UserResource_1.UserResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UserResourceArrayResponseToJSON(json) {
|
|
40
|
+
return UserResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UserResourceArrayResponseToJSONTyped(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(UserResource_1.UserResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './AddressResource';
|
|
2
|
+
export * from './AddressResourceArrayResponse';
|
|
3
|
+
export * from './AssetFileForUploadResource';
|
|
4
|
+
export * from './AssetFileForUploadResourceArrayResponse';
|
|
5
|
+
export * from './AssetLiteResource';
|
|
6
|
+
export * from './AssetLiteResourceArrayResponse';
|
|
7
|
+
export * from './AssetResource';
|
|
8
|
+
export * from './AssetResourceArrayResponse';
|
|
9
|
+
export * from './GenericResponse';
|
|
10
|
+
export * from './IndexUserRequest';
|
|
11
|
+
export * from './LoginAuthRequest';
|
|
12
|
+
export * from './PaginatedUserResourceResponse';
|
|
13
|
+
export * from './PagingMetadata';
|
|
14
|
+
export * from './ResetPasswordAuthRequest';
|
|
15
|
+
export * from './SendForgotPasswordLinkAuthRequest';
|
|
16
|
+
export * from './StoreAssetFileRequest';
|
|
17
|
+
export * from './StoreUserRequest';
|
|
18
|
+
export * from './UpdateUserRequest';
|
|
19
|
+
export * from './UserAuthTokenResource';
|
|
20
|
+
export * from './UserAuthTokenResourceArrayResponse';
|
|
21
|
+
export * from './UserResource';
|
|
22
|
+
export * from './UserResourceArrayResponse';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/* tslint:disable */
|
|
18
|
+
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./AddressResource"), exports);
|
|
20
|
+
__exportStar(require("./AddressResourceArrayResponse"), exports);
|
|
21
|
+
__exportStar(require("./AssetFileForUploadResource"), exports);
|
|
22
|
+
__exportStar(require("./AssetFileForUploadResourceArrayResponse"), exports);
|
|
23
|
+
__exportStar(require("./AssetLiteResource"), exports);
|
|
24
|
+
__exportStar(require("./AssetLiteResourceArrayResponse"), exports);
|
|
25
|
+
__exportStar(require("./AssetResource"), exports);
|
|
26
|
+
__exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
27
|
+
__exportStar(require("./GenericResponse"), exports);
|
|
28
|
+
__exportStar(require("./IndexUserRequest"), exports);
|
|
29
|
+
__exportStar(require("./LoginAuthRequest"), exports);
|
|
30
|
+
__exportStar(require("./PaginatedUserResourceResponse"), exports);
|
|
31
|
+
__exportStar(require("./PagingMetadata"), exports);
|
|
32
|
+
__exportStar(require("./ResetPasswordAuthRequest"), exports);
|
|
33
|
+
__exportStar(require("./SendForgotPasswordLinkAuthRequest"), exports);
|
|
34
|
+
__exportStar(require("./StoreAssetFileRequest"), exports);
|
|
35
|
+
__exportStar(require("./StoreUserRequest"), exports);
|
|
36
|
+
__exportStar(require("./UpdateUserRequest"), exports);
|
|
37
|
+
__exportStar(require("./UserAuthTokenResource"), exports);
|
|
38
|
+
__exportStar(require("./UserAuthTokenResourceArrayResponse"), exports);
|
|
39
|
+
__exportStar(require("./UserResource"), exports);
|
|
40
|
+
__exportStar(require("./UserResourceArrayResponse"), exports);
|
|
@@ -0,0 +1,184 @@
|
|
|
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
|
+
export declare const BASE_PATH: string;
|
|
13
|
+
export interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
export declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
export declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
export declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private static readonly jsonRegex;
|
|
47
|
+
private middleware;
|
|
48
|
+
constructor(configuration?: Configuration);
|
|
49
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
50
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
51
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
52
|
+
/**
|
|
53
|
+
* Check if the given MIME is a JSON MIME.
|
|
54
|
+
* JSON MIME examples:
|
|
55
|
+
* application/json
|
|
56
|
+
* application/json; charset=UTF8
|
|
57
|
+
* APPLICATION/JSON
|
|
58
|
+
* application/vnd.company+json
|
|
59
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
60
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
61
|
+
*/
|
|
62
|
+
protected isJsonMime(mime: string | null | undefined): boolean;
|
|
63
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
64
|
+
private createFetchParams;
|
|
65
|
+
private fetchApi;
|
|
66
|
+
/**
|
|
67
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
68
|
+
* and then shallow cloning data members.
|
|
69
|
+
*/
|
|
70
|
+
private clone;
|
|
71
|
+
}
|
|
72
|
+
export declare class ResponseError extends Error {
|
|
73
|
+
response: Response;
|
|
74
|
+
name: "ResponseError";
|
|
75
|
+
constructor(response: Response, msg?: string);
|
|
76
|
+
}
|
|
77
|
+
export declare class FetchError extends Error {
|
|
78
|
+
cause: Error;
|
|
79
|
+
name: "FetchError";
|
|
80
|
+
constructor(cause: Error, msg?: string);
|
|
81
|
+
}
|
|
82
|
+
export declare class RequiredError extends Error {
|
|
83
|
+
field: string;
|
|
84
|
+
name: "RequiredError";
|
|
85
|
+
constructor(field: string, msg?: string);
|
|
86
|
+
}
|
|
87
|
+
export declare const COLLECTION_FORMATS: {
|
|
88
|
+
csv: string;
|
|
89
|
+
ssv: string;
|
|
90
|
+
tsv: string;
|
|
91
|
+
pipes: string;
|
|
92
|
+
};
|
|
93
|
+
export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
94
|
+
export type Json = any;
|
|
95
|
+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
96
|
+
export type HTTPHeaders = {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
export type HTTPQuery = {
|
|
100
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
101
|
+
};
|
|
102
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
103
|
+
export type HTTPRequestInit = {
|
|
104
|
+
headers?: HTTPHeaders;
|
|
105
|
+
method: HTTPMethod;
|
|
106
|
+
credentials?: RequestCredentials;
|
|
107
|
+
body?: HTTPBody;
|
|
108
|
+
};
|
|
109
|
+
export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
110
|
+
export type InitOverrideFunction = (requestContext: {
|
|
111
|
+
init: HTTPRequestInit;
|
|
112
|
+
context: RequestOpts;
|
|
113
|
+
}) => Promise<RequestInit>;
|
|
114
|
+
export interface FetchParams {
|
|
115
|
+
url: string;
|
|
116
|
+
init: RequestInit;
|
|
117
|
+
}
|
|
118
|
+
export interface RequestOpts {
|
|
119
|
+
path: string;
|
|
120
|
+
method: HTTPMethod;
|
|
121
|
+
headers: HTTPHeaders;
|
|
122
|
+
query?: HTTPQuery;
|
|
123
|
+
body?: HTTPBody;
|
|
124
|
+
}
|
|
125
|
+
export declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
126
|
+
export declare function exists(json: any, key: string): boolean;
|
|
127
|
+
export declare function mapValues(data: any, fn: (item: any) => any): {
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
};
|
|
130
|
+
export declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
131
|
+
export interface Consume {
|
|
132
|
+
contentType: string;
|
|
133
|
+
}
|
|
134
|
+
export interface RequestContext {
|
|
135
|
+
fetch: FetchAPI;
|
|
136
|
+
url: string;
|
|
137
|
+
init: RequestInit;
|
|
138
|
+
}
|
|
139
|
+
export interface ResponseContext {
|
|
140
|
+
fetch: FetchAPI;
|
|
141
|
+
url: string;
|
|
142
|
+
init: RequestInit;
|
|
143
|
+
response: Response;
|
|
144
|
+
}
|
|
145
|
+
export interface ErrorContext {
|
|
146
|
+
fetch: FetchAPI;
|
|
147
|
+
url: string;
|
|
148
|
+
init: RequestInit;
|
|
149
|
+
error: unknown;
|
|
150
|
+
response?: Response;
|
|
151
|
+
}
|
|
152
|
+
export interface Middleware {
|
|
153
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
154
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
155
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
156
|
+
}
|
|
157
|
+
export interface ApiResponse<T> {
|
|
158
|
+
raw: Response;
|
|
159
|
+
value(): Promise<T>;
|
|
160
|
+
}
|
|
161
|
+
export interface ResponseTransformer<T> {
|
|
162
|
+
(json: any): T;
|
|
163
|
+
}
|
|
164
|
+
export declare class JSONApiResponse<T> {
|
|
165
|
+
raw: Response;
|
|
166
|
+
private transformer;
|
|
167
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
168
|
+
value(): Promise<T>;
|
|
169
|
+
}
|
|
170
|
+
export declare class VoidApiResponse {
|
|
171
|
+
raw: Response;
|
|
172
|
+
constructor(raw: Response);
|
|
173
|
+
value(): Promise<void>;
|
|
174
|
+
}
|
|
175
|
+
export declare class BlobApiResponse {
|
|
176
|
+
raw: Response;
|
|
177
|
+
constructor(raw: Response);
|
|
178
|
+
value(): Promise<Blob>;
|
|
179
|
+
}
|
|
180
|
+
export declare class TextApiResponse {
|
|
181
|
+
raw: Response;
|
|
182
|
+
constructor(raw: Response);
|
|
183
|
+
value(): Promise<string>;
|
|
184
|
+
}
|