@digital8/lighting-illusions-ts-sdk 0.0.446 → 0.0.447
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 +10 -2
- package/dist/apis/SiteApi.d.ts +14 -3
- package/dist/apis/SiteApi.js +46 -1
- package/dist/apis/SupplierApi.d.ts +14 -3
- package/dist/apis/SupplierApi.js +46 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/IndexSupplierRequest.d.ts +8 -1
- package/dist/models/IndexSupplierRequest.js +7 -1
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/SiteApi.md +69 -3
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +69 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/SiteApi.ts +42 -6
- package/src/apis/SupplierApi.ts +42 -6
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/IndexSupplierRequest.ts +9 -1
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +6 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -71,10 +71,12 @@ docs/PaginatedProductLiteResourceResponse.md
|
|
|
71
71
|
docs/PaginatedProductResourceResponse.md
|
|
72
72
|
docs/PaginatedProductTypeLiteResourceResponse.md
|
|
73
73
|
docs/PaginatedProductTypeResourceResponse.md
|
|
74
|
+
docs/PaginatedSiteListResourceResponse.md
|
|
74
75
|
docs/PaginatedSiteLiteResourceResponse.md
|
|
75
76
|
docs/PaginatedSiteNotificationResourceResponse.md
|
|
76
77
|
docs/PaginatedSiteResourceResponse.md
|
|
77
78
|
docs/PaginatedSupplierFrontendResourceResponse.md
|
|
79
|
+
docs/PaginatedSupplierListResourceResponse.md
|
|
78
80
|
docs/PaginatedSupplierLiteResourceResponse.md
|
|
79
81
|
docs/PaginatedSupplierResourceResponse.md
|
|
80
82
|
docs/PaginatedTagListResourceResponse.md
|
|
@@ -106,6 +108,8 @@ docs/SEOResourceArrayResponse.md
|
|
|
106
108
|
docs/SiteApi.md
|
|
107
109
|
docs/SiteConfigResource.md
|
|
108
110
|
docs/SiteConfigResourceArrayResponse.md
|
|
111
|
+
docs/SiteListResource.md
|
|
112
|
+
docs/SiteListResourceArrayResponse.md
|
|
109
113
|
docs/SiteLiteResource.md
|
|
110
114
|
docs/SiteLiteResourceArrayResponse.md
|
|
111
115
|
docs/SiteNotificationResource.md
|
|
@@ -134,6 +138,8 @@ docs/StoreTagRequest.md
|
|
|
134
138
|
docs/SupplierApi.md
|
|
135
139
|
docs/SupplierFrontendResource.md
|
|
136
140
|
docs/SupplierFrontendResourceArrayResponse.md
|
|
141
|
+
docs/SupplierListResource.md
|
|
142
|
+
docs/SupplierListResourceArrayResponse.md
|
|
137
143
|
docs/SupplierLiteResource.md
|
|
138
144
|
docs/SupplierLiteResourceArrayResponse.md
|
|
139
145
|
docs/SupplierResource.md
|
|
@@ -242,10 +248,12 @@ src/models/PaginatedProductLiteResourceResponse.ts
|
|
|
242
248
|
src/models/PaginatedProductResourceResponse.ts
|
|
243
249
|
src/models/PaginatedProductTypeLiteResourceResponse.ts
|
|
244
250
|
src/models/PaginatedProductTypeResourceResponse.ts
|
|
251
|
+
src/models/PaginatedSiteListResourceResponse.ts
|
|
245
252
|
src/models/PaginatedSiteLiteResourceResponse.ts
|
|
246
253
|
src/models/PaginatedSiteNotificationResourceResponse.ts
|
|
247
254
|
src/models/PaginatedSiteResourceResponse.ts
|
|
248
255
|
src/models/PaginatedSupplierFrontendResourceResponse.ts
|
|
256
|
+
src/models/PaginatedSupplierListResourceResponse.ts
|
|
249
257
|
src/models/PaginatedSupplierLiteResourceResponse.ts
|
|
250
258
|
src/models/PaginatedSupplierResourceResponse.ts
|
|
251
259
|
src/models/PaginatedTagListResourceResponse.ts
|
|
@@ -274,6 +282,8 @@ src/models/SEOResource.ts
|
|
|
274
282
|
src/models/SEOResourceArrayResponse.ts
|
|
275
283
|
src/models/SiteConfigResource.ts
|
|
276
284
|
src/models/SiteConfigResourceArrayResponse.ts
|
|
285
|
+
src/models/SiteListResource.ts
|
|
286
|
+
src/models/SiteListResourceArrayResponse.ts
|
|
277
287
|
src/models/SiteLiteResource.ts
|
|
278
288
|
src/models/SiteLiteResourceArrayResponse.ts
|
|
279
289
|
src/models/SiteNotificationResource.ts
|
|
@@ -301,6 +311,8 @@ src/models/StoreSupplierRequestSeoInner.ts
|
|
|
301
311
|
src/models/StoreTagRequest.ts
|
|
302
312
|
src/models/SupplierFrontendResource.ts
|
|
303
313
|
src/models/SupplierFrontendResourceArrayResponse.ts
|
|
314
|
+
src/models/SupplierListResource.ts
|
|
315
|
+
src/models/SupplierListResourceArrayResponse.ts
|
|
304
316
|
src/models/SupplierLiteResource.ts
|
|
305
317
|
src/models/SupplierLiteResourceArrayResponse.ts
|
|
306
318
|
src/models/SupplierResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.447
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -105,6 +105,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
105
105
|
*SiteApi* | [**getAllSite**](docs/SiteApi.md#getallsite) | **POST** /admin-api/site/all | Auto-generated: getAllSite
|
|
106
106
|
*SiteApi* | [**indexSite**](docs/SiteApi.md#indexsiteoperation) | **POST** /admin-api/site/list | Auto-generated: indexSite
|
|
107
107
|
*SiteApi* | [**indexSiteNotification**](docs/SiteApi.md#indexsitenotificationoperation) | **POST** /admin-api/site/notification/list | Auto-generated: indexSiteNotification
|
|
108
|
+
*SiteApi* | [**searchExcludingRelationsSite**](docs/SiteApi.md#searchexcludingrelationssite) | **POST** /admin-api/site/search-excluding-relations | Auto-generated: searchExcludingRelationsSite
|
|
108
109
|
*SiteApi* | [**showSite**](docs/SiteApi.md#showsite) | **GET** /admin-api/site/{site} | Auto-generated: showSite
|
|
109
110
|
*SiteApi* | [**storeSiteNotification**](docs/SiteApi.md#storesitenotificationoperation) | **POST** /admin-api/site/notification/create | Auto-generated: storeSiteNotification
|
|
110
111
|
*SiteApi* | [**updateSite**](docs/SiteApi.md#updatesiteoperation) | **PUT** /admin-api/site/{site}/update | Auto-generated: updateSite
|
|
@@ -114,6 +115,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
114
115
|
*SupplierApi* | [**getAllSupplier**](docs/SupplierApi.md#getallsupplieroperation) | **POST** /admin-api/supplier/all | Auto-generated: getAllSupplier
|
|
115
116
|
*SupplierApi* | [**importSupplier**](docs/SupplierApi.md#importsupplier) | **POST** /admin-api/supplier/import | Auto-generated: importSupplier
|
|
116
117
|
*SupplierApi* | [**indexSupplier**](docs/SupplierApi.md#indexsupplieroperation) | **POST** /admin-api/supplier/list | Auto-generated: indexSupplier
|
|
118
|
+
*SupplierApi* | [**searchExcludingRelationsSupplier**](docs/SupplierApi.md#searchexcludingrelationssupplier) | **POST** /admin-api/supplier/search-excluding-relations | Auto-generated: searchExcludingRelationsSupplier
|
|
117
119
|
*SupplierApi* | [**showSupplier**](docs/SupplierApi.md#showsupplier) | **GET** /admin-api/supplier/{supplier} | Auto-generated: showSupplier
|
|
118
120
|
*SupplierApi* | [**storeSupplier**](docs/SupplierApi.md#storesupplieroperation) | **POST** /admin-api/supplier/create | Auto-generated: storeSupplier
|
|
119
121
|
*SupplierApi* | [**updateSupplier**](docs/SupplierApi.md#updatesupplieroperation) | **PUT** /admin-api/supplier/{supplier}/update | Auto-generated: updateSupplier
|
|
@@ -195,10 +197,12 @@ All URIs are relative to *http://localhost/api*
|
|
|
195
197
|
- [PaginatedProductResourceResponse](docs/PaginatedProductResourceResponse.md)
|
|
196
198
|
- [PaginatedProductTypeLiteResourceResponse](docs/PaginatedProductTypeLiteResourceResponse.md)
|
|
197
199
|
- [PaginatedProductTypeResourceResponse](docs/PaginatedProductTypeResourceResponse.md)
|
|
200
|
+
- [PaginatedSiteListResourceResponse](docs/PaginatedSiteListResourceResponse.md)
|
|
198
201
|
- [PaginatedSiteLiteResourceResponse](docs/PaginatedSiteLiteResourceResponse.md)
|
|
199
202
|
- [PaginatedSiteNotificationResourceResponse](docs/PaginatedSiteNotificationResourceResponse.md)
|
|
200
203
|
- [PaginatedSiteResourceResponse](docs/PaginatedSiteResourceResponse.md)
|
|
201
204
|
- [PaginatedSupplierFrontendResourceResponse](docs/PaginatedSupplierFrontendResourceResponse.md)
|
|
205
|
+
- [PaginatedSupplierListResourceResponse](docs/PaginatedSupplierListResourceResponse.md)
|
|
202
206
|
- [PaginatedSupplierLiteResourceResponse](docs/PaginatedSupplierLiteResourceResponse.md)
|
|
203
207
|
- [PaginatedSupplierResourceResponse](docs/PaginatedSupplierResourceResponse.md)
|
|
204
208
|
- [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
|
|
@@ -227,6 +231,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
227
231
|
- [SEOResourceArrayResponse](docs/SEOResourceArrayResponse.md)
|
|
228
232
|
- [SiteConfigResource](docs/SiteConfigResource.md)
|
|
229
233
|
- [SiteConfigResourceArrayResponse](docs/SiteConfigResourceArrayResponse.md)
|
|
234
|
+
- [SiteListResource](docs/SiteListResource.md)
|
|
235
|
+
- [SiteListResourceArrayResponse](docs/SiteListResourceArrayResponse.md)
|
|
230
236
|
- [SiteLiteResource](docs/SiteLiteResource.md)
|
|
231
237
|
- [SiteLiteResourceArrayResponse](docs/SiteLiteResourceArrayResponse.md)
|
|
232
238
|
- [SiteNotificationResource](docs/SiteNotificationResource.md)
|
|
@@ -254,6 +260,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
254
260
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
255
261
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
256
262
|
- [SupplierFrontendResourceArrayResponse](docs/SupplierFrontendResourceArrayResponse.md)
|
|
263
|
+
- [SupplierListResource](docs/SupplierListResource.md)
|
|
264
|
+
- [SupplierListResourceArrayResponse](docs/SupplierListResourceArrayResponse.md)
|
|
257
265
|
- [SupplierLiteResource](docs/SupplierLiteResource.md)
|
|
258
266
|
- [SupplierLiteResourceArrayResponse](docs/SupplierLiteResourceArrayResponse.md)
|
|
259
267
|
- [SupplierResource](docs/SupplierResource.md)
|
|
@@ -297,7 +305,7 @@ and is automatically generated by the
|
|
|
297
305
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
298
306
|
|
|
299
307
|
- API version: `1.0.0`
|
|
300
|
-
- Package version: `0.0.
|
|
308
|
+
- Package version: `0.0.447`
|
|
301
309
|
- Generator version: `7.17.0`
|
|
302
310
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
303
311
|
|
package/dist/apis/SiteApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, IndexSiteNotificationRequest, IndexSiteRequest,
|
|
13
|
+
import type { GenericResponse, IndexSiteNotificationRequest, IndexSiteRequest, PaginatedSiteListResourceResponse, PaginatedSiteNotificationResourceResponse, SiteLiteResourceArrayResponse, SiteNotificationResource, SiteResource, StoreSiteNotificationRequest, UpdateSiteNotificationRequest, UpdateSiteRequest } from '../models/index';
|
|
14
14
|
export interface DestroySiteNotificationRequest {
|
|
15
15
|
siteNotification: number;
|
|
16
16
|
}
|
|
@@ -23,6 +23,9 @@ export interface IndexSiteOperationRequest {
|
|
|
23
23
|
export interface IndexSiteNotificationOperationRequest {
|
|
24
24
|
indexSiteNotificationRequest?: IndexSiteNotificationRequest;
|
|
25
25
|
}
|
|
26
|
+
export interface SearchExcludingRelationsSiteRequest {
|
|
27
|
+
indexSiteRequest?: IndexSiteRequest;
|
|
28
|
+
}
|
|
26
29
|
export interface ShowSiteRequest {
|
|
27
30
|
site: number;
|
|
28
31
|
}
|
|
@@ -60,11 +63,11 @@ export declare class SiteApi extends runtime.BaseAPI {
|
|
|
60
63
|
/**
|
|
61
64
|
* Auto-generated: indexSite
|
|
62
65
|
*/
|
|
63
|
-
indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
66
|
+
indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>>;
|
|
64
67
|
/**
|
|
65
68
|
* Auto-generated: indexSite
|
|
66
69
|
*/
|
|
67
|
-
indexSite(requestParameters?: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
70
|
+
indexSite(requestParameters?: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse>;
|
|
68
71
|
/**
|
|
69
72
|
* Auto-generated: indexSiteNotification
|
|
70
73
|
*/
|
|
@@ -73,6 +76,14 @@ export declare class SiteApi extends runtime.BaseAPI {
|
|
|
73
76
|
* Auto-generated: indexSiteNotification
|
|
74
77
|
*/
|
|
75
78
|
indexSiteNotification(requestParameters?: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteNotificationResourceResponse>;
|
|
79
|
+
/**
|
|
80
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
81
|
+
*/
|
|
82
|
+
searchExcludingRelationsSiteRaw(requestParameters: SearchExcludingRelationsSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>>;
|
|
83
|
+
/**
|
|
84
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
85
|
+
*/
|
|
86
|
+
searchExcludingRelationsSite(requestParameters?: SearchExcludingRelationsSiteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse>;
|
|
76
87
|
/**
|
|
77
88
|
* Auto-generated: showSite
|
|
78
89
|
*/
|
package/dist/apis/SiteApi.js
CHANGED
|
@@ -188,7 +188,7 @@ var SiteApi = /** @class */ (function (_super) {
|
|
|
188
188
|
}, initOverrides)];
|
|
189
189
|
case 1:
|
|
190
190
|
response = _a.sent();
|
|
191
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
191
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSiteListResourceResponseFromJSON)(jsonValue); })];
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
});
|
|
@@ -256,6 +256,51 @@ var SiteApi = /** @class */ (function (_super) {
|
|
|
256
256
|
});
|
|
257
257
|
});
|
|
258
258
|
};
|
|
259
|
+
/**
|
|
260
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
261
|
+
*/
|
|
262
|
+
SiteApi.prototype.searchExcludingRelationsSiteRaw = function (requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
switch (_a.label) {
|
|
267
|
+
case 0:
|
|
268
|
+
queryParameters = {};
|
|
269
|
+
headerParameters = {};
|
|
270
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
271
|
+
urlPath = "/admin-api/site/search-excluding-relations";
|
|
272
|
+
return [4 /*yield*/, this.request({
|
|
273
|
+
path: urlPath,
|
|
274
|
+
method: 'POST',
|
|
275
|
+
headers: headerParameters,
|
|
276
|
+
query: queryParameters,
|
|
277
|
+
body: (0, index_1.IndexSiteRequestToJSON)(requestParameters['indexSiteRequest']),
|
|
278
|
+
}, initOverrides)];
|
|
279
|
+
case 1:
|
|
280
|
+
response = _a.sent();
|
|
281
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSiteListResourceResponseFromJSON)(jsonValue); })];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Auto-generated: searchExcludingRelationsSite
|
|
288
|
+
*/
|
|
289
|
+
SiteApi.prototype.searchExcludingRelationsSite = function () {
|
|
290
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
291
|
+
var response;
|
|
292
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
293
|
+
return __generator(this, function (_a) {
|
|
294
|
+
switch (_a.label) {
|
|
295
|
+
case 0: return [4 /*yield*/, this.searchExcludingRelationsSiteRaw(requestParameters, initOverrides)];
|
|
296
|
+
case 1:
|
|
297
|
+
response = _a.sent();
|
|
298
|
+
return [4 /*yield*/, response.value()];
|
|
299
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
};
|
|
259
304
|
/**
|
|
260
305
|
* Auto-generated: showSite
|
|
261
306
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, GetAllSupplierRequest, IndexSupplierRequest,
|
|
13
|
+
import type { GenericResponse, GetAllSupplierRequest, IndexSupplierRequest, PaginatedSupplierListResourceResponse, StoreSupplierRequest, SupplierLiteResourceArrayResponse, SupplierResource, UpdateSupplierRequest } from '../models/index';
|
|
14
14
|
export interface DestroySupplierRequest {
|
|
15
15
|
supplier: number;
|
|
16
16
|
}
|
|
@@ -26,6 +26,9 @@ export interface ImportSupplierRequest {
|
|
|
26
26
|
export interface IndexSupplierOperationRequest {
|
|
27
27
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
28
28
|
}
|
|
29
|
+
export interface SearchExcludingRelationsSupplierRequest {
|
|
30
|
+
indexSupplierRequest?: IndexSupplierRequest;
|
|
31
|
+
}
|
|
29
32
|
export interface ShowSupplierRequest {
|
|
30
33
|
supplier: number;
|
|
31
34
|
}
|
|
@@ -75,11 +78,19 @@ export declare class SupplierApi extends runtime.BaseAPI {
|
|
|
75
78
|
/**
|
|
76
79
|
* Auto-generated: indexSupplier
|
|
77
80
|
*/
|
|
78
|
-
indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
81
|
+
indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>>;
|
|
79
82
|
/**
|
|
80
83
|
* Auto-generated: indexSupplier
|
|
81
84
|
*/
|
|
82
|
-
indexSupplier(requestParameters?: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
85
|
+
indexSupplier(requestParameters?: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
88
|
+
*/
|
|
89
|
+
searchExcludingRelationsSupplierRaw(requestParameters: SearchExcludingRelationsSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>>;
|
|
90
|
+
/**
|
|
91
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
92
|
+
*/
|
|
93
|
+
searchExcludingRelationsSupplier(requestParameters?: SearchExcludingRelationsSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse>;
|
|
83
94
|
/**
|
|
84
95
|
* Auto-generated: showSupplier
|
|
85
96
|
*/
|
package/dist/apis/SupplierApi.js
CHANGED
|
@@ -295,7 +295,7 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
295
295
|
}, initOverrides)];
|
|
296
296
|
case 1:
|
|
297
297
|
response = _a.sent();
|
|
298
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
298
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierListResourceResponseFromJSON)(jsonValue); })];
|
|
299
299
|
}
|
|
300
300
|
});
|
|
301
301
|
});
|
|
@@ -318,6 +318,51 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
318
318
|
});
|
|
319
319
|
});
|
|
320
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
323
|
+
*/
|
|
324
|
+
SupplierApi.prototype.searchExcludingRelationsSupplierRaw = function (requestParameters, initOverrides) {
|
|
325
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
326
|
+
var queryParameters, headerParameters, urlPath, response;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
queryParameters = {};
|
|
331
|
+
headerParameters = {};
|
|
332
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
333
|
+
urlPath = "/admin-api/supplier/search-excluding-relations";
|
|
334
|
+
return [4 /*yield*/, this.request({
|
|
335
|
+
path: urlPath,
|
|
336
|
+
method: 'POST',
|
|
337
|
+
headers: headerParameters,
|
|
338
|
+
query: queryParameters,
|
|
339
|
+
body: (0, index_1.IndexSupplierRequestToJSON)(requestParameters['indexSupplierRequest']),
|
|
340
|
+
}, initOverrides)];
|
|
341
|
+
case 1:
|
|
342
|
+
response = _a.sent();
|
|
343
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedSupplierListResourceResponseFromJSON)(jsonValue); })];
|
|
344
|
+
}
|
|
345
|
+
});
|
|
346
|
+
});
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
350
|
+
*/
|
|
351
|
+
SupplierApi.prototype.searchExcludingRelationsSupplier = function () {
|
|
352
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
353
|
+
var response;
|
|
354
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
355
|
+
return __generator(this, function (_a) {
|
|
356
|
+
switch (_a.label) {
|
|
357
|
+
case 0: return [4 /*yield*/, this.searchExcludingRelationsSupplierRaw(requestParameters, initOverrides)];
|
|
358
|
+
case 1:
|
|
359
|
+
response = _a.sent();
|
|
360
|
+
return [4 /*yield*/, response.value()];
|
|
361
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
};
|
|
321
366
|
/**
|
|
322
367
|
* Auto-generated: showSupplier
|
|
323
368
|
*/
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -56,7 +56,7 @@ export interface IndexSupplierRequest {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof IndexSupplierRequest
|
|
58
58
|
*/
|
|
59
|
-
relatedType?:
|
|
59
|
+
relatedType?: IndexSupplierRequestRelatedTypeEnum;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* @export
|
|
@@ -78,6 +78,13 @@ export declare const IndexSupplierRequestSortDirectionEnum: {
|
|
|
78
78
|
readonly Desc: "desc";
|
|
79
79
|
};
|
|
80
80
|
export type IndexSupplierRequestSortDirectionEnum = typeof IndexSupplierRequestSortDirectionEnum[keyof typeof IndexSupplierRequestSortDirectionEnum];
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export declare const IndexSupplierRequestRelatedTypeEnum: {
|
|
85
|
+
readonly ProductChild: "productChild";
|
|
86
|
+
};
|
|
87
|
+
export type IndexSupplierRequestRelatedTypeEnum = typeof IndexSupplierRequestRelatedTypeEnum[keyof typeof IndexSupplierRequestRelatedTypeEnum];
|
|
81
88
|
/**
|
|
82
89
|
* Check if a given object implements the IndexSupplierRequest interface.
|
|
83
90
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.IndexSupplierRequestSortDirectionEnum = exports.IndexSupplierRequestSortByEnum = void 0;
|
|
16
|
+
exports.IndexSupplierRequestRelatedTypeEnum = exports.IndexSupplierRequestSortDirectionEnum = exports.IndexSupplierRequestSortByEnum = void 0;
|
|
17
17
|
exports.instanceOfIndexSupplierRequest = instanceOfIndexSupplierRequest;
|
|
18
18
|
exports.IndexSupplierRequestFromJSON = IndexSupplierRequestFromJSON;
|
|
19
19
|
exports.IndexSupplierRequestFromJSONTyped = IndexSupplierRequestFromJSONTyped;
|
|
@@ -37,6 +37,12 @@ exports.IndexSupplierRequestSortDirectionEnum = {
|
|
|
37
37
|
Asc: 'asc',
|
|
38
38
|
Desc: 'desc'
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.IndexSupplierRequestRelatedTypeEnum = {
|
|
44
|
+
ProductChild: 'productChild'
|
|
45
|
+
};
|
|
40
46
|
/**
|
|
41
47
|
* Check if a given object implements the IndexSupplierRequest interface.
|
|
42
48
|
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { SiteListResource } from './SiteListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedSiteListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedSiteListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<SiteListResource>}
|
|
23
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<SiteListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedSiteListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedSiteListResourceResponse(value: object): value is PaginatedSiteListResourceResponse;
|
|
37
|
+
export declare function PaginatedSiteListResourceResponseFromJSON(json: any): PaginatedSiteListResourceResponse;
|
|
38
|
+
export declare function PaginatedSiteListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteListResourceResponse;
|
|
39
|
+
export declare function PaginatedSiteListResourceResponseToJSON(json: any): PaginatedSiteListResourceResponse;
|
|
40
|
+
export declare function PaginatedSiteListResourceResponseToJSONTyped(value?: PaginatedSiteListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedSiteListResourceResponse = instanceOfPaginatedSiteListResourceResponse;
|
|
17
|
+
exports.PaginatedSiteListResourceResponseFromJSON = PaginatedSiteListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedSiteListResourceResponseFromJSONTyped = PaginatedSiteListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedSiteListResourceResponseToJSON = PaginatedSiteListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedSiteListResourceResponseToJSONTyped = PaginatedSiteListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var SiteListResource_1 = require("./SiteListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedSiteListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedSiteListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedSiteListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedSiteListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedSiteListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(SiteListResource_1.SiteListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedSiteListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedSiteListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedSiteListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(SiteListResource_1.SiteListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { SupplierListResource } from './SupplierListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedSupplierListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedSupplierListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<SupplierListResource>}
|
|
23
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<SupplierListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedSupplierListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedSupplierListResourceResponse(value: object): value is PaginatedSupplierListResourceResponse;
|
|
37
|
+
export declare function PaginatedSupplierListResourceResponseFromJSON(json: any): PaginatedSupplierListResourceResponse;
|
|
38
|
+
export declare function PaginatedSupplierListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierListResourceResponse;
|
|
39
|
+
export declare function PaginatedSupplierListResourceResponseToJSON(json: any): PaginatedSupplierListResourceResponse;
|
|
40
|
+
export declare function PaginatedSupplierListResourceResponseToJSONTyped(value?: PaginatedSupplierListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedSupplierListResourceResponse = instanceOfPaginatedSupplierListResourceResponse;
|
|
17
|
+
exports.PaginatedSupplierListResourceResponseFromJSON = PaginatedSupplierListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedSupplierListResourceResponseFromJSONTyped = PaginatedSupplierListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedSupplierListResourceResponseToJSON = PaginatedSupplierListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedSupplierListResourceResponseToJSONTyped = PaginatedSupplierListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var SupplierListResource_1 = require("./SupplierListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedSupplierListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedSupplierListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedSupplierListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedSupplierListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedSupplierListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(SupplierListResource_1.SupplierListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedSupplierListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedSupplierListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedSupplierListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(SupplierListResource_1.SupplierListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 SiteListResource
|
|
16
|
+
*/
|
|
17
|
+
export interface SiteListResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof SiteListResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SiteListResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SiteListResource
|
|
34
|
+
*/
|
|
35
|
+
abbreviation: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SiteListResource
|
|
40
|
+
*/
|
|
41
|
+
domain: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the SiteListResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfSiteListResource(value: object): value is SiteListResource;
|
|
47
|
+
export declare function SiteListResourceFromJSON(json: any): SiteListResource;
|
|
48
|
+
export declare function SiteListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SiteListResource;
|
|
49
|
+
export declare function SiteListResourceToJSON(json: any): SiteListResource;
|
|
50
|
+
export declare function SiteListResourceToJSONTyped(value?: SiteListResource | null, ignoreDiscriminator?: boolean): any;
|