@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/dist/apis/AuthApi.js
DELETED
|
@@ -1,369 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.AuthApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var AdminLoginResponseResource_1 = require("../models/AdminLoginResponseResource");
|
|
70
|
-
var AdminResource_1 = require("../models/AdminResource");
|
|
71
|
-
var ForgotPasswordAdminRequest_1 = require("../models/ForgotPasswordAdminRequest");
|
|
72
|
-
var GenericResponse_1 = require("../models/GenericResponse");
|
|
73
|
-
var LoginAdminRequest_1 = require("../models/LoginAdminRequest");
|
|
74
|
-
var ResetPasswordAdminRequest_1 = require("../models/ResetPasswordAdminRequest");
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
var AuthApi = /** @class */ (function (_super) {
|
|
79
|
-
__extends(AuthApi, _super);
|
|
80
|
-
function AuthApi() {
|
|
81
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* Creates request options for forgotPasswordAdminAuth without sending the request
|
|
85
|
-
*/
|
|
86
|
-
AuthApi.prototype.forgotPasswordAdminAuthRequestOpts = function (requestParameters) {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
-
var queryParameters, headerParameters, urlPath;
|
|
89
|
-
return __generator(this, function (_a) {
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/auth/admin/forgot-password";
|
|
94
|
-
return [2 /*return*/, {
|
|
95
|
-
path: urlPath,
|
|
96
|
-
method: 'POST',
|
|
97
|
-
headers: headerParameters,
|
|
98
|
-
query: queryParameters,
|
|
99
|
-
body: (0, ForgotPasswordAdminRequest_1.ForgotPasswordAdminRequestToJSON)(requestParameters['forgotPasswordAdminRequest']),
|
|
100
|
-
}];
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* Auto-generated: forgotPasswordAdminAuth
|
|
106
|
-
*/
|
|
107
|
-
AuthApi.prototype.forgotPasswordAdminAuthRaw = function (requestParameters, initOverrides) {
|
|
108
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
-
var requestOptions, response;
|
|
110
|
-
return __generator(this, function (_a) {
|
|
111
|
-
switch (_a.label) {
|
|
112
|
-
case 0: return [4 /*yield*/, this.forgotPasswordAdminAuthRequestOpts(requestParameters)];
|
|
113
|
-
case 1:
|
|
114
|
-
requestOptions = _a.sent();
|
|
115
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
116
|
-
case 2:
|
|
117
|
-
response = _a.sent();
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GenericResponse_1.GenericResponseFromJSON)(jsonValue); })];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Auto-generated: forgotPasswordAdminAuth
|
|
125
|
-
*/
|
|
126
|
-
AuthApi.prototype.forgotPasswordAdminAuth = function () {
|
|
127
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
128
|
-
var response;
|
|
129
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
130
|
-
return __generator(this, function (_a) {
|
|
131
|
-
switch (_a.label) {
|
|
132
|
-
case 0: return [4 /*yield*/, this.forgotPasswordAdminAuthRaw(requestParameters, initOverrides)];
|
|
133
|
-
case 1:
|
|
134
|
-
response = _a.sent();
|
|
135
|
-
return [4 /*yield*/, response.value()];
|
|
136
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Creates request options for loginAdminAuth without sending the request
|
|
143
|
-
*/
|
|
144
|
-
AuthApi.prototype.loginAdminAuthRequestOpts = function (requestParameters) {
|
|
145
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
-
var queryParameters, headerParameters, urlPath;
|
|
147
|
-
return __generator(this, function (_a) {
|
|
148
|
-
queryParameters = {};
|
|
149
|
-
headerParameters = {};
|
|
150
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
151
|
-
urlPath = "/admin-api/auth/admin/login";
|
|
152
|
-
return [2 /*return*/, {
|
|
153
|
-
path: urlPath,
|
|
154
|
-
method: 'POST',
|
|
155
|
-
headers: headerParameters,
|
|
156
|
-
query: queryParameters,
|
|
157
|
-
body: (0, LoginAdminRequest_1.LoginAdminRequestToJSON)(requestParameters['loginAdminRequest']),
|
|
158
|
-
}];
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
/**
|
|
163
|
-
* Auto-generated: loginAdminAuth
|
|
164
|
-
*/
|
|
165
|
-
AuthApi.prototype.loginAdminAuthRaw = function (requestParameters, initOverrides) {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
167
|
-
var requestOptions, response;
|
|
168
|
-
return __generator(this, function (_a) {
|
|
169
|
-
switch (_a.label) {
|
|
170
|
-
case 0: return [4 /*yield*/, this.loginAdminAuthRequestOpts(requestParameters)];
|
|
171
|
-
case 1:
|
|
172
|
-
requestOptions = _a.sent();
|
|
173
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
174
|
-
case 2:
|
|
175
|
-
response = _a.sent();
|
|
176
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AdminLoginResponseResource_1.AdminLoginResponseResourceFromJSON)(jsonValue); })];
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Auto-generated: loginAdminAuth
|
|
183
|
-
*/
|
|
184
|
-
AuthApi.prototype.loginAdminAuth = function () {
|
|
185
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
186
|
-
var response;
|
|
187
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
188
|
-
return __generator(this, function (_a) {
|
|
189
|
-
switch (_a.label) {
|
|
190
|
-
case 0: return [4 /*yield*/, this.loginAdminAuthRaw(requestParameters, initOverrides)];
|
|
191
|
-
case 1:
|
|
192
|
-
response = _a.sent();
|
|
193
|
-
return [4 /*yield*/, response.value()];
|
|
194
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Creates request options for logoutAdminAuth without sending the request
|
|
201
|
-
*/
|
|
202
|
-
AuthApi.prototype.logoutAdminAuthRequestOpts = function () {
|
|
203
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
204
|
-
var queryParameters, headerParameters, urlPath;
|
|
205
|
-
return __generator(this, function (_a) {
|
|
206
|
-
queryParameters = {};
|
|
207
|
-
headerParameters = {};
|
|
208
|
-
urlPath = "/admin-api/auth/admin/logout";
|
|
209
|
-
return [2 /*return*/, {
|
|
210
|
-
path: urlPath,
|
|
211
|
-
method: 'POST',
|
|
212
|
-
headers: headerParameters,
|
|
213
|
-
query: queryParameters,
|
|
214
|
-
}];
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
};
|
|
218
|
-
/**
|
|
219
|
-
* Auto-generated: logoutAdminAuth
|
|
220
|
-
*/
|
|
221
|
-
AuthApi.prototype.logoutAdminAuthRaw = function (initOverrides) {
|
|
222
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
223
|
-
var requestOptions, response;
|
|
224
|
-
return __generator(this, function (_a) {
|
|
225
|
-
switch (_a.label) {
|
|
226
|
-
case 0: return [4 /*yield*/, this.logoutAdminAuthRequestOpts()];
|
|
227
|
-
case 1:
|
|
228
|
-
requestOptions = _a.sent();
|
|
229
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
230
|
-
case 2:
|
|
231
|
-
response = _a.sent();
|
|
232
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GenericResponse_1.GenericResponseFromJSON)(jsonValue); })];
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
});
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* Auto-generated: logoutAdminAuth
|
|
239
|
-
*/
|
|
240
|
-
AuthApi.prototype.logoutAdminAuth = function (initOverrides) {
|
|
241
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
242
|
-
var response;
|
|
243
|
-
return __generator(this, function (_a) {
|
|
244
|
-
switch (_a.label) {
|
|
245
|
-
case 0: return [4 /*yield*/, this.logoutAdminAuthRaw(initOverrides)];
|
|
246
|
-
case 1:
|
|
247
|
-
response = _a.sent();
|
|
248
|
-
return [4 /*yield*/, response.value()];
|
|
249
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
});
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* Creates request options for meAdminAuth without sending the request
|
|
256
|
-
*/
|
|
257
|
-
AuthApi.prototype.meAdminAuthRequestOpts = function () {
|
|
258
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
259
|
-
var queryParameters, headerParameters, urlPath;
|
|
260
|
-
return __generator(this, function (_a) {
|
|
261
|
-
queryParameters = {};
|
|
262
|
-
headerParameters = {};
|
|
263
|
-
urlPath = "/admin-api/auth/admin/me";
|
|
264
|
-
return [2 /*return*/, {
|
|
265
|
-
path: urlPath,
|
|
266
|
-
method: 'GET',
|
|
267
|
-
headers: headerParameters,
|
|
268
|
-
query: queryParameters,
|
|
269
|
-
}];
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
};
|
|
273
|
-
/**
|
|
274
|
-
* Auto-generated: meAdminAuth
|
|
275
|
-
*/
|
|
276
|
-
AuthApi.prototype.meAdminAuthRaw = function (initOverrides) {
|
|
277
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
278
|
-
var requestOptions, response;
|
|
279
|
-
return __generator(this, function (_a) {
|
|
280
|
-
switch (_a.label) {
|
|
281
|
-
case 0: return [4 /*yield*/, this.meAdminAuthRequestOpts()];
|
|
282
|
-
case 1:
|
|
283
|
-
requestOptions = _a.sent();
|
|
284
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
285
|
-
case 2:
|
|
286
|
-
response = _a.sent();
|
|
287
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, AdminResource_1.AdminResourceFromJSON)(jsonValue); })];
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
});
|
|
291
|
-
};
|
|
292
|
-
/**
|
|
293
|
-
* Auto-generated: meAdminAuth
|
|
294
|
-
*/
|
|
295
|
-
AuthApi.prototype.meAdminAuth = function (initOverrides) {
|
|
296
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
297
|
-
var response;
|
|
298
|
-
return __generator(this, function (_a) {
|
|
299
|
-
switch (_a.label) {
|
|
300
|
-
case 0: return [4 /*yield*/, this.meAdminAuthRaw(initOverrides)];
|
|
301
|
-
case 1:
|
|
302
|
-
response = _a.sent();
|
|
303
|
-
return [4 /*yield*/, response.value()];
|
|
304
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
305
|
-
}
|
|
306
|
-
});
|
|
307
|
-
});
|
|
308
|
-
};
|
|
309
|
-
/**
|
|
310
|
-
* Creates request options for resetPasswordAdminAuth without sending the request
|
|
311
|
-
*/
|
|
312
|
-
AuthApi.prototype.resetPasswordAdminAuthRequestOpts = function (requestParameters) {
|
|
313
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
314
|
-
var queryParameters, headerParameters, urlPath;
|
|
315
|
-
return __generator(this, function (_a) {
|
|
316
|
-
queryParameters = {};
|
|
317
|
-
headerParameters = {};
|
|
318
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
319
|
-
urlPath = "/admin-api/auth/admin/reset-password";
|
|
320
|
-
return [2 /*return*/, {
|
|
321
|
-
path: urlPath,
|
|
322
|
-
method: 'POST',
|
|
323
|
-
headers: headerParameters,
|
|
324
|
-
query: queryParameters,
|
|
325
|
-
body: (0, ResetPasswordAdminRequest_1.ResetPasswordAdminRequestToJSON)(requestParameters['resetPasswordAdminRequest']),
|
|
326
|
-
}];
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* Auto-generated: resetPasswordAdminAuth
|
|
332
|
-
*/
|
|
333
|
-
AuthApi.prototype.resetPasswordAdminAuthRaw = function (requestParameters, initOverrides) {
|
|
334
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
335
|
-
var requestOptions, response;
|
|
336
|
-
return __generator(this, function (_a) {
|
|
337
|
-
switch (_a.label) {
|
|
338
|
-
case 0: return [4 /*yield*/, this.resetPasswordAdminAuthRequestOpts(requestParameters)];
|
|
339
|
-
case 1:
|
|
340
|
-
requestOptions = _a.sent();
|
|
341
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
342
|
-
case 2:
|
|
343
|
-
response = _a.sent();
|
|
344
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GenericResponse_1.GenericResponseFromJSON)(jsonValue); })];
|
|
345
|
-
}
|
|
346
|
-
});
|
|
347
|
-
});
|
|
348
|
-
};
|
|
349
|
-
/**
|
|
350
|
-
* Auto-generated: resetPasswordAdminAuth
|
|
351
|
-
*/
|
|
352
|
-
AuthApi.prototype.resetPasswordAdminAuth = function () {
|
|
353
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
354
|
-
var response;
|
|
355
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
356
|
-
return __generator(this, function (_a) {
|
|
357
|
-
switch (_a.label) {
|
|
358
|
-
case 0: return [4 /*yield*/, this.resetPasswordAdminAuthRaw(requestParameters, initOverrides)];
|
|
359
|
-
case 1:
|
|
360
|
-
response = _a.sent();
|
|
361
|
-
return [4 /*yield*/, response.value()];
|
|
362
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
});
|
|
366
|
-
};
|
|
367
|
-
return AuthApi;
|
|
368
|
-
}(runtime.BaseAPI));
|
|
369
|
-
exports.AuthApi = AuthApi;
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { AdminResource } from './AdminResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AdminLoginResponseResource
|
|
17
|
-
*/
|
|
18
|
-
export interface AdminLoginResponseResource {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof AdminLoginResponseResource
|
|
23
|
-
*/
|
|
24
|
-
token: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {AdminResource}
|
|
28
|
-
* @memberof AdminLoginResponseResource
|
|
29
|
-
*/
|
|
30
|
-
admin: AdminResource | null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the AdminLoginResponseResource interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfAdminLoginResponseResource(value: object): value is AdminLoginResponseResource;
|
|
36
|
-
export declare function AdminLoginResponseResourceFromJSON(json: any): AdminLoginResponseResource;
|
|
37
|
-
export declare function AdminLoginResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLoginResponseResource;
|
|
38
|
-
export declare function AdminLoginResponseResourceToJSON(json: any): AdminLoginResponseResource;
|
|
39
|
-
export declare function AdminLoginResponseResourceToJSONTyped(value?: AdminLoginResponseResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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.instanceOfAdminLoginResponseResource = instanceOfAdminLoginResponseResource;
|
|
17
|
-
exports.AdminLoginResponseResourceFromJSON = AdminLoginResponseResourceFromJSON;
|
|
18
|
-
exports.AdminLoginResponseResourceFromJSONTyped = AdminLoginResponseResourceFromJSONTyped;
|
|
19
|
-
exports.AdminLoginResponseResourceToJSON = AdminLoginResponseResourceToJSON;
|
|
20
|
-
exports.AdminLoginResponseResourceToJSONTyped = AdminLoginResponseResourceToJSONTyped;
|
|
21
|
-
var AdminResource_1 = require("./AdminResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the AdminLoginResponseResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfAdminLoginResponseResource(value) {
|
|
26
|
-
if (!('token' in value) || value['token'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('admin' in value) || value['admin'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function AdminLoginResponseResourceFromJSON(json) {
|
|
33
|
-
return AdminLoginResponseResourceFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function AdminLoginResponseResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'token': json['token'],
|
|
41
|
-
'admin': (0, AdminResource_1.AdminResourceFromJSON)(json['admin']),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function AdminLoginResponseResourceToJSON(json) {
|
|
45
|
-
return AdminLoginResponseResourceToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function AdminLoginResponseResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'token': value['token'],
|
|
54
|
-
'admin': (0, AdminResource_1.AdminResourceToJSON)(value['admin']),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { AdminLoginResponseResource } from './AdminLoginResponseResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface AdminLoginResponseResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface AdminLoginResponseResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<AdminLoginResponseResource>}
|
|
22
|
-
* @memberof AdminLoginResponseResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<AdminLoginResponseResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the AdminLoginResponseResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfAdminLoginResponseResourceArrayResponse(value: object): value is AdminLoginResponseResourceArrayResponse;
|
|
30
|
-
export declare function AdminLoginResponseResourceArrayResponseFromJSON(json: any): AdminLoginResponseResourceArrayResponse;
|
|
31
|
-
export declare function AdminLoginResponseResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLoginResponseResourceArrayResponse;
|
|
32
|
-
export declare function AdminLoginResponseResourceArrayResponseToJSON(json: any): AdminLoginResponseResourceArrayResponse;
|
|
33
|
-
export declare function AdminLoginResponseResourceArrayResponseToJSONTyped(value?: AdminLoginResponseResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfAdminLoginResponseResourceArrayResponse = instanceOfAdminLoginResponseResourceArrayResponse;
|
|
17
|
-
exports.AdminLoginResponseResourceArrayResponseFromJSON = AdminLoginResponseResourceArrayResponseFromJSON;
|
|
18
|
-
exports.AdminLoginResponseResourceArrayResponseFromJSONTyped = AdminLoginResponseResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.AdminLoginResponseResourceArrayResponseToJSON = AdminLoginResponseResourceArrayResponseToJSON;
|
|
20
|
-
exports.AdminLoginResponseResourceArrayResponseToJSONTyped = AdminLoginResponseResourceArrayResponseToJSONTyped;
|
|
21
|
-
var AdminLoginResponseResource_1 = require("./AdminLoginResponseResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the AdminLoginResponseResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfAdminLoginResponseResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function AdminLoginResponseResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return AdminLoginResponseResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function AdminLoginResponseResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(AdminLoginResponseResource_1.AdminLoginResponseResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function AdminLoginResponseResourceArrayResponseToJSON(json) {
|
|
40
|
-
return AdminLoginResponseResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function AdminLoginResponseResourceArrayResponseToJSONTyped(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(AdminLoginResponseResource_1.AdminLoginResponseResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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 ForgotPasswordAdminRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface ForgotPasswordAdminRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof ForgotPasswordAdminRequest
|
|
22
|
-
*/
|
|
23
|
-
email: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfForgotPasswordAdminRequest(value: object): value is ForgotPasswordAdminRequest;
|
|
29
|
-
export declare function ForgotPasswordAdminRequestFromJSON(json: any): ForgotPasswordAdminRequest;
|
|
30
|
-
export declare function ForgotPasswordAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForgotPasswordAdminRequest;
|
|
31
|
-
export declare function ForgotPasswordAdminRequestToJSON(json: any): ForgotPasswordAdminRequest;
|
|
32
|
-
export declare function ForgotPasswordAdminRequestToJSONTyped(value?: ForgotPasswordAdminRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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.instanceOfForgotPasswordAdminRequest = instanceOfForgotPasswordAdminRequest;
|
|
17
|
-
exports.ForgotPasswordAdminRequestFromJSON = ForgotPasswordAdminRequestFromJSON;
|
|
18
|
-
exports.ForgotPasswordAdminRequestFromJSONTyped = ForgotPasswordAdminRequestFromJSONTyped;
|
|
19
|
-
exports.ForgotPasswordAdminRequestToJSON = ForgotPasswordAdminRequestToJSON;
|
|
20
|
-
exports.ForgotPasswordAdminRequestToJSONTyped = ForgotPasswordAdminRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the ForgotPasswordAdminRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfForgotPasswordAdminRequest(value) {
|
|
25
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function ForgotPasswordAdminRequestFromJSON(json) {
|
|
30
|
-
return ForgotPasswordAdminRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function ForgotPasswordAdminRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'email': json['email'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function ForgotPasswordAdminRequestToJSON(json) {
|
|
41
|
-
return ForgotPasswordAdminRequestToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function ForgotPasswordAdminRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'email': value['email'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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 LoginAdminRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LoginAdminRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LoginAdminRequest
|
|
22
|
-
*/
|
|
23
|
-
email: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LoginAdminRequest
|
|
28
|
-
*/
|
|
29
|
-
password: string;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the LoginAdminRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfLoginAdminRequest(value: object): value is LoginAdminRequest;
|
|
35
|
-
export declare function LoginAdminRequestFromJSON(json: any): LoginAdminRequest;
|
|
36
|
-
export declare function LoginAdminRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAdminRequest;
|
|
37
|
-
export declare function LoginAdminRequestToJSON(json: any): LoginAdminRequest;
|
|
38
|
-
export declare function LoginAdminRequestToJSONTyped(value?: LoginAdminRequest | null, ignoreDiscriminator?: boolean): any;
|