@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.
- 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 +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- 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/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +4 -4
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.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/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 +2 -3
- 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/StoreListResource.ts +5 -5
- package/src/models/StoreResource.ts +2 -3
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -349,7 +349,6 @@ docs/PaginatedSupplierResourceResponse.md
|
|
|
349
349
|
docs/PaginatedTagListResourceResponse.md
|
|
350
350
|
docs/PaginatedTagLiteResourceResponse.md
|
|
351
351
|
docs/PaginatedTagResourceResponse.md
|
|
352
|
-
docs/PaginatedTransactionListResourceResponse.md
|
|
353
352
|
docs/PaginatedTransactionResourceResponse.md
|
|
354
353
|
docs/PagingMetadata.md
|
|
355
354
|
docs/PaymentMethod.md
|
|
@@ -559,7 +558,6 @@ docs/SitePaymentConfigResource.md
|
|
|
559
558
|
docs/SitePaymentConfigResourceArrayResponse.md
|
|
560
559
|
docs/SiteResource.md
|
|
561
560
|
docs/SiteResourceArrayResponse.md
|
|
562
|
-
docs/SkuSearchProductChildRequest.md
|
|
563
561
|
docs/StoreApi.md
|
|
564
562
|
docs/StoreFrontendResource.md
|
|
565
563
|
docs/StoreFrontendResourceArrayResponse.md
|
|
@@ -597,8 +595,6 @@ docs/TagResource.md
|
|
|
597
595
|
docs/TagResourceArrayResponse.md
|
|
598
596
|
docs/TagType.md
|
|
599
597
|
docs/Thumbnail.md
|
|
600
|
-
docs/TransactionListResource.md
|
|
601
|
-
docs/TransactionListResourceArrayResponse.md
|
|
602
598
|
docs/TransactionLiteResource.md
|
|
603
599
|
docs/TransactionLiteResourceArrayResponse.md
|
|
604
600
|
docs/TransactionResource.md
|
|
@@ -1011,7 +1007,6 @@ src/models/PaginatedSupplierResourceResponse.ts
|
|
|
1011
1007
|
src/models/PaginatedTagListResourceResponse.ts
|
|
1012
1008
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
1013
1009
|
src/models/PaginatedTagResourceResponse.ts
|
|
1014
|
-
src/models/PaginatedTransactionListResourceResponse.ts
|
|
1015
1010
|
src/models/PaginatedTransactionResourceResponse.ts
|
|
1016
1011
|
src/models/PagingMetadata.ts
|
|
1017
1012
|
src/models/PaymentMethod.ts
|
|
@@ -1213,7 +1208,6 @@ src/models/SitePaymentConfigResource.ts
|
|
|
1213
1208
|
src/models/SitePaymentConfigResourceArrayResponse.ts
|
|
1214
1209
|
src/models/SiteResource.ts
|
|
1215
1210
|
src/models/SiteResourceArrayResponse.ts
|
|
1216
|
-
src/models/SkuSearchProductChildRequest.ts
|
|
1217
1211
|
src/models/StoreFrontendResource.ts
|
|
1218
1212
|
src/models/StoreFrontendResourceArrayResponse.ts
|
|
1219
1213
|
src/models/StoreListResource.ts
|
|
@@ -1248,8 +1242,6 @@ src/models/TagResource.ts
|
|
|
1248
1242
|
src/models/TagResourceArrayResponse.ts
|
|
1249
1243
|
src/models/TagType.ts
|
|
1250
1244
|
src/models/Thumbnail.ts
|
|
1251
|
-
src/models/TransactionListResource.ts
|
|
1252
|
-
src/models/TransactionListResourceArrayResponse.ts
|
|
1253
1245
|
src/models/TransactionLiteResource.ts
|
|
1254
1246
|
src/models/TransactionLiteResourceArrayResponse.ts
|
|
1255
1247
|
src/models/TransactionResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.2031
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -189,7 +189,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
189
189
|
*ProductApi* | [**showAttributesProductChild**](docs/ProductApi.md#showattributesproductchild) | **POST** /admin-api/product/children/{productChild}/attributes | Auto-generated: showAttributesProductChild
|
|
190
190
|
*ProductApi* | [**showProduct**](docs/ProductApi.md#showproduct) | **GET** /admin-api/product/parent/{product} | Auto-generated: showProduct
|
|
191
191
|
*ProductApi* | [**showProductChild**](docs/ProductApi.md#showproductchild) | **GET** /admin-api/product/children/{productChild} | Auto-generated: showProductChild
|
|
192
|
-
*ProductApi* | [**skuSearchProductChild**](docs/ProductApi.md#skusearchproductchildoperation) | **POST** /admin-api/product/children/sku-search | Auto-generated: skuSearchProductChild
|
|
193
192
|
*ProductApi* | [**storeProduct**](docs/ProductApi.md#storeproduct) | **POST** /admin-api/product/parent/create | Auto-generated: storeProduct
|
|
194
193
|
*ProductApi* | [**storeProductChild**](docs/ProductApi.md#storeproductchild) | **POST** /admin-api/product/children/create | Auto-generated: storeProductChild
|
|
195
194
|
*ProductApi* | [**updateProduct**](docs/ProductApi.md#updateproductoperation) | **PUT** /admin-api/product/parent/{product}/update | Auto-generated: updateProduct
|
|
@@ -621,7 +620,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
621
620
|
- [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
|
|
622
621
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
623
622
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
624
|
-
- [PaginatedTransactionListResourceResponse](docs/PaginatedTransactionListResourceResponse.md)
|
|
625
623
|
- [PaginatedTransactionResourceResponse](docs/PaginatedTransactionResourceResponse.md)
|
|
626
624
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
627
625
|
- [PaymentMethod](docs/PaymentMethod.md)
|
|
@@ -823,7 +821,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
823
821
|
- [SitePaymentConfigResourceArrayResponse](docs/SitePaymentConfigResourceArrayResponse.md)
|
|
824
822
|
- [SiteResource](docs/SiteResource.md)
|
|
825
823
|
- [SiteResourceArrayResponse](docs/SiteResourceArrayResponse.md)
|
|
826
|
-
- [SkuSearchProductChildRequest](docs/SkuSearchProductChildRequest.md)
|
|
827
824
|
- [StoreFrontendResource](docs/StoreFrontendResource.md)
|
|
828
825
|
- [StoreFrontendResourceArrayResponse](docs/StoreFrontendResourceArrayResponse.md)
|
|
829
826
|
- [StoreListResource](docs/StoreListResource.md)
|
|
@@ -858,8 +855,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
858
855
|
- [TagResourceArrayResponse](docs/TagResourceArrayResponse.md)
|
|
859
856
|
- [TagType](docs/TagType.md)
|
|
860
857
|
- [Thumbnail](docs/Thumbnail.md)
|
|
861
|
-
- [TransactionListResource](docs/TransactionListResource.md)
|
|
862
|
-
- [TransactionListResourceArrayResponse](docs/TransactionListResourceArrayResponse.md)
|
|
863
858
|
- [TransactionLiteResource](docs/TransactionLiteResource.md)
|
|
864
859
|
- [TransactionLiteResourceArrayResponse](docs/TransactionLiteResourceArrayResponse.md)
|
|
865
860
|
- [TransactionResource](docs/TransactionResource.md)
|
|
@@ -922,7 +917,7 @@ and is automatically generated by the
|
|
|
922
917
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
923
918
|
|
|
924
919
|
- API version: `1.0.0`
|
|
925
|
-
- Package version: `0.0.
|
|
920
|
+
- Package version: `0.0.2031`
|
|
926
921
|
- Generator version: `7.22.0`
|
|
927
922
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
928
923
|
|
|
@@ -31,7 +31,6 @@ import { type SearchProductChildAttributesRequest } from '../models/SearchProduc
|
|
|
31
31
|
import { type SearchProductChildrenRequest } from '../models/SearchProductChildrenRequest';
|
|
32
32
|
import { type SearchProductsRequest } from '../models/SearchProductsRequest';
|
|
33
33
|
import { type ShowProductChildAssetsRequest } from '../models/ShowProductChildAssetsRequest';
|
|
34
|
-
import { type SkuSearchProductChildRequest } from '../models/SkuSearchProductChildRequest';
|
|
35
34
|
import { type UpdateProductChildRequest } from '../models/UpdateProductChildRequest';
|
|
36
35
|
import { type UpdateProductRequest } from '../models/UpdateProductRequest';
|
|
37
36
|
export interface AttachAccessoriesProductChildRequest {
|
|
@@ -98,9 +97,6 @@ export interface ShowProductRequest {
|
|
|
98
97
|
export interface ShowProductChildRequest {
|
|
99
98
|
productChild: number;
|
|
100
99
|
}
|
|
101
|
-
export interface SkuSearchProductChildOperationRequest {
|
|
102
|
-
skuSearchProductChildRequest?: SkuSearchProductChildRequest;
|
|
103
|
-
}
|
|
104
100
|
export interface StoreProductRequest {
|
|
105
101
|
createProductRequest?: CreateProductRequest;
|
|
106
102
|
}
|
|
@@ -335,18 +331,6 @@ export declare class ProductApi extends runtime.BaseAPI {
|
|
|
335
331
|
* Auto-generated: showProductChild
|
|
336
332
|
*/
|
|
337
333
|
showProductChild(requestParameters: ShowProductChildRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource>;
|
|
338
|
-
/**
|
|
339
|
-
* Creates request options for skuSearchProductChild without sending the request
|
|
340
|
-
*/
|
|
341
|
-
skuSearchProductChildRequestOpts(requestParameters: SkuSearchProductChildOperationRequest): Promise<runtime.RequestOpts>;
|
|
342
|
-
/**
|
|
343
|
-
* Auto-generated: skuSearchProductChild
|
|
344
|
-
*/
|
|
345
|
-
skuSearchProductChildRaw(requestParameters: SkuSearchProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProductChildResource>>;
|
|
346
|
-
/**
|
|
347
|
-
* Auto-generated: skuSearchProductChild
|
|
348
|
-
*/
|
|
349
|
-
skuSearchProductChild(requestParameters?: SkuSearchProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProductChildResource>;
|
|
350
334
|
/**
|
|
351
335
|
* Creates request options for storeProduct without sending the request
|
|
352
336
|
*/
|
package/dist/apis/ProductApi.js
CHANGED
|
@@ -87,7 +87,6 @@ var SearchProductChildAttributesRequest_1 = require("../models/SearchProductChil
|
|
|
87
87
|
var SearchProductChildrenRequest_1 = require("../models/SearchProductChildrenRequest");
|
|
88
88
|
var SearchProductsRequest_1 = require("../models/SearchProductsRequest");
|
|
89
89
|
var ShowProductChildAssetsRequest_1 = require("../models/ShowProductChildAssetsRequest");
|
|
90
|
-
var SkuSearchProductChildRequest_1 = require("../models/SkuSearchProductChildRequest");
|
|
91
90
|
var UpdateProductChildRequest_1 = require("../models/UpdateProductChildRequest");
|
|
92
91
|
var UpdateProductRequest_1 = require("../models/UpdateProductRequest");
|
|
93
92
|
/**
|
|
@@ -1180,64 +1179,6 @@ var ProductApi = /** @class */ (function (_super) {
|
|
|
1180
1179
|
});
|
|
1181
1180
|
});
|
|
1182
1181
|
};
|
|
1183
|
-
/**
|
|
1184
|
-
* Creates request options for skuSearchProductChild without sending the request
|
|
1185
|
-
*/
|
|
1186
|
-
ProductApi.prototype.skuSearchProductChildRequestOpts = function (requestParameters) {
|
|
1187
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1188
|
-
var queryParameters, headerParameters, urlPath;
|
|
1189
|
-
return __generator(this, function (_a) {
|
|
1190
|
-
queryParameters = {};
|
|
1191
|
-
headerParameters = {};
|
|
1192
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1193
|
-
urlPath = "/admin-api/product/children/sku-search";
|
|
1194
|
-
return [2 /*return*/, {
|
|
1195
|
-
path: urlPath,
|
|
1196
|
-
method: 'POST',
|
|
1197
|
-
headers: headerParameters,
|
|
1198
|
-
query: queryParameters,
|
|
1199
|
-
body: (0, SkuSearchProductChildRequest_1.SkuSearchProductChildRequestToJSON)(requestParameters['skuSearchProductChildRequest']),
|
|
1200
|
-
}];
|
|
1201
|
-
});
|
|
1202
|
-
});
|
|
1203
|
-
};
|
|
1204
|
-
/**
|
|
1205
|
-
* Auto-generated: skuSearchProductChild
|
|
1206
|
-
*/
|
|
1207
|
-
ProductApi.prototype.skuSearchProductChildRaw = function (requestParameters, initOverrides) {
|
|
1208
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1209
|
-
var requestOptions, response;
|
|
1210
|
-
return __generator(this, function (_a) {
|
|
1211
|
-
switch (_a.label) {
|
|
1212
|
-
case 0: return [4 /*yield*/, this.skuSearchProductChildRequestOpts(requestParameters)];
|
|
1213
|
-
case 1:
|
|
1214
|
-
requestOptions = _a.sent();
|
|
1215
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1216
|
-
case 2:
|
|
1217
|
-
response = _a.sent();
|
|
1218
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ProductChildResource_1.ProductChildResourceFromJSON)(jsonValue); })];
|
|
1219
|
-
}
|
|
1220
|
-
});
|
|
1221
|
-
});
|
|
1222
|
-
};
|
|
1223
|
-
/**
|
|
1224
|
-
* Auto-generated: skuSearchProductChild
|
|
1225
|
-
*/
|
|
1226
|
-
ProductApi.prototype.skuSearchProductChild = function () {
|
|
1227
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1228
|
-
var response;
|
|
1229
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1230
|
-
return __generator(this, function (_a) {
|
|
1231
|
-
switch (_a.label) {
|
|
1232
|
-
case 0: return [4 /*yield*/, this.skuSearchProductChildRaw(requestParameters, initOverrides)];
|
|
1233
|
-
case 1:
|
|
1234
|
-
response = _a.sent();
|
|
1235
|
-
return [4 /*yield*/, response.value()];
|
|
1236
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
1237
|
-
}
|
|
1238
|
-
});
|
|
1239
|
-
});
|
|
1240
|
-
};
|
|
1241
1182
|
/**
|
|
1242
1183
|
* Creates request options for storeProduct without sending the request
|
|
1243
1184
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type CreateTransactionRequest } from '../models/CreateTransactionRequest';
|
|
14
|
-
import { type
|
|
14
|
+
import { type PaginatedTransactionResourceResponse } from '../models/PaginatedTransactionResourceResponse';
|
|
15
15
|
import { type RefundTransactionRequest } from '../models/RefundTransactionRequest';
|
|
16
16
|
import { type SearchTransactionsRequest } from '../models/SearchTransactionsRequest';
|
|
17
17
|
import { type StoreTransactionResource } from '../models/StoreTransactionResource';
|
|
@@ -37,11 +37,11 @@ export declare class TransactionsApi extends runtime.BaseAPI {
|
|
|
37
37
|
/**
|
|
38
38
|
* Auto-generated: indexTransaction
|
|
39
39
|
*/
|
|
40
|
-
indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
40
|
+
indexTransactionRaw(requestParameters: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTransactionResourceResponse>>;
|
|
41
41
|
/**
|
|
42
42
|
* Auto-generated: indexTransaction
|
|
43
43
|
*/
|
|
44
|
-
indexTransaction(requestParameters?: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
44
|
+
indexTransaction(requestParameters?: IndexTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTransactionResourceResponse>;
|
|
45
45
|
/**
|
|
46
46
|
* Creates request options for refundTransaction without sending the request
|
|
47
47
|
*/
|
|
@@ -67,7 +67,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
67
67
|
exports.TransactionsApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var CreateTransactionRequest_1 = require("../models/CreateTransactionRequest");
|
|
70
|
-
var
|
|
70
|
+
var PaginatedTransactionResourceResponse_1 = require("../models/PaginatedTransactionResourceResponse");
|
|
71
71
|
var RefundTransactionRequest_1 = require("../models/RefundTransactionRequest");
|
|
72
72
|
var SearchTransactionsRequest_1 = require("../models/SearchTransactionsRequest");
|
|
73
73
|
var StoreTransactionResource_1 = require("../models/StoreTransactionResource");
|
|
@@ -115,7 +115,7 @@ var TransactionsApi = /** @class */ (function (_super) {
|
|
|
115
115
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
116
116
|
case 2:
|
|
117
117
|
response = _a.sent();
|
|
118
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0,
|
|
118
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedTransactionResourceResponse_1.PaginatedTransactionResourceResponseFromJSON)(jsonValue); })];
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
});
|
|
@@ -22,8 +22,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressFrontendResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
26
|
-
return false;
|
|
27
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
28
26
|
return false;
|
|
29
27
|
if (!('line2' in value) || value['line2'] === undefined)
|
|
@@ -48,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
46
|
return json;
|
|
49
47
|
}
|
|
50
48
|
return {
|
|
51
|
-
'company': json['company'],
|
|
49
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
52
50
|
'line1': json['line1'],
|
|
53
51
|
'line2': json['line2'],
|
|
54
52
|
'postcode': json['postcode'],
|
|
@@ -21,12 +21,6 @@ export interface AddressResource {
|
|
|
21
21
|
* @memberof AddressResource
|
|
22
22
|
*/
|
|
23
23
|
id?: number | null;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof AddressResource
|
|
28
|
-
*/
|
|
29
|
-
type?: string | null;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {number}
|
|
@@ -44,7 +38,7 @@ export interface AddressResource {
|
|
|
44
38
|
* @type {string}
|
|
45
39
|
* @memberof AddressResource
|
|
46
40
|
*/
|
|
47
|
-
company
|
|
41
|
+
company?: string | null;
|
|
48
42
|
/**
|
|
49
43
|
*
|
|
50
44
|
* @type {string}
|
|
@@ -56,7 +50,7 @@ export interface AddressResource {
|
|
|
56
50
|
* @type {string}
|
|
57
51
|
* @memberof AddressResource
|
|
58
52
|
*/
|
|
59
|
-
line2
|
|
53
|
+
line2?: string | null;
|
|
60
54
|
/**
|
|
61
55
|
*
|
|
62
56
|
* @type {string}
|
|
@@ -24,12 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
28
|
return false;
|
|
31
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
32
|
-
return false;
|
|
33
29
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
34
30
|
return false;
|
|
35
31
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -51,12 +47,11 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
47
|
}
|
|
52
48
|
return {
|
|
53
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
54
|
-
'type': json['type'] == null ? undefined : json['type'],
|
|
55
50
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
56
51
|
'addresseeName': json['addresseeName'],
|
|
57
|
-
'company': json['company'],
|
|
52
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
58
53
|
'line1': json['line1'],
|
|
59
|
-
'line2': json['line2'],
|
|
54
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
60
55
|
'postcode': json['postcode'],
|
|
61
56
|
'suburb': json['suburb'],
|
|
62
57
|
'country': json['country'],
|
|
@@ -74,7 +69,6 @@ function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
69
|
}
|
|
75
70
|
return {
|
|
76
71
|
'id': value['id'],
|
|
77
|
-
'type': value['type'],
|
|
78
72
|
'sourceAddressId': value['sourceAddressId'],
|
|
79
73
|
'addresseeName': value['addresseeName'],
|
|
80
74
|
'company': value['company'],
|
|
@@ -22,6 +22,18 @@ export interface AdminNoteResource {
|
|
|
22
22
|
* @memberof AdminNoteResource
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AdminNoteResource
|
|
29
|
+
*/
|
|
30
|
+
orderId: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AdminNoteResource
|
|
35
|
+
*/
|
|
36
|
+
adminId: number;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {string}
|
|
@@ -25,6 +25,10 @@ var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
|
25
25
|
function instanceOfAdminNoteResource(value) {
|
|
26
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('orderId' in value) || value['orderId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('adminId' in value) || value['adminId'] === undefined)
|
|
31
|
+
return false;
|
|
28
32
|
if (!('note' in value) || value['note'] === undefined)
|
|
29
33
|
return false;
|
|
30
34
|
if (!('admin' in value) || value['admin'] === undefined)
|
|
@@ -40,6 +44,8 @@ function AdminNoteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
44
|
}
|
|
41
45
|
return {
|
|
42
46
|
'id': json['id'],
|
|
47
|
+
'orderId': json['orderId'],
|
|
48
|
+
'adminId': json['adminId'],
|
|
43
49
|
'note': json['note'],
|
|
44
50
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
45
51
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -56,6 +62,8 @@ function AdminNoteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
56
62
|
}
|
|
57
63
|
return {
|
|
58
64
|
'id': value['id'],
|
|
65
|
+
'orderId': value['orderId'],
|
|
66
|
+
'adminId': value['adminId'],
|
|
59
67
|
'note': value['note'],
|
|
60
68
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
61
69
|
'updatedAt': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
@@ -15,9 +15,9 @@ import type { LineItemListResource } from './LineItemListResource';
|
|
|
15
15
|
import type { TransactionLiteResource } from './TransactionLiteResource';
|
|
16
16
|
import type { OrderStatusLiteResource } from './OrderStatusLiteResource';
|
|
17
17
|
import type { CartCouponResource } from './CartCouponResource';
|
|
18
|
-
import type { CustomerResource } from './CustomerResource';
|
|
19
18
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
20
19
|
import type { OmnisendSyncLiteResource } from './OmnisendSyncLiteResource';
|
|
20
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
21
21
|
import type { AddressResource } from './AddressResource';
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
@@ -231,10 +231,10 @@ export interface AdminOrderResource {
|
|
|
231
231
|
site: SiteLiteResource | null;
|
|
232
232
|
/**
|
|
233
233
|
*
|
|
234
|
-
* @type {
|
|
234
|
+
* @type {CustomerListResource}
|
|
235
235
|
* @memberof AdminOrderResource
|
|
236
236
|
*/
|
|
237
|
-
customer:
|
|
237
|
+
customer: CustomerListResource | null;
|
|
238
238
|
/**
|
|
239
239
|
*
|
|
240
240
|
* @type {LiAdminUserLiteResource}
|
|
@@ -24,9 +24,9 @@ var LineItemListResource_1 = require("./LineItemListResource");
|
|
|
24
24
|
var TransactionLiteResource_1 = require("./TransactionLiteResource");
|
|
25
25
|
var OrderStatusLiteResource_1 = require("./OrderStatusLiteResource");
|
|
26
26
|
var CartCouponResource_1 = require("./CartCouponResource");
|
|
27
|
-
var CustomerResource_1 = require("./CustomerResource");
|
|
28
27
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
29
28
|
var OmnisendSyncLiteResource_1 = require("./OmnisendSyncLiteResource");
|
|
29
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
30
30
|
var AddressResource_1 = require("./AddressResource");
|
|
31
31
|
/**
|
|
32
32
|
* Check if a given object implements the AdminOrderResource interface.
|
|
@@ -154,7 +154,7 @@ function AdminOrderResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
154
154
|
'shippingEstimate': json['shippingEstimate'],
|
|
155
155
|
'insuranceEstimate': json['insuranceEstimate'],
|
|
156
156
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
157
|
-
'customer': (0,
|
|
157
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
158
158
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
159
159
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceFromJSON)(json['status']),
|
|
160
160
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
@@ -209,7 +209,7 @@ function AdminOrderResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
209
209
|
'shippingEstimate': value['shippingEstimate'],
|
|
210
210
|
'insuranceEstimate': value['insuranceEstimate'],
|
|
211
211
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
212
|
-
'customer': (0,
|
|
212
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
213
213
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
214
214
|
'status': (0, OrderStatusLiteResource_1.OrderStatusLiteResourceToJSON)(value['status']),
|
|
215
215
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
13
|
import type { LineItemListResource } from './LineItemListResource';
|
|
14
|
-
import type { CustomerResource } from './CustomerResource';
|
|
15
14
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
15
|
+
import type { CustomerListResource } from './CustomerListResource';
|
|
16
16
|
import type { AddressResource } from './AddressResource';
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
@@ -130,10 +130,10 @@ export interface CartResource {
|
|
|
130
130
|
site: SiteLiteResource | null;
|
|
131
131
|
/**
|
|
132
132
|
*
|
|
133
|
-
* @type {
|
|
133
|
+
* @type {CustomerListResource}
|
|
134
134
|
* @memberof CartResource
|
|
135
135
|
*/
|
|
136
|
-
customer:
|
|
136
|
+
customer: CustomerListResource | null;
|
|
137
137
|
/**
|
|
138
138
|
*
|
|
139
139
|
* @type {Array<LineItemListResource>}
|
|
@@ -20,8 +20,8 @@ exports.CartResourceToJSON = CartResourceToJSON;
|
|
|
20
20
|
exports.CartResourceToJSONTyped = CartResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
22
|
var LineItemListResource_1 = require("./LineItemListResource");
|
|
23
|
-
var CustomerResource_1 = require("./CustomerResource");
|
|
24
23
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
24
|
+
var CustomerListResource_1 = require("./CustomerListResource");
|
|
25
25
|
var AddressResource_1 = require("./AddressResource");
|
|
26
26
|
/**
|
|
27
27
|
* Check if a given object implements the CartResource interface.
|
|
@@ -105,7 +105,7 @@ function CartResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
105
105
|
'useAsBillingAddress': json['useAsBillingAddress'],
|
|
106
106
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceFromJSON)(json['admin']),
|
|
107
107
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
108
|
-
'customer': (0,
|
|
108
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceFromJSON)(json['customer']),
|
|
109
109
|
'lineItems': (json['lineItems'] == null ? null : json['lineItems'].map(LineItemListResource_1.LineItemListResourceFromJSON)),
|
|
110
110
|
'coupons': json['coupons'],
|
|
111
111
|
'shippingAddress': (0, AddressResource_1.AddressResourceFromJSON)(json['shippingAddress']),
|
|
@@ -150,7 +150,7 @@ function CartResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
150
150
|
'useAsBillingAddress': value['useAsBillingAddress'],
|
|
151
151
|
'admin': (0, LiAdminUserLiteResource_1.LiAdminUserLiteResourceToJSON)(value['admin']),
|
|
152
152
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
153
|
-
'customer': (0,
|
|
153
|
+
'customer': (0, CustomerListResource_1.CustomerListResourceToJSON)(value['customer']),
|
|
154
154
|
'lineItems': (value['lineItems'] == null ? null : value['lineItems'].map(LineItemListResource_1.LineItemListResourceToJSON)),
|
|
155
155
|
'coupons': value['coupons'],
|
|
156
156
|
'shippingAddress': (0, AddressResource_1.AddressResourceToJSON)(value['shippingAddress']),
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
+
import type { LiAddressResource } from './LiAddressResource';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -52,6 +53,12 @@ export interface CustomerListResource {
|
|
|
52
53
|
* @memberof CustomerListResource
|
|
53
54
|
*/
|
|
54
55
|
site: SiteLiteResource | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<LiAddressResource>}
|
|
59
|
+
* @memberof CustomerListResource
|
|
60
|
+
*/
|
|
61
|
+
addresses: Array<LiAddressResource> | null;
|
|
55
62
|
}
|
|
56
63
|
/**
|
|
57
64
|
* Check if a given object implements the CustomerListResource interface.
|
|
@@ -19,6 +19,7 @@ exports.CustomerListResourceFromJSONTyped = CustomerListResourceFromJSONTyped;
|
|
|
19
19
|
exports.CustomerListResourceToJSON = CustomerListResourceToJSON;
|
|
20
20
|
exports.CustomerListResourceToJSONTyped = CustomerListResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
+
var LiAddressResource_1 = require("./LiAddressResource");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the CustomerListResource interface.
|
|
24
25
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfCustomerListResource(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('site' in value) || value['site'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('addresses' in value) || value['addresses'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function CustomerListResourceFromJSON(json) {
|
|
@@ -49,6 +52,7 @@ function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
52
|
'email': json['email'],
|
|
50
53
|
'phone': json['phone'],
|
|
51
54
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
55
|
+
'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
58
|
function CustomerListResourceToJSON(json) {
|
|
@@ -66,5 +70,6 @@ function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
70
|
'email': value['email'],
|
|
67
71
|
'phone': value['phone'],
|
|
68
72
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
73
|
+
'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
|
|
69
74
|
};
|
|
70
75
|
}
|
|
@@ -57,7 +57,7 @@ export interface StoreListResource {
|
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof StoreListResource
|
|
59
59
|
*/
|
|
60
|
-
tagLine
|
|
60
|
+
tagLine?: string | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
63
|
* @type {string}
|
|
@@ -69,7 +69,7 @@ export interface StoreListResource {
|
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof StoreListResource
|
|
71
71
|
*/
|
|
72
|
-
website
|
|
72
|
+
website: string;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -33,10 +33,10 @@ function instanceOfStoreListResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('tagLine' in value) || value['tagLine'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('email' in value) || value['email'] === undefined)
|
|
39
37
|
return false;
|
|
38
|
+
if (!('website' in value) || value['website'] === undefined)
|
|
39
|
+
return false;
|
|
40
40
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
41
41
|
return false;
|
|
42
42
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -57,9 +57,9 @@ function StoreListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'phone': json['phone'],
|
|
58
58
|
'longitude': json['longitude'],
|
|
59
59
|
'latitude': json['latitude'],
|
|
60
|
-
'tagLine': json['tagLine'],
|
|
60
|
+
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
61
61
|
'email': json['email'],
|
|
62
|
-
'website': json['website']
|
|
62
|
+
'website': json['website'],
|
|
63
63
|
'netsuiteId': json['netsuiteId'],
|
|
64
64
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
65
65
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|
|
@@ -38,8 +38,6 @@ function instanceOfStoreResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('email' in value) || value['email'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
42
|
-
return false;
|
|
43
41
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
44
42
|
return false;
|
|
45
43
|
if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined)
|
|
@@ -68,7 +66,7 @@ function StoreResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'latitude': json['latitude'],
|
|
69
67
|
'tagLine': json['tagLine'] == null ? undefined : json['tagLine'],
|
|
70
68
|
'email': json['email'],
|
|
71
|
-
'website': json['website'],
|
|
69
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
72
70
|
'netsuiteId': json['netsuiteId'],
|
|
73
71
|
'displayNetsuiteId': json['displayNetsuiteId'],
|
|
74
72
|
'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
|