@digital8/lighting-illusions-ts-sdk 0.0.1632 → 0.0.1634
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 +40 -24
- package/README.md +26 -16
- package/dist/apis/ProductRegistrationApi.d.ts +95 -0
- package/dist/apis/ProductRegistrationApi.js +377 -0
- package/dist/apis/StoreApi.d.ts +1 -28
- package/dist/apis/StoreApi.js +0 -113
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/DestroyAttributeValueRequest.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +1 -1
- package/dist/models/GetAllAttributeValueRequest.d.ts +1 -1
- package/dist/models/GetAllDefinitionRequest.d.ts +1 -1
- package/dist/models/GetAllDocumentRequest.d.ts +1 -1
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +1 -1
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/GetAllProductCategoryRequest.d.ts +1 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -1
- package/dist/models/GetAllProductRangeRequest.d.ts +1 -1
- package/dist/models/GetAllProductRegistrationRequest.d.ts +88 -0
- package/dist/models/GetAllProductRegistrationRequest.js +80 -0
- package/dist/models/GetAllProductRequest.d.ts +1 -1
- package/dist/models/GetAllProductTypeRequest.d.ts +1 -1
- package/dist/models/GetAllStoreRequest.d.ts +1 -1
- package/dist/models/GetAllSupplierRequest.d.ts +1 -1
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/IndexAttributeRequest.d.ts +1 -1
- package/dist/models/IndexAttributeValueRequest.d.ts +1 -1
- package/dist/models/IndexDefinitionRequest.d.ts +1 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +1 -1
- package/dist/models/IndexLabelRequest.d.ts +1 -1
- package/dist/models/IndexModelAttributeRequest.d.ts +1 -1
- package/dist/models/IndexOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/IndexProductCategoryRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.d.ts +2 -1
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +131 -0
- package/dist/models/IndexProductRegistrationRequest.js +98 -0
- package/dist/models/IndexProductRequest.d.ts +1 -1
- package/dist/models/IndexProductTypeRequest.d.ts +1 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +1 -1
- package/dist/models/IndexSiteRequest.d.ts +1 -1
- package/dist/models/IndexStoreRequest.d.ts +1 -1
- package/dist/models/IndexSupplierRequest.d.ts +1 -1
- package/dist/models/IndexTagRequest.d.ts +1 -1
- package/dist/models/LabelListResource.d.ts +0 -6
- package/dist/models/LabelListResource.js +0 -4
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/ListAssetsProductRegistrationRequest.js +83 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +6 -0
- package/dist/models/ProductChildListResource.js +2 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +0 -7
- package/dist/models/ProductRangeFrontendResource.js +0 -5
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +62 -0
- package/dist/models/ProductRegistrationCustomerResource.js +65 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +57 -0
- package/dist/models/ProductRegistrationListResource.js +64 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationProductChildResource.d.ts +50 -0
- package/dist/models/ProductRegistrationProductChildResource.js +63 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +90 -0
- package/dist/models/ProductRegistrationResource.js +81 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResultResource.d.ts +6 -0
- package/dist/models/ProductSearchResultResource.js +4 -0
- package/dist/models/ShowAssetsProductChildRequest.d.ts +1 -1
- package/dist/models/ShowAttributesProductChildRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreFrontendResource.d.ts +1 -7
- package/dist/models/StoreFrontendResource.js +1 -5
- package/dist/models/StoreLabelRequest.d.ts +4 -4
- package/dist/models/StoreListResource.d.ts +0 -6
- package/dist/models/StoreListResource.js +0 -2
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +4 -4
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreProductCategoryRequestDescriptionsInner.d.ts +2 -2
- package/dist/models/StoreProductCategoryRequestSeoInner.d.ts +2 -2
- package/dist/models/StoreProductChildRequest.d.ts +4 -4
- package/dist/models/StoreProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestAttributeValuesInner.d.ts +1 -1
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +5 -5
- package/dist/models/StoreProductRangeRequest.d.ts +1 -1
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +5 -5
- package/dist/models/StoreProductRequest.d.ts +1 -1
- package/dist/models/StoreResource.d.ts +0 -18
- package/dist/models/StoreResource.js +0 -6
- package/dist/models/StoreStoreRequest.d.ts +4 -22
- package/dist/models/StoreStoreRequest.js +3 -7
- package/dist/models/StoreStoreRequestAddress.d.ts +1 -1
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +5 -5
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +5 -5
- package/dist/models/StoreSupplierRequest.d.ts +1 -1
- package/dist/models/StoreTagRequest.d.ts +4 -4
- package/dist/models/UpdateAssetForAssetableRequest.d.ts +3 -3
- package/dist/models/UpdateLabelRequest.d.ts +4 -4
- package/dist/models/UpdateModelAttributeRequest.d.ts +3 -3
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +4 -4
- package/dist/models/UpdateProductChildRequest.d.ts +4 -4
- package/dist/models/UpdateProductChildRequestAssetsInner.d.ts +1 -1
- package/dist/models/UpdateProductRangeRequest.d.ts +1 -1
- package/dist/models/UpdateProductRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +5 -5
- package/dist/models/UpdateStoreRequest.d.ts +4 -22
- package/dist/models/UpdateStoreRequest.js +3 -7
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +5 -5
- package/dist/models/UpdateSupplierRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +4 -4
- package/dist/models/index.d.ts +19 -11
- package/dist/models/index.js +19 -11
- package/docs/GetAllProductRegistrationRequest.md +46 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/IndexProductRegistrationRequest.md +58 -0
- package/docs/LabelListResource.md +0 -2
- package/docs/{IndexRedirectRequest.md → ListAssetsProductRegistrationRequest.md} +8 -12
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/PaginatedProductRegistrationListResourceResponse.md +36 -0
- package/docs/{PaginatedRedirectListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductChildListResource.md +2 -0
- package/docs/ProductRangeFrontendResource.md +0 -2
- package/docs/ProductRegistrationApi.md +344 -0
- package/docs/{RedirectListResourceArrayResponse.md → ProductRegistrationAssetResource.md} +10 -6
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +34 -0
- package/docs/{ProductChildStoreStockType.md → ProductRegistrationAssetType.md} +4 -4
- package/docs/{RedirectListResource.md → ProductRegistrationCustomerResource.md} +14 -16
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationListResource.md +42 -0
- package/docs/{ModelAttributeFrontendResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{ModelAttributeFrontendResource.md → ProductRegistrationLiteResource.md} +8 -8
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +34 -0
- package/docs/{RedirectFrontendResource.md → ProductRegistrationProductChildResource.md} +10 -14
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +34 -0
- package/docs/ProductRegistrationResource.md +52 -0
- package/docs/{RedirectFrontendResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/ProductSearchResultResource.md +2 -0
- package/docs/StoreApi.md +0 -124
- package/docs/StoreFrontendResource.md +0 -2
- package/docs/StoreListResource.md +0 -2
- package/docs/StoreResource.md +0 -6
- package/docs/StoreStoreRequest.md +1 -7
- package/docs/UpdateModelAttributeRequest.md +1 -1
- package/docs/UpdateStoreRequest.md +1 -7
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +297 -0
- package/src/apis/StoreApi.ts +0 -84
- package/src/apis/index.ts +1 -1
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/DestroyAttributeValueRequest.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +1 -1
- package/src/models/GetAllAttributeValueRequest.ts +1 -1
- package/src/models/GetAllDefinitionRequest.ts +1 -1
- package/src/models/GetAllDocumentRequest.ts +1 -1
- package/src/models/GetAllGoogleCategoryRequest.ts +1 -1
- package/src/models/GetAllOverlayTemplateRequest.ts +1 -1
- package/src/models/GetAllProductCategoryRequest.ts +1 -1
- package/src/models/GetAllProductChildRequest.ts +1 -1
- package/src/models/GetAllProductRangeRequest.ts +1 -1
- package/src/models/GetAllProductRegistrationRequest.ts +137 -0
- package/src/models/GetAllProductRequest.ts +1 -1
- package/src/models/GetAllProductTypeRequest.ts +1 -1
- package/src/models/GetAllStoreRequest.ts +1 -1
- package/src/models/GetAllSupplierRequest.ts +1 -1
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/IndexAttributeRequest.ts +1 -1
- package/src/models/IndexAttributeValueRequest.ts +1 -1
- package/src/models/IndexDefinitionRequest.ts +1 -1
- package/src/models/IndexDocumentRequest.ts +1 -1
- package/src/models/IndexExternalApiLogRequest.ts +1 -1
- package/src/models/IndexLabelRequest.ts +1 -1
- package/src/models/IndexModelAttributeRequest.ts +1 -1
- package/src/models/IndexOverlayTemplateRequest.ts +1 -1
- package/src/models/IndexProductCategoryRequest.ts +1 -1
- package/src/models/IndexProductChildRequest.ts +2 -1
- package/src/models/IndexProductRangeRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +193 -0
- package/src/models/IndexProductRequest.ts +1 -1
- package/src/models/IndexProductTypeRequest.ts +1 -1
- package/src/models/IndexSiteNotificationRequest.ts +1 -1
- package/src/models/IndexSiteRequest.ts +1 -1
- package/src/models/IndexStoreRequest.ts +1 -1
- package/src/models/IndexSupplierRequest.ts +1 -1
- package/src/models/IndexTagRequest.ts +1 -1
- package/src/models/LabelListResource.ts +0 -9
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +8 -0
- package/src/models/ProductRangeFrontendResource.ts +0 -16
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerResource.ts +108 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +108 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationProductChildResource.ts +93 -0
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +171 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResultResource.ts +9 -0
- package/src/models/ShowAssetsProductChildRequest.ts +1 -1
- package/src/models/ShowAttributesProductChildRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreFrontendResource.ts +2 -11
- package/src/models/StoreLabelRequest.ts +4 -4
- package/src/models/StoreListResource.ts +0 -8
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +4 -4
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreProductCategoryRequestDescriptionsInner.ts +2 -2
- package/src/models/StoreProductCategoryRequestSeoInner.ts +2 -2
- package/src/models/StoreProductChildRequest.ts +4 -4
- package/src/models/StoreProductChildRequestAssetsInner.ts +1 -1
- package/src/models/StoreProductChildRequestAttributeValuesInner.ts +1 -1
- package/src/models/StoreProductChildRequestSitesInner.ts +5 -5
- package/src/models/StoreProductRangeRequest.ts +1 -1
- package/src/models/StoreProductRangeRequestSitesInner.ts +5 -5
- package/src/models/StoreProductRequest.ts +1 -1
- package/src/models/StoreResource.ts +0 -24
- package/src/models/StoreStoreRequest.ts +6 -29
- package/src/models/StoreStoreRequestAddress.ts +1 -1
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +5 -5
- package/src/models/StoreStoreSpecialDateRequest.ts +5 -5
- package/src/models/StoreSupplierRequest.ts +1 -1
- package/src/models/StoreTagRequest.ts +4 -4
- package/src/models/UpdateAssetForAssetableRequest.ts +3 -3
- package/src/models/UpdateLabelRequest.ts +4 -4
- package/src/models/UpdateModelAttributeRequest.ts +3 -3
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +4 -4
- package/src/models/UpdateProductChildRequest.ts +4 -4
- package/src/models/UpdateProductChildRequestAssetsInner.ts +1 -1
- package/src/models/UpdateProductRangeRequest.ts +1 -1
- package/src/models/UpdateProductRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +5 -5
- package/src/models/UpdateStoreRequest.ts +6 -29
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +5 -5
- package/src/models/UpdateSupplierRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +4 -4
- package/src/models/index.ts +19 -11
- package/dist/apis/RedirectApi.d.ts +0 -33
- package/dist/apis/RedirectApi.js +0 -138
- package/dist/models/IndexRedirectRequest.d.ts +0 -124
- package/dist/models/IndexRedirectRequest.js +0 -95
- package/dist/models/ModelAttributeFrontendResource.d.ts +0 -38
- package/dist/models/ModelAttributeFrontendResource.js +0 -55
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedRedirectListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedRedirectListResourceResponse.js +0 -57
- package/dist/models/ProductChildStoreStockType.d.ts +0 -25
- package/dist/models/ProductChildStoreStockType.js +0 -51
- package/dist/models/RedirectFrontendResource.d.ts +0 -62
- package/dist/models/RedirectFrontendResource.js +0 -71
- package/dist/models/RedirectFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectFrontendResourceArrayResponse.js +0 -50
- package/dist/models/RedirectListResource.d.ts +0 -69
- package/dist/models/RedirectListResource.js +0 -76
- package/dist/models/RedirectListResourceArrayResponse.d.ts +0 -33
- package/dist/models/RedirectListResourceArrayResponse.js +0 -50
- package/dist/models/SaveMapStoreStockMigrationRequest.d.ts +0 -33
- package/dist/models/SaveMapStoreStockMigrationRequest.js +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.d.ts +0 -52
- package/dist/models/SaveMapStoreStockMigrationRequestAssociationsInner.js +0 -67
- package/docs/RedirectApi.md +0 -74
- package/docs/SaveMapStoreStockMigrationRequest.md +0 -34
- package/docs/SaveMapStoreStockMigrationRequestAssociationsInner.md +0 -38
- package/src/apis/RedirectApi.ts +0 -77
- package/src/models/IndexRedirectRequest.ts +0 -184
- package/src/models/ModelAttributeFrontendResource.ts +0 -75
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedRedirectListResourceResponse.ts +0 -90
- package/src/models/ProductChildStoreStockType.ts +0 -53
- package/src/models/RedirectFrontendResource.ts +0 -111
- package/src/models/RedirectFrontendResourceArrayResponse.ts +0 -73
- package/src/models/RedirectListResource.ts +0 -128
- package/src/models/RedirectListResourceArrayResponse.ts +0 -73
- package/src/models/SaveMapStoreStockMigrationRequest.ts +0 -74
- package/src/models/SaveMapStoreStockMigrationRequestAssociationsInner.ts +0 -95
|
@@ -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.instanceOfRedirectListResourceArrayResponse = instanceOfRedirectListResourceArrayResponse;
|
|
17
|
-
exports.RedirectListResourceArrayResponseFromJSON = RedirectListResourceArrayResponseFromJSON;
|
|
18
|
-
exports.RedirectListResourceArrayResponseFromJSONTyped = RedirectListResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.RedirectListResourceArrayResponseToJSON = RedirectListResourceArrayResponseToJSON;
|
|
20
|
-
exports.RedirectListResourceArrayResponseToJSONTyped = RedirectListResourceArrayResponseToJSONTyped;
|
|
21
|
-
var RedirectListResource_1 = require("./RedirectListResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the RedirectListResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfRedirectListResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function RedirectListResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return RedirectListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function RedirectListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(RedirectListResource_1.RedirectListResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function RedirectListResourceArrayResponseToJSON(json) {
|
|
40
|
-
return RedirectListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function RedirectListResourceArrayResponseToJSONTyped(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(RedirectListResource_1.RedirectListResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -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 { SaveMapStoreStockMigrationRequestAssociationsInner } from './SaveMapStoreStockMigrationRequestAssociationsInner';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SaveMapStoreStockMigrationRequest
|
|
17
|
-
*/
|
|
18
|
-
export interface SaveMapStoreStockMigrationRequest {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<SaveMapStoreStockMigrationRequestAssociationsInner>}
|
|
22
|
-
* @memberof SaveMapStoreStockMigrationRequest
|
|
23
|
-
*/
|
|
24
|
-
associations: Array<SaveMapStoreStockMigrationRequestAssociationsInner>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfSaveMapStoreStockMigrationRequest(value: object): value is SaveMapStoreStockMigrationRequest;
|
|
30
|
-
export declare function SaveMapStoreStockMigrationRequestFromJSON(json: any): SaveMapStoreStockMigrationRequest;
|
|
31
|
-
export declare function SaveMapStoreStockMigrationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequest;
|
|
32
|
-
export declare function SaveMapStoreStockMigrationRequestToJSON(json: any): SaveMapStoreStockMigrationRequest;
|
|
33
|
-
export declare function SaveMapStoreStockMigrationRequestToJSONTyped(value?: SaveMapStoreStockMigrationRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,52 +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.instanceOfSaveMapStoreStockMigrationRequest = instanceOfSaveMapStoreStockMigrationRequest;
|
|
17
|
-
exports.SaveMapStoreStockMigrationRequestFromJSON = SaveMapStoreStockMigrationRequestFromJSON;
|
|
18
|
-
exports.SaveMapStoreStockMigrationRequestFromJSONTyped = SaveMapStoreStockMigrationRequestFromJSONTyped;
|
|
19
|
-
exports.SaveMapStoreStockMigrationRequestToJSON = SaveMapStoreStockMigrationRequestToJSON;
|
|
20
|
-
exports.SaveMapStoreStockMigrationRequestToJSONTyped = SaveMapStoreStockMigrationRequestToJSONTyped;
|
|
21
|
-
var SaveMapStoreStockMigrationRequestAssociationsInner_1 = require("./SaveMapStoreStockMigrationRequestAssociationsInner");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequest interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfSaveMapStoreStockMigrationRequest(value) {
|
|
26
|
-
if (!('associations' in value) || value['associations'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
return true;
|
|
29
|
-
}
|
|
30
|
-
function SaveMapStoreStockMigrationRequestFromJSON(json) {
|
|
31
|
-
return SaveMapStoreStockMigrationRequestFromJSONTyped(json, false);
|
|
32
|
-
}
|
|
33
|
-
function SaveMapStoreStockMigrationRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if (json == null) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
'associations': (json['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON)),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function SaveMapStoreStockMigrationRequestToJSON(json) {
|
|
42
|
-
return SaveMapStoreStockMigrationRequestToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function SaveMapStoreStockMigrationRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'associations': (value['associations'].map(SaveMapStoreStockMigrationRequestAssociationsInner_1.SaveMapStoreStockMigrationRequestAssociationsInnerToJSON)),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
@@ -1,52 +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 SaveMapStoreStockMigrationRequestAssociationsInner
|
|
16
|
-
*/
|
|
17
|
-
export interface SaveMapStoreStockMigrationRequestAssociationsInner {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof SaveMapStoreStockMigrationRequestAssociationsInner
|
|
22
|
-
*/
|
|
23
|
-
locationId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof SaveMapStoreStockMigrationRequestAssociationsInner
|
|
28
|
-
*/
|
|
29
|
-
storeId: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum}
|
|
33
|
-
* @memberof SaveMapStoreStockMigrationRequestAssociationsInner
|
|
34
|
-
*/
|
|
35
|
-
type: SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
export declare const SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum: {
|
|
41
|
-
readonly Available: "available";
|
|
42
|
-
readonly Display: "display";
|
|
43
|
-
};
|
|
44
|
-
export type SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum[keyof typeof SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum];
|
|
45
|
-
/**
|
|
46
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
|
|
47
|
-
*/
|
|
48
|
-
export declare function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value: object): value is SaveMapStoreStockMigrationRequestAssociationsInner;
|
|
49
|
-
export declare function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner;
|
|
50
|
-
export declare function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaveMapStoreStockMigrationRequestAssociationsInner;
|
|
51
|
-
export declare function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json: any): SaveMapStoreStockMigrationRequestAssociationsInner;
|
|
52
|
-
export declare function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value?: SaveMapStoreStockMigrationRequestAssociationsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +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.SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = void 0;
|
|
17
|
-
exports.instanceOfSaveMapStoreStockMigrationRequestAssociationsInner = instanceOfSaveMapStoreStockMigrationRequestAssociationsInner;
|
|
18
|
-
exports.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON = SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON;
|
|
19
|
-
exports.SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped = SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped;
|
|
20
|
-
exports.SaveMapStoreStockMigrationRequestAssociationsInnerToJSON = SaveMapStoreStockMigrationRequestAssociationsInnerToJSON;
|
|
21
|
-
exports.SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped = SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.SaveMapStoreStockMigrationRequestAssociationsInnerTypeEnum = {
|
|
26
|
-
Available: 'available',
|
|
27
|
-
Display: 'display'
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Check if a given object implements the SaveMapStoreStockMigrationRequestAssociationsInner interface.
|
|
31
|
-
*/
|
|
32
|
-
function instanceOfSaveMapStoreStockMigrationRequestAssociationsInner(value) {
|
|
33
|
-
if (!('locationId' in value) || value['locationId'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('storeId' in value) || value['storeId'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('type' in value) || value['type'] === undefined)
|
|
38
|
-
return false;
|
|
39
|
-
return true;
|
|
40
|
-
}
|
|
41
|
-
function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSON(json) {
|
|
42
|
-
return SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function SaveMapStoreStockMigrationRequestAssociationsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
if (json == null) {
|
|
46
|
-
return json;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'locationId': json['location_id'],
|
|
50
|
-
'storeId': json['store_id'],
|
|
51
|
-
'type': json['type'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
function SaveMapStoreStockMigrationRequestAssociationsInnerToJSON(json) {
|
|
55
|
-
return SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(json, false);
|
|
56
|
-
}
|
|
57
|
-
function SaveMapStoreStockMigrationRequestAssociationsInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'location_id': value['locationId'],
|
|
64
|
-
'store_id': value['storeId'],
|
|
65
|
-
'type': value['type'],
|
|
66
|
-
};
|
|
67
|
-
}
|
package/docs/RedirectApi.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# RedirectApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**indexRedirect**](RedirectApi.md#indexredirectoperation) | **POST** /admin-api/redirect/list | Auto-generated: indexRedirect |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## indexRedirect
|
|
12
|
-
|
|
13
|
-
> PaginatedRedirectListResourceResponse indexRedirect(indexRedirectRequest)
|
|
14
|
-
|
|
15
|
-
Auto-generated: indexRedirect
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import {
|
|
21
|
-
Configuration,
|
|
22
|
-
RedirectApi,
|
|
23
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
-
import type { IndexRedirectOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
-
|
|
26
|
-
async function example() {
|
|
27
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
-
const api = new RedirectApi();
|
|
29
|
-
|
|
30
|
-
const body = {
|
|
31
|
-
// IndexRedirectRequest (optional)
|
|
32
|
-
indexRedirectRequest: ...,
|
|
33
|
-
} satisfies IndexRedirectOperationRequest;
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const data = await api.indexRedirect(body);
|
|
37
|
-
console.log(data);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.error(error);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Run the test
|
|
44
|
-
example().catch(console.error);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Parameters
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **indexRedirectRequest** | [IndexRedirectRequest](IndexRedirectRequest.md) | | [Optional] |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
[**PaginatedRedirectListResourceResponse**](PaginatedRedirectListResourceResponse.md)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
No authorization required
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: `application/json`
|
|
65
|
-
- **Accept**: `application/json`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### HTTP response details
|
|
69
|
-
| Status code | Description | Response headers |
|
|
70
|
-
|-------------|-------------|------------------|
|
|
71
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\RedirectListResource[]>> | - |
|
|
72
|
-
|
|
73
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SaveMapStoreStockMigrationRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`associations` | [Array<SaveMapStoreStockMigrationRequestAssociationsInner>](SaveMapStoreStockMigrationRequestAssociationsInner.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { SaveMapStoreStockMigrationRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"associations": null,
|
|
19
|
-
} satisfies SaveMapStoreStockMigrationRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as SaveMapStoreStockMigrationRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SaveMapStoreStockMigrationRequestAssociationsInner
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`locationId` | number
|
|
10
|
-
`storeId` | number
|
|
11
|
-
`type` | string
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { SaveMapStoreStockMigrationRequestAssociationsInner } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"locationId": null,
|
|
21
|
-
"storeId": null,
|
|
22
|
-
"type": null,
|
|
23
|
-
} satisfies SaveMapStoreStockMigrationRequestAssociationsInner
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as SaveMapStoreStockMigrationRequestAssociationsInner
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
package/src/apis/RedirectApi.ts
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
IndexRedirectRequest,
|
|
19
|
-
PaginatedRedirectListResourceResponse,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import {
|
|
22
|
-
IndexRedirectRequestFromJSON,
|
|
23
|
-
IndexRedirectRequestToJSON,
|
|
24
|
-
PaginatedRedirectListResourceResponseFromJSON,
|
|
25
|
-
PaginatedRedirectListResourceResponseToJSON,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
|
|
28
|
-
export interface IndexRedirectOperationRequest {
|
|
29
|
-
indexRedirectRequest?: IndexRedirectRequest;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export class RedirectApi extends runtime.BaseAPI {
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Creates request options for indexRedirect without sending the request
|
|
39
|
-
*/
|
|
40
|
-
async indexRedirectRequestOpts(requestParameters: IndexRedirectOperationRequest): Promise<runtime.RequestOpts> {
|
|
41
|
-
const queryParameters: any = {};
|
|
42
|
-
|
|
43
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
-
|
|
45
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
let urlPath = `/admin-api/redirect/list`;
|
|
49
|
-
|
|
50
|
-
return {
|
|
51
|
-
path: urlPath,
|
|
52
|
-
method: 'POST',
|
|
53
|
-
headers: headerParameters,
|
|
54
|
-
query: queryParameters,
|
|
55
|
-
body: IndexRedirectRequestToJSON(requestParameters['indexRedirectRequest']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Auto-generated: indexRedirect
|
|
61
|
-
*/
|
|
62
|
-
async indexRedirectRaw(requestParameters: IndexRedirectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRedirectListResourceResponse>> {
|
|
63
|
-
const requestOptions = await this.indexRedirectRequestOpts(requestParameters);
|
|
64
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
65
|
-
|
|
66
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRedirectListResourceResponseFromJSON(jsonValue));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Auto-generated: indexRedirect
|
|
71
|
-
*/
|
|
72
|
-
async indexRedirect(requestParameters: IndexRedirectOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRedirectListResourceResponse> {
|
|
73
|
-
const response = await this.indexRedirectRaw(requestParameters, initOverrides);
|
|
74
|
-
return await response.value();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface IndexRedirectRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IndexRedirectRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof IndexRedirectRequest
|
|
26
|
-
*/
|
|
27
|
-
search?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {IndexRedirectRequestSortByEnum}
|
|
31
|
-
* @memberof IndexRedirectRequest
|
|
32
|
-
*/
|
|
33
|
-
sortBy?: IndexRedirectRequestSortByEnum;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {IndexRedirectRequestSortDirectionEnum}
|
|
37
|
-
* @memberof IndexRedirectRequest
|
|
38
|
-
*/
|
|
39
|
-
sortDirection?: IndexRedirectRequestSortDirectionEnum;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof IndexRedirectRequest
|
|
44
|
-
*/
|
|
45
|
-
perPage?: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof IndexRedirectRequest
|
|
50
|
-
*/
|
|
51
|
-
page?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<string>}
|
|
55
|
-
* @memberof IndexRedirectRequest
|
|
56
|
-
*/
|
|
57
|
-
siteId?: Array<string>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof IndexRedirectRequest
|
|
62
|
-
*/
|
|
63
|
-
redirectableType?: Array<string>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof IndexRedirectRequest
|
|
68
|
-
*/
|
|
69
|
-
relatedId?: number;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {IndexRedirectRequestRelatedTypeEnum}
|
|
73
|
-
* @memberof IndexRedirectRequest
|
|
74
|
-
*/
|
|
75
|
-
relatedType?: IndexRedirectRequestRelatedTypeEnum;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {boolean}
|
|
79
|
-
* @memberof IndexRedirectRequest
|
|
80
|
-
*/
|
|
81
|
-
includesRelations?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof IndexRedirectRequest
|
|
86
|
-
*/
|
|
87
|
-
productChildId?: number | null;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof IndexRedirectRequest
|
|
92
|
-
*/
|
|
93
|
-
productRangeId?: number | null;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* @export
|
|
99
|
-
*/
|
|
100
|
-
export const IndexRedirectRequestSortByEnum = {
|
|
101
|
-
Id: 'id'
|
|
102
|
-
} as const;
|
|
103
|
-
export type IndexRedirectRequestSortByEnum = typeof IndexRedirectRequestSortByEnum[keyof typeof IndexRedirectRequestSortByEnum];
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @export
|
|
107
|
-
*/
|
|
108
|
-
export const IndexRedirectRequestSortDirectionEnum = {
|
|
109
|
-
Asc: 'asc',
|
|
110
|
-
Desc: 'desc'
|
|
111
|
-
} as const;
|
|
112
|
-
export type IndexRedirectRequestSortDirectionEnum = typeof IndexRedirectRequestSortDirectionEnum[keyof typeof IndexRedirectRequestSortDirectionEnum];
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @export
|
|
116
|
-
*/
|
|
117
|
-
export const IndexRedirectRequestRelatedTypeEnum = {
|
|
118
|
-
ProductChildSiteDetail: 'productChildSiteDetail',
|
|
119
|
-
ProductRangeSiteDetail: 'productRangeSiteDetail',
|
|
120
|
-
ProductCategory: 'productCategory',
|
|
121
|
-
Supplier: 'supplier',
|
|
122
|
-
Tag: 'tag'
|
|
123
|
-
} as const;
|
|
124
|
-
export type IndexRedirectRequestRelatedTypeEnum = typeof IndexRedirectRequestRelatedTypeEnum[keyof typeof IndexRedirectRequestRelatedTypeEnum];
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Check if a given object implements the IndexRedirectRequest interface.
|
|
129
|
-
*/
|
|
130
|
-
export function instanceOfIndexRedirectRequest(value: object): value is IndexRedirectRequest {
|
|
131
|
-
return true;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function IndexRedirectRequestFromJSON(json: any): IndexRedirectRequest {
|
|
135
|
-
return IndexRedirectRequestFromJSONTyped(json, false);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function IndexRedirectRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexRedirectRequest {
|
|
139
|
-
if (json == null) {
|
|
140
|
-
return json;
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
|
|
144
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
145
|
-
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
146
|
-
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
147
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
148
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
149
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
150
|
-
'redirectableType': json['redirectable_type'] == null ? undefined : json['redirectable_type'],
|
|
151
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
152
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
153
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
154
|
-
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
155
|
-
'productRangeId': json['product_range_id'] == null ? undefined : json['product_range_id'],
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function IndexRedirectRequestToJSON(json: any): IndexRedirectRequest {
|
|
160
|
-
return IndexRedirectRequestToJSONTyped(json, false);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function IndexRedirectRequestToJSONTyped(value?: IndexRedirectRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
-
if (value == null) {
|
|
165
|
-
return value;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
return {
|
|
169
|
-
|
|
170
|
-
'search': value['search'],
|
|
171
|
-
'sortBy': value['sortBy'],
|
|
172
|
-
'sortDirection': value['sortDirection'],
|
|
173
|
-
'per_page': value['perPage'],
|
|
174
|
-
'page': value['page'],
|
|
175
|
-
'site_id': value['siteId'],
|
|
176
|
-
'redirectable_type': value['redirectableType'],
|
|
177
|
-
'related_id': value['relatedId'],
|
|
178
|
-
'related_type': value['relatedType'],
|
|
179
|
-
'includes_relations': value['includesRelations'],
|
|
180
|
-
'product_child_id': value['productChildId'],
|
|
181
|
-
'product_range_id': value['productRangeId'],
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
|