@digital8/lighting-illusions-ts-sdk 0.0.1454 → 0.0.1456
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 +74 -40
- package/README.md +56 -25
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/{ProductRegistrationApi.js → LabelApi.js} +174 -57
- package/dist/apis/StoreApi.d.ts +190 -0
- package/dist/apis/StoreApi.js +744 -0
- package/dist/apis/SupplierApi.d.ts +33 -1
- package/dist/apis/SupplierApi.js +122 -0
- package/dist/apis/index.d.ts +2 -1
- package/dist/apis/index.js +2 -1
- package/dist/models/AddressFrontendResource.d.ts +74 -0
- package/dist/models/AddressFrontendResource.js +75 -0
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/AddressFrontendResourceArrayResponse.js +50 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +7 -9
- package/dist/models/AttachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/AttachStoresSupplierRequest.js +51 -0
- package/dist/models/AttachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/AttachSuppliersStoreRequest.js +51 -0
- package/dist/models/DetachStoresSupplierRequest.d.ts +32 -0
- package/dist/models/DetachStoresSupplierRequest.js +51 -0
- package/dist/models/DetachSuppliersStoreRequest.d.ts +32 -0
- package/dist/models/DetachSuppliersStoreRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllStoreRequest.d.ts +93 -0
- package/dist/models/{GetAllProductRegistrationRequest.js → GetAllStoreRequest.js} +24 -20
- package/dist/models/IndexLabelRequest.d.ts +109 -0
- package/dist/models/{ListAssetsProductRegistrationRequest.js → IndexLabelRequest.js} +31 -22
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexStoreRequest.d.ts +105 -0
- package/dist/models/IndexStoreRequest.js +85 -0
- package/dist/models/LabelListResource.d.ts +75 -0
- package/dist/models/LabelListResource.js +74 -0
- package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelListResourceArrayResponse.js +50 -0
- package/dist/models/LabelLiteResource.d.ts +56 -0
- package/dist/models/LabelLiteResource.js +65 -0
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
- package/dist/models/LabelResource.d.ts +23 -4
- package/dist/models/LabelResource.js +19 -8
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -0
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedStoreListResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +98 -0
- package/dist/models/StoreFrontendResource.js +89 -0
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- package/dist/models/StoreListResource.d.ts +81 -0
- package/dist/models/StoreListResource.js +80 -0
- package/dist/models/StoreListResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreListResourceArrayResponse.js +50 -0
- package/dist/models/StoreLiteResource.d.ts +45 -0
- package/dist/models/StoreLiteResource.js +58 -0
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreLiteResourceArrayResponse.js +50 -0
- package/dist/models/StoreResource.d.ts +102 -0
- package/dist/models/StoreResource.js +95 -0
- package/dist/models/StoreResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateFrontendResource.js +71 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +50 -0
- package/dist/models/StoreSpecialDateResource.d.ts +68 -0
- package/dist/models/StoreSpecialDateResource.js +71 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +33 -0
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +50 -0
- package/dist/models/StoreStoreRequest.d.ts +94 -0
- package/dist/models/StoreStoreRequest.js +85 -0
- package/dist/models/StoreStoreRequestAddress.d.ts +68 -0
- package/dist/models/StoreStoreRequestAddress.js +73 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +62 -0
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +61 -0
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +62 -0
- package/dist/models/StoreStoreSpecialDateRequest.js +61 -0
- package/dist/models/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -0
- package/dist/models/UpdateStoreRequest.d.ts +94 -0
- package/dist/models/UpdateStoreRequest.js +85 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +56 -0
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +57 -0
- package/dist/models/index.d.ts +35 -19
- package/dist/models/index.js +35 -19
- package/docs/{PaginatedProductRegistrationAssetResourceResponse.md → AddressFrontendResource.md} +20 -8
- package/docs/{ProductRegistrationResourceArrayResponse.md → AddressFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationAssetType.md → AttachStoresSupplierRequest.md} +6 -4
- package/docs/{ProductRegistrationLiteResource.md → AttachSuppliersStoreRequest.md} +6 -8
- package/docs/DetachStoresSupplierRequest.md +34 -0
- package/docs/DetachSuppliersStoreRequest.md +34 -0
- package/docs/{GetAllProductRegistrationRequest.md → GetAllStoreRequest.md} +8 -4
- package/docs/{ListAssetsProductRegistrationRequest.md → IndexLabelRequest.md} +6 -8
- package/docs/{IndexProductRegistrationRequest.md → IndexStoreRequest.md} +8 -12
- package/docs/LabelApi.md +407 -0
- package/docs/LabelListResource.md +48 -0
- package/docs/LabelListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationAssetResource.md → LabelLiteResource.md} +12 -8
- package/docs/LabelLiteResourceArrayResponse.md +34 -0
- package/docs/LabelResource.md +12 -6
- package/docs/{PaginatedProductRegistrationResourceResponse.md → PaginatedLabelListResourceResponse.md} +5 -5
- package/docs/{PaginatedProductRegistrationListResourceResponse.md → PaginatedStoreListResourceResponse.md} +5 -5
- package/docs/StoreApi.md +755 -0
- package/docs/StoreFrontendResource.md +56 -0
- package/docs/StoreFrontendResourceArrayResponse.md +34 -0
- package/docs/StoreLabelRequest.md +48 -0
- package/docs/StoreListResource.md +50 -0
- package/docs/StoreListResourceArrayResponse.md +34 -0
- package/docs/{ProductRegistrationCustomerLiteResource.md → StoreLiteResource.md} +6 -6
- package/docs/StoreLiteResourceArrayResponse.md +34 -0
- package/docs/StoreResource.md +56 -0
- package/docs/StoreResourceArrayResponse.md +34 -0
- package/docs/StoreSpecialDateFrontendResource.md +46 -0
- package/docs/{ProductRegistrationAssetResourceArrayResponse.md → StoreSpecialDateFrontendResourceArrayResponse.md} +5 -5
- package/docs/{ProductRegistrationListResource.md → StoreSpecialDateResource.md} +16 -10
- package/docs/StoreSpecialDateResourceArrayResponse.md +34 -0
- package/docs/StoreStoreRequest.md +54 -0
- package/docs/StoreStoreRequestAddress.md +46 -0
- package/docs/StoreStoreRequestSpecialDatesInner.md +44 -0
- package/docs/StoreStoreSpecialDateRequest.md +44 -0
- package/docs/SupplierApi.md +138 -0
- package/docs/UpdateLabelRequest.md +48 -0
- package/docs/UpdateStoreRequest.md +54 -0
- package/docs/{ProductRegistrationCustomerResource.md → UpdateStoreRequestSpecialDatesInner.md} +10 -8
- package/package.json +1 -1
- package/src/apis/LabelApi.ts +328 -0
- package/src/apis/StoreApi.ts +625 -0
- package/src/apis/SupplierApi.ts +112 -0
- package/src/apis/index.ts +2 -1
- package/src/models/AddressFrontendResource.ts +127 -0
- package/src/models/AddressFrontendResourceArrayResponse.ts +73 -0
- package/src/models/AddressResource.ts +8 -9
- package/src/models/AttachStoresSupplierRequest.ts +66 -0
- package/src/models/AttachSuppliersStoreRequest.ts +66 -0
- package/src/models/DetachStoresSupplierRequest.ts +66 -0
- package/src/models/DetachSuppliersStoreRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllStoreRequest.ts +144 -0
- package/src/models/IndexLabelRequest.ts +163 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexStoreRequest.ts +160 -0
- package/src/models/LabelListResource.ts +134 -0
- package/src/models/LabelListResourceArrayResponse.ts +73 -0
- package/src/models/LabelLiteResource.ts +101 -0
- package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
- package/src/models/LabelResource.ts +46 -12
- package/src/models/PaginatedLabelListResourceResponse.ts +90 -0
- package/src/models/PaginatedStoreListResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +162 -0
- package/src/models/StoreFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/StoreListResource.ts +144 -0
- package/src/models/StoreListResourceArrayResponse.ts +73 -0
- package/src/models/StoreLiteResource.ts +91 -0
- package/src/models/StoreLiteResourceArrayResponse.ts +73 -0
- package/src/models/StoreResource.ts +192 -0
- package/src/models/StoreResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateFrontendResource.ts +118 -0
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +73 -0
- package/src/models/StoreSpecialDateResource.ts +118 -0
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +73 -0
- package/src/models/StoreStoreRequest.ts +167 -0
- package/src/models/StoreStoreRequestAddress.ts +119 -0
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +106 -0
- package/src/models/StoreStoreSpecialDateRequest.ts +106 -0
- package/src/models/UpdateLabelRequest.ts +121 -0
- package/src/models/UpdateStoreRequest.ts +167 -0
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +97 -0
- package/src/models/index.ts +35 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -79
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -81
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -124
- package/dist/models/IndexProductRegistrationRequest.js +0 -95
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +0 -57
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +0 -57
- package/dist/models/ProductRegistrationAssetResource.d.ts +0 -45
- package/dist/models/ProductRegistrationAssetResource.js +0 -58
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationAssetType.d.ts +0 -25
- package/dist/models/ProductRegistrationAssetType.js +0 -51
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +0 -44
- package/dist/models/ProductRegistrationCustomerLiteResource.js +0 -57
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationCustomerResource.d.ts +0 -50
- package/dist/models/ProductRegistrationCustomerResource.js +0 -61
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -51
- package/dist/models/ProductRegistrationListResource.js +0 -60
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationLiteResource.d.ts +0 -38
- package/dist/models/ProductRegistrationLiteResource.js +0 -53
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -76
- package/dist/models/ProductRegistrationResource.js +0 -75
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/ProductRegistrationApi.md +0 -275
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -48
- package/src/apis/ProductRegistrationApi.ts +0 -238
- package/src/models/GetAllProductRegistrationRequest.ts +0 -128
- package/src/models/IndexProductRegistrationRequest.ts +0 -184
- package/src/models/ListAssetsProductRegistrationRequest.ts +0 -158
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +0 -90
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +0 -90
- package/src/models/ProductRegistrationAssetResource.ts +0 -91
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationAssetType.ts +0 -53
- package/src/models/ProductRegistrationCustomerLiteResource.ts +0 -83
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationCustomerResource.ts +0 -92
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -99
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -141
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
# ProductRegistrationApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getAllProductRegistration**](ProductRegistrationApi.md#getallproductregistrationoperation) | **POST** /admin-api/product-registration/all | Auto-generated: getAllProductRegistration |
|
|
8
|
-
| [**indexProductRegistration**](ProductRegistrationApi.md#indexproductregistrationoperation) | **POST** /admin-api/product-registration/list | Auto-generated: indexProductRegistration |
|
|
9
|
-
| [**listAssetsProductRegistration**](ProductRegistrationApi.md#listassetsproductregistrationoperation) | **POST** /admin-api/product-registration/{productRegistration}/assets | Auto-generated: listAssetsProductRegistration |
|
|
10
|
-
| [**showProductRegistration**](ProductRegistrationApi.md#showproductregistration) | **GET** /admin-api/product-registration/{productRegistration} | Auto-generated: showProductRegistration |
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## getAllProductRegistration
|
|
15
|
-
|
|
16
|
-
> ProductRegistrationLiteResourceArrayResponse getAllProductRegistration(getAllProductRegistrationRequest)
|
|
17
|
-
|
|
18
|
-
Auto-generated: getAllProductRegistration
|
|
19
|
-
|
|
20
|
-
### Example
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
import {
|
|
24
|
-
Configuration,
|
|
25
|
-
ProductRegistrationApi,
|
|
26
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
27
|
-
import type { GetAllProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
28
|
-
|
|
29
|
-
async function example() {
|
|
30
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
31
|
-
const api = new ProductRegistrationApi();
|
|
32
|
-
|
|
33
|
-
const body = {
|
|
34
|
-
// GetAllProductRegistrationRequest (optional)
|
|
35
|
-
getAllProductRegistrationRequest: ...,
|
|
36
|
-
} satisfies GetAllProductRegistrationOperationRequest;
|
|
37
|
-
|
|
38
|
-
try {
|
|
39
|
-
const data = await api.getAllProductRegistration(body);
|
|
40
|
-
console.log(data);
|
|
41
|
-
} catch (error) {
|
|
42
|
-
console.error(error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// Run the test
|
|
47
|
-
example().catch(console.error);
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Parameters
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
| Name | Type | Description | Notes |
|
|
54
|
-
|------------- | ------------- | ------------- | -------------|
|
|
55
|
-
| **getAllProductRegistrationRequest** | [GetAllProductRegistrationRequest](GetAllProductRegistrationRequest.md) | | [Optional] |
|
|
56
|
-
|
|
57
|
-
### Return type
|
|
58
|
-
|
|
59
|
-
[**ProductRegistrationLiteResourceArrayResponse**](ProductRegistrationLiteResourceArrayResponse.md)
|
|
60
|
-
|
|
61
|
-
### Authorization
|
|
62
|
-
|
|
63
|
-
No authorization required
|
|
64
|
-
|
|
65
|
-
### HTTP request headers
|
|
66
|
-
|
|
67
|
-
- **Content-Type**: `application/json`
|
|
68
|
-
- **Accept**: `application/json`
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### HTTP response details
|
|
72
|
-
| Status code | Description | Response headers |
|
|
73
|
-
|-------------|-------------|------------------|
|
|
74
|
-
| **200** | Successful resource response | - |
|
|
75
|
-
|
|
76
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
## indexProductRegistration
|
|
80
|
-
|
|
81
|
-
> PaginatedProductRegistrationListResourceResponse indexProductRegistration(indexProductRegistrationRequest)
|
|
82
|
-
|
|
83
|
-
Auto-generated: indexProductRegistration
|
|
84
|
-
|
|
85
|
-
### Example
|
|
86
|
-
|
|
87
|
-
```ts
|
|
88
|
-
import {
|
|
89
|
-
Configuration,
|
|
90
|
-
ProductRegistrationApi,
|
|
91
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
92
|
-
import type { IndexProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
93
|
-
|
|
94
|
-
async function example() {
|
|
95
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
96
|
-
const api = new ProductRegistrationApi();
|
|
97
|
-
|
|
98
|
-
const body = {
|
|
99
|
-
// IndexProductRegistrationRequest (optional)
|
|
100
|
-
indexProductRegistrationRequest: ...,
|
|
101
|
-
} satisfies IndexProductRegistrationOperationRequest;
|
|
102
|
-
|
|
103
|
-
try {
|
|
104
|
-
const data = await api.indexProductRegistration(body);
|
|
105
|
-
console.log(data);
|
|
106
|
-
} catch (error) {
|
|
107
|
-
console.error(error);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Run the test
|
|
112
|
-
example().catch(console.error);
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
### Parameters
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
| Name | Type | Description | Notes |
|
|
119
|
-
|------------- | ------------- | ------------- | -------------|
|
|
120
|
-
| **indexProductRegistrationRequest** | [IndexProductRegistrationRequest](IndexProductRegistrationRequest.md) | | [Optional] |
|
|
121
|
-
|
|
122
|
-
### Return type
|
|
123
|
-
|
|
124
|
-
[**PaginatedProductRegistrationListResourceResponse**](PaginatedProductRegistrationListResourceResponse.md)
|
|
125
|
-
|
|
126
|
-
### Authorization
|
|
127
|
-
|
|
128
|
-
No authorization required
|
|
129
|
-
|
|
130
|
-
### HTTP request headers
|
|
131
|
-
|
|
132
|
-
- **Content-Type**: `application/json`
|
|
133
|
-
- **Accept**: `application/json`
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### HTTP response details
|
|
137
|
-
| Status code | Description | Response headers |
|
|
138
|
-
|-------------|-------------|------------------|
|
|
139
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationListResource[]>> | - |
|
|
140
|
-
|
|
141
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
## listAssetsProductRegistration
|
|
145
|
-
|
|
146
|
-
> PaginatedProductRegistrationAssetResourceResponse listAssetsProductRegistration(productRegistration, listAssetsProductRegistrationRequest)
|
|
147
|
-
|
|
148
|
-
Auto-generated: listAssetsProductRegistration
|
|
149
|
-
|
|
150
|
-
### Example
|
|
151
|
-
|
|
152
|
-
```ts
|
|
153
|
-
import {
|
|
154
|
-
Configuration,
|
|
155
|
-
ProductRegistrationApi,
|
|
156
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
157
|
-
import type { ListAssetsProductRegistrationOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
158
|
-
|
|
159
|
-
async function example() {
|
|
160
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
161
|
-
const api = new ProductRegistrationApi();
|
|
162
|
-
|
|
163
|
-
const body = {
|
|
164
|
-
// number | The id of the productRegistration
|
|
165
|
-
productRegistration: 56,
|
|
166
|
-
// ListAssetsProductRegistrationRequest (optional)
|
|
167
|
-
listAssetsProductRegistrationRequest: ...,
|
|
168
|
-
} satisfies ListAssetsProductRegistrationOperationRequest;
|
|
169
|
-
|
|
170
|
-
try {
|
|
171
|
-
const data = await api.listAssetsProductRegistration(body);
|
|
172
|
-
console.log(data);
|
|
173
|
-
} catch (error) {
|
|
174
|
-
console.error(error);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
// Run the test
|
|
179
|
-
example().catch(console.error);
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
### Parameters
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
| Name | Type | Description | Notes |
|
|
186
|
-
|------------- | ------------- | ------------- | -------------|
|
|
187
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
188
|
-
| **listAssetsProductRegistrationRequest** | [ListAssetsProductRegistrationRequest](ListAssetsProductRegistrationRequest.md) | | [Optional] |
|
|
189
|
-
|
|
190
|
-
### Return type
|
|
191
|
-
|
|
192
|
-
[**PaginatedProductRegistrationAssetResourceResponse**](PaginatedProductRegistrationAssetResourceResponse.md)
|
|
193
|
-
|
|
194
|
-
### Authorization
|
|
195
|
-
|
|
196
|
-
No authorization required
|
|
197
|
-
|
|
198
|
-
### HTTP request headers
|
|
199
|
-
|
|
200
|
-
- **Content-Type**: `application/json`
|
|
201
|
-
- **Accept**: `application/json`
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### HTTP response details
|
|
205
|
-
| Status code | Description | Response headers |
|
|
206
|
-
|-------------|-------------|------------------|
|
|
207
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\ProductRegistrationAssetResource[]>> | - |
|
|
208
|
-
|
|
209
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## showProductRegistration
|
|
213
|
-
|
|
214
|
-
> ProductRegistrationResource showProductRegistration(productRegistration)
|
|
215
|
-
|
|
216
|
-
Auto-generated: showProductRegistration
|
|
217
|
-
|
|
218
|
-
### Example
|
|
219
|
-
|
|
220
|
-
```ts
|
|
221
|
-
import {
|
|
222
|
-
Configuration,
|
|
223
|
-
ProductRegistrationApi,
|
|
224
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
225
|
-
import type { ShowProductRegistrationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
226
|
-
|
|
227
|
-
async function example() {
|
|
228
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
229
|
-
const api = new ProductRegistrationApi();
|
|
230
|
-
|
|
231
|
-
const body = {
|
|
232
|
-
// number | The id of the productRegistration
|
|
233
|
-
productRegistration: 56,
|
|
234
|
-
} satisfies ShowProductRegistrationRequest;
|
|
235
|
-
|
|
236
|
-
try {
|
|
237
|
-
const data = await api.showProductRegistration(body);
|
|
238
|
-
console.log(data);
|
|
239
|
-
} catch (error) {
|
|
240
|
-
console.error(error);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
// Run the test
|
|
245
|
-
example().catch(console.error);
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### Parameters
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
| Name | Type | Description | Notes |
|
|
252
|
-
|------------- | ------------- | ------------- | -------------|
|
|
253
|
-
| **productRegistration** | `number` | The id of the productRegistration | [Defaults to `undefined`] |
|
|
254
|
-
|
|
255
|
-
### Return type
|
|
256
|
-
|
|
257
|
-
[**ProductRegistrationResource**](ProductRegistrationResource.md)
|
|
258
|
-
|
|
259
|
-
### Authorization
|
|
260
|
-
|
|
261
|
-
No authorization required
|
|
262
|
-
|
|
263
|
-
### HTTP request headers
|
|
264
|
-
|
|
265
|
-
- **Content-Type**: Not defined
|
|
266
|
-
- **Accept**: `application/json`
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
### HTTP response details
|
|
270
|
-
| Status code | Description | Response headers |
|
|
271
|
-
|-------------|-------------|------------------|
|
|
272
|
-
| **200** | Successful resource response | - |
|
|
273
|
-
|
|
274
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
275
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationCustomerLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationCustomerLiteResource>](ProductRegistrationCustomerLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationCustomerLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationCustomerLiteResourceArrayResponse
|
|
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 ProductRegistrationCustomerLiteResourceArrayResponse
|
|
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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationCustomerResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationCustomerResource>](ProductRegistrationCustomerResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationCustomerResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationCustomerResourceArrayResponse
|
|
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 ProductRegistrationCustomerResourceArrayResponse
|
|
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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationListResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationListResource>](ProductRegistrationListResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationListResourceArrayResponse
|
|
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 ProductRegistrationListResourceArrayResponse
|
|
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,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationLiteResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<ProductRegistrationLiteResource>](ProductRegistrationLiteResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { ProductRegistrationLiteResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies ProductRegistrationLiteResourceArrayResponse
|
|
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 ProductRegistrationLiteResourceArrayResponse
|
|
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,48 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# ProductRegistrationResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`purchasedDate` | string
|
|
11
|
-
`customer` | [ProductRegistrationCustomerResource](ProductRegistrationCustomerResource.md)
|
|
12
|
-
`address` | [AddressResource](AddressResource.md)
|
|
13
|
-
`productChildren` | object
|
|
14
|
-
`assets` | object
|
|
15
|
-
`createdAt` | string
|
|
16
|
-
`updatedAt` | string
|
|
17
|
-
|
|
18
|
-
## Example
|
|
19
|
-
|
|
20
|
-
```typescript
|
|
21
|
-
import type { ProductRegistrationResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
22
|
-
|
|
23
|
-
// TODO: Update the object below with actual values
|
|
24
|
-
const example = {
|
|
25
|
-
"id": null,
|
|
26
|
-
"purchasedDate": null,
|
|
27
|
-
"customer": null,
|
|
28
|
-
"address": null,
|
|
29
|
-
"productChildren": null,
|
|
30
|
-
"assets": null,
|
|
31
|
-
"createdAt": null,
|
|
32
|
-
"updatedAt": null,
|
|
33
|
-
} satisfies ProductRegistrationResource
|
|
34
|
-
|
|
35
|
-
console.log(example)
|
|
36
|
-
|
|
37
|
-
// Convert the instance to a JSON string
|
|
38
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
-
console.log(exampleJSON)
|
|
40
|
-
|
|
41
|
-
// Parse the JSON string back to an object
|
|
42
|
-
const exampleParsed = JSON.parse(exampleJSON) as ProductRegistrationResource
|
|
43
|
-
console.log(exampleParsed)
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
-
|
|
48
|
-
|
|
@@ -1,238 +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
|
-
GetAllProductRegistrationRequest,
|
|
19
|
-
IndexProductRegistrationRequest,
|
|
20
|
-
ListAssetsProductRegistrationRequest,
|
|
21
|
-
PaginatedProductRegistrationAssetResourceResponse,
|
|
22
|
-
PaginatedProductRegistrationListResourceResponse,
|
|
23
|
-
ProductRegistrationLiteResourceArrayResponse,
|
|
24
|
-
ProductRegistrationResource,
|
|
25
|
-
} from '../models/index';
|
|
26
|
-
import {
|
|
27
|
-
GetAllProductRegistrationRequestFromJSON,
|
|
28
|
-
GetAllProductRegistrationRequestToJSON,
|
|
29
|
-
IndexProductRegistrationRequestFromJSON,
|
|
30
|
-
IndexProductRegistrationRequestToJSON,
|
|
31
|
-
ListAssetsProductRegistrationRequestFromJSON,
|
|
32
|
-
ListAssetsProductRegistrationRequestToJSON,
|
|
33
|
-
PaginatedProductRegistrationAssetResourceResponseFromJSON,
|
|
34
|
-
PaginatedProductRegistrationAssetResourceResponseToJSON,
|
|
35
|
-
PaginatedProductRegistrationListResourceResponseFromJSON,
|
|
36
|
-
PaginatedProductRegistrationListResourceResponseToJSON,
|
|
37
|
-
ProductRegistrationLiteResourceArrayResponseFromJSON,
|
|
38
|
-
ProductRegistrationLiteResourceArrayResponseToJSON,
|
|
39
|
-
ProductRegistrationResourceFromJSON,
|
|
40
|
-
ProductRegistrationResourceToJSON,
|
|
41
|
-
} from '../models/index';
|
|
42
|
-
|
|
43
|
-
export interface GetAllProductRegistrationOperationRequest {
|
|
44
|
-
getAllProductRegistrationRequest?: GetAllProductRegistrationRequest;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface IndexProductRegistrationOperationRequest {
|
|
48
|
-
indexProductRegistrationRequest?: IndexProductRegistrationRequest;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ListAssetsProductRegistrationOperationRequest {
|
|
52
|
-
productRegistration: number;
|
|
53
|
-
listAssetsProductRegistrationRequest?: ListAssetsProductRegistrationRequest;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface ShowProductRegistrationRequest {
|
|
57
|
-
productRegistration: number;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
export class ProductRegistrationApi extends runtime.BaseAPI {
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Creates request options for getAllProductRegistration without sending the request
|
|
67
|
-
*/
|
|
68
|
-
async getAllProductRegistrationRequestOpts(requestParameters: GetAllProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
69
|
-
const queryParameters: any = {};
|
|
70
|
-
|
|
71
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
72
|
-
|
|
73
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
let urlPath = `/admin-api/product-registration/all`;
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
path: urlPath,
|
|
80
|
-
method: 'POST',
|
|
81
|
-
headers: headerParameters,
|
|
82
|
-
query: queryParameters,
|
|
83
|
-
body: GetAllProductRegistrationRequestToJSON(requestParameters['getAllProductRegistrationRequest']),
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Auto-generated: getAllProductRegistration
|
|
89
|
-
*/
|
|
90
|
-
async getAllProductRegistrationRaw(requestParameters: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationLiteResourceArrayResponse>> {
|
|
91
|
-
const requestOptions = await this.getAllProductRegistrationRequestOpts(requestParameters);
|
|
92
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
93
|
-
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRegistrationLiteResourceArrayResponseFromJSON(jsonValue));
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Auto-generated: getAllProductRegistration
|
|
99
|
-
*/
|
|
100
|
-
async getAllProductRegistration(requestParameters: GetAllProductRegistrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationLiteResourceArrayResponse> {
|
|
101
|
-
const response = await this.getAllProductRegistrationRaw(requestParameters, initOverrides);
|
|
102
|
-
return await response.value();
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Creates request options for indexProductRegistration without sending the request
|
|
107
|
-
*/
|
|
108
|
-
async indexProductRegistrationRequestOpts(requestParameters: IndexProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
109
|
-
const queryParameters: any = {};
|
|
110
|
-
|
|
111
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
112
|
-
|
|
113
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
let urlPath = `/admin-api/product-registration/list`;
|
|
117
|
-
|
|
118
|
-
return {
|
|
119
|
-
path: urlPath,
|
|
120
|
-
method: 'POST',
|
|
121
|
-
headers: headerParameters,
|
|
122
|
-
query: queryParameters,
|
|
123
|
-
body: IndexProductRegistrationRequestToJSON(requestParameters['indexProductRegistrationRequest']),
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Auto-generated: indexProductRegistration
|
|
129
|
-
*/
|
|
130
|
-
async indexProductRegistrationRaw(requestParameters: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationListResourceResponse>> {
|
|
131
|
-
const requestOptions = await this.indexProductRegistrationRequestOpts(requestParameters);
|
|
132
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
133
|
-
|
|
134
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductRegistrationListResourceResponseFromJSON(jsonValue));
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Auto-generated: indexProductRegistration
|
|
139
|
-
*/
|
|
140
|
-
async indexProductRegistration(requestParameters: IndexProductRegistrationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationListResourceResponse> {
|
|
141
|
-
const response = await this.indexProductRegistrationRaw(requestParameters, initOverrides);
|
|
142
|
-
return await response.value();
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Creates request options for listAssetsProductRegistration without sending the request
|
|
147
|
-
*/
|
|
148
|
-
async listAssetsProductRegistrationRequestOpts(requestParameters: ListAssetsProductRegistrationOperationRequest): Promise<runtime.RequestOpts> {
|
|
149
|
-
if (requestParameters['productRegistration'] == null) {
|
|
150
|
-
throw new runtime.RequiredError(
|
|
151
|
-
'productRegistration',
|
|
152
|
-
'Required parameter "productRegistration" was null or undefined when calling listAssetsProductRegistration().'
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
const queryParameters: any = {};
|
|
157
|
-
|
|
158
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
-
|
|
160
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
let urlPath = `/admin-api/product-registration/{productRegistration}/assets`;
|
|
164
|
-
urlPath = urlPath.replace(`{${"productRegistration"}}`, encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
165
|
-
|
|
166
|
-
return {
|
|
167
|
-
path: urlPath,
|
|
168
|
-
method: 'POST',
|
|
169
|
-
headers: headerParameters,
|
|
170
|
-
query: queryParameters,
|
|
171
|
-
body: ListAssetsProductRegistrationRequestToJSON(requestParameters['listAssetsProductRegistrationRequest']),
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Auto-generated: listAssetsProductRegistration
|
|
177
|
-
*/
|
|
178
|
-
async listAssetsProductRegistrationRaw(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationAssetResourceResponse>> {
|
|
179
|
-
const requestOptions = await this.listAssetsProductRegistrationRequestOpts(requestParameters);
|
|
180
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
181
|
-
|
|
182
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductRegistrationAssetResourceResponseFromJSON(jsonValue));
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Auto-generated: listAssetsProductRegistration
|
|
187
|
-
*/
|
|
188
|
-
async listAssetsProductRegistration(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationAssetResourceResponse> {
|
|
189
|
-
const response = await this.listAssetsProductRegistrationRaw(requestParameters, initOverrides);
|
|
190
|
-
return await response.value();
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Creates request options for showProductRegistration without sending the request
|
|
195
|
-
*/
|
|
196
|
-
async showProductRegistrationRequestOpts(requestParameters: ShowProductRegistrationRequest): Promise<runtime.RequestOpts> {
|
|
197
|
-
if (requestParameters['productRegistration'] == null) {
|
|
198
|
-
throw new runtime.RequiredError(
|
|
199
|
-
'productRegistration',
|
|
200
|
-
'Required parameter "productRegistration" was null or undefined when calling showProductRegistration().'
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const queryParameters: any = {};
|
|
205
|
-
|
|
206
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
let urlPath = `/admin-api/product-registration/{productRegistration}`;
|
|
210
|
-
urlPath = urlPath.replace(`{${"productRegistration"}}`, encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
211
|
-
|
|
212
|
-
return {
|
|
213
|
-
path: urlPath,
|
|
214
|
-
method: 'GET',
|
|
215
|
-
headers: headerParameters,
|
|
216
|
-
query: queryParameters,
|
|
217
|
-
};
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Auto-generated: showProductRegistration
|
|
222
|
-
*/
|
|
223
|
-
async showProductRegistrationRaw(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationResource>> {
|
|
224
|
-
const requestOptions = await this.showProductRegistrationRequestOpts(requestParameters);
|
|
225
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
226
|
-
|
|
227
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductRegistrationResourceFromJSON(jsonValue));
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Auto-generated: showProductRegistration
|
|
232
|
-
*/
|
|
233
|
-
async showProductRegistration(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationResource> {
|
|
234
|
-
const response = await this.showProductRegistrationRaw(requestParameters, initOverrides);
|
|
235
|
-
return await response.value();
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
}
|