@digital8/lighting-illusions-ts-sdk 0.0.2029 → 0.0.2030
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 +0 -8
- package/README.md +2 -7
- package/dist/apis/ProductApi.d.ts +0 -16
- package/dist/apis/ProductApi.js +0 -59
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +2 -2
- package/dist/models/AddressFrontendResource.js +2 -6
- package/dist/models/AddressResource.d.ts +2 -8
- package/dist/models/AddressResource.js +2 -8
- package/dist/models/AdminNoteResource.d.ts +12 -0
- package/dist/models/AdminNoteResource.js +8 -0
- package/dist/models/AdminOrderResource.d.ts +3 -3
- package/dist/models/AdminOrderResource.js +3 -3
- package/dist/models/CartResource.d.ts +3 -3
- package/dist/models/CartResource.js +3 -3
- package/dist/models/CustomerListResource.d.ts +7 -0
- package/dist/models/CustomerListResource.js +5 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +4 -4
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/TransactionLiteResource.d.ts +0 -6
- package/dist/models/TransactionLiteResource.js +0 -2
- package/dist/models/index.d.ts +0 -4
- package/dist/models/index.js +0 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminNoteResource.md +4 -0
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CustomerListResource.md +2 -0
- package/docs/ProductApi.md +0 -66
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/TransactionLiteResource.md +0 -2
- package/docs/TransactionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/ProductApi.ts +0 -49
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +4 -6
- package/src/models/AddressResource.ts +4 -14
- package/src/models/AdminNoteResource.ts +18 -0
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CustomerListResource.ts +16 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +3 -2
- package/src/models/StoreResource.ts +5 -5
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionLiteResource.ts +0 -8
- package/src/models/index.ts +0 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
- package/dist/models/SkuSearchProductChildRequest.js +0 -55
- package/dist/models/TransactionListResource.d.ts +0 -80
- package/dist/models/TransactionListResource.js +0 -81
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/SkuSearchProductChildRequest.md +0 -36
- package/docs/TransactionListResource.md +0 -50
- package/docs/TransactionListResourceArrayResponse.md +0 -34
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/SkuSearchProductChildRequest.ts +0 -75
- package/src/models/TransactionListResource.ts +0 -137
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
|
@@ -36,9 +36,9 @@ function instanceOfStoreResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('
|
|
39
|
+
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
44
|
return false;
|
|
@@ -66,9 +66,9 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
66
|
'phone': json['phone'],
|
|
67
67
|
'longitude': json['longitude'],
|
|
68
68
|
'latitude': json['latitude'],
|
|
69
|
-
'tagLine': json['tagLine']
|
|
69
|
+
'tagLine': json['tagLine'],
|
|
70
70
|
'email': json['email'],
|
|
71
|
-
'website': json['website'],
|
|
71
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
72
72
|
'netsuiteId': json['netsuiteId'],
|
|
73
73
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
74
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -35,10 +35,10 @@ export interface StoreSpecialDateFrontendResource {
|
|
|
35
35
|
hours: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof StoreSpecialDateFrontendResource
|
|
40
40
|
*/
|
|
41
|
-
date
|
|
41
|
+
date?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {boolean}
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateFrontendResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateFrontendResourceFromJSONTyped(json, ignoreDiscriminator
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -50,7 +50,6 @@ function TransactionLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
return json;
|
|
51
51
|
}
|
|
52
52
|
return {
|
|
53
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
54
53
|
'paymentSource': json['paymentSource'],
|
|
55
54
|
'paymentMethod': json['paymentMethod'],
|
|
56
55
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
@@ -72,7 +71,6 @@ function TransactionLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
71
|
return value;
|
|
73
72
|
}
|
|
74
73
|
return {
|
|
75
|
-
'id': value['id'],
|
|
76
74
|
'paymentSource': value['paymentSource'],
|
|
77
75
|
'paymentMethod': value['paymentMethod'],
|
|
78
76
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -327,7 +327,6 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
327
327
|
export * from './PaginatedTagListResourceResponse';
|
|
328
328
|
export * from './PaginatedTagLiteResourceResponse';
|
|
329
329
|
export * from './PaginatedTagResourceResponse';
|
|
330
|
-
export * from './PaginatedTransactionListResourceResponse';
|
|
331
330
|
export * from './PaginatedTransactionResourceResponse';
|
|
332
331
|
export * from './PagingMetadata';
|
|
333
332
|
export * from './PaymentMethod';
|
|
@@ -529,7 +528,6 @@ export * from './SitePaymentConfigResource';
|
|
|
529
528
|
export * from './SitePaymentConfigResourceArrayResponse';
|
|
530
529
|
export * from './SiteResource';
|
|
531
530
|
export * from './SiteResourceArrayResponse';
|
|
532
|
-
export * from './SkuSearchProductChildRequest';
|
|
533
531
|
export * from './StoreFrontendResource';
|
|
534
532
|
export * from './StoreFrontendResourceArrayResponse';
|
|
535
533
|
export * from './StoreListResource';
|
|
@@ -564,8 +562,6 @@ export * from './TagResource';
|
|
|
564
562
|
export * from './TagResourceArrayResponse';
|
|
565
563
|
export * from './TagType';
|
|
566
564
|
export * from './Thumbnail';
|
|
567
|
-
export * from './TransactionListResource';
|
|
568
|
-
export * from './TransactionListResourceArrayResponse';
|
|
569
565
|
export * from './TransactionLiteResource';
|
|
570
566
|
export * from './TransactionLiteResourceArrayResponse';
|
|
571
567
|
export * from './TransactionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -345,7 +345,6 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
345
345
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
346
346
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
347
347
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
348
|
-
__exportStar(require("./PaginatedTransactionListResourceResponse"), exports);
|
|
349
348
|
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
350
349
|
__exportStar(require("./PagingMetadata"), exports);
|
|
351
350
|
__exportStar(require("./PaymentMethod"), exports);
|
|
@@ -547,7 +546,6 @@ __exportStar(require("./SitePaymentConfigResource"), exports);
|
|
|
547
546
|
__exportStar(require("./SitePaymentConfigResourceArrayResponse"), exports);
|
|
548
547
|
__exportStar(require("./SiteResource"), exports);
|
|
549
548
|
__exportStar(require("./SiteResourceArrayResponse"), exports);
|
|
550
|
-
__exportStar(require("./SkuSearchProductChildRequest"), exports);
|
|
551
549
|
__exportStar(require("./StoreFrontendResource"), exports);
|
|
552
550
|
__exportStar(require("./StoreFrontendResourceArrayResponse"), exports);
|
|
553
551
|
__exportStar(require("./StoreListResource"), exports);
|
|
@@ -582,8 +580,6 @@ __exportStar(require("./TagResource"), exports);
|
|
|
582
580
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
583
581
|
__exportStar(require("./TagType"), exports);
|
|
584
582
|
__exportStar(require("./Thumbnail"), exports);
|
|
585
|
-
__exportStar(require("./TransactionListResource"), exports);
|
|
586
|
-
__exportStar(require("./TransactionListResourceArrayResponse"), exports);
|
|
587
583
|
__exportStar(require("./TransactionLiteResource"), exports);
|
|
588
584
|
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
589
585
|
__exportStar(require("./TransactionResource"), exports);
|
package/docs/AddressResource.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
-
`type` | string
|
|
11
10
|
`sourceAddressId` | number
|
|
12
11
|
`addresseeName` | string
|
|
13
12
|
`company` | string
|
|
@@ -27,7 +26,6 @@ import type { AddressResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
27
26
|
// TODO: Update the object below with actual values
|
|
28
27
|
const example = {
|
|
29
28
|
"id": null,
|
|
30
|
-
"type": null,
|
|
31
29
|
"sourceAddressId": null,
|
|
32
30
|
"addresseeName": null,
|
|
33
31
|
"company": null,
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`id` | number
|
|
10
|
+
`orderId` | number
|
|
11
|
+
`adminId` | number
|
|
10
12
|
`note` | string
|
|
11
13
|
`createdAt` | Date
|
|
12
14
|
`updatedAt` | Date
|
|
@@ -20,6 +22,8 @@ import type { AdminNoteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
|
20
22
|
// TODO: Update the object below with actual values
|
|
21
23
|
const example = {
|
|
22
24
|
"id": null,
|
|
25
|
+
"orderId": null,
|
|
26
|
+
"adminId": null,
|
|
23
27
|
"note": null,
|
|
24
28
|
"createdAt": null,
|
|
25
29
|
"updatedAt": null,
|
|
@@ -40,7 +40,7 @@ Name | Type
|
|
|
40
40
|
`shippingEstimate` | number
|
|
41
41
|
`insuranceEstimate` | number
|
|
42
42
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
43
|
-
`customer` | [
|
|
43
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
44
44
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
45
45
|
`status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
|
|
46
46
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
package/docs/CartResource.md
CHANGED
|
@@ -24,7 +24,7 @@ Name | Type
|
|
|
24
24
|
`useAsBillingAddress` | boolean
|
|
25
25
|
`admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
|
|
26
26
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
27
|
-
`customer` | [
|
|
27
|
+
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
28
28
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
29
29
|
`coupons` | object
|
|
30
30
|
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`email` | string
|
|
13
13
|
`phone` | string
|
|
14
14
|
`site` | [SiteLiteResource](SiteLiteResource.md)
|
|
15
|
+
`addresses` | [Array<LiAddressResource>](LiAddressResource.md)
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const example = {
|
|
|
26
27
|
"email": null,
|
|
27
28
|
"phone": null,
|
|
28
29
|
"site": null,
|
|
30
|
+
"addresses": null,
|
|
29
31
|
} satisfies CustomerListResource
|
|
30
32
|
|
|
31
33
|
console.log(example)
|
package/docs/ProductApi.md
CHANGED
|
@@ -22,7 +22,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
22
22
|
| [**showAttributesProductChild**](ProductApi.md#showattributesproductchild) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild |
|
|
23
23
|
| [**showProduct**](ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct |
|
|
24
24
|
| [**showProductChild**](ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild |
|
|
25
|
-
| [**skuSearchProductChild**](ProductApi.md#skusearchproductchildoperation) | **POST** /admin-api/product/children/sku-search | Auto-generated: skuSearchProductChild |
|
|
26
25
|
| [**storeProduct**](ProductApi.md#storeproduct) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct |
|
|
27
26
|
| [**storeProductChild**](ProductApi.md#storeproductchild) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild |
|
|
28
27
|
| [**updateProduct**](ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct |
|
|
@@ -1230,71 +1229,6 @@ No authorization required
|
|
|
1230
1229
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1231
1230
|
|
|
1232
1231
|
|
|
1233
|
-
## skuSearchProductChild
|
|
1234
|
-
|
|
1235
|
-
> ProductChildResource skuSearchProductChild(skuSearchProductChildRequest)
|
|
1236
|
-
|
|
1237
|
-
Auto-generated: skuSearchProductChild
|
|
1238
|
-
|
|
1239
|
-
### Example
|
|
1240
|
-
|
|
1241
|
-
```ts
|
|
1242
|
-
import {
|
|
1243
|
-
Configuration,
|
|
1244
|
-
ProductApi,
|
|
1245
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
1246
|
-
import type { SkuSearchProductChildOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
1247
|
-
|
|
1248
|
-
async function example() {
|
|
1249
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
1250
|
-
const api = new ProductApi();
|
|
1251
|
-
|
|
1252
|
-
const body = {
|
|
1253
|
-
// SkuSearchProductChildRequest (optional)
|
|
1254
|
-
skuSearchProductChildRequest: ...,
|
|
1255
|
-
} satisfies SkuSearchProductChildOperationRequest;
|
|
1256
|
-
|
|
1257
|
-
try {
|
|
1258
|
-
const data = await api.skuSearchProductChild(body);
|
|
1259
|
-
console.log(data);
|
|
1260
|
-
} catch (error) {
|
|
1261
|
-
console.error(error);
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
// Run the test
|
|
1266
|
-
example().catch(console.error);
|
|
1267
|
-
```
|
|
1268
|
-
|
|
1269
|
-
### Parameters
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
| Name | Type | Description | Notes |
|
|
1273
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1274
|
-
| **skuSearchProductChildRequest** | [SkuSearchProductChildRequest](SkuSearchProductChildRequest.md) | | [Optional] |
|
|
1275
|
-
|
|
1276
|
-
### Return type
|
|
1277
|
-
|
|
1278
|
-
[**ProductChildResource**](ProductChildResource.md)
|
|
1279
|
-
|
|
1280
|
-
### Authorization
|
|
1281
|
-
|
|
1282
|
-
No authorization required
|
|
1283
|
-
|
|
1284
|
-
### HTTP request headers
|
|
1285
|
-
|
|
1286
|
-
- **Content-Type**: `application/json`
|
|
1287
|
-
- **Accept**: `application/json`
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
### HTTP response details
|
|
1291
|
-
| Status code | Description | Response headers |
|
|
1292
|
-
|-------------|-------------|------------------|
|
|
1293
|
-
| **200** | Successful resource response | - |
|
|
1294
|
-
|
|
1295
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
1232
|
## storeProduct
|
|
1299
1233
|
|
|
1300
1234
|
> ProductResource storeProduct(createProductRequest)
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
9
|
`paymentSource` | string
|
|
11
10
|
`paymentMethod` | string
|
|
12
11
|
`paymentMethodThumbnail` | string
|
|
@@ -25,7 +24,6 @@ import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sd
|
|
|
25
24
|
|
|
26
25
|
// TODO: Update the object below with actual values
|
|
27
26
|
const example = {
|
|
28
|
-
"id": null,
|
|
29
27
|
"paymentSource": null,
|
|
30
28
|
"paymentMethod": null,
|
|
31
29
|
"paymentMethodThumbnail": null,
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
12
12
|
|
|
13
13
|
## indexTransaction
|
|
14
14
|
|
|
15
|
-
>
|
|
15
|
+
> PaginatedTransactionResourceResponse indexTransaction(searchTransactionsRequest)
|
|
16
16
|
|
|
17
17
|
Auto-generated: indexTransaction
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ example().catch(console.error);
|
|
|
55
55
|
|
|
56
56
|
### Return type
|
|
57
57
|
|
|
58
|
-
[**
|
|
58
|
+
[**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
|
|
59
59
|
|
|
60
60
|
### Authorization
|
|
61
61
|
|
|
@@ -70,7 +70,7 @@ No authorization required
|
|
|
70
70
|
### HTTP response details
|
|
71
71
|
| Status code | Description | Response headers |
|
|
72
72
|
|-------------|-------------|------------------|
|
|
73
|
-
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\
|
|
73
|
+
| **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionResource[]>> | - |
|
|
74
74
|
|
|
75
75
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
76
76
|
|
package/package.json
CHANGED
package/src/apis/ProductApi.ts
CHANGED
|
@@ -118,11 +118,6 @@ import {
|
|
|
118
118
|
ShowProductChildAssetsRequestFromJSON,
|
|
119
119
|
ShowProductChildAssetsRequestToJSON,
|
|
120
120
|
} from '../models/ShowProductChildAssetsRequest';
|
|
121
|
-
import {
|
|
122
|
-
type SkuSearchProductChildRequest,
|
|
123
|
-
SkuSearchProductChildRequestFromJSON,
|
|
124
|
-
SkuSearchProductChildRequestToJSON,
|
|
125
|
-
} from '../models/SkuSearchProductChildRequest';
|
|
126
121
|
import {
|
|
127
122
|
type UpdateProductChildRequest,
|
|
128
123
|
UpdateProductChildRequestFromJSON,
|
|
@@ -216,10 +211,6 @@ export interface ShowProductChildRequest {
|
|
|
216
211
|
productChild: number;
|
|
217
212
|
}
|
|
218
213
|
|
|
219
|
-
export interface SkuSearchProductChildOperationRequest {
|
|
220
|
-
skuSearchProductChildRequest?: SkuSearchProductChildRequest;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
214
|
export interface StoreProductRequest {
|
|
224
215
|
createProductRequest?: CreateProductRequest;
|
|
225
216
|
}
|
|
@@ -1073,46 +1064,6 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
1073
1064
|
return await response.value();
|
|
1074
1065
|
}
|
|
1075
1066
|
|
|
1076
|
-
/**
|
|
1077
|
-
* Creates request options for skuSearchProductChild without sending the request
|
|
1078
|
-
*/
|
|
1079
|
-
async skuSearchProductChildRequestOpts(requestParameters: SkuSearchProductChildOperationRequest): Promise<runtime.RequestOpts> {
|
|
1080
|
-
const queryParameters: any = {};
|
|
1081
|
-
|
|
1082
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1083
|
-
|
|
1084
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
let urlPath = `/admin-api/product/children/sku-search`;
|
|
1088
|
-
|
|
1089
|
-
return {
|
|
1090
|
-
path: urlPath,
|
|
1091
|
-
method: 'POST',
|
|
1092
|
-
headers: headerParameters,
|
|
1093
|
-
query: queryParameters,
|
|
1094
|
-
body: SkuSearchProductChildRequestToJSON(requestParameters['skuSearchProductChildRequest']),
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* Auto-generated: skuSearchProductChild
|
|
1100
|
-
*/
|
|
1101
|
-
async skuSearchProductChildRaw(requestParameters: SkuSearchProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>> {
|
|
1102
|
-
const requestOptions = await this.skuSearchProductChildRequestOpts(requestParameters);
|
|
1103
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
1104
|
-
|
|
1105
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ProductChildResourceFromJSON(jsonValue));
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* Auto-generated: skuSearchProductChild
|
|
1110
|
-
*/
|
|
1111
|
-
async skuSearchProductChild(requestParameters: SkuSearchProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource> {
|
|
1112
|
-
const response = await this.skuSearchProductChildRaw(requestParameters, initOverrides);
|
|
1113
|
-
return await response.value();
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
1067
|
/**
|
|
1117
1068
|
* Creates request options for storeProduct without sending the request
|
|
1118
1069
|
*/
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
CreateTransactionRequestToJSON,
|
|
20
20
|
} from '../models/CreateTransactionRequest';
|
|
21
21
|
import {
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from '../models/
|
|
22
|
+
type PaginatedTransactionResourceResponse,
|
|
23
|
+
PaginatedTransactionResourceResponseFromJSON,
|
|
24
|
+
PaginatedTransactionResourceResponseToJSON,
|
|
25
|
+
} from '../models/PaginatedTransactionResourceResponse';
|
|
26
26
|
import {
|
|
27
27
|
type RefundTransactionRequest,
|
|
28
28
|
RefundTransactionRequestFromJSON,
|
|
@@ -87,17 +87,17 @@ export class TransactionsApi extends runtime.BaseAPI {
|
|
|
87
87
|
/**
|
|
88
88
|
* Auto-generated: indexTransaction
|
|
89
89
|
*/
|
|
90
|
-
async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
90
|
+
async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionResourceResponse>> {
|
|
91
91
|
const requestOptions = await this.indexTransactionRequestOpts(requestParameters);
|
|
92
92
|
const response = await this.request(requestOptions, initOverrides);
|
|
93
93
|
|
|
94
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
94
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTransactionResourceResponseFromJSON(jsonValue));
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Auto-generated: indexTransaction
|
|
99
99
|
*/
|
|
100
|
-
async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
100
|
+
async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse> {
|
|
101
101
|
const response = await this.indexTransactionRaw(requestParameters, initOverrides);
|
|
102
102
|
return await response.value();
|
|
103
103
|
}
|
|
@@ -24,7 +24,7 @@ export interface AddressFrontendResource {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AddressFrontendResource
|
|
26
26
|
*/
|
|
27
|
-
company
|
|
27
|
+
company?: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -36,7 +36,7 @@ export interface AddressFrontendResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressFrontendResource
|
|
38
38
|
*/
|
|
39
|
-
line2
|
|
39
|
+
line2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -73,9 +73,7 @@ export interface AddressFrontendResource {
|
|
|
73
73
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfAddressFrontendResource(value: object): value is AddressFrontendResource {
|
|
76
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
77
76
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
78
|
-
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
79
77
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
80
78
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
81
79
|
if (!('country' in value) || value['country'] === undefined) return false;
|
|
@@ -94,9 +92,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
94
92
|
}
|
|
95
93
|
return {
|
|
96
94
|
|
|
97
|
-
'company': json['company'],
|
|
95
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
98
96
|
'line1': json['line1'],
|
|
99
|
-
'line2': json['line2'],
|
|
97
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
100
98
|
'postcode': json['postcode'],
|
|
101
99
|
'suburb': json['suburb'],
|
|
102
100
|
'country': json['country'],
|
|
@@ -25,12 +25,6 @@ export interface AddressResource {
|
|
|
25
25
|
* @memberof AddressResource
|
|
26
26
|
*/
|
|
27
27
|
id?: number | null;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof AddressResource
|
|
32
|
-
*/
|
|
33
|
-
type?: string | null;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {number}
|
|
@@ -42,13 +36,13 @@ export interface AddressResource {
|
|
|
42
36
|
* @type {string}
|
|
43
37
|
* @memberof AddressResource
|
|
44
38
|
*/
|
|
45
|
-
addresseeName
|
|
39
|
+
addresseeName?: string | null;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {string}
|
|
49
43
|
* @memberof AddressResource
|
|
50
44
|
*/
|
|
51
|
-
company
|
|
45
|
+
company?: string | null;
|
|
52
46
|
/**
|
|
53
47
|
*
|
|
54
48
|
* @type {string}
|
|
@@ -97,8 +91,6 @@ export interface AddressResource {
|
|
|
97
91
|
* Check if a given object implements the AddressResource interface.
|
|
98
92
|
*/
|
|
99
93
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
100
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
|
|
101
|
-
if (!('company' in value) || value['company'] === undefined) return false;
|
|
102
94
|
if (!('line1' in value) || value['line1'] === undefined) return false;
|
|
103
95
|
if (!('line2' in value) || value['line2'] === undefined) return false;
|
|
104
96
|
if (!('postcode' in value) || value['postcode'] === undefined) return false;
|
|
@@ -120,10 +112,9 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
120
112
|
return {
|
|
121
113
|
|
|
122
114
|
'id': json['id'] == null ? undefined : json['id'],
|
|
123
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
124
115
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
125
|
-
'addresseeName': json['addresseeName'],
|
|
126
|
-
'company': json['company'],
|
|
116
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
117
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
127
118
|
'line1': json['line1'],
|
|
128
119
|
'line2': json['line2'],
|
|
129
120
|
'postcode': json['postcode'],
|
|
@@ -146,7 +137,6 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
|
|
|
146
137
|
return {
|
|
147
138
|
|
|
148
139
|
'id': value['id'],
|
|
149
|
-
'type': value['type'],
|
|
150
140
|
'sourceAddressId': value['sourceAddressId'],
|
|
151
141
|
'addresseeName': value['addresseeName'],
|
|
152
142
|
'company': value['company'],
|
|
@@ -33,6 +33,18 @@ export interface AdminNoteResource {
|
|
|
33
33
|
* @memberof AdminNoteResource
|
|
34
34
|
*/
|
|
35
35
|
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AdminNoteResource
|
|
40
|
+
*/
|
|
41
|
+
orderId: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AdminNoteResource
|
|
46
|
+
*/
|
|
47
|
+
adminId: number;
|
|
36
48
|
/**
|
|
37
49
|
*
|
|
38
50
|
* @type {string}
|
|
@@ -64,6 +76,8 @@ export interface AdminNoteResource {
|
|
|
64
76
|
*/
|
|
65
77
|
export function instanceOfAdminNoteResource(value: object): value is AdminNoteResource {
|
|
66
78
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
+
if (!('orderId' in value) || value['orderId'] === undefined) return false;
|
|
80
|
+
if (!('adminId' in value) || value['adminId'] === undefined) return false;
|
|
67
81
|
if (!('note' in value) || value['note'] === undefined) return false;
|
|
68
82
|
if (!('admin' in value) || value['admin'] === undefined) return false;
|
|
69
83
|
return true;
|
|
@@ -80,6 +94,8 @@ export function AdminNoteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
80
94
|
return {
|
|
81
95
|
|
|
82
96
|
'id': json['id'],
|
|
97
|
+
'orderId': json['orderId'],
|
|
98
|
+
'adminId': json['adminId'],
|
|
83
99
|
'note': json['note'],
|
|
84
100
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
85
101
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -99,6 +115,8 @@ export function AdminNoteResourceToJSONTyped(value?: AdminNoteResource | null, i
|
|
|
99
115
|
return {
|
|
100
116
|
|
|
101
117
|
'id': value['id'],
|
|
118
|
+
'orderId': value['orderId'],
|
|
119
|
+
'adminId': value['adminId'],
|
|
102
120
|
'note': value['note'],
|
|
103
121
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
104
122
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|