@digital8/lighting-illusions-ts-sdk 0.0.2216 → 0.0.2217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -12
- package/README.md +3 -12
- package/dist/apis/AdminsApi.d.ts +12 -0
- package/dist/apis/AdminsApi.js +55 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +4 -4
- package/dist/models/AdminResource.d.ts +0 -6
- package/dist/models/AdminResource.js +0 -4
- package/dist/models/OrderFulfillmentResource.d.ts +3 -3
- package/dist/models/OrderFulfillmentResource.js +4 -6
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +3 -1
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/docs/AdminResource.md +0 -2
- package/docs/AdminsApi.md +58 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/AdminsApi.ts +37 -0
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +5 -5
- package/src/models/AdminResource.ts +0 -9
- package/src/models/OrderFulfillmentResource.ts +7 -8
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateResource.ts +4 -3
- package/src/models/index.ts +0 -5
- package/dist/apis/AuthApi.d.ts +0 -92
- package/dist/apis/AuthApi.js +0 -369
- package/dist/models/AdminLoginResponseResource.d.ts +0 -39
- package/dist/models/AdminLoginResponseResource.js +0 -56
- package/dist/models/AdminLoginResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/AdminLoginResponseResourceArrayResponse.js +0 -50
- package/dist/models/ForgotPasswordAdminRequest.d.ts +0 -32
- package/dist/models/ForgotPasswordAdminRequest.js +0 -51
- package/dist/models/LoginAdminRequest.d.ts +0 -38
- package/dist/models/LoginAdminRequest.js +0 -55
- package/dist/models/ResetPasswordAdminRequest.d.ts +0 -44
- package/dist/models/ResetPasswordAdminRequest.js +0 -59
- package/docs/AdminLoginResponseResource.md +0 -36
- package/docs/AdminLoginResponseResourceArrayResponse.md +0 -34
- package/docs/AuthApi.md +0 -322
- package/docs/ForgotPasswordAdminRequest.md +0 -34
- package/docs/LoginAdminRequest.md +0 -36
- package/docs/ResetPasswordAdminRequest.md +0 -38
- package/src/apis/AuthApi.ts +0 -258
- package/src/models/AdminLoginResponseResource.ts +0 -83
- package/src/models/AdminLoginResponseResourceArrayResponse.ts +0 -73
- package/src/models/ForgotPasswordAdminRequest.ts +0 -66
- package/src/models/LoginAdminRequest.ts +0 -75
- package/src/models/ResetPasswordAdminRequest.ts +0 -84
package/src/apis/AuthApi.ts
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import * as runtime from '../runtime';
|
|
16
|
-
import {
|
|
17
|
-
type AdminLoginResponseResource,
|
|
18
|
-
AdminLoginResponseResourceFromJSON,
|
|
19
|
-
AdminLoginResponseResourceToJSON,
|
|
20
|
-
} from '../models/AdminLoginResponseResource';
|
|
21
|
-
import {
|
|
22
|
-
type AdminResource,
|
|
23
|
-
AdminResourceFromJSON,
|
|
24
|
-
AdminResourceToJSON,
|
|
25
|
-
} from '../models/AdminResource';
|
|
26
|
-
import {
|
|
27
|
-
type ForgotPasswordAdminRequest,
|
|
28
|
-
ForgotPasswordAdminRequestFromJSON,
|
|
29
|
-
ForgotPasswordAdminRequestToJSON,
|
|
30
|
-
} from '../models/ForgotPasswordAdminRequest';
|
|
31
|
-
import {
|
|
32
|
-
type GenericResponse,
|
|
33
|
-
GenericResponseFromJSON,
|
|
34
|
-
GenericResponseToJSON,
|
|
35
|
-
} from '../models/GenericResponse';
|
|
36
|
-
import {
|
|
37
|
-
type LoginAdminRequest,
|
|
38
|
-
LoginAdminRequestFromJSON,
|
|
39
|
-
LoginAdminRequestToJSON,
|
|
40
|
-
} from '../models/LoginAdminRequest';
|
|
41
|
-
import {
|
|
42
|
-
type ResetPasswordAdminRequest,
|
|
43
|
-
ResetPasswordAdminRequestFromJSON,
|
|
44
|
-
ResetPasswordAdminRequestToJSON,
|
|
45
|
-
} from '../models/ResetPasswordAdminRequest';
|
|
46
|
-
|
|
47
|
-
export interface ForgotPasswordAdminAuthRequest {
|
|
48
|
-
forgotPasswordAdminRequest?: ForgotPasswordAdminRequest;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface LoginAdminAuthRequest {
|
|
52
|
-
loginAdminRequest?: LoginAdminRequest;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ResetPasswordAdminAuthRequest {
|
|
56
|
-
resetPasswordAdminRequest?: ResetPasswordAdminRequest;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
*/
|
|
62
|
-
export class AuthApi extends runtime.BaseAPI {
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Creates request options for forgotPasswordAdminAuth without sending the request
|
|
66
|
-
*/
|
|
67
|
-
async forgotPasswordAdminAuthRequestOpts(requestParameters: ForgotPasswordAdminAuthRequest): Promise<runtime.RequestOpts> {
|
|
68
|
-
const queryParameters: any = {};
|
|
69
|
-
|
|
70
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
-
|
|
72
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
let urlPath = `/admin-api/auth/admin/forgot-password`;
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
path: urlPath,
|
|
79
|
-
method: 'POST',
|
|
80
|
-
headers: headerParameters,
|
|
81
|
-
query: queryParameters,
|
|
82
|
-
body: ForgotPasswordAdminRequestToJSON(requestParameters['forgotPasswordAdminRequest']),
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Auto-generated: forgotPasswordAdminAuth
|
|
88
|
-
*/
|
|
89
|
-
async forgotPasswordAdminAuthRaw(requestParameters: ForgotPasswordAdminAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
90
|
-
const requestOptions = await this.forgotPasswordAdminAuthRequestOpts(requestParameters);
|
|
91
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
92
|
-
|
|
93
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Auto-generated: forgotPasswordAdminAuth
|
|
98
|
-
*/
|
|
99
|
-
async forgotPasswordAdminAuth(requestParameters: ForgotPasswordAdminAuthRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
100
|
-
const response = await this.forgotPasswordAdminAuthRaw(requestParameters, initOverrides);
|
|
101
|
-
return await response.value();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Creates request options for loginAdminAuth without sending the request
|
|
106
|
-
*/
|
|
107
|
-
async loginAdminAuthRequestOpts(requestParameters: LoginAdminAuthRequest): Promise<runtime.RequestOpts> {
|
|
108
|
-
const queryParameters: any = {};
|
|
109
|
-
|
|
110
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
-
|
|
112
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
let urlPath = `/admin-api/auth/admin/login`;
|
|
116
|
-
|
|
117
|
-
return {
|
|
118
|
-
path: urlPath,
|
|
119
|
-
method: 'POST',
|
|
120
|
-
headers: headerParameters,
|
|
121
|
-
query: queryParameters,
|
|
122
|
-
body: LoginAdminRequestToJSON(requestParameters['loginAdminRequest']),
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Auto-generated: loginAdminAuth
|
|
128
|
-
*/
|
|
129
|
-
async loginAdminAuthRaw(requestParameters: LoginAdminAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminLoginResponseResource>> {
|
|
130
|
-
const requestOptions = await this.loginAdminAuthRequestOpts(requestParameters);
|
|
131
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
132
|
-
|
|
133
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AdminLoginResponseResourceFromJSON(jsonValue));
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Auto-generated: loginAdminAuth
|
|
138
|
-
*/
|
|
139
|
-
async loginAdminAuth(requestParameters: LoginAdminAuthRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminLoginResponseResource> {
|
|
140
|
-
const response = await this.loginAdminAuthRaw(requestParameters, initOverrides);
|
|
141
|
-
return await response.value();
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Creates request options for logoutAdminAuth without sending the request
|
|
146
|
-
*/
|
|
147
|
-
async logoutAdminAuthRequestOpts(): Promise<runtime.RequestOpts> {
|
|
148
|
-
const queryParameters: any = {};
|
|
149
|
-
|
|
150
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
let urlPath = `/admin-api/auth/admin/logout`;
|
|
154
|
-
|
|
155
|
-
return {
|
|
156
|
-
path: urlPath,
|
|
157
|
-
method: 'POST',
|
|
158
|
-
headers: headerParameters,
|
|
159
|
-
query: queryParameters,
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Auto-generated: logoutAdminAuth
|
|
165
|
-
*/
|
|
166
|
-
async logoutAdminAuthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
167
|
-
const requestOptions = await this.logoutAdminAuthRequestOpts();
|
|
168
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
169
|
-
|
|
170
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Auto-generated: logoutAdminAuth
|
|
175
|
-
*/
|
|
176
|
-
async logoutAdminAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
177
|
-
const response = await this.logoutAdminAuthRaw(initOverrides);
|
|
178
|
-
return await response.value();
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Creates request options for meAdminAuth without sending the request
|
|
183
|
-
*/
|
|
184
|
-
async meAdminAuthRequestOpts(): Promise<runtime.RequestOpts> {
|
|
185
|
-
const queryParameters: any = {};
|
|
186
|
-
|
|
187
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
let urlPath = `/admin-api/auth/admin/me`;
|
|
191
|
-
|
|
192
|
-
return {
|
|
193
|
-
path: urlPath,
|
|
194
|
-
method: 'GET',
|
|
195
|
-
headers: headerParameters,
|
|
196
|
-
query: queryParameters,
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Auto-generated: meAdminAuth
|
|
202
|
-
*/
|
|
203
|
-
async meAdminAuthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminResource>> {
|
|
204
|
-
const requestOptions = await this.meAdminAuthRequestOpts();
|
|
205
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
206
|
-
|
|
207
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => AdminResourceFromJSON(jsonValue));
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Auto-generated: meAdminAuth
|
|
212
|
-
*/
|
|
213
|
-
async meAdminAuth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminResource> {
|
|
214
|
-
const response = await this.meAdminAuthRaw(initOverrides);
|
|
215
|
-
return await response.value();
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Creates request options for resetPasswordAdminAuth without sending the request
|
|
220
|
-
*/
|
|
221
|
-
async resetPasswordAdminAuthRequestOpts(requestParameters: ResetPasswordAdminAuthRequest): Promise<runtime.RequestOpts> {
|
|
222
|
-
const queryParameters: any = {};
|
|
223
|
-
|
|
224
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
225
|
-
|
|
226
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
let urlPath = `/admin-api/auth/admin/reset-password`;
|
|
230
|
-
|
|
231
|
-
return {
|
|
232
|
-
path: urlPath,
|
|
233
|
-
method: 'POST',
|
|
234
|
-
headers: headerParameters,
|
|
235
|
-
query: queryParameters,
|
|
236
|
-
body: ResetPasswordAdminRequestToJSON(requestParameters['resetPasswordAdminRequest']),
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* Auto-generated: resetPasswordAdminAuth
|
|
242
|
-
*/
|
|
243
|
-
async resetPasswordAdminAuthRaw(requestParameters: ResetPasswordAdminAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
244
|
-
const requestOptions = await this.resetPasswordAdminAuthRequestOpts(requestParameters);
|
|
245
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
246
|
-
|
|
247
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Auto-generated: resetPasswordAdminAuth
|
|
252
|
-
*/
|
|
253
|
-
async resetPasswordAdminAuth(requestParameters: ResetPasswordAdminAuthRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
254
|
-
const response = await this.resetPasswordAdminAuthRaw(requestParameters, initOverrides);
|
|
255
|
-
return await response.value();
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AdminResource } from './AdminResource';
|
|
17
|
-
import {
|
|
18
|
-
AdminResourceFromJSON,
|
|
19
|
-
AdminResourceFromJSONTyped,
|
|
20
|
-
AdminResourceToJSON,
|
|
21
|
-
AdminResourceToJSONTyped,
|
|
22
|
-
} from './AdminResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface AdminLoginResponseResource
|
|
28
|
-
*/
|
|
29
|
-
export interface AdminLoginResponseResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof AdminLoginResponseResource
|
|
34
|
-
*/
|
|
35
|
-
token: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {AdminResource}
|
|
39
|
-
* @memberof AdminLoginResponseResource
|
|
40
|
-
*/
|
|
41
|
-
admin: AdminResource | null;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Check if a given object implements the AdminLoginResponseResource interface.
|
|
46
|
-
*/
|
|
47
|
-
export function instanceOfAdminLoginResponseResource(value: object): value is AdminLoginResponseResource {
|
|
48
|
-
if (!('token' in value) || value['token'] === undefined) return false;
|
|
49
|
-
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
50
|
-
return true;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function AdminLoginResponseResourceFromJSON(json: any): AdminLoginResponseResource {
|
|
54
|
-
return AdminLoginResponseResourceFromJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function AdminLoginResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLoginResponseResource {
|
|
58
|
-
if (json == null) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'token': json['token'],
|
|
64
|
-
'admin': AdminResourceFromJSON(json['admin']),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function AdminLoginResponseResourceToJSON(json: any): AdminLoginResponseResource {
|
|
69
|
-
return AdminLoginResponseResourceToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function AdminLoginResponseResourceToJSONTyped(value?: AdminLoginResponseResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'token': value['token'],
|
|
80
|
-
'admin': AdminResourceToJSON(value['admin']),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { AdminLoginResponseResource } from './AdminLoginResponseResource';
|
|
17
|
-
import {
|
|
18
|
-
AdminLoginResponseResourceFromJSON,
|
|
19
|
-
AdminLoginResponseResourceFromJSONTyped,
|
|
20
|
-
AdminLoginResponseResourceToJSON,
|
|
21
|
-
AdminLoginResponseResourceToJSONTyped,
|
|
22
|
-
} from './AdminLoginResponseResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface AdminLoginResponseResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface AdminLoginResponseResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<AdminLoginResponseResource>}
|
|
33
|
-
* @memberof AdminLoginResponseResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<AdminLoginResponseResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the AdminLoginResponseResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfAdminLoginResponseResourceArrayResponse(value: object): value is AdminLoginResponseResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function AdminLoginResponseResourceArrayResponseFromJSON(json: any): AdminLoginResponseResourceArrayResponse {
|
|
46
|
-
return AdminLoginResponseResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function AdminLoginResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLoginResponseResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AdminLoginResponseResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function AdminLoginResponseResourceArrayResponseToJSON(json: any): AdminLoginResponseResourceArrayResponse {
|
|
60
|
-
return AdminLoginResponseResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function AdminLoginResponseResourceArrayResponseToJSONTyped(value?: AdminLoginResponseResourceArrayResponse | 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(AdminLoginResponseResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ForgotPasswordAdminRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ForgotPasswordAdminRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ForgotPasswordAdminRequest
|
|
26
|
-
*/
|
|
27
|
-
email: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfForgotPasswordAdminRequest(value: object): value is ForgotPasswordAdminRequest {
|
|
34
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function ForgotPasswordAdminRequestFromJSON(json: any): ForgotPasswordAdminRequest {
|
|
39
|
-
return ForgotPasswordAdminRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function ForgotPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordAdminRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'email': json['email'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ForgotPasswordAdminRequestToJSON(json: any): ForgotPasswordAdminRequest {
|
|
53
|
-
return ForgotPasswordAdminRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ForgotPasswordAdminRequestToJSONTyped(value?: ForgotPasswordAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'email': value['email'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface LoginAdminRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface LoginAdminRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof LoginAdminRequest
|
|
26
|
-
*/
|
|
27
|
-
email: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof LoginAdminRequest
|
|
32
|
-
*/
|
|
33
|
-
password: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the LoginAdminRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfLoginAdminRequest(value: object): value is LoginAdminRequest {
|
|
40
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
41
|
-
if (!('password' in value) || value['password'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function LoginAdminRequestFromJSON(json: any): LoginAdminRequest {
|
|
46
|
-
return LoginAdminRequestFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function LoginAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAdminRequest {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'email': json['email'],
|
|
56
|
-
'password': json['password'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function LoginAdminRequestToJSON(json: any): LoginAdminRequest {
|
|
61
|
-
return LoginAdminRequestToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function LoginAdminRequestToJSONTyped(value?: LoginAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'email': value['email'],
|
|
72
|
-
'password': value['password'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ResetPasswordAdminRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ResetPasswordAdminRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ResetPasswordAdminRequest
|
|
26
|
-
*/
|
|
27
|
-
email: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ResetPasswordAdminRequest
|
|
32
|
-
*/
|
|
33
|
-
token: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ResetPasswordAdminRequest
|
|
38
|
-
*/
|
|
39
|
-
password: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the ResetPasswordAdminRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfResetPasswordAdminRequest(value: object): value is ResetPasswordAdminRequest {
|
|
46
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
47
|
-
if (!('token' in value) || value['token'] === undefined) return false;
|
|
48
|
-
if (!('password' in value) || value['password'] === undefined) return false;
|
|
49
|
-
return true;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function ResetPasswordAdminRequestFromJSON(json: any): ResetPasswordAdminRequest {
|
|
53
|
-
return ResetPasswordAdminRequestFromJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function ResetPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetPasswordAdminRequest {
|
|
57
|
-
if (json == null) {
|
|
58
|
-
return json;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'email': json['email'],
|
|
63
|
-
'token': json['token'],
|
|
64
|
-
'password': json['password'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function ResetPasswordAdminRequestToJSON(json: any): ResetPasswordAdminRequest {
|
|
69
|
-
return ResetPasswordAdminRequestToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function ResetPasswordAdminRequestToJSONTyped(value?: ResetPasswordAdminRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'email': value['email'],
|
|
80
|
-
'token': value['token'],
|
|
81
|
-
'password': value['password'],
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
|