@digital8/lighting-illusions-ts-sdk 0.0.2029 → 0.0.2031

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.
Files changed (63) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -7
  3. package/dist/apis/ProductApi.d.ts +0 -16
  4. package/dist/apis/ProductApi.js +0 -59
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +1 -1
  8. package/dist/models/AddressFrontendResource.js +1 -3
  9. package/dist/models/AddressResource.d.ts +2 -8
  10. package/dist/models/AddressResource.js +2 -8
  11. package/dist/models/AdminNoteResource.d.ts +12 -0
  12. package/dist/models/AdminNoteResource.js +8 -0
  13. package/dist/models/AdminOrderResource.d.ts +3 -3
  14. package/dist/models/AdminOrderResource.js +3 -3
  15. package/dist/models/CartResource.d.ts +3 -3
  16. package/dist/models/CartResource.js +3 -3
  17. package/dist/models/CustomerListResource.d.ts +7 -0
  18. package/dist/models/CustomerListResource.js +5 -0
  19. package/dist/models/StoreListResource.d.ts +2 -2
  20. package/dist/models/StoreListResource.js +4 -4
  21. package/dist/models/StoreResource.d.ts +1 -1
  22. package/dist/models/StoreResource.js +1 -3
  23. package/dist/models/TransactionLiteResource.d.ts +0 -6
  24. package/dist/models/TransactionLiteResource.js +0 -2
  25. package/dist/models/index.d.ts +0 -4
  26. package/dist/models/index.js +0 -4
  27. package/docs/AddressResource.md +0 -2
  28. package/docs/AdminNoteResource.md +4 -0
  29. package/docs/AdminOrderResource.md +1 -1
  30. package/docs/CartResource.md +1 -1
  31. package/docs/CustomerListResource.md +2 -0
  32. package/docs/ProductApi.md +0 -66
  33. package/docs/TransactionLiteResource.md +0 -2
  34. package/docs/TransactionsApi.md +3 -3
  35. package/package.json +1 -1
  36. package/src/apis/ProductApi.ts +0 -49
  37. package/src/apis/TransactionsApi.ts +7 -7
  38. package/src/models/AddressFrontendResource.ts +2 -3
  39. package/src/models/AddressResource.ts +4 -14
  40. package/src/models/AdminNoteResource.ts +18 -0
  41. package/src/models/AdminOrderResource.ts +11 -11
  42. package/src/models/CartResource.ts +11 -11
  43. package/src/models/CustomerListResource.ts +16 -0
  44. package/src/models/StoreListResource.ts +5 -5
  45. package/src/models/StoreResource.ts +2 -3
  46. package/src/models/TransactionLiteResource.ts +0 -8
  47. package/src/models/index.ts +0 -4
  48. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  49. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  50. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  51. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  52. package/dist/models/TransactionListResource.d.ts +0 -80
  53. package/dist/models/TransactionListResource.js +0 -81
  54. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  55. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  56. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  57. package/docs/SkuSearchProductChildRequest.md +0 -36
  58. package/docs/TransactionListResource.md +0 -50
  59. package/docs/TransactionListResourceArrayResponse.md +0 -34
  60. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  61. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  62. package/src/models/TransactionListResource.ts +0 -137
  63. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
@@ -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'],
@@ -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';
@@ -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);
@@ -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` | [CustomerResource](CustomerResource.md)
43
+ `customer` | [CustomerListResource](CustomerListResource.md)
44
44
  `admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
45
45
  `status` | [OrderStatusLiteResource](OrderStatusLiteResource.md)
46
46
  `lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
@@ -24,7 +24,7 @@ Name | Type
24
24
  `useAsBillingAddress` | boolean
25
25
  `admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
26
26
  `site` | [SiteLiteResource](SiteLiteResource.md)
27
- `customer` | [CustomerResource](CustomerResource.md)
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)
@@ -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,
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
12
12
 
13
13
  ## indexTransaction
14
14
 
15
- > PaginatedTransactionListResourceResponse indexTransaction(searchTransactionsRequest)
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
- [**PaginatedTransactionListResourceResponse**](PaginatedTransactionListResourceResponse.md)
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<\\TransactionListResource[]>> | - |
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/lighting-illusions-ts-sdk",
3
- "version": "0.0.2029",
3
+ "version": "0.0.2031",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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 PaginatedTransactionListResourceResponse,
23
- PaginatedTransactionListResourceResponseFromJSON,
24
- PaginatedTransactionListResourceResponseToJSON,
25
- } from '../models/PaginatedTransactionListResourceResponse';
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<PaginatedTransactionListResourceResponse>> {
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) => PaginatedTransactionListResourceResponseFromJSON(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<PaginatedTransactionListResourceResponse> {
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: string;
27
+ company?: string | null;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -73,7 +73,6 @@ 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
77
  if (!('line2' in value) || value['line2'] === undefined) return false;
79
78
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -94,7 +93,7 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
94
93
  }
95
94
  return {
96
95
 
97
- 'company': json['company'],
96
+ 'company': json['company'] == null ? undefined : json['company'],
98
97
  'line1': json['line1'],
99
98
  'line2': json['line2'],
100
99
  'postcode': json['postcode'],
@@ -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}
@@ -48,7 +42,7 @@ export interface AddressResource {
48
42
  * @type {string}
49
43
  * @memberof AddressResource
50
44
  */
51
- company: string;
45
+ company?: string | null;
52
46
  /**
53
47
  *
54
48
  * @type {string}
@@ -60,7 +54,7 @@ export interface AddressResource {
60
54
  * @type {string}
61
55
  * @memberof AddressResource
62
56
  */
63
- line2: string;
57
+ line2?: string | null;
64
58
  /**
65
59
  *
66
60
  * @type {string}
@@ -98,9 +92,7 @@ export interface AddressResource {
98
92
  */
99
93
  export function instanceOfAddressResource(value: object): value is AddressResource {
100
94
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
- if (!('company' in value) || value['company'] === undefined) return false;
102
95
  if (!('line1' in value) || value['line1'] === undefined) return false;
103
- if (!('line2' in value) || value['line2'] === undefined) return false;
104
96
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
105
97
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
106
98
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -120,12 +112,11 @@ 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
116
  'addresseeName': json['addresseeName'],
126
- 'company': json['company'],
117
+ 'company': json['company'] == null ? undefined : json['company'],
127
118
  'line1': json['line1'],
128
- 'line2': json['line2'],
119
+ 'line2': json['line2'] == null ? undefined : json['line2'],
129
120
  'postcode': json['postcode'],
130
121
  'suburb': json['suburb'],
131
122
  'country': json['country'],
@@ -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(),
@@ -55,13 +55,6 @@ import {
55
55
  CartCouponResourceToJSON,
56
56
  CartCouponResourceToJSONTyped,
57
57
  } from './CartCouponResource';
58
- import type { CustomerResource } from './CustomerResource';
59
- import {
60
- CustomerResourceFromJSON,
61
- CustomerResourceFromJSONTyped,
62
- CustomerResourceToJSON,
63
- CustomerResourceToJSONTyped,
64
- } from './CustomerResource';
65
58
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
66
59
  import {
67
60
  LiAdminUserLiteResourceFromJSON,
@@ -76,6 +69,13 @@ import {
76
69
  OmnisendSyncLiteResourceToJSON,
77
70
  OmnisendSyncLiteResourceToJSONTyped,
78
71
  } from './OmnisendSyncLiteResource';
72
+ import type { CustomerListResource } from './CustomerListResource';
73
+ import {
74
+ CustomerListResourceFromJSON,
75
+ CustomerListResourceFromJSONTyped,
76
+ CustomerListResourceToJSON,
77
+ CustomerListResourceToJSONTyped,
78
+ } from './CustomerListResource';
79
79
  import type { AddressResource } from './AddressResource';
80
80
  import {
81
81
  AddressResourceFromJSON,
@@ -296,10 +296,10 @@ export interface AdminOrderResource {
296
296
  site: SiteLiteResource | null;
297
297
  /**
298
298
  *
299
- * @type {CustomerResource}
299
+ * @type {CustomerListResource}
300
300
  * @memberof AdminOrderResource
301
301
  */
302
- customer: CustomerResource | null;
302
+ customer: CustomerListResource | null;
303
303
  /**
304
304
  *
305
305
  * @type {LiAdminUserLiteResource}
@@ -446,7 +446,7 @@ export function AdminOrderResourceFromJSONTyped(json: any, ignoreDiscriminator:
446
446
  'shippingEstimate': json['shippingEstimate'],
447
447
  'insuranceEstimate': json['insuranceEstimate'],
448
448
  'site': SiteLiteResourceFromJSON(json['site']),
449
- 'customer': CustomerResourceFromJSON(json['customer']),
449
+ 'customer': CustomerListResourceFromJSON(json['customer']),
450
450
  'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
451
451
  'status': OrderStatusLiteResourceFromJSON(json['status']),
452
452
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
@@ -504,7 +504,7 @@ export function AdminOrderResourceToJSONTyped(value?: AdminOrderResource | null,
504
504
  'shippingEstimate': value['shippingEstimate'],
505
505
  'insuranceEstimate': value['insuranceEstimate'],
506
506
  'site': SiteLiteResourceToJSON(value['site']),
507
- 'customer': CustomerResourceToJSON(value['customer']),
507
+ 'customer': CustomerListResourceToJSON(value['customer']),
508
508
  'admin': LiAdminUserLiteResourceToJSON(value['admin']),
509
509
  'status': OrderStatusLiteResourceToJSON(value['status']),
510
510
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
@@ -27,13 +27,6 @@ import {
27
27
  LineItemListResourceToJSON,
28
28
  LineItemListResourceToJSONTyped,
29
29
  } from './LineItemListResource';
30
- import type { CustomerResource } from './CustomerResource';
31
- import {
32
- CustomerResourceFromJSON,
33
- CustomerResourceFromJSONTyped,
34
- CustomerResourceToJSON,
35
- CustomerResourceToJSONTyped,
36
- } from './CustomerResource';
37
30
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
38
31
  import {
39
32
  LiAdminUserLiteResourceFromJSON,
@@ -41,6 +34,13 @@ import {
41
34
  LiAdminUserLiteResourceToJSON,
42
35
  LiAdminUserLiteResourceToJSONTyped,
43
36
  } from './LiAdminUserLiteResource';
37
+ import type { CustomerListResource } from './CustomerListResource';
38
+ import {
39
+ CustomerListResourceFromJSON,
40
+ CustomerListResourceFromJSONTyped,
41
+ CustomerListResourceToJSON,
42
+ CustomerListResourceToJSONTyped,
43
+ } from './CustomerListResource';
44
44
  import type { AddressResource } from './AddressResource';
45
45
  import {
46
46
  AddressResourceFromJSON,
@@ -165,10 +165,10 @@ export interface CartResource {
165
165
  site: SiteLiteResource | null;
166
166
  /**
167
167
  *
168
- * @type {CustomerResource}
168
+ * @type {CustomerListResource}
169
169
  * @memberof CartResource
170
170
  */
171
- customer: CustomerResource | null;
171
+ customer: CustomerListResource | null;
172
172
  /**
173
173
  *
174
174
  * @type {Array<LineItemListResource>}
@@ -321,7 +321,7 @@ export function CartResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
321
321
  'useAsBillingAddress': json['useAsBillingAddress'],
322
322
  'admin': LiAdminUserLiteResourceFromJSON(json['admin']),
323
323
  'site': SiteLiteResourceFromJSON(json['site']),
324
- 'customer': CustomerResourceFromJSON(json['customer']),
324
+ 'customer': CustomerListResourceFromJSON(json['customer']),
325
325
  'lineItems': (json['lineItems'] == null ? null : (json['lineItems'] as Array<any>).map(LineItemListResourceFromJSON)),
326
326
  'coupons': json['coupons'],
327
327
  'shippingAddress': AddressResourceFromJSON(json['shippingAddress']),
@@ -369,7 +369,7 @@ export function CartResourceToJSONTyped(value?: CartResource | null, ignoreDiscr
369
369
  'useAsBillingAddress': value['useAsBillingAddress'],
370
370
  'admin': LiAdminUserLiteResourceToJSON(value['admin']),
371
371
  'site': SiteLiteResourceToJSON(value['site']),
372
- 'customer': CustomerResourceToJSON(value['customer']),
372
+ 'customer': CustomerListResourceToJSON(value['customer']),
373
373
  'lineItems': (value['lineItems'] == null ? null : (value['lineItems'] as Array<any>).map(LineItemListResourceToJSON)),
374
374
  'coupons': value['coupons'],
375
375
  'shippingAddress': AddressResourceToJSON(value['shippingAddress']),