@digital8/lighting-illusions-ts-sdk 0.0.2215 → 0.0.2216
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 +12 -0
- package/README.md +12 -3
- package/dist/apis/AdminsApi.d.ts +0 -12
- package/dist/apis/AdminsApi.js +0 -55
- package/dist/apis/AuthApi.d.ts +92 -0
- package/dist/apis/AuthApi.js +369 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminLoginResponseResource.d.ts +39 -0
- package/dist/models/AdminLoginResponseResource.js +56 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminLoginResponseResourceArrayResponse.js +50 -0
- package/dist/models/AdminResource.d.ts +6 -0
- package/dist/models/AdminResource.js +4 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/ForgotPasswordAdminRequest.d.ts +32 -0
- package/dist/models/ForgotPasswordAdminRequest.js +51 -0
- package/dist/models/LoginAdminRequest.d.ts +38 -0
- package/dist/models/LoginAdminRequest.js +55 -0
- package/dist/models/OrderFulfillmentResource.d.ts +2 -2
- package/dist/models/OrderFulfillmentResource.js +4 -4
- package/dist/models/ResetPasswordAdminRequest.d.ts +44 -0
- package/dist/models/ResetPasswordAdminRequest.js +59 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/docs/AdminLoginResponseResource.md +36 -0
- package/docs/AdminLoginResponseResourceArrayResponse.md +34 -0
- package/docs/AdminResource.md +2 -0
- package/docs/AdminsApi.md +0 -58
- package/docs/AuthApi.md +322 -0
- package/docs/ForgotPasswordAdminRequest.md +34 -0
- package/docs/LoginAdminRequest.md +36 -0
- package/docs/ResetPasswordAdminRequest.md +38 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/AdminsApi.ts +0 -37
- package/src/apis/AuthApi.ts +258 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminLoginResponseResource.ts +83 -0
- package/src/models/AdminLoginResponseResourceArrayResponse.ts +73 -0
- package/src/models/AdminResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/ForgotPasswordAdminRequest.ts +66 -0
- package/src/models/LoginAdminRequest.ts +75 -0
- package/src/models/OrderFulfillmentResource.ts +5 -5
- package/src/models/ResetPasswordAdminRequest.ts +84 -0
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/index.ts +5 -0
|
@@ -0,0 +1,258 @@
|
|
|
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
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -73,6 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
+
if (!('company' in value) || value['company'] === undefined) return false;
|
|
76
77
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
77
78
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
78
79
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
@@ -92,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
95
|
|
|
95
|
-
'company': json['company']
|
|
96
|
+
'company': json['company'],
|
|
96
97
|
'line1': json['line1'],
|
|
97
98
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
98
99
|
'postcode': json['postcode'],
|
|
@@ -60,7 +60,7 @@ export interface AddressResource {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof AddressResource
|
|
62
62
|
*/
|
|
63
|
-
line2
|
|
63
|
+
line2?: string | null;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
@@ -100,7 +100,6 @@ export function instanceOfAddressResource(value: object): value is AddressResour
|
|
|
100
100
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
101
|
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
102
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
104
103
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
105
104
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
106
105
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -125,7 +124,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
125
124
|
'addresseeName': json['addresseeName'],
|
|
126
125
|
'company': json['company'],
|
|
127
126
|
'line1': json['line1'],
|
|
128
|
-
'line2': json['line2'],
|
|
127
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
129
128
|
'postcode': json['postcode'],
|
|
130
129
|
'suburb': json['suburb'],
|
|
131
130
|
'country': json['country'],
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { 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
|
+
|
|
@@ -52,6 +52,12 @@ export interface AdminResource {
|
|
|
52
52
|
* @memberof AdminResource
|
|
53
53
|
*/
|
|
54
54
|
roles: Array<RoleLiteResource> | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @memberof AdminResource
|
|
59
|
+
*/
|
|
60
|
+
permissions: object;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {Date}
|
|
@@ -73,6 +79,7 @@ export function instanceOfAdminResource(value: object): value is AdminResource {
|
|
|
73
79
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
74
80
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
75
81
|
if (!('roles' in value) || value['roles'] === undefined) return false;
|
|
82
|
+
if (!('permissions' in value) || value['permissions'] === undefined) return false;
|
|
76
83
|
return true;
|
|
77
84
|
}
|
|
78
85
|
|
|
@@ -89,6 +96,7 @@ export function AdminResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
89
96
|
'id': json['id'],
|
|
90
97
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
91
98
|
'roles': (json['roles'] == null ? null : (json['roles'] as Array<any>).map(RoleLiteResourceFromJSON)),
|
|
99
|
+
'permissions': json['permissions'],
|
|
92
100
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
93
101
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
94
102
|
};
|
|
@@ -108,6 +116,7 @@ export function AdminResourceToJSONTyped(value?: AdminResource | null, ignoreDis
|
|
|
108
116
|
'id': value['id'],
|
|
109
117
|
'user': UserLiteResourceToJSON(value['user']),
|
|
110
118
|
'roles': (value['roles'] == null ? null : (value['roles'] as Array<any>).map(RoleLiteResourceToJSON)),
|
|
119
|
+
'permissions': value['permissions'],
|
|
111
120
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
112
121
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
113
122
|
};
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface 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
|
+
|