@digital8/laravel-auth-template-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 +22 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +46 -0
- package/dist/apis/DefaultApi.d.ts +104 -0
- package/dist/apis/DefaultApi.js +441 -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/GenericResponse.d.ts +32 -0
- package/dist/models/GenericResponse.js +49 -0
- package/dist/models/IndexUserRequest.d.ts +68 -0
- package/dist/models/IndexUserRequest.js +72 -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/StoreUserRequest.d.ts +50 -0
- package/dist/models/StoreUserRequest.js +63 -0
- package/dist/models/UpdateUserRequest.d.ts +92 -0
- package/dist/models/UpdateUserRequest.js +79 -0
- package/dist/models/UserAuthTokenResource.d.ts +39 -0
- package/dist/models/UserAuthTokenResource.js +56 -0
- package/dist/models/UserResource.d.ts +74 -0
- package/dist/models/UserResource.js +76 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +29 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +564 -0
- package/package.json +19 -0
- package/src/apis/DefaultApi.ts +352 -0
- package/src/apis/index.ts +3 -0
- package/src/index.ts +5 -0
- package/src/models/GenericResponse.ts +65 -0
- package/src/models/IndexUserRequest.ts +111 -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/StoreUserRequest.ts +93 -0
- package/src/models/UpdateUserRequest.ts +145 -0
- package/src/models/UserAuthTokenResource.ts +83 -0
- package/src/models/UserResource.ts +127 -0
- package/src/models/index.ts +13 -0
- package/src/runtime.ts +432 -0
- package/tsconfig.json +20 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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("./runtime"), exports);
|
|
20
|
+
__exportStar(require("./apis/index"), exports);
|
|
21
|
+
__exportStar(require("./models/index"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GenericResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GenericResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GenericResponse
|
|
22
|
+
*/
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GenericResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGenericResponse(value: object): value is GenericResponse;
|
|
29
|
+
export declare function GenericResponseFromJSON(json: any): GenericResponse;
|
|
30
|
+
export declare function GenericResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericResponse;
|
|
31
|
+
export declare function GenericResponseToJSON(json: any): GenericResponse;
|
|
32
|
+
export declare function GenericResponseToJSONTyped(value?: GenericResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfGenericResponse = instanceOfGenericResponse;
|
|
17
|
+
exports.GenericResponseFromJSON = GenericResponseFromJSON;
|
|
18
|
+
exports.GenericResponseFromJSONTyped = GenericResponseFromJSONTyped;
|
|
19
|
+
exports.GenericResponseToJSON = GenericResponseToJSON;
|
|
20
|
+
exports.GenericResponseToJSONTyped = GenericResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GenericResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGenericResponse(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function GenericResponseFromJSON(json) {
|
|
28
|
+
return GenericResponseFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function GenericResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function GenericResponseToJSON(json) {
|
|
39
|
+
return GenericResponseToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function GenericResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'message': value['message'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -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 IndexUserRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IndexUserRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IndexUserRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IndexUserRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IndexUserRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IndexUserRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IndexUserRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IndexUserRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const IndexUserRequestSortByEnum: {
|
|
47
|
+
readonly FirstName: "first_name";
|
|
48
|
+
readonly LastName: "last_name";
|
|
49
|
+
readonly Email: "email";
|
|
50
|
+
readonly Mobile: "mobile";
|
|
51
|
+
};
|
|
52
|
+
export type IndexUserRequestSortByEnum = typeof IndexUserRequestSortByEnum[keyof typeof IndexUserRequestSortByEnum];
|
|
53
|
+
/**
|
|
54
|
+
* @export
|
|
55
|
+
*/
|
|
56
|
+
export declare const IndexUserRequestSortDirectionEnum: {
|
|
57
|
+
readonly Asc: "asc";
|
|
58
|
+
readonly Desc: "desc";
|
|
59
|
+
};
|
|
60
|
+
export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the IndexUserRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfIndexUserRequest(value: object): value is IndexUserRequest;
|
|
65
|
+
export declare function IndexUserRequestFromJSON(json: any): IndexUserRequest;
|
|
66
|
+
export declare function IndexUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexUserRequest;
|
|
67
|
+
export declare function IndexUserRequestToJSON(json: any): IndexUserRequest;
|
|
68
|
+
export declare function IndexUserRequestToJSONTyped(value?: IndexUserRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,72 @@
|
|
|
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.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIndexUserRequest = instanceOfIndexUserRequest;
|
|
18
|
+
exports.IndexUserRequestFromJSON = IndexUserRequestFromJSON;
|
|
19
|
+
exports.IndexUserRequestFromJSONTyped = IndexUserRequestFromJSONTyped;
|
|
20
|
+
exports.IndexUserRequestToJSON = IndexUserRequestToJSON;
|
|
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
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IndexUserRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfIndexUserRequest(value) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function IndexUserRequestFromJSON(json) {
|
|
45
|
+
return IndexUserRequestFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function IndexUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
53
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
54
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
55
|
+
'perPage': json['perPage'] == null ? undefined : json['perPage'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function IndexUserRequestToJSON(json) {
|
|
59
|
+
return IndexUserRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function IndexUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'search': value['search'],
|
|
68
|
+
'sortBy': value['sortBy'],
|
|
69
|
+
'sortDirection': value['sortDirection'],
|
|
70
|
+
'perPage': value['perPage'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
@@ -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 LoginAuthRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginAuthRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof LoginAuthRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginAuthRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LoginAuthRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLoginAuthRequest(value: object): value is LoginAuthRequest;
|
|
35
|
+
export declare function LoginAuthRequestFromJSON(json: any): LoginAuthRequest;
|
|
36
|
+
export declare function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAuthRequest;
|
|
37
|
+
export declare function LoginAuthRequestToJSON(json: any): LoginAuthRequest;
|
|
38
|
+
export declare function LoginAuthRequestToJSONTyped(value?: LoginAuthRequest | 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.instanceOfLoginAuthRequest = instanceOfLoginAuthRequest;
|
|
17
|
+
exports.LoginAuthRequestFromJSON = LoginAuthRequestFromJSON;
|
|
18
|
+
exports.LoginAuthRequestFromJSONTyped = LoginAuthRequestFromJSONTyped;
|
|
19
|
+
exports.LoginAuthRequestToJSON = LoginAuthRequestToJSON;
|
|
20
|
+
exports.LoginAuthRequestToJSONTyped = LoginAuthRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginAuthRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginAuthRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function LoginAuthRequestFromJSON(json) {
|
|
32
|
+
return LoginAuthRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function LoginAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email': json['email'],
|
|
40
|
+
'password': json['password'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function LoginAuthRequestToJSON(json) {
|
|
44
|
+
return LoginAuthRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function LoginAuthRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'email': value['email'],
|
|
53
|
+
'password': value['password'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { UserResource } from './UserResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedUserResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedUserResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<UserResource>}
|
|
23
|
+
* @memberof PaginatedUserResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<UserResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedUserResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedUserResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedUserResourceResponse(value: object): value is PaginatedUserResourceResponse;
|
|
37
|
+
export declare function PaginatedUserResourceResponseFromJSON(json: any): PaginatedUserResourceResponse;
|
|
38
|
+
export declare function PaginatedUserResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserResourceResponse;
|
|
39
|
+
export declare function PaginatedUserResourceResponseToJSON(json: any): PaginatedUserResourceResponse;
|
|
40
|
+
export declare function PaginatedUserResourceResponseToJSONTyped(value?: PaginatedUserResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfPaginatedUserResourceResponse = instanceOfPaginatedUserResourceResponse;
|
|
17
|
+
exports.PaginatedUserResourceResponseFromJSON = PaginatedUserResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedUserResourceResponseFromJSONTyped = PaginatedUserResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedUserResourceResponseToJSON = PaginatedUserResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedUserResourceResponseToJSONTyped = PaginatedUserResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var UserResource_1 = require("./UserResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedUserResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedUserResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedUserResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedUserResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedUserResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(UserResource_1.UserResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedUserResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedUserResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedUserResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(UserResource_1.UserResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 PagingMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface PagingMetadata {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PagingMetadata
|
|
22
|
+
*/
|
|
23
|
+
currentPage: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PagingMetadata
|
|
28
|
+
*/
|
|
29
|
+
from: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof PagingMetadata
|
|
34
|
+
*/
|
|
35
|
+
lastPage: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PagingMetadata
|
|
40
|
+
*/
|
|
41
|
+
path: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PagingMetadata
|
|
46
|
+
*/
|
|
47
|
+
perPage: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PagingMetadata
|
|
52
|
+
*/
|
|
53
|
+
to: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PagingMetadata
|
|
58
|
+
*/
|
|
59
|
+
total: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
|
|
65
|
+
export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
|
|
66
|
+
export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
|
|
67
|
+
export declare function PagingMetadataToJSON(json: any): PagingMetadata;
|
|
68
|
+
export declare function PagingMetadataToJSONTyped(value?: PagingMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfPagingMetadata = instanceOfPagingMetadata;
|
|
17
|
+
exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
|
|
18
|
+
exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
|
|
19
|
+
exports.PagingMetadataToJSON = PagingMetadataToJSON;
|
|
20
|
+
exports.PagingMetadataToJSONTyped = PagingMetadataToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PagingMetadata interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPagingMetadata(value) {
|
|
25
|
+
if (!('currentPage' in value) || value['currentPage'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('from' in value) || value['from'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('lastPage' in value) || value['lastPage'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('perPage' in value) || value['perPage'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('to' in value) || value['to'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PagingMetadataFromJSON(json) {
|
|
42
|
+
return PagingMetadataFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'currentPage': json['current_page'],
|
|
50
|
+
'from': json['from'],
|
|
51
|
+
'lastPage': json['last_page'],
|
|
52
|
+
'path': json['path'],
|
|
53
|
+
'perPage': json['per_page'],
|
|
54
|
+
'to': json['to'],
|
|
55
|
+
'total': json['total'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PagingMetadataToJSON(json) {
|
|
59
|
+
return PagingMetadataToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PagingMetadataToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'current_page': value['currentPage'],
|
|
68
|
+
'from': value['from'],
|
|
69
|
+
'last_page': value['lastPage'],
|
|
70
|
+
'path': value['path'],
|
|
71
|
+
'per_page': value['perPage'],
|
|
72
|
+
'to': value['to'],
|
|
73
|
+
'total': value['total'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 ResetPasswordAuthRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface ResetPasswordAuthRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ResetPasswordAuthRequest
|
|
22
|
+
*/
|
|
23
|
+
email: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ResetPasswordAuthRequest
|
|
28
|
+
*/
|
|
29
|
+
password: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ResetPasswordAuthRequest
|
|
34
|
+
*/
|
|
35
|
+
token: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ResetPasswordAuthRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfResetPasswordAuthRequest(value: object): value is ResetPasswordAuthRequest;
|
|
41
|
+
export declare function ResetPasswordAuthRequestFromJSON(json: any): ResetPasswordAuthRequest;
|
|
42
|
+
export declare function ResetPasswordAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetPasswordAuthRequest;
|
|
43
|
+
export declare function ResetPasswordAuthRequestToJSON(json: any): ResetPasswordAuthRequest;
|
|
44
|
+
export declare function ResetPasswordAuthRequestToJSONTyped(value?: ResetPasswordAuthRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfResetPasswordAuthRequest = instanceOfResetPasswordAuthRequest;
|
|
17
|
+
exports.ResetPasswordAuthRequestFromJSON = ResetPasswordAuthRequestFromJSON;
|
|
18
|
+
exports.ResetPasswordAuthRequestFromJSONTyped = ResetPasswordAuthRequestFromJSONTyped;
|
|
19
|
+
exports.ResetPasswordAuthRequestToJSON = ResetPasswordAuthRequestToJSON;
|
|
20
|
+
exports.ResetPasswordAuthRequestToJSONTyped = ResetPasswordAuthRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ResetPasswordAuthRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfResetPasswordAuthRequest(value) {
|
|
25
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function ResetPasswordAuthRequestFromJSON(json) {
|
|
34
|
+
return ResetPasswordAuthRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function ResetPasswordAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'email': json['email'],
|
|
42
|
+
'password': json['password'],
|
|
43
|
+
'token': json['token'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function ResetPasswordAuthRequestToJSON(json) {
|
|
47
|
+
return ResetPasswordAuthRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function ResetPasswordAuthRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'email': value['email'],
|
|
56
|
+
'password': value['password'],
|
|
57
|
+
'token': value['token'],
|
|
58
|
+
};
|
|
59
|
+
}
|