@digital8/lighting-illusions-ts-sdk 0.0.2025 → 0.0.2026
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 +6 -0
- package/README.md +5 -2
- 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 +8 -2
- package/dist/models/AddressResource.js +4 -6
- package/dist/models/AdminNoteResource.d.ts +0 -12
- package/dist/models/AdminNoteResource.js +0 -8
- 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 +0 -7
- package/dist/models/CustomerListResource.js +0 -5
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +80 -0
- package/dist/models/TransactionListResource.js +81 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionLiteResource.d.ts +6 -0
- package/dist/models/TransactionLiteResource.js +2 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/AddressResource.md +2 -0
- package/docs/AdminNoteResource.md +0 -4
- package/docs/AdminOrderResource.md +1 -1
- package/docs/CartResource.md +1 -1
- package/docs/CustomerListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/StoreSpecialDateResource.md +1 -1
- package/docs/TransactionListResource.md +50 -0
- package/docs/TransactionListResourceArrayResponse.md +34 -0
- package/docs/TransactionLiteResource.md +2 -0
- package/docs/TransactionsApi.md +3 -3
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +12 -6
- package/src/models/AdminNoteResource.ts +0 -18
- package/src/models/AdminOrderResource.ts +11 -11
- package/src/models/CartResource.ts +11 -11
- package/src/models/CustomerListResource.ts +0 -16
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/TransactionListResource.ts +137 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionLiteResource.ts +8 -0
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -349,6 +349,7 @@ docs/PaginatedSupplierResourceResponse.md
|
|
|
349
349
|
docs/PaginatedTagListResourceResponse.md
|
|
350
350
|
docs/PaginatedTagLiteResourceResponse.md
|
|
351
351
|
docs/PaginatedTagResourceResponse.md
|
|
352
|
+
docs/PaginatedTransactionListResourceResponse.md
|
|
352
353
|
docs/PaginatedTransactionResourceResponse.md
|
|
353
354
|
docs/PagingMetadata.md
|
|
354
355
|
docs/PaymentMethod.md
|
|
@@ -595,6 +596,8 @@ docs/TagResource.md
|
|
|
595
596
|
docs/TagResourceArrayResponse.md
|
|
596
597
|
docs/TagType.md
|
|
597
598
|
docs/Thumbnail.md
|
|
599
|
+
docs/TransactionListResource.md
|
|
600
|
+
docs/TransactionListResourceArrayResponse.md
|
|
598
601
|
docs/TransactionLiteResource.md
|
|
599
602
|
docs/TransactionLiteResourceArrayResponse.md
|
|
600
603
|
docs/TransactionResource.md
|
|
@@ -1007,6 +1010,7 @@ src/models/PaginatedSupplierResourceResponse.ts
|
|
|
1007
1010
|
src/models/PaginatedTagListResourceResponse.ts
|
|
1008
1011
|
src/models/PaginatedTagLiteResourceResponse.ts
|
|
1009
1012
|
src/models/PaginatedTagResourceResponse.ts
|
|
1013
|
+
src/models/PaginatedTransactionListResourceResponse.ts
|
|
1010
1014
|
src/models/PaginatedTransactionResourceResponse.ts
|
|
1011
1015
|
src/models/PagingMetadata.ts
|
|
1012
1016
|
src/models/PaymentMethod.ts
|
|
@@ -1242,6 +1246,8 @@ src/models/TagResource.ts
|
|
|
1242
1246
|
src/models/TagResourceArrayResponse.ts
|
|
1243
1247
|
src/models/TagType.ts
|
|
1244
1248
|
src/models/Thumbnail.ts
|
|
1249
|
+
src/models/TransactionListResource.ts
|
|
1250
|
+
src/models/TransactionListResourceArrayResponse.ts
|
|
1245
1251
|
src/models/TransactionLiteResource.ts
|
|
1246
1252
|
src/models/TransactionLiteResourceArrayResponse.ts
|
|
1247
1253
|
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.2026
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -620,6 +620,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
620
620
|
- [PaginatedTagListResourceResponse](docs/PaginatedTagListResourceResponse.md)
|
|
621
621
|
- [PaginatedTagLiteResourceResponse](docs/PaginatedTagLiteResourceResponse.md)
|
|
622
622
|
- [PaginatedTagResourceResponse](docs/PaginatedTagResourceResponse.md)
|
|
623
|
+
- [PaginatedTransactionListResourceResponse](docs/PaginatedTransactionListResourceResponse.md)
|
|
623
624
|
- [PaginatedTransactionResourceResponse](docs/PaginatedTransactionResourceResponse.md)
|
|
624
625
|
- [PagingMetadata](docs/PagingMetadata.md)
|
|
625
626
|
- [PaymentMethod](docs/PaymentMethod.md)
|
|
@@ -855,6 +856,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
855
856
|
- [TagResourceArrayResponse](docs/TagResourceArrayResponse.md)
|
|
856
857
|
- [TagType](docs/TagType.md)
|
|
857
858
|
- [Thumbnail](docs/Thumbnail.md)
|
|
859
|
+
- [TransactionListResource](docs/TransactionListResource.md)
|
|
860
|
+
- [TransactionListResourceArrayResponse](docs/TransactionListResourceArrayResponse.md)
|
|
858
861
|
- [TransactionLiteResource](docs/TransactionLiteResource.md)
|
|
859
862
|
- [TransactionLiteResourceArrayResponse](docs/TransactionLiteResourceArrayResponse.md)
|
|
860
863
|
- [TransactionResource](docs/TransactionResource.md)
|
|
@@ -917,7 +920,7 @@ and is automatically generated by the
|
|
|
917
920
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
918
921
|
|
|
919
922
|
- API version: `1.0.0`
|
|
920
|
-
- Package version: `0.0.
|
|
923
|
+
- Package version: `0.0.2026`
|
|
921
924
|
- Generator version: `7.22.0`
|
|
922
925
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
923
926
|
|
|
@@ -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 PaginatedTransactionListResourceResponse } from '../models/PaginatedTransactionListResourceResponse';
|
|
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<PaginatedTransactionListResourceResponse>>;
|
|
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<PaginatedTransactionListResourceResponse>;
|
|
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 PaginatedTransactionListResourceResponse_1 = require("../models/PaginatedTransactionListResourceResponse");
|
|
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, PaginatedTransactionListResourceResponse_1.PaginatedTransactionListResourceResponseFromJSON)(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 (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -46,7 +44,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
44
|
return json;
|
|
47
45
|
}
|
|
48
46
|
return {
|
|
49
|
-
'company': json['company'],
|
|
47
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
50
48
|
'line1': json['line1'],
|
|
51
49
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
50
|
'postcode': json['postcode'],
|
|
@@ -21,6 +21,12 @@ 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;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {number}
|
|
@@ -32,13 +38,13 @@ export interface AddressResource {
|
|
|
32
38
|
* @type {string}
|
|
33
39
|
* @memberof AddressResource
|
|
34
40
|
*/
|
|
35
|
-
addresseeName
|
|
41
|
+
addresseeName?: string | null;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {string}
|
|
39
45
|
* @memberof AddressResource
|
|
40
46
|
*/
|
|
41
|
-
company
|
|
47
|
+
company?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {string}
|
|
@@ -22,10 +22,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
22
22
|
* Check if a given object implements the AddressResource interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('company' in value) || value['company'] === undefined)
|
|
28
|
-
return false;
|
|
29
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
30
26
|
return false;
|
|
31
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
@@ -49,9 +45,10 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
45
|
}
|
|
50
46
|
return {
|
|
51
47
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
52
49
|
'sourceAddressId': json['sourceAddressId'] == null ? undefined : json['sourceAddressId'],
|
|
53
|
-
'addresseeName': json['addresseeName'],
|
|
54
|
-
'company': json['company'],
|
|
50
|
+
'addresseeName': json['addresseeName'] == null ? undefined : json['addresseeName'],
|
|
51
|
+
'company': json['company'] == null ? undefined : json['company'],
|
|
55
52
|
'line1': json['line1'],
|
|
56
53
|
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
57
54
|
'postcode': json['postcode'],
|
|
@@ -71,6 +68,7 @@ function AddressResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
68
|
}
|
|
72
69
|
return {
|
|
73
70
|
'id': value['id'],
|
|
71
|
+
'type': value['type'],
|
|
74
72
|
'sourceAddressId': value['sourceAddressId'],
|
|
75
73
|
'addresseeName': value['addresseeName'],
|
|
76
74
|
'company': value['company'],
|
|
@@ -22,18 +22,6 @@ 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;
|
|
37
25
|
/**
|
|
38
26
|
*
|
|
39
27
|
* @type {string}
|
|
@@ -25,10 +25,6 @@ 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;
|
|
32
28
|
if (!('note' in value) || value['note'] === undefined)
|
|
33
29
|
return false;
|
|
34
30
|
if (!('admin' in value) || value['admin'] === undefined)
|
|
@@ -44,8 +40,6 @@ function AdminNoteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
40
|
}
|
|
45
41
|
return {
|
|
46
42
|
'id': json['id'],
|
|
47
|
-
'orderId': json['orderId'],
|
|
48
|
-
'adminId': json['adminId'],
|
|
49
43
|
'note': json['note'],
|
|
50
44
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
51
45
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -62,8 +56,6 @@ function AdminNoteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
62
56
|
}
|
|
63
57
|
return {
|
|
64
58
|
'id': value['id'],
|
|
65
|
-
'orderId': value['orderId'],
|
|
66
|
-
'adminId': value['adminId'],
|
|
67
59
|
'note': value['note'],
|
|
68
60
|
'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
69
61
|
'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';
|
|
18
19
|
import type { LiAdminUserLiteResource } from './LiAdminUserLiteResource';
|
|
19
20
|
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 {CustomerResource}
|
|
235
235
|
* @memberof AdminOrderResource
|
|
236
236
|
*/
|
|
237
|
-
customer:
|
|
237
|
+
customer: CustomerResource | 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");
|
|
27
28
|
var LiAdminUserLiteResource_1 = require("./LiAdminUserLiteResource");
|
|
28
29
|
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, CustomerResource_1.CustomerResourceFromJSON)(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, CustomerResource_1.CustomerResourceToJSON)(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';
|
|
14
15
|
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 {CustomerResource}
|
|
134
134
|
* @memberof CartResource
|
|
135
135
|
*/
|
|
136
|
-
customer:
|
|
136
|
+
customer: CustomerResource | 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");
|
|
23
24
|
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, CustomerResource_1.CustomerResourceFromJSON)(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, CustomerResource_1.CustomerResourceToJSON)(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,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
-
import type { LiAddressResource } from './LiAddressResource';
|
|
14
13
|
/**
|
|
15
14
|
*
|
|
16
15
|
* @export
|
|
@@ -53,12 +52,6 @@ export interface CustomerListResource {
|
|
|
53
52
|
* @memberof CustomerListResource
|
|
54
53
|
*/
|
|
55
54
|
site: SiteLiteResource | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Array<LiAddressResource>}
|
|
59
|
-
* @memberof CustomerListResource
|
|
60
|
-
*/
|
|
61
|
-
addresses: Array<LiAddressResource> | null;
|
|
62
55
|
}
|
|
63
56
|
/**
|
|
64
57
|
* Check if a given object implements the CustomerListResource interface.
|
|
@@ -19,7 +19,6 @@ 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");
|
|
23
22
|
/**
|
|
24
23
|
* Check if a given object implements the CustomerListResource interface.
|
|
25
24
|
*/
|
|
@@ -34,8 +33,6 @@ function instanceOfCustomerListResource(value) {
|
|
|
34
33
|
return false;
|
|
35
34
|
if (!('site' in value) || value['site'] === undefined)
|
|
36
35
|
return false;
|
|
37
|
-
if (!('addresses' in value) || value['addresses'] === undefined)
|
|
38
|
-
return false;
|
|
39
36
|
return true;
|
|
40
37
|
}
|
|
41
38
|
function CustomerListResourceFromJSON(json) {
|
|
@@ -52,7 +49,6 @@ function CustomerListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
49
|
'email': json['email'],
|
|
53
50
|
'phone': json['phone'],
|
|
54
51
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
55
|
-
'addresses': (json['addresses'] == null ? null : json['addresses'].map(LiAddressResource_1.LiAddressResourceFromJSON)),
|
|
56
52
|
};
|
|
57
53
|
}
|
|
58
54
|
function CustomerListResourceToJSON(json) {
|
|
@@ -70,6 +66,5 @@ function CustomerListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
66
|
'email': value['email'],
|
|
71
67
|
'phone': value['phone'],
|
|
72
68
|
'site': (0, SiteLiteResource_1.SiteLiteResourceToJSON)(value['site']),
|
|
73
|
-
'addresses': (value['addresses'] == null ? null : value['addresses'].map(LiAddressResource_1.LiAddressResourceToJSON)),
|
|
74
69
|
};
|
|
75
70
|
}
|
|
@@ -37,8 +37,6 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
-
return false;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { TransactionListResource } from './TransactionListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedTransactionListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedTransactionListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<TransactionListResource>}
|
|
23
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<TransactionListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedTransactionListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
|
|
37
|
+
export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
38
|
+
export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
|
|
39
|
+
export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
|
|
40
|
+
export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
|
|
17
|
+
exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var TransactionListResource_1 = require("./TransactionListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedTransactionListResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedTransactionListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedTransactionListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -28,8 +28,6 @@ function instanceOfStoreFrontendResource(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('email' in value) || value['email'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
-
if (!('website' in value) || value['website'] === undefined)
|
|
32
|
-
return false;
|
|
33
31
|
if (!('phone' in value) || value['phone'] === undefined)
|
|
34
32
|
return false;
|
|
35
33
|
if (!('latitude' in value) || value['latitude'] === undefined)
|
|
@@ -56,7 +54,7 @@ function StoreFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
54
|
'siteId': json['siteId'],
|
|
57
55
|
'name': json['name'],
|
|
58
56
|
'email': json['email'],
|
|
59
|
-
'website': json['website'],
|
|
57
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
60
58
|
'phone': json['phone'],
|
|
61
59
|
'address': json['address'] == null ? undefined : json['address'],
|
|
62
60
|
'latitude': json['latitude'],
|
|
@@ -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'],
|
|
@@ -26,8 +26,6 @@ function instanceOfStoreSpecialDateResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('hours' in value) || value['hours'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('date' in value) || value['date'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('closed' in value) || value['closed'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined)
|
|
@@ -47,7 +45,7 @@ function StoreSpecialDateResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
45
|
'id': json['id'] == null ? undefined : json['id'],
|
|
48
46
|
'name': json['name'],
|
|
49
47
|
'hours': json['hours'],
|
|
50
|
-
'date': json['date'],
|
|
48
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
51
49
|
'closed': json['closed'],
|
|
52
50
|
'displayStartDate': json['displayStartDate'],
|
|
53
51
|
'displayEndDate': json['displayEndDate'],
|