yellowgrid-api-ts 3.0.84-dev.0 → 3.0.86-dev.0
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 +1 -0
- package/README.md +3 -2
- package/api.ts +176 -175
- package/dist/api.d.ts +109 -94
- package/dist/api.js +162 -188
- package/docs/AdminOrderRequestDTO.md +2 -0
- package/docs/PostGetProductForCustomerRequest.md +24 -0
- package/docs/ProductsApi.md +79 -89
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PostGetProductForCustomerRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**quantity** | **number** | Quantity | [optional] [default to undefined]
|
|
9
|
+
**licenceKey** | **string** | 3CX Licence Key | [optional] [default to undefined]
|
|
10
|
+
**hosting** | **boolean** | 3CX Hosting | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { PostGetProductForCustomerRequest } from 'yellowgrid-api-ts';
|
|
16
|
+
|
|
17
|
+
const instance: PostGetProductForCustomerRequest = {
|
|
18
|
+
quantity,
|
|
19
|
+
licenceKey,
|
|
20
|
+
hosting,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/ProductsApi.md
CHANGED
|
@@ -6,12 +6,12 @@ All URIs are relative to *http://api.yellowgrid.local*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**getGetAttributeSets**](#getgetattributesets) | **GET** /products/attributes | Get Attribute Sets|
|
|
8
8
|
|[**getGetLegacyStockList**](#getgetlegacystocklist) | **GET** /products/stock/legacy | Get Current Stock & Pricing|
|
|
9
|
-
|[**getGetProduct**](#getgetproduct) | **GET** /products/{sku} | Get Product|
|
|
10
|
-
|[**getGetProductForCustomer**](#getgetproductforcustomer) | **GET** /admin/products/{sku} | Get Product For Customer|
|
|
11
9
|
|[**getGetProducts**](#getgetproducts) | **GET** /products | Get Products|
|
|
12
10
|
|[**getGetStockList**](#getgetstocklist) | **GET** /products/stock | Get Current Stock & Pricing|
|
|
13
11
|
|[**getGetTcxTemplates**](#getgettcxtemplates) | **GET** /products/attributes/tcx/templates | Get 3CX Templates|
|
|
14
12
|
|[**getSearchProducts**](#getsearchproducts) | **GET** /products/search | Search Products|
|
|
13
|
+
|[**postGetProduct**](#postgetproduct) | **POST** /products/{sku} | Get Product|
|
|
14
|
+
|[**postGetProductForCustomer**](#postgetproductforcustomer) | **POST** /admin/products/{sku} | Get Product For Customer|
|
|
15
15
|
|
|
16
16
|
# **getGetAttributeSets**
|
|
17
17
|
> Array<AttributeSetEnum> getGetAttributeSets()
|
|
@@ -114,10 +114,10 @@ No authorization required
|
|
|
114
114
|
|
|
115
115
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
116
116
|
|
|
117
|
-
# **
|
|
118
|
-
>
|
|
117
|
+
# **getGetProducts**
|
|
118
|
+
> Array<BasicProductDTO> getGetProducts()
|
|
119
119
|
|
|
120
|
-
Get
|
|
120
|
+
Get Products
|
|
121
121
|
|
|
122
122
|
### Example
|
|
123
123
|
|
|
@@ -130,32 +130,16 @@ import {
|
|
|
130
130
|
const configuration = new Configuration();
|
|
131
131
|
const apiInstance = new ProductsApi(configuration);
|
|
132
132
|
|
|
133
|
-
|
|
134
|
-
let quantity: number; //Quantity (optional) (default to undefined)
|
|
135
|
-
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
136
|
-
let hosting: boolean; //3CX Hosting (optional) (default to undefined)
|
|
137
|
-
|
|
138
|
-
const { status, data } = await apiInstance.getGetProduct(
|
|
139
|
-
sku,
|
|
140
|
-
quantity,
|
|
141
|
-
licenceKey,
|
|
142
|
-
hosting
|
|
143
|
-
);
|
|
133
|
+
const { status, data } = await apiInstance.getGetProducts();
|
|
144
134
|
```
|
|
145
135
|
|
|
146
136
|
### Parameters
|
|
147
|
-
|
|
148
|
-
|Name | Type | Description | Notes|
|
|
149
|
-
|------------- | ------------- | ------------- | -------------|
|
|
150
|
-
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
151
|
-
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
152
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
153
|
-
| **hosting** | [**boolean**] | 3CX Hosting | (optional) defaults to undefined|
|
|
137
|
+
This endpoint does not have any parameters.
|
|
154
138
|
|
|
155
139
|
|
|
156
140
|
### Return type
|
|
157
141
|
|
|
158
|
-
**
|
|
142
|
+
**Array<BasicProductDTO>**
|
|
159
143
|
|
|
160
144
|
### Authorization
|
|
161
145
|
|
|
@@ -170,17 +154,17 @@ No authorization required
|
|
|
170
154
|
### HTTP response details
|
|
171
155
|
| Status code | Description | Response headers |
|
|
172
156
|
|-------------|-------------|------------------|
|
|
173
|
-
|**200** |
|
|
157
|
+
|**200** | Products | - |
|
|
174
158
|
|**400** | Bad Request | - |
|
|
175
159
|
|**401** | Unauthorised | - |
|
|
176
160
|
|**403** | Access Denied | - |
|
|
177
161
|
|
|
178
162
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
179
163
|
|
|
180
|
-
# **
|
|
181
|
-
>
|
|
164
|
+
# **getGetStockList**
|
|
165
|
+
> Array<PriceListItemModel> getGetStockList()
|
|
182
166
|
|
|
183
|
-
Get
|
|
167
|
+
Get Current Stock & Pricing
|
|
184
168
|
|
|
185
169
|
### Example
|
|
186
170
|
|
|
@@ -193,35 +177,16 @@ import {
|
|
|
193
177
|
const configuration = new Configuration();
|
|
194
178
|
const apiInstance = new ProductsApi(configuration);
|
|
195
179
|
|
|
196
|
-
|
|
197
|
-
let sku: string; //Product SKU (default to undefined)
|
|
198
|
-
let quantity: number; //Quantity (optional) (default to undefined)
|
|
199
|
-
let licenceKey: string; //3CX Licence Key (optional) (default to undefined)
|
|
200
|
-
let hosting: boolean; //3CX Hosting (optional) (default to undefined)
|
|
201
|
-
|
|
202
|
-
const { status, data } = await apiInstance.getGetProductForCustomer(
|
|
203
|
-
customerId,
|
|
204
|
-
sku,
|
|
205
|
-
quantity,
|
|
206
|
-
licenceKey,
|
|
207
|
-
hosting
|
|
208
|
-
);
|
|
180
|
+
const { status, data } = await apiInstance.getGetStockList();
|
|
209
181
|
```
|
|
210
182
|
|
|
211
183
|
### Parameters
|
|
212
|
-
|
|
213
|
-
|Name | Type | Description | Notes|
|
|
214
|
-
|------------- | ------------- | ------------- | -------------|
|
|
215
|
-
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
216
|
-
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
217
|
-
| **quantity** | [**number**] | Quantity | (optional) defaults to undefined|
|
|
218
|
-
| **licenceKey** | [**string**] | 3CX Licence Key | (optional) defaults to undefined|
|
|
219
|
-
| **hosting** | [**boolean**] | 3CX Hosting | (optional) defaults to undefined|
|
|
184
|
+
This endpoint does not have any parameters.
|
|
220
185
|
|
|
221
186
|
|
|
222
187
|
### Return type
|
|
223
188
|
|
|
224
|
-
**
|
|
189
|
+
**Array<PriceListItemModel>**
|
|
225
190
|
|
|
226
191
|
### Authorization
|
|
227
192
|
|
|
@@ -236,17 +201,17 @@ No authorization required
|
|
|
236
201
|
### HTTP response details
|
|
237
202
|
| Status code | Description | Response headers |
|
|
238
203
|
|-------------|-------------|------------------|
|
|
239
|
-
|**200** |
|
|
204
|
+
|**200** | Products | - |
|
|
240
205
|
|**400** | Bad Request | - |
|
|
241
206
|
|**401** | Unauthorised | - |
|
|
242
207
|
|**403** | Access Denied | - |
|
|
243
208
|
|
|
244
209
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
245
210
|
|
|
246
|
-
# **
|
|
247
|
-
> Array<
|
|
211
|
+
# **getGetTcxTemplates**
|
|
212
|
+
> Array<TcxTemplateXmlEnum> getGetTcxTemplates()
|
|
248
213
|
|
|
249
|
-
Get
|
|
214
|
+
Get 3CX Templates
|
|
250
215
|
|
|
251
216
|
### Example
|
|
252
217
|
|
|
@@ -259,7 +224,7 @@ import {
|
|
|
259
224
|
const configuration = new Configuration();
|
|
260
225
|
const apiInstance = new ProductsApi(configuration);
|
|
261
226
|
|
|
262
|
-
const { status, data } = await apiInstance.
|
|
227
|
+
const { status, data } = await apiInstance.getGetTcxTemplates();
|
|
263
228
|
```
|
|
264
229
|
|
|
265
230
|
### Parameters
|
|
@@ -268,7 +233,7 @@ This endpoint does not have any parameters.
|
|
|
268
233
|
|
|
269
234
|
### Return type
|
|
270
235
|
|
|
271
|
-
**Array<
|
|
236
|
+
**Array<TcxTemplateXmlEnum>**
|
|
272
237
|
|
|
273
238
|
### Authorization
|
|
274
239
|
|
|
@@ -283,17 +248,17 @@ No authorization required
|
|
|
283
248
|
### HTTP response details
|
|
284
249
|
| Status code | Description | Response headers |
|
|
285
250
|
|-------------|-------------|------------------|
|
|
286
|
-
|**200** |
|
|
251
|
+
|**200** | 3CX Templates | - |
|
|
287
252
|
|**400** | Bad Request | - |
|
|
288
253
|
|**401** | Unauthorised | - |
|
|
289
254
|
|**403** | Access Denied | - |
|
|
290
255
|
|
|
291
256
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
292
257
|
|
|
293
|
-
# **
|
|
294
|
-
>
|
|
258
|
+
# **getSearchProducts**
|
|
259
|
+
> ProductSearchResultsModel getSearchProducts()
|
|
295
260
|
|
|
296
|
-
|
|
261
|
+
Search Products
|
|
297
262
|
|
|
298
263
|
### Example
|
|
299
264
|
|
|
@@ -306,16 +271,29 @@ import {
|
|
|
306
271
|
const configuration = new Configuration();
|
|
307
272
|
const apiInstance = new ProductsApi(configuration);
|
|
308
273
|
|
|
309
|
-
|
|
274
|
+
let pageSize: number; //Number Of Results (optional) (default to 20)
|
|
275
|
+
let page: number; //Page Number (optional) (default to 1)
|
|
276
|
+
let search: string; //Search (optional) (default to undefined)
|
|
277
|
+
|
|
278
|
+
const { status, data } = await apiInstance.getSearchProducts(
|
|
279
|
+
pageSize,
|
|
280
|
+
page,
|
|
281
|
+
search
|
|
282
|
+
);
|
|
310
283
|
```
|
|
311
284
|
|
|
312
285
|
### Parameters
|
|
313
|
-
|
|
286
|
+
|
|
287
|
+
|Name | Type | Description | Notes|
|
|
288
|
+
|------------- | ------------- | ------------- | -------------|
|
|
289
|
+
| **pageSize** | [**number**] | Number Of Results | (optional) defaults to 20|
|
|
290
|
+
| **page** | [**number**] | Page Number | (optional) defaults to 1|
|
|
291
|
+
| **search** | [**string**] | Search | (optional) defaults to undefined|
|
|
314
292
|
|
|
315
293
|
|
|
316
294
|
### Return type
|
|
317
295
|
|
|
318
|
-
**
|
|
296
|
+
**ProductSearchResultsModel**
|
|
319
297
|
|
|
320
298
|
### Authorization
|
|
321
299
|
|
|
@@ -337,32 +315,43 @@ No authorization required
|
|
|
337
315
|
|
|
338
316
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
339
317
|
|
|
340
|
-
# **
|
|
341
|
-
>
|
|
318
|
+
# **postGetProduct**
|
|
319
|
+
> ProductSummaryDTO postGetProduct(postGetProductForCustomerRequest)
|
|
342
320
|
|
|
343
|
-
Get
|
|
321
|
+
Get Product
|
|
344
322
|
|
|
345
323
|
### Example
|
|
346
324
|
|
|
347
325
|
```typescript
|
|
348
326
|
import {
|
|
349
327
|
ProductsApi,
|
|
350
|
-
Configuration
|
|
328
|
+
Configuration,
|
|
329
|
+
PostGetProductForCustomerRequest
|
|
351
330
|
} from 'yellowgrid-api-ts';
|
|
352
331
|
|
|
353
332
|
const configuration = new Configuration();
|
|
354
333
|
const apiInstance = new ProductsApi(configuration);
|
|
355
334
|
|
|
356
|
-
|
|
335
|
+
let sku: string; //Product SKU (default to undefined)
|
|
336
|
+
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
337
|
+
|
|
338
|
+
const { status, data } = await apiInstance.postGetProduct(
|
|
339
|
+
sku,
|
|
340
|
+
postGetProductForCustomerRequest
|
|
341
|
+
);
|
|
357
342
|
```
|
|
358
343
|
|
|
359
344
|
### Parameters
|
|
360
|
-
|
|
345
|
+
|
|
346
|
+
|Name | Type | Description | Notes|
|
|
347
|
+
|------------- | ------------- | ------------- | -------------|
|
|
348
|
+
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
349
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
361
350
|
|
|
362
351
|
|
|
363
352
|
### Return type
|
|
364
353
|
|
|
365
|
-
**
|
|
354
|
+
**ProductSummaryDTO**
|
|
366
355
|
|
|
367
356
|
### Authorization
|
|
368
357
|
|
|
@@ -370,44 +359,45 @@ No authorization required
|
|
|
370
359
|
|
|
371
360
|
### HTTP request headers
|
|
372
361
|
|
|
373
|
-
- **Content-Type**:
|
|
362
|
+
- **Content-Type**: application/json
|
|
374
363
|
- **Accept**: application/json
|
|
375
364
|
|
|
376
365
|
|
|
377
366
|
### HTTP response details
|
|
378
367
|
| Status code | Description | Response headers |
|
|
379
368
|
|-------------|-------------|------------------|
|
|
380
|
-
|**200** |
|
|
369
|
+
|**200** | Product | - |
|
|
381
370
|
|**400** | Bad Request | - |
|
|
382
371
|
|**401** | Unauthorised | - |
|
|
383
372
|
|**403** | Access Denied | - |
|
|
384
373
|
|
|
385
374
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
386
375
|
|
|
387
|
-
# **
|
|
388
|
-
>
|
|
376
|
+
# **postGetProductForCustomer**
|
|
377
|
+
> ProductSummaryDTO postGetProductForCustomer(postGetProductForCustomerRequest)
|
|
389
378
|
|
|
390
|
-
|
|
379
|
+
Get Product For Customer
|
|
391
380
|
|
|
392
381
|
### Example
|
|
393
382
|
|
|
394
383
|
```typescript
|
|
395
384
|
import {
|
|
396
385
|
ProductsApi,
|
|
397
|
-
Configuration
|
|
386
|
+
Configuration,
|
|
387
|
+
PostGetProductForCustomerRequest
|
|
398
388
|
} from 'yellowgrid-api-ts';
|
|
399
389
|
|
|
400
390
|
const configuration = new Configuration();
|
|
401
391
|
const apiInstance = new ProductsApi(configuration);
|
|
402
392
|
|
|
403
|
-
let
|
|
404
|
-
let
|
|
405
|
-
let
|
|
393
|
+
let customerId: number; //Customer ID (default to undefined)
|
|
394
|
+
let sku: string; //Product SKU (default to undefined)
|
|
395
|
+
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
406
396
|
|
|
407
|
-
const { status, data } = await apiInstance.
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
397
|
+
const { status, data } = await apiInstance.postGetProductForCustomer(
|
|
398
|
+
customerId,
|
|
399
|
+
sku,
|
|
400
|
+
postGetProductForCustomerRequest
|
|
411
401
|
);
|
|
412
402
|
```
|
|
413
403
|
|
|
@@ -415,14 +405,14 @@ const { status, data } = await apiInstance.getSearchProducts(
|
|
|
415
405
|
|
|
416
406
|
|Name | Type | Description | Notes|
|
|
417
407
|
|------------- | ------------- | ------------- | -------------|
|
|
418
|
-
| **
|
|
419
|
-
| **
|
|
420
|
-
| **
|
|
408
|
+
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
409
|
+
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
410
|
+
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
421
411
|
|
|
422
412
|
|
|
423
413
|
### Return type
|
|
424
414
|
|
|
425
|
-
**
|
|
415
|
+
**ProductSummaryDTO**
|
|
426
416
|
|
|
427
417
|
### Authorization
|
|
428
418
|
|
|
@@ -430,14 +420,14 @@ No authorization required
|
|
|
430
420
|
|
|
431
421
|
### HTTP request headers
|
|
432
422
|
|
|
433
|
-
- **Content-Type**:
|
|
423
|
+
- **Content-Type**: application/json
|
|
434
424
|
- **Accept**: application/json
|
|
435
425
|
|
|
436
426
|
|
|
437
427
|
### HTTP response details
|
|
438
428
|
| Status code | Description | Response headers |
|
|
439
429
|
|-------------|-------------|------------------|
|
|
440
|
-
|**200** |
|
|
430
|
+
|**200** | Product | - |
|
|
441
431
|
|**400** | Bad Request | - |
|
|
442
432
|
|**401** | Unauthorised | - |
|
|
443
433
|
|**403** | Access Denied | - |
|