@digital8/lighting-illusions-ts-sdk 0.0.1565 → 0.0.1567
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 +4 -40
- package/README.md +4 -26
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GlobalSearchProductResource.d.ts +0 -6
- package/dist/models/GlobalSearchProductResource.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/ModelAttributeFrontendResource.d.ts +38 -0
- package/dist/models/ModelAttributeFrontendResource.js +55 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -2
- package/dist/models/ProductRangeFrontendResource.d.ts +7 -0
- package/dist/models/ProductRangeFrontendResource.js +5 -0
- package/dist/models/ProductSearchResultResource.d.ts +0 -6
- package/dist/models/ProductSearchResultResource.js +0 -4
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/index.d.ts +2 -19
- package/dist/models/index.js +2 -19
- package/docs/GlobalSearchProductResource.md +0 -2
- package/docs/{ProductRegistrationAssetType.md → ModelAttributeFrontendResource.md} +8 -4
- package/docs/{ProductRegistrationResourceArrayResponse.md → ModelAttributeFrontendResourceArrayResponse.md} +5 -5
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductRangeFrontendResource.md +2 -0
- package/docs/ProductSearchResultResource.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GlobalSearchProductResource.ts +0 -9
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/ModelAttributeFrontendResource.ts +75 -0
- package/src/models/ModelAttributeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildListResource.ts +0 -8
- package/src/models/ProductRangeFrontendResource.ts +16 -0
- package/src/models/ProductSearchResultResource.ts +0 -9
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/index.ts +2 -19
- package/dist/apis/ProductRegistrationApi.d.ts +0 -95
- package/dist/apis/ProductRegistrationApi.js +0 -377
- package/dist/models/GetAllProductRegistrationRequest.d.ts +0 -88
- package/dist/models/GetAllProductRegistrationRequest.js +0 -80
- package/dist/models/IndexProductRegistrationRequest.d.ts +0 -131
- package/dist/models/IndexProductRegistrationRequest.js +0 -98
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +0 -103
- package/dist/models/ListAssetsProductRegistrationRequest.js +0 -83
- 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/ProductRegistrationCustomerResource.d.ts +0 -62
- package/dist/models/ProductRegistrationCustomerResource.js +0 -65
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationListResource.d.ts +0 -57
- package/dist/models/ProductRegistrationListResource.js +0 -64
- 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/ProductRegistrationProductChildResource.d.ts +0 -50
- package/dist/models/ProductRegistrationProductChildResource.js +0 -63
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationProductChildResourceArrayResponse.js +0 -50
- package/dist/models/ProductRegistrationResource.d.ts +0 -90
- package/dist/models/ProductRegistrationResource.js +0 -81
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductRegistrationResourceArrayResponse.js +0 -50
- package/docs/GetAllProductRegistrationRequest.md +0 -46
- package/docs/IndexProductRegistrationRequest.md +0 -58
- package/docs/ListAssetsProductRegistrationRequest.md +0 -52
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationListResourceResponse.md +0 -36
- package/docs/PaginatedProductRegistrationResourceResponse.md +0 -36
- package/docs/ProductRegistrationApi.md +0 -344
- package/docs/ProductRegistrationAssetResource.md +0 -38
- package/docs/ProductRegistrationAssetResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationCustomerResource.md +0 -44
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationListResource.md +0 -42
- package/docs/ProductRegistrationListResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationLiteResource.md +0 -36
- package/docs/ProductRegistrationLiteResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationProductChildResource.md +0 -40
- package/docs/ProductRegistrationProductChildResourceArrayResponse.md +0 -34
- package/docs/ProductRegistrationResource.md +0 -52
- package/src/apis/ProductRegistrationApi.ts +0 -297
- package/src/models/GetAllProductRegistrationRequest.ts +0 -137
- package/src/models/IndexProductRegistrationRequest.ts +0 -193
- 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/ProductRegistrationCustomerResource.ts +0 -108
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationListResource.ts +0 -108
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationLiteResource.ts +0 -74
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationProductChildResource.ts +0 -93
- package/src/models/ProductRegistrationProductChildResourceArrayResponse.ts +0 -73
- package/src/models/ProductRegistrationResource.ts +0 -171
- package/src/models/ProductRegistrationResourceArrayResponse.ts +0 -73
|
@@ -37,12 +37,6 @@ export interface ProductSearchResultResource {
|
|
|
37
37
|
* @memberof ProductSearchResultResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ProductSearchResultResource
|
|
44
|
-
*/
|
|
45
|
-
modelRaw: string;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
@@ -142,7 +136,6 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
142
136
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
143
137
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
144
138
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
145
|
-
if (!('modelRaw' in value) || value['modelRaw'] === undefined) return false;
|
|
146
139
|
if (!('barcode' in value) || value['barcode'] === undefined) return false;
|
|
147
140
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
148
141
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
@@ -173,7 +166,6 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
173
166
|
'id': json['id'],
|
|
174
167
|
'sku': json['sku'],
|
|
175
168
|
'model': json['model'],
|
|
176
|
-
'modelRaw': json['modelRaw'],
|
|
177
169
|
'barcode': json['barcode'],
|
|
178
170
|
'name': json['name'],
|
|
179
171
|
'slug': json['slug'],
|
|
@@ -206,7 +198,6 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
206
198
|
'id': value['id'],
|
|
207
199
|
'sku': value['sku'],
|
|
208
200
|
'model': value['model'],
|
|
209
|
-
'modelRaw': value['modelRaw'],
|
|
210
201
|
'barcode': value['barcode'],
|
|
211
202
|
'name': value['name'],
|
|
212
203
|
'slug': value['slug'],
|
|
@@ -72,7 +72,7 @@ export interface StoreFrontendResource {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof StoreFrontendResource
|
|
74
74
|
*/
|
|
75
|
-
tagLine
|
|
75
|
+
tagLine?: string | null;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {string}
|
|
@@ -103,7 +103,6 @@ export function instanceOfStoreFrontendResource(value: object): value is StoreFr
|
|
|
103
103
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
104
104
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
105
105
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
106
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
107
106
|
if (!('specialDates' in value) || value['specialDates'] === undefined) return false;
|
|
108
107
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
109
108
|
return true;
|
|
@@ -127,7 +126,7 @@ export function StoreFrontendResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
127
126
|
'address': json['address'] == null ? undefined : json['address'],
|
|
128
127
|
'latitude': json['latitude'],
|
|
129
128
|
'longitude': json['longitude'],
|
|
130
|
-
'tagLine': json['tagLine'],
|
|
129
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
131
130
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
132
131
|
'specialDates': json['specialDates'],
|
|
133
132
|
'suppliers': json['suppliers'],
|
|
@@ -89,7 +89,7 @@ export interface StoreResource {
|
|
|
89
89
|
* @type {string}
|
|
90
90
|
* @memberof StoreResource
|
|
91
91
|
*/
|
|
92
|
-
tagLine
|
|
92
|
+
tagLine: string;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
* @type {string}
|
|
@@ -131,6 +131,7 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
|
|
|
131
131
|
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
132
132
|
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
133
133
|
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
134
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
|
|
134
135
|
if (!('email' in value) || value['email'] === undefined) return false;
|
|
135
136
|
if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
|
|
136
137
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
@@ -154,7 +155,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
154
155
|
'phone': json['phone'],
|
|
155
156
|
'longitude': json['longitude'],
|
|
156
157
|
'latitude': json['latitude'],
|
|
157
|
-
'tagLine': json['tag_line']
|
|
158
|
+
'tagLine': json['tag_line'],
|
|
158
159
|
'email': json['email'],
|
|
159
160
|
'openingHours': json['opening_hours'] == null ? undefined : json['opening_hours'],
|
|
160
161
|
'suppliers': (json['suppliers'] == null ? null : (json['suppliers'] as Array<any>).map(SupplierLiteResourceFromJSON)),
|
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateFrontendResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateFrontendResource(value: object): value is StoreSpecialDateFrontendResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateFrontendResourceFromJSONTyped(json: any, ignoreD
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
package/src/models/index.ts
CHANGED
|
@@ -92,7 +92,6 @@ export * from './GetAllOverlayTemplateRequest';
|
|
|
92
92
|
export * from './GetAllProductCategoryRequest';
|
|
93
93
|
export * from './GetAllProductChildRequest';
|
|
94
94
|
export * from './GetAllProductRangeRequest';
|
|
95
|
-
export * from './GetAllProductRegistrationRequest';
|
|
96
95
|
export * from './GetAllProductRequest';
|
|
97
96
|
export * from './GetAllProductTypeRequest';
|
|
98
97
|
export * from './GetAllStoreRequest';
|
|
@@ -120,7 +119,6 @@ export * from './IndexOverlayTemplateRequest';
|
|
|
120
119
|
export * from './IndexProductCategoryRequest';
|
|
121
120
|
export * from './IndexProductChildRequest';
|
|
122
121
|
export * from './IndexProductRangeRequest';
|
|
123
|
-
export * from './IndexProductRegistrationRequest';
|
|
124
122
|
export * from './IndexProductRequest';
|
|
125
123
|
export * from './IndexProductTypeRequest';
|
|
126
124
|
export * from './IndexSiteNotificationRequest';
|
|
@@ -134,7 +132,8 @@ export * from './LabelLiteResource';
|
|
|
134
132
|
export * from './LabelLiteResourceArrayResponse';
|
|
135
133
|
export * from './LabelResource';
|
|
136
134
|
export * from './LabelResourceArrayResponse';
|
|
137
|
-
export * from './
|
|
135
|
+
export * from './ModelAttributeFrontendResource';
|
|
136
|
+
export * from './ModelAttributeFrontendResourceArrayResponse';
|
|
138
137
|
export * from './ModelAttributeListResource';
|
|
139
138
|
export * from './ModelAttributeListResourceArrayResponse';
|
|
140
139
|
export * from './ModelAttributeResource';
|
|
@@ -181,9 +180,6 @@ export * from './PaginatedProductRangeListResourceResponse';
|
|
|
181
180
|
export * from './PaginatedProductRangeLiteResourceResponse';
|
|
182
181
|
export * from './PaginatedProductRangeResourceResponse';
|
|
183
182
|
export * from './PaginatedProductRangeSearchResultResourceResponse';
|
|
184
|
-
export * from './PaginatedProductRegistrationAssetResourceResponse';
|
|
185
|
-
export * from './PaginatedProductRegistrationListResourceResponse';
|
|
186
|
-
export * from './PaginatedProductRegistrationResourceResponse';
|
|
187
183
|
export * from './PaginatedProductResourceResponse';
|
|
188
184
|
export * from './PaginatedProductSearchResultResourceResponse';
|
|
189
185
|
export * from './PaginatedProductTypeListResourceResponse';
|
|
@@ -266,19 +262,6 @@ export * from './ProductRangeSiteDetailResource';
|
|
|
266
262
|
export * from './ProductRangeSiteDetailResourceArrayResponse';
|
|
267
263
|
export * from './ProductRangeSortBy';
|
|
268
264
|
export * from './ProductRating';
|
|
269
|
-
export * from './ProductRegistrationAssetResource';
|
|
270
|
-
export * from './ProductRegistrationAssetResourceArrayResponse';
|
|
271
|
-
export * from './ProductRegistrationAssetType';
|
|
272
|
-
export * from './ProductRegistrationCustomerResource';
|
|
273
|
-
export * from './ProductRegistrationCustomerResourceArrayResponse';
|
|
274
|
-
export * from './ProductRegistrationListResource';
|
|
275
|
-
export * from './ProductRegistrationListResourceArrayResponse';
|
|
276
|
-
export * from './ProductRegistrationLiteResource';
|
|
277
|
-
export * from './ProductRegistrationLiteResourceArrayResponse';
|
|
278
|
-
export * from './ProductRegistrationProductChildResource';
|
|
279
|
-
export * from './ProductRegistrationProductChildResourceArrayResponse';
|
|
280
|
-
export * from './ProductRegistrationResource';
|
|
281
|
-
export * from './ProductRegistrationResourceArrayResponse';
|
|
282
265
|
export * from './ProductResource';
|
|
283
266
|
export * from './ProductResourceArrayResponse';
|
|
284
267
|
export * from './ProductSearchResponseResource';
|
|
@@ -1,95 +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 * as runtime from '../runtime';
|
|
13
|
-
import type { GetAllProductRegistrationRequest, IndexProductChildRequest, IndexProductRegistrationRequest, ListAssetsProductRegistrationRequest, PaginatedProductChildListResourceResponse, PaginatedProductRegistrationAssetResourceResponse, PaginatedProductRegistrationListResourceResponse, ProductRegistrationLiteResourceArrayResponse, ProductRegistrationResource } from '../models/index';
|
|
14
|
-
export interface GetAllProductRegistrationOperationRequest {
|
|
15
|
-
getAllProductRegistrationRequest?: GetAllProductRegistrationRequest;
|
|
16
|
-
}
|
|
17
|
-
export interface IndexProductRegistrationOperationRequest {
|
|
18
|
-
indexProductRegistrationRequest?: IndexProductRegistrationRequest;
|
|
19
|
-
}
|
|
20
|
-
export interface ListAssetsProductRegistrationOperationRequest {
|
|
21
|
-
productRegistration: number;
|
|
22
|
-
listAssetsProductRegistrationRequest?: ListAssetsProductRegistrationRequest;
|
|
23
|
-
}
|
|
24
|
-
export interface ListProductsProductRegistrationRequest {
|
|
25
|
-
productRegistration: number;
|
|
26
|
-
indexProductChildRequest?: IndexProductChildRequest;
|
|
27
|
-
}
|
|
28
|
-
export interface ShowProductRegistrationRequest {
|
|
29
|
-
productRegistration: number;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
export declare class ProductRegistrationApi extends runtime.BaseAPI {
|
|
35
|
-
/**
|
|
36
|
-
* Creates request options for getAllProductRegistration without sending the request
|
|
37
|
-
*/
|
|
38
|
-
getAllProductRegistrationRequestOpts(requestParameters: GetAllProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
39
|
-
/**
|
|
40
|
-
* Auto-generated: getAllProductRegistration
|
|
41
|
-
*/
|
|
42
|
-
getAllProductRegistrationRaw(requestParameters: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationLiteResourceArrayResponse>>;
|
|
43
|
-
/**
|
|
44
|
-
* Auto-generated: getAllProductRegistration
|
|
45
|
-
*/
|
|
46
|
-
getAllProductRegistration(requestParameters?: GetAllProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationLiteResourceArrayResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Creates request options for indexProductRegistration without sending the request
|
|
49
|
-
*/
|
|
50
|
-
indexProductRegistrationRequestOpts(requestParameters: IndexProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
51
|
-
/**
|
|
52
|
-
* Auto-generated: indexProductRegistration
|
|
53
|
-
*/
|
|
54
|
-
indexProductRegistrationRaw(requestParameters: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationListResourceResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* Auto-generated: indexProductRegistration
|
|
57
|
-
*/
|
|
58
|
-
indexProductRegistration(requestParameters?: IndexProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationListResourceResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* Creates request options for listAssetsProductRegistration without sending the request
|
|
61
|
-
*/
|
|
62
|
-
listAssetsProductRegistrationRequestOpts(requestParameters: ListAssetsProductRegistrationOperationRequest): Promise<runtime.RequestOpts>;
|
|
63
|
-
/**
|
|
64
|
-
* Auto-generated: listAssetsProductRegistration
|
|
65
|
-
*/
|
|
66
|
-
listAssetsProductRegistrationRaw(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductRegistrationAssetResourceResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Auto-generated: listAssetsProductRegistration
|
|
69
|
-
*/
|
|
70
|
-
listAssetsProductRegistration(requestParameters: ListAssetsProductRegistrationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductRegistrationAssetResourceResponse>;
|
|
71
|
-
/**
|
|
72
|
-
* Creates request options for listProductsProductRegistration without sending the request
|
|
73
|
-
*/
|
|
74
|
-
listProductsProductRegistrationRequestOpts(requestParameters: ListProductsProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
75
|
-
/**
|
|
76
|
-
* Auto-generated: listProductsProductRegistration
|
|
77
|
-
*/
|
|
78
|
-
listProductsProductRegistrationRaw(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>>;
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: listProductsProductRegistration
|
|
81
|
-
*/
|
|
82
|
-
listProductsProductRegistration(requestParameters: ListProductsProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse>;
|
|
83
|
-
/**
|
|
84
|
-
* Creates request options for showProductRegistration without sending the request
|
|
85
|
-
*/
|
|
86
|
-
showProductRegistrationRequestOpts(requestParameters: ShowProductRegistrationRequest): Promise<runtime.RequestOpts>;
|
|
87
|
-
/**
|
|
88
|
-
* Auto-generated: showProductRegistration
|
|
89
|
-
*/
|
|
90
|
-
showProductRegistrationRaw(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductRegistrationResource>>;
|
|
91
|
-
/**
|
|
92
|
-
* Auto-generated: showProductRegistration
|
|
93
|
-
*/
|
|
94
|
-
showProductRegistration(requestParameters: ShowProductRegistrationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductRegistrationResource>;
|
|
95
|
-
}
|
|
@@ -1,377 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.ProductRegistrationApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var ProductRegistrationApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(ProductRegistrationApi, _super);
|
|
75
|
-
function ProductRegistrationApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Creates request options for getAllProductRegistration without sending the request
|
|
80
|
-
*/
|
|
81
|
-
ProductRegistrationApi.prototype.getAllProductRegistrationRequestOpts = function (requestParameters) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
queryParameters = {};
|
|
86
|
-
headerParameters = {};
|
|
87
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
-
urlPath = "/admin-api/product-registration/all";
|
|
89
|
-
return [2 /*return*/, {
|
|
90
|
-
path: urlPath,
|
|
91
|
-
method: 'POST',
|
|
92
|
-
headers: headerParameters,
|
|
93
|
-
query: queryParameters,
|
|
94
|
-
body: (0, index_1.GetAllProductRegistrationRequestToJSON)(requestParameters['getAllProductRegistrationRequest']),
|
|
95
|
-
}];
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Auto-generated: getAllProductRegistration
|
|
101
|
-
*/
|
|
102
|
-
ProductRegistrationApi.prototype.getAllProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
104
|
-
var requestOptions, response;
|
|
105
|
-
return __generator(this, function (_a) {
|
|
106
|
-
switch (_a.label) {
|
|
107
|
-
case 0: return [4 /*yield*/, this.getAllProductRegistrationRequestOpts(requestParameters)];
|
|
108
|
-
case 1:
|
|
109
|
-
requestOptions = _a.sent();
|
|
110
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
-
case 2:
|
|
112
|
-
response = _a.sent();
|
|
113
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
};
|
|
118
|
-
/**
|
|
119
|
-
* Auto-generated: getAllProductRegistration
|
|
120
|
-
*/
|
|
121
|
-
ProductRegistrationApi.prototype.getAllProductRegistration = function () {
|
|
122
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
123
|
-
var response;
|
|
124
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
125
|
-
return __generator(this, function (_a) {
|
|
126
|
-
switch (_a.label) {
|
|
127
|
-
case 0: return [4 /*yield*/, this.getAllProductRegistrationRaw(requestParameters, initOverrides)];
|
|
128
|
-
case 1:
|
|
129
|
-
response = _a.sent();
|
|
130
|
-
return [4 /*yield*/, response.value()];
|
|
131
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Creates request options for indexProductRegistration without sending the request
|
|
138
|
-
*/
|
|
139
|
-
ProductRegistrationApi.prototype.indexProductRegistrationRequestOpts = function (requestParameters) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
-
var queryParameters, headerParameters, urlPath;
|
|
142
|
-
return __generator(this, function (_a) {
|
|
143
|
-
queryParameters = {};
|
|
144
|
-
headerParameters = {};
|
|
145
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
146
|
-
urlPath = "/admin-api/product-registration/list";
|
|
147
|
-
return [2 /*return*/, {
|
|
148
|
-
path: urlPath,
|
|
149
|
-
method: 'POST',
|
|
150
|
-
headers: headerParameters,
|
|
151
|
-
query: queryParameters,
|
|
152
|
-
body: (0, index_1.IndexProductRegistrationRequestToJSON)(requestParameters['indexProductRegistrationRequest']),
|
|
153
|
-
}];
|
|
154
|
-
});
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
|
-
/**
|
|
158
|
-
* Auto-generated: indexProductRegistration
|
|
159
|
-
*/
|
|
160
|
-
ProductRegistrationApi.prototype.indexProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
161
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
162
|
-
var requestOptions, response;
|
|
163
|
-
return __generator(this, function (_a) {
|
|
164
|
-
switch (_a.label) {
|
|
165
|
-
case 0: return [4 /*yield*/, this.indexProductRegistrationRequestOpts(requestParameters)];
|
|
166
|
-
case 1:
|
|
167
|
-
requestOptions = _a.sent();
|
|
168
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
169
|
-
case 2:
|
|
170
|
-
response = _a.sent();
|
|
171
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationListResourceResponseFromJSON)(jsonValue); })];
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
};
|
|
176
|
-
/**
|
|
177
|
-
* Auto-generated: indexProductRegistration
|
|
178
|
-
*/
|
|
179
|
-
ProductRegistrationApi.prototype.indexProductRegistration = function () {
|
|
180
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
181
|
-
var response;
|
|
182
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
183
|
-
return __generator(this, function (_a) {
|
|
184
|
-
switch (_a.label) {
|
|
185
|
-
case 0: return [4 /*yield*/, this.indexProductRegistrationRaw(requestParameters, initOverrides)];
|
|
186
|
-
case 1:
|
|
187
|
-
response = _a.sent();
|
|
188
|
-
return [4 /*yield*/, response.value()];
|
|
189
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Creates request options for listAssetsProductRegistration without sending the request
|
|
196
|
-
*/
|
|
197
|
-
ProductRegistrationApi.prototype.listAssetsProductRegistrationRequestOpts = function (requestParameters) {
|
|
198
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
-
var queryParameters, headerParameters, urlPath;
|
|
200
|
-
return __generator(this, function (_a) {
|
|
201
|
-
if (requestParameters['productRegistration'] == null) {
|
|
202
|
-
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling listAssetsProductRegistration().');
|
|
203
|
-
}
|
|
204
|
-
queryParameters = {};
|
|
205
|
-
headerParameters = {};
|
|
206
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
207
|
-
urlPath = "/admin-api/product-registration/{productRegistration}/assets";
|
|
208
|
-
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
209
|
-
return [2 /*return*/, {
|
|
210
|
-
path: urlPath,
|
|
211
|
-
method: 'POST',
|
|
212
|
-
headers: headerParameters,
|
|
213
|
-
query: queryParameters,
|
|
214
|
-
body: (0, index_1.ListAssetsProductRegistrationRequestToJSON)(requestParameters['listAssetsProductRegistrationRequest']),
|
|
215
|
-
}];
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
};
|
|
219
|
-
/**
|
|
220
|
-
* Auto-generated: listAssetsProductRegistration
|
|
221
|
-
*/
|
|
222
|
-
ProductRegistrationApi.prototype.listAssetsProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
223
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
224
|
-
var requestOptions, response;
|
|
225
|
-
return __generator(this, function (_a) {
|
|
226
|
-
switch (_a.label) {
|
|
227
|
-
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRequestOpts(requestParameters)];
|
|
228
|
-
case 1:
|
|
229
|
-
requestOptions = _a.sent();
|
|
230
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
231
|
-
case 2:
|
|
232
|
-
response = _a.sent();
|
|
233
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationAssetResourceResponseFromJSON)(jsonValue); })];
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
};
|
|
238
|
-
/**
|
|
239
|
-
* Auto-generated: listAssetsProductRegistration
|
|
240
|
-
*/
|
|
241
|
-
ProductRegistrationApi.prototype.listAssetsProductRegistration = function (requestParameters, initOverrides) {
|
|
242
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
243
|
-
var response;
|
|
244
|
-
return __generator(this, function (_a) {
|
|
245
|
-
switch (_a.label) {
|
|
246
|
-
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRaw(requestParameters, initOverrides)];
|
|
247
|
-
case 1:
|
|
248
|
-
response = _a.sent();
|
|
249
|
-
return [4 /*yield*/, response.value()];
|
|
250
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
});
|
|
254
|
-
};
|
|
255
|
-
/**
|
|
256
|
-
* Creates request options for listProductsProductRegistration without sending the request
|
|
257
|
-
*/
|
|
258
|
-
ProductRegistrationApi.prototype.listProductsProductRegistrationRequestOpts = function (requestParameters) {
|
|
259
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
260
|
-
var queryParameters, headerParameters, urlPath;
|
|
261
|
-
return __generator(this, function (_a) {
|
|
262
|
-
if (requestParameters['productRegistration'] == null) {
|
|
263
|
-
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling listProductsProductRegistration().');
|
|
264
|
-
}
|
|
265
|
-
queryParameters = {};
|
|
266
|
-
headerParameters = {};
|
|
267
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
268
|
-
urlPath = "/admin-api/product-registration/{productRegistration}/product/list";
|
|
269
|
-
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
270
|
-
return [2 /*return*/, {
|
|
271
|
-
path: urlPath,
|
|
272
|
-
method: 'POST',
|
|
273
|
-
headers: headerParameters,
|
|
274
|
-
query: queryParameters,
|
|
275
|
-
body: (0, index_1.IndexProductChildRequestToJSON)(requestParameters['indexProductChildRequest']),
|
|
276
|
-
}];
|
|
277
|
-
});
|
|
278
|
-
});
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* Auto-generated: listProductsProductRegistration
|
|
282
|
-
*/
|
|
283
|
-
ProductRegistrationApi.prototype.listProductsProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
284
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
-
var requestOptions, response;
|
|
286
|
-
return __generator(this, function (_a) {
|
|
287
|
-
switch (_a.label) {
|
|
288
|
-
case 0: return [4 /*yield*/, this.listProductsProductRegistrationRequestOpts(requestParameters)];
|
|
289
|
-
case 1:
|
|
290
|
-
requestOptions = _a.sent();
|
|
291
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
292
|
-
case 2:
|
|
293
|
-
response = _a.sent();
|
|
294
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductChildListResourceResponseFromJSON)(jsonValue); })];
|
|
295
|
-
}
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
};
|
|
299
|
-
/**
|
|
300
|
-
* Auto-generated: listProductsProductRegistration
|
|
301
|
-
*/
|
|
302
|
-
ProductRegistrationApi.prototype.listProductsProductRegistration = function (requestParameters, initOverrides) {
|
|
303
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
-
var response;
|
|
305
|
-
return __generator(this, function (_a) {
|
|
306
|
-
switch (_a.label) {
|
|
307
|
-
case 0: return [4 /*yield*/, this.listProductsProductRegistrationRaw(requestParameters, initOverrides)];
|
|
308
|
-
case 1:
|
|
309
|
-
response = _a.sent();
|
|
310
|
-
return [4 /*yield*/, response.value()];
|
|
311
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
312
|
-
}
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
};
|
|
316
|
-
/**
|
|
317
|
-
* Creates request options for showProductRegistration without sending the request
|
|
318
|
-
*/
|
|
319
|
-
ProductRegistrationApi.prototype.showProductRegistrationRequestOpts = function (requestParameters) {
|
|
320
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
321
|
-
var queryParameters, headerParameters, urlPath;
|
|
322
|
-
return __generator(this, function (_a) {
|
|
323
|
-
if (requestParameters['productRegistration'] == null) {
|
|
324
|
-
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling showProductRegistration().');
|
|
325
|
-
}
|
|
326
|
-
queryParameters = {};
|
|
327
|
-
headerParameters = {};
|
|
328
|
-
urlPath = "/admin-api/product-registration/{productRegistration}";
|
|
329
|
-
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
330
|
-
return [2 /*return*/, {
|
|
331
|
-
path: urlPath,
|
|
332
|
-
method: 'GET',
|
|
333
|
-
headers: headerParameters,
|
|
334
|
-
query: queryParameters,
|
|
335
|
-
}];
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
};
|
|
339
|
-
/**
|
|
340
|
-
* Auto-generated: showProductRegistration
|
|
341
|
-
*/
|
|
342
|
-
ProductRegistrationApi.prototype.showProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
343
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
344
|
-
var requestOptions, response;
|
|
345
|
-
return __generator(this, function (_a) {
|
|
346
|
-
switch (_a.label) {
|
|
347
|
-
case 0: return [4 /*yield*/, this.showProductRegistrationRequestOpts(requestParameters)];
|
|
348
|
-
case 1:
|
|
349
|
-
requestOptions = _a.sent();
|
|
350
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
351
|
-
case 2:
|
|
352
|
-
response = _a.sent();
|
|
353
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationResourceFromJSON)(jsonValue); })];
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
});
|
|
357
|
-
};
|
|
358
|
-
/**
|
|
359
|
-
* Auto-generated: showProductRegistration
|
|
360
|
-
*/
|
|
361
|
-
ProductRegistrationApi.prototype.showProductRegistration = function (requestParameters, initOverrides) {
|
|
362
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
363
|
-
var response;
|
|
364
|
-
return __generator(this, function (_a) {
|
|
365
|
-
switch (_a.label) {
|
|
366
|
-
case 0: return [4 /*yield*/, this.showProductRegistrationRaw(requestParameters, initOverrides)];
|
|
367
|
-
case 1:
|
|
368
|
-
response = _a.sent();
|
|
369
|
-
return [4 /*yield*/, response.value()];
|
|
370
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
};
|
|
375
|
-
return ProductRegistrationApi;
|
|
376
|
-
}(runtime.BaseAPI));
|
|
377
|
-
exports.ProductRegistrationApi = ProductRegistrationApi;
|