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

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 (76) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +7 -3
  3. package/dist/apis/ProductApi.d.ts +16 -0
  4. package/dist/apis/ProductApi.js +59 -0
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +6 -2
  9. package/dist/models/AddressResource.d.ts +7 -1
  10. package/dist/models/AddressResource.js +5 -1
  11. package/dist/models/AdminNoteResource.d.ts +0 -12
  12. package/dist/models/AdminNoteResource.js +0 -8
  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 +0 -7
  18. package/dist/models/CustomerListResource.js +0 -5
  19. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  20. package/dist/models/ExternalApiLogResource.js +3 -1
  21. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  23. package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
  24. package/dist/models/SkuSearchProductChildRequest.js +55 -0
  25. package/dist/models/StoreFrontendResource.d.ts +1 -1
  26. package/dist/models/StoreFrontendResource.js +1 -3
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +1 -1
  30. package/dist/models/StoreResource.js +3 -1
  31. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  32. package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
  33. package/dist/models/TransactionListResource.d.ts +80 -0
  34. package/dist/models/TransactionListResource.js +81 -0
  35. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  37. package/dist/models/TransactionLiteResource.d.ts +6 -0
  38. package/dist/models/TransactionLiteResource.js +2 -0
  39. package/dist/models/index.d.ts +4 -1
  40. package/dist/models/index.js +4 -1
  41. package/docs/AddressResource.md +2 -0
  42. package/docs/AdminNoteResource.md +0 -4
  43. package/docs/AdminOrderResource.md +1 -1
  44. package/docs/CartResource.md +1 -1
  45. package/docs/CustomerListResource.md +0 -2
  46. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  47. package/docs/ProductApi.md +66 -0
  48. package/docs/{OrderOmnisendEvent.md → SkuSearchProductChildRequest.md} +8 -4
  49. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  50. package/docs/TransactionListResource.md +50 -0
  51. package/docs/TransactionListResourceArrayResponse.md +34 -0
  52. package/docs/TransactionLiteResource.md +2 -0
  53. package/docs/TransactionsApi.md +3 -3
  54. package/package.json +1 -1
  55. package/src/apis/ProductApi.ts +49 -0
  56. package/src/apis/TransactionsApi.ts +7 -7
  57. package/src/models/AddressFrontendResource.ts +6 -4
  58. package/src/models/AddressResource.ts +11 -2
  59. package/src/models/AdminNoteResource.ts +0 -18
  60. package/src/models/AdminOrderResource.ts +11 -11
  61. package/src/models/CartResource.ts +11 -11
  62. package/src/models/CustomerListResource.ts +0 -16
  63. package/src/models/ExternalApiLogResource.ts +3 -2
  64. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  65. package/src/models/SkuSearchProductChildRequest.ts +75 -0
  66. package/src/models/StoreFrontendResource.ts +2 -3
  67. package/src/models/StoreListResource.ts +2 -3
  68. package/src/models/StoreResource.ts +3 -2
  69. package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
  70. package/src/models/TransactionListResource.ts +137 -0
  71. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  72. package/src/models/TransactionLiteResource.ts +8 -0
  73. package/src/models/index.ts +4 -1
  74. package/dist/models/OrderOmnisendEvent.d.ts +0 -25
  75. package/dist/models/OrderOmnisendEvent.js +0 -51
  76. package/src/models/OrderOmnisendEvent.ts +0 -53
@@ -24,7 +24,7 @@ Name | Type
24
24
  `useAsBillingAddress` | boolean
25
25
  `admin` | [LiAdminUserLiteResource](LiAdminUserLiteResource.md)
26
26
  `site` | [SiteLiteResource](SiteLiteResource.md)
27
- `customer` | [CustomerListResource](CustomerListResource.md)
27
+ `customer` | [CustomerResource](CustomerResource.md)
28
28
  `lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
29
29
  `coupons` | object
30
30
  `shippingAddress` | [AddressResource](AddressResource.md)
@@ -12,7 +12,6 @@ Name | Type
12
12
  `email` | string
13
13
  `phone` | string
14
14
  `site` | [SiteLiteResource](SiteLiteResource.md)
15
- `addresses` | [Array<LiAddressResource>](LiAddressResource.md)
16
15
 
17
16
  ## Example
18
17
 
@@ -27,7 +26,6 @@ const example = {
27
26
  "email": null,
28
27
  "phone": null,
29
28
  "site": null,
30
- "addresses": null,
31
29
  } satisfies CustomerListResource
32
30
 
33
31
  console.log(example)
@@ -0,0 +1,36 @@
1
+
2
+ # PaginatedTransactionListResourceResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<TransactionListResource>](TransactionListResource.md)
10
+ `meta` | [PagingMetadata](PagingMetadata.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { PaginatedTransactionListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "data": null,
20
+ "meta": null,
21
+ } satisfies PaginatedTransactionListResourceResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionListResourceResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -22,6 +22,7 @@ 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 |
25
26
  | [**storeProduct**](ProductApi.md#storeproduct) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct |
26
27
  | [**storeProductChild**](ProductApi.md#storeproductchild) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild |
27
28
  | [**updateProduct**](ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct |
@@ -1229,6 +1230,71 @@ No authorization required
1229
1230
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1230
1231
 
1231
1232
 
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
+
1232
1298
  ## storeProduct
1233
1299
 
1234
1300
  > ProductResource storeProduct(createProductRequest)
@@ -1,20 +1,24 @@
1
1
 
2
- # OrderOmnisendEvent
2
+ # SkuSearchProductChildRequest
3
3
 
4
4
 
5
5
  ## Properties
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `sku` | string
10
+ `siteId` | number
9
11
 
10
12
  ## Example
11
13
 
12
14
  ```typescript
13
- import type { OrderOmnisendEvent } from '@digital8/lighting-illusions-ts-sdk'
15
+ import type { SkuSearchProductChildRequest } from '@digital8/lighting-illusions-ts-sdk'
14
16
 
15
17
  // TODO: Update the object below with actual values
16
18
  const example = {
17
- } satisfies OrderOmnisendEvent
19
+ "sku": null,
20
+ "siteId": null,
21
+ } satisfies SkuSearchProductChildRequest
18
22
 
19
23
  console.log(example)
20
24
 
@@ -23,7 +27,7 @@ const exampleJSON: string = JSON.stringify(example)
23
27
  console.log(exampleJSON)
24
28
 
25
29
  // Parse the JSON string back to an object
26
- const exampleParsed = JSON.parse(exampleJSON) as OrderOmnisendEvent
30
+ const exampleParsed = JSON.parse(exampleJSON) as SkuSearchProductChildRequest
27
31
  console.log(exampleParsed)
28
32
  ```
29
33
 
@@ -9,7 +9,7 @@ Name | Type
9
9
  `id` | number
10
10
  `name` | string
11
11
  `hours` | string
12
- `date` | string
12
+ `date` | object
13
13
  `closed` | boolean
14
14
  `displayStartDate` | object
15
15
  `displayEndDate` | object
@@ -0,0 +1,50 @@
1
+
2
+ # TransactionListResource
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | number
10
+ `paymentSource` | string
11
+ `paymentMethod` | string
12
+ `type` | string
13
+ `status` | string
14
+ `totalAmount` | number
15
+ `refundedAmount` | number
16
+ `reference` | string
17
+ `createdAt` | Date
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "paymentSource": null,
28
+ "paymentMethod": null,
29
+ "type": null,
30
+ "status": null,
31
+ "totalAmount": null,
32
+ "refundedAmount": null,
33
+ "reference": null,
34
+ "createdAt": null,
35
+ } satisfies TransactionListResource
36
+
37
+ console.log(example)
38
+
39
+ // Convert the instance to a JSON string
40
+ const exampleJSON: string = JSON.stringify(example)
41
+ console.log(exampleJSON)
42
+
43
+ // Parse the JSON string back to an object
44
+ const exampleParsed = JSON.parse(exampleJSON) as TransactionListResource
45
+ console.log(exampleParsed)
46
+ ```
47
+
48
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
49
+
50
+
@@ -0,0 +1,34 @@
1
+
2
+ # TransactionListResourceArrayResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `data` | [Array<TransactionListResource>](TransactionListResource.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { TransactionListResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "data": null,
19
+ } satisfies TransactionListResourceArrayResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as TransactionListResourceArrayResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -6,6 +6,7 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
+ `id` | number
9
10
  `paymentSource` | string
10
11
  `paymentMethod` | string
11
12
  `paymentMethodThumbnail` | string
@@ -24,6 +25,7 @@ import type { TransactionLiteResource } from '@digital8/lighting-illusions-ts-sd
24
25
 
25
26
  // TODO: Update the object below with actual values
26
27
  const example = {
28
+ "id": null,
27
29
  "paymentSource": null,
28
30
  "paymentMethod": null,
29
31
  "paymentMethodThumbnail": null,
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost/api*
12
12
 
13
13
  ## indexTransaction
14
14
 
15
- > PaginatedTransactionResourceResponse indexTransaction(searchTransactionsRequest)
15
+ > PaginatedTransactionListResourceResponse 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
- [**PaginatedTransactionResourceResponse**](PaginatedTransactionResourceResponse.md)
58
+ [**PaginatedTransactionListResourceResponse**](PaginatedTransactionListResourceResponse.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<\\TransactionResource[]>> | - |
73
+ | **200** | Paginated response \\JsonResponse<\\ResourcePaginator<\\TransactionListResource[]>> | - |
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.2028",
3
+ "version": "0.0.2029",
4
4
  "description": "OpenAPI client for @digital8/lighting-illusions-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -118,6 +118,11 @@ 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';
121
126
  import {
122
127
  type UpdateProductChildRequest,
123
128
  UpdateProductChildRequestFromJSON,
@@ -211,6 +216,10 @@ export interface ShowProductChildRequest {
211
216
  productChild: number;
212
217
  }
213
218
 
219
+ export interface SkuSearchProductChildOperationRequest {
220
+ skuSearchProductChildRequest?: SkuSearchProductChildRequest;
221
+ }
222
+
214
223
  export interface StoreProductRequest {
215
224
  createProductRequest?: CreateProductRequest;
216
225
  }
@@ -1064,6 +1073,46 @@ export class ProductApi extends runtime.BaseAPI {
1064
1073
  return await response.value();
1065
1074
  }
1066
1075
 
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
+
1067
1116
  /**
1068
1117
  * Creates request options for storeProduct without sending the request
1069
1118
  */
@@ -19,10 +19,10 @@ import {
19
19
  CreateTransactionRequestToJSON,
20
20
  } from '../models/CreateTransactionRequest';
21
21
  import {
22
- type PaginatedTransactionResourceResponse,
23
- PaginatedTransactionResourceResponseFromJSON,
24
- PaginatedTransactionResourceResponseToJSON,
25
- } from '../models/PaginatedTransactionResourceResponse';
22
+ type PaginatedTransactionListResourceResponse,
23
+ PaginatedTransactionListResourceResponseFromJSON,
24
+ PaginatedTransactionListResourceResponseToJSON,
25
+ } from '../models/PaginatedTransactionListResourceResponse';
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<PaginatedTransactionResourceResponse>> {
90
+ async indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionListResourceResponse>> {
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) => PaginatedTransactionResourceResponseFromJSON(jsonValue));
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTransactionListResourceResponseFromJSON(jsonValue));
95
95
  }
96
96
 
97
97
  /**
98
98
  * Auto-generated: indexTransaction
99
99
  */
100
- async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse> {
100
+ async indexTransaction(requestParameters: IndexTransactionRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionListResourceResponse> {
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 | null;
27
+ company: string;
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?: string | null;
39
+ line2: string;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -73,7 +73,9 @@ 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;
76
77
  if (!('line1' in value) || value['line1'] === undefined) return false;
78
+ if (!('line2' in value) || value['line2'] === undefined) return false;
77
79
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
78
80
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
79
81
  if (!('country' in value) || value['country'] === undefined) return false;
@@ -92,9 +94,9 @@ export function AddressFrontendResourceFromJSONTyped(json: any, ignoreDiscrimina
92
94
  }
93
95
  return {
94
96
 
95
- 'company': json['company'] == null ? undefined : json['company'],
97
+ 'company': json['company'],
96
98
  'line1': json['line1'],
97
- 'line2': json['line2'] == null ? undefined : json['line2'],
99
+ 'line2': json['line2'],
98
100
  'postcode': json['postcode'],
99
101
  'suburb': json['suburb'],
100
102
  'country': json['country'],
@@ -25,6 +25,12 @@ 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;
28
34
  /**
29
35
  *
30
36
  * @type {number}
@@ -42,7 +48,7 @@ export interface AddressResource {
42
48
  * @type {string}
43
49
  * @memberof AddressResource
44
50
  */
45
- company?: string | null;
51
+ company: string;
46
52
  /**
47
53
  *
48
54
  * @type {string}
@@ -92,6 +98,7 @@ export interface AddressResource {
92
98
  */
93
99
  export function instanceOfAddressResource(value: object): value is AddressResource {
94
100
  if (!('addresseeName' in value) || value['addresseeName'] === undefined) return false;
101
+ if (!('company' in value) || value['company'] === undefined) return false;
95
102
  if (!('line1' in value) || value['line1'] === undefined) return false;
96
103
  if (!('line2' in value) || value['line2'] === undefined) return false;
97
104
  if (!('postcode' in value) || value['postcode'] === undefined) return false;
@@ -113,9 +120,10 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
113
120
  return {
114
121
 
115
122
  'id': json['id'] == null ? undefined : json['id'],
123
+ 'type': json['type'] == null ? undefined : json['type'],
116
124
  'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
117
125
  'addresseeName': json['addresseeName'],
118
- 'company': json['company'] == null ? undefined : json['company'],
126
+ 'company': json['company'],
119
127
  'line1': json['line1'],
120
128
  'line2': json['line2'],
121
129
  'postcode': json['postcode'],
@@ -138,6 +146,7 @@ export function AddressResourceToJSONTyped(value?: AddressResource | null, ignor
138
146
  return {
139
147
 
140
148
  'id': value['id'],
149
+ 'type': value['type'],
141
150
  'sourceAddressId': value['sourceAddressId'],
142
151
  'addresseeName': value['addresseeName'],
143
152
  'company': value['company'],
@@ -33,18 +33,6 @@ 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;
48
36
  /**
49
37
  *
50
38
  * @type {string}
@@ -76,8 +64,6 @@ export interface AdminNoteResource {
76
64
  */
77
65
  export function instanceOfAdminNoteResource(value: object): value is AdminNoteResource {
78
66
  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;
81
67
  if (!('note' in value) || value['note'] === undefined) return false;
82
68
  if (!('admin' in value) || value['admin'] === undefined) return false;
83
69
  return true;
@@ -94,8 +80,6 @@ export function AdminNoteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
94
80
  return {
95
81
 
96
82
  'id': json['id'],
97
- 'orderId': json['orderId'],
98
- 'adminId': json['adminId'],
99
83
  'note': json['note'],
100
84
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
101
85
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -115,8 +99,6 @@ export function AdminNoteResourceToJSONTyped(value?: AdminNoteResource | null, i
115
99
  return {
116
100
 
117
101
  'id': value['id'],
118
- 'orderId': value['orderId'],
119
- 'adminId': value['adminId'],
120
102
  'note': value['note'],
121
103
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
122
104
  'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
@@ -55,6 +55,13 @@ 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';
58
65
  import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
59
66
  import {
60
67
  LiAdminUserLiteResourceFromJSON,
@@ -69,13 +76,6 @@ import {
69
76
  OmnisendSyncLiteResourceToJSON,
70
77
  OmnisendSyncLiteResourceToJSONTyped,
71
78
  } 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 {CustomerListResource}
299
+ * @type {CustomerResource}
300
300
  * @memberof AdminOrderResource
301
301
  */
302
- customer: CustomerListResource | null;
302
+ customer: CustomerResource | 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': CustomerListResourceFromJSON(json['customer']),
449
+ 'customer': CustomerResourceFromJSON(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': CustomerListResourceToJSON(value['customer']),
507
+ 'customer': CustomerResourceToJSON(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)),