@digital8/lighting-illusions-ts-sdk 0.0.2793 → 0.0.2794
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 -10
- package/README.md +2 -2
- package/dist/apis/CouponsApi.d.ts +1 -9
- package/dist/apis/CouponsApi.js +0 -42
- package/dist/apis/TransactionsApi.d.ts +1 -12
- package/dist/apis/TransactionsApi.js +0 -46
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/AddressFrontendResource.d.ts +3 -3
- package/dist/models/AddressFrontendResource.js +6 -4
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AdminOrderResource.d.ts +0 -12
- package/dist/models/AdminOrderResource.js +0 -8
- package/dist/models/CreatePageRequest.d.ts +2 -2
- package/dist/models/CreatePageRequest.js +3 -2
- package/dist/models/CreateTransactionRequest.d.ts +0 -1
- package/dist/models/CreateTransactionRequest.js +1 -2
- package/dist/models/FrontendCartResource.d.ts +0 -25
- package/dist/models/FrontendCartResource.js +0 -17
- package/dist/models/FrontendOrderResource.d.ts +0 -6
- package/dist/models/FrontendOrderResource.js +0 -4
- package/dist/models/PaymentMethod.d.ts +0 -1
- package/dist/models/PaymentMethod.js +1 -2
- package/dist/models/PaymentTotalsResource.d.ts +0 -25
- package/dist/models/PaymentTotalsResource.js +0 -17
- package/dist/models/SearchTransactionsRequest.d.ts +2 -3
- package/dist/models/SearchTransactionsRequest.js +2 -3
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +8 -12
- package/dist/models/TransactionListResource.js +8 -12
- package/dist/models/TransactionLiteResource.d.ts +8 -12
- package/dist/models/TransactionLiteResource.js +8 -12
- package/dist/models/TransactionResource.d.ts +8 -12
- package/dist/models/TransactionResource.js +8 -12
- package/dist/models/UpdatePageRequest.d.ts +2 -2
- package/dist/models/UpdatePageRequest.js +3 -2
- package/dist/models/index.d.ts +0 -9
- package/dist/models/index.js +0 -9
- package/package.json +1 -1
- package/src/apis/CouponsApi.ts +0 -32
- package/src/apis/TransactionsApi.ts +0 -44
- package/src/apis/index.ts +0 -1
- package/src/models/AddressFrontendResource.ts +8 -7
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AdminOrderResource.ts +0 -18
- package/src/models/CreatePageRequest.ts +4 -4
- package/src/models/CreateTransactionRequest.ts +1 -2
- package/src/models/FrontendCartResource.ts +0 -43
- package/src/models/FrontendOrderResource.ts +0 -9
- package/src/models/PaymentMethod.ts +1 -2
- package/src/models/PaymentTotalsResource.ts +0 -44
- package/src/models/SearchTransactionsRequest.ts +4 -12
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateResource.ts +3 -4
- package/src/models/TransactionListResource.ts +16 -47
- package/src/models/TransactionLiteResource.ts +16 -47
- package/src/models/TransactionResource.ts +16 -47
- package/src/models/UpdatePageRequest.ts +4 -4
- package/src/models/index.ts +0 -9
- package/dist/apis/StoreCreditsApi.d.ts +0 -29
- package/dist/apis/StoreCreditsApi.js +0 -125
- package/dist/models/FrontendCartResourceStoreCreditsInner.d.ts +0 -44
- package/dist/models/FrontendCartResourceStoreCreditsInner.js +0 -53
- package/dist/models/GeneratedCouponCodeResource.d.ts +0 -32
- package/dist/models/GeneratedCouponCodeResource.js +0 -51
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GeneratedCouponCodeResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedStoreCreditListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreCreditListResourceResponse.js +0 -57
- package/dist/models/SearchStoreCreditsRequest.d.ts +0 -106
- package/dist/models/SearchStoreCreditsRequest.js +0 -86
- package/dist/models/StoreCreditListResource.d.ts +0 -86
- package/dist/models/StoreCreditListResource.js +0 -80
- package/dist/models/StoreCreditListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditListResourceArrayResponse.js +0 -50
- package/dist/models/StoreCreditLiteResource.d.ts +0 -44
- package/dist/models/StoreCreditLiteResource.js +0 -59
- package/dist/models/StoreCreditLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreCreditLiteResourceArrayResponse.js +0 -50
- package/src/apis/StoreCreditsApi.ts +0 -69
- package/src/models/FrontendCartResourceStoreCreditsInner.ts +0 -81
- package/src/models/GeneratedCouponCodeResource.ts +0 -66
- package/src/models/GeneratedCouponCodeResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedStoreCreditListResourceResponse.ts +0 -90
- package/src/models/SearchStoreCreditsRequest.ts +0 -161
- package/src/models/StoreCreditListResource.ts +0 -143
- package/src/models/StoreCreditListResourceArrayResponse.ts +0 -73
- package/src/models/StoreCreditLiteResource.ts +0 -84
- package/src/models/StoreCreditLiteResourceArrayResponse.ts +0 -73
|
@@ -39,10 +39,10 @@ export interface StoreSpecialDateResource {
|
|
|
39
39
|
hours: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
43
43
|
* @memberof StoreSpecialDateResource
|
|
44
44
|
*/
|
|
45
|
-
date
|
|
45
|
+
date?: string | null;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {boolean}
|
|
@@ -69,7 +69,6 @@ export interface StoreSpecialDateResource {
|
|
|
69
69
|
export function instanceOfStoreSpecialDateResource(value: object): value is StoreSpecialDateResource {
|
|
70
70
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
71
71
|
if (!('hours' in value) || value['hours'] === undefined) return false;
|
|
72
|
-
if (!('date' in value) || value['date'] === undefined) return false;
|
|
73
72
|
if (!('closed' in value) || value['closed'] === undefined) return false;
|
|
74
73
|
if (!('displayStartDate' in value) || value['displayStartDate'] === undefined) return false;
|
|
75
74
|
if (!('displayEndDate' in value) || value['displayEndDate'] === undefined) return false;
|
|
@@ -89,7 +88,7 @@ export function StoreSpecialDateResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
89
88
|
'id': json['id'] == null ? undefined : json['id'],
|
|
90
89
|
'name': json['name'],
|
|
91
90
|
'hours': json['hours'],
|
|
92
|
-
'date': json['date'],
|
|
91
|
+
'date': json['date'] == null ? undefined : json['date'],
|
|
93
92
|
'closed': json['closed'],
|
|
94
93
|
'displayStartDate': json['displayStartDate'],
|
|
95
94
|
'displayEndDate': json['displayEndDate'],
|
|
@@ -13,35 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionType } from './TransactionType';
|
|
17
|
-
import {
|
|
18
|
-
TransactionTypeFromJSON,
|
|
19
|
-
TransactionTypeFromJSONTyped,
|
|
20
|
-
TransactionTypeToJSON,
|
|
21
|
-
TransactionTypeToJSONTyped,
|
|
22
|
-
} from './TransactionType';
|
|
23
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
-
import {
|
|
25
|
-
PaymentMethodFromJSON,
|
|
26
|
-
PaymentMethodFromJSONTyped,
|
|
27
|
-
PaymentMethodToJSON,
|
|
28
|
-
PaymentMethodToJSONTyped,
|
|
29
|
-
} from './PaymentMethod';
|
|
30
|
-
import type { PaymentSource } from './PaymentSource';
|
|
31
|
-
import {
|
|
32
|
-
PaymentSourceFromJSON,
|
|
33
|
-
PaymentSourceFromJSONTyped,
|
|
34
|
-
PaymentSourceToJSON,
|
|
35
|
-
PaymentSourceToJSONTyped,
|
|
36
|
-
} from './PaymentSource';
|
|
37
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
-
import {
|
|
39
|
-
PaymentStatusFromJSON,
|
|
40
|
-
PaymentStatusFromJSONTyped,
|
|
41
|
-
PaymentStatusToJSON,
|
|
42
|
-
PaymentStatusToJSONTyped,
|
|
43
|
-
} from './PaymentStatus';
|
|
44
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,28 +27,28 @@ export interface TransactionListResource {
|
|
|
56
27
|
id: number;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionListResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionListResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
72
43
|
* @memberof TransactionListResource
|
|
73
44
|
*/
|
|
74
|
-
type:
|
|
45
|
+
type: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionListResource
|
|
79
50
|
*/
|
|
80
|
-
status:
|
|
51
|
+
status: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
54
|
* @type {number}
|
|
@@ -140,8 +111,6 @@ export interface TransactionListResource {
|
|
|
140
111
|
createdAt?: Date | null;
|
|
141
112
|
}
|
|
142
113
|
|
|
143
|
-
|
|
144
|
-
|
|
145
114
|
/**
|
|
146
115
|
* Check if a given object implements the TransactionListResource interface.
|
|
147
116
|
*/
|
|
@@ -170,10 +139,10 @@ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
170
139
|
return {
|
|
171
140
|
|
|
172
141
|
'id': json['id'],
|
|
173
|
-
'paymentSource':
|
|
174
|
-
'paymentMethod':
|
|
175
|
-
'type':
|
|
176
|
-
'status':
|
|
142
|
+
'paymentSource': json['paymentSource'],
|
|
143
|
+
'paymentMethod': json['paymentMethod'],
|
|
144
|
+
'type': json['type'],
|
|
145
|
+
'status': json['status'],
|
|
177
146
|
'totalAmount': json['totalAmount'],
|
|
178
147
|
'surcharge': json['surcharge'],
|
|
179
148
|
'refundedAmount': json['refundedAmount'],
|
|
@@ -199,10 +168,10 @@ export function TransactionListResourceToJSONTyped(value?: TransactionListResour
|
|
|
199
168
|
return {
|
|
200
169
|
|
|
201
170
|
'id': value['id'],
|
|
202
|
-
'paymentSource':
|
|
203
|
-
'paymentMethod':
|
|
204
|
-
'type':
|
|
205
|
-
'status':
|
|
171
|
+
'paymentSource': value['paymentSource'],
|
|
172
|
+
'paymentMethod': value['paymentMethod'],
|
|
173
|
+
'type': value['type'],
|
|
174
|
+
'status': value['status'],
|
|
206
175
|
'totalAmount': value['totalAmount'],
|
|
207
176
|
'surcharge': value['surcharge'],
|
|
208
177
|
'refundedAmount': value['refundedAmount'],
|
|
@@ -13,35 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionType } from './TransactionType';
|
|
17
|
-
import {
|
|
18
|
-
TransactionTypeFromJSON,
|
|
19
|
-
TransactionTypeFromJSONTyped,
|
|
20
|
-
TransactionTypeToJSON,
|
|
21
|
-
TransactionTypeToJSONTyped,
|
|
22
|
-
} from './TransactionType';
|
|
23
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
-
import {
|
|
25
|
-
PaymentMethodFromJSON,
|
|
26
|
-
PaymentMethodFromJSONTyped,
|
|
27
|
-
PaymentMethodToJSON,
|
|
28
|
-
PaymentMethodToJSONTyped,
|
|
29
|
-
} from './PaymentMethod';
|
|
30
|
-
import type { PaymentSource } from './PaymentSource';
|
|
31
|
-
import {
|
|
32
|
-
PaymentSourceFromJSON,
|
|
33
|
-
PaymentSourceFromJSONTyped,
|
|
34
|
-
PaymentSourceToJSON,
|
|
35
|
-
PaymentSourceToJSONTyped,
|
|
36
|
-
} from './PaymentSource';
|
|
37
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
-
import {
|
|
39
|
-
PaymentStatusFromJSON,
|
|
40
|
-
PaymentStatusFromJSONTyped,
|
|
41
|
-
PaymentStatusToJSON,
|
|
42
|
-
PaymentStatusToJSONTyped,
|
|
43
|
-
} from './PaymentStatus';
|
|
44
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,16 +27,16 @@ export interface TransactionLiteResource {
|
|
|
56
27
|
id?: number | null;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionLiteResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionLiteResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
42
|
* @type {string}
|
|
@@ -74,16 +45,16 @@ export interface TransactionLiteResource {
|
|
|
74
45
|
paymentMethodThumbnail: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionLiteResource
|
|
79
50
|
*/
|
|
80
|
-
type:
|
|
51
|
+
type: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
|
-
* @type {
|
|
54
|
+
* @type {string}
|
|
84
55
|
* @memberof TransactionLiteResource
|
|
85
56
|
*/
|
|
86
|
-
status:
|
|
57
|
+
status: string;
|
|
87
58
|
/**
|
|
88
59
|
*
|
|
89
60
|
* @type {number}
|
|
@@ -122,8 +93,6 @@ export interface TransactionLiteResource {
|
|
|
122
93
|
createdAt?: Date | null;
|
|
123
94
|
}
|
|
124
95
|
|
|
125
|
-
|
|
126
|
-
|
|
127
96
|
/**
|
|
128
97
|
* Check if a given object implements the TransactionLiteResource interface.
|
|
129
98
|
*/
|
|
@@ -151,11 +120,11 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
151
120
|
return {
|
|
152
121
|
|
|
153
122
|
'id': json['id'] == null ? undefined : json['id'],
|
|
154
|
-
'paymentSource':
|
|
155
|
-
'paymentMethod':
|
|
123
|
+
'paymentSource': json['paymentSource'],
|
|
124
|
+
'paymentMethod': json['paymentMethod'],
|
|
156
125
|
'paymentMethodThumbnail': json['paymentMethodThumbnail'],
|
|
157
|
-
'type':
|
|
158
|
-
'status':
|
|
126
|
+
'type': json['type'],
|
|
127
|
+
'status': json['status'],
|
|
159
128
|
'amount': json['amount'],
|
|
160
129
|
'surcharge': json['surcharge'],
|
|
161
130
|
'totalAmount': json['totalAmount'],
|
|
@@ -177,11 +146,11 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
|
|
|
177
146
|
return {
|
|
178
147
|
|
|
179
148
|
'id': value['id'],
|
|
180
|
-
'paymentSource':
|
|
181
|
-
'paymentMethod':
|
|
149
|
+
'paymentSource': value['paymentSource'],
|
|
150
|
+
'paymentMethod': value['paymentMethod'],
|
|
182
151
|
'paymentMethodThumbnail': value['paymentMethodThumbnail'],
|
|
183
|
-
'type':
|
|
184
|
-
'status':
|
|
152
|
+
'type': value['type'],
|
|
153
|
+
'status': value['status'],
|
|
185
154
|
'amount': value['amount'],
|
|
186
155
|
'surcharge': value['surcharge'],
|
|
187
156
|
'totalAmount': value['totalAmount'],
|
|
@@ -13,35 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionType } from './TransactionType';
|
|
17
|
-
import {
|
|
18
|
-
TransactionTypeFromJSON,
|
|
19
|
-
TransactionTypeFromJSONTyped,
|
|
20
|
-
TransactionTypeToJSON,
|
|
21
|
-
TransactionTypeToJSONTyped,
|
|
22
|
-
} from './TransactionType';
|
|
23
|
-
import type { PaymentMethod } from './PaymentMethod';
|
|
24
|
-
import {
|
|
25
|
-
PaymentMethodFromJSON,
|
|
26
|
-
PaymentMethodFromJSONTyped,
|
|
27
|
-
PaymentMethodToJSON,
|
|
28
|
-
PaymentMethodToJSONTyped,
|
|
29
|
-
} from './PaymentMethod';
|
|
30
|
-
import type { PaymentSource } from './PaymentSource';
|
|
31
|
-
import {
|
|
32
|
-
PaymentSourceFromJSON,
|
|
33
|
-
PaymentSourceFromJSONTyped,
|
|
34
|
-
PaymentSourceToJSON,
|
|
35
|
-
PaymentSourceToJSONTyped,
|
|
36
|
-
} from './PaymentSource';
|
|
37
|
-
import type { PaymentStatus } from './PaymentStatus';
|
|
38
|
-
import {
|
|
39
|
-
PaymentStatusFromJSON,
|
|
40
|
-
PaymentStatusFromJSONTyped,
|
|
41
|
-
PaymentStatusToJSON,
|
|
42
|
-
PaymentStatusToJSONTyped,
|
|
43
|
-
} from './PaymentStatus';
|
|
44
|
-
|
|
45
16
|
/**
|
|
46
17
|
*
|
|
47
18
|
* @export
|
|
@@ -56,28 +27,28 @@ export interface TransactionResource {
|
|
|
56
27
|
id?: number | null;
|
|
57
28
|
/**
|
|
58
29
|
*
|
|
59
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
60
31
|
* @memberof TransactionResource
|
|
61
32
|
*/
|
|
62
|
-
paymentSource:
|
|
33
|
+
paymentSource: string;
|
|
63
34
|
/**
|
|
64
35
|
*
|
|
65
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
66
37
|
* @memberof TransactionResource
|
|
67
38
|
*/
|
|
68
|
-
paymentMethod:
|
|
39
|
+
paymentMethod: string;
|
|
69
40
|
/**
|
|
70
41
|
*
|
|
71
|
-
* @type {
|
|
42
|
+
* @type {string}
|
|
72
43
|
* @memberof TransactionResource
|
|
73
44
|
*/
|
|
74
|
-
type:
|
|
45
|
+
type: string;
|
|
75
46
|
/**
|
|
76
47
|
*
|
|
77
|
-
* @type {
|
|
48
|
+
* @type {string}
|
|
78
49
|
* @memberof TransactionResource
|
|
79
50
|
*/
|
|
80
|
-
status:
|
|
51
|
+
status: string;
|
|
81
52
|
/**
|
|
82
53
|
*
|
|
83
54
|
* @type {number}
|
|
@@ -152,8 +123,6 @@ export interface TransactionResource {
|
|
|
152
123
|
createdAt?: Date | null;
|
|
153
124
|
}
|
|
154
125
|
|
|
155
|
-
|
|
156
|
-
|
|
157
126
|
/**
|
|
158
127
|
* Check if a given object implements the TransactionResource interface.
|
|
159
128
|
*/
|
|
@@ -182,10 +151,10 @@ export function TransactionResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
182
151
|
return {
|
|
183
152
|
|
|
184
153
|
'id': json['id'] == null ? undefined : json['id'],
|
|
185
|
-
'paymentSource':
|
|
186
|
-
'paymentMethod':
|
|
187
|
-
'type':
|
|
188
|
-
'status':
|
|
154
|
+
'paymentSource': json['paymentSource'],
|
|
155
|
+
'paymentMethod': json['paymentMethod'],
|
|
156
|
+
'type': json['type'],
|
|
157
|
+
'status': json['status'],
|
|
189
158
|
'amount': json['amount'],
|
|
190
159
|
'surcharge': json['surcharge'],
|
|
191
160
|
'totalAmount': json['totalAmount'],
|
|
@@ -213,10 +182,10 @@ export function TransactionResourceToJSONTyped(value?: TransactionResource | nul
|
|
|
213
182
|
return {
|
|
214
183
|
|
|
215
184
|
'id': value['id'],
|
|
216
|
-
'paymentSource':
|
|
217
|
-
'paymentMethod':
|
|
218
|
-
'type':
|
|
219
|
-
'status':
|
|
185
|
+
'paymentSource': value['paymentSource'],
|
|
186
|
+
'paymentMethod': value['paymentMethod'],
|
|
187
|
+
'type': value['type'],
|
|
188
|
+
'status': value['status'],
|
|
220
189
|
'amount': value['amount'],
|
|
221
190
|
'surcharge': value['surcharge'],
|
|
222
191
|
'totalAmount': value['totalAmount'],
|
|
@@ -61,10 +61,10 @@ export interface UpdatePageRequest {
|
|
|
61
61
|
enabled?: boolean;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {Date}
|
|
65
65
|
* @memberof UpdatePageRequest
|
|
66
66
|
*/
|
|
67
|
-
startDate?:
|
|
67
|
+
startDate?: Date | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {CreatePageRequestBlog}
|
|
@@ -108,7 +108,7 @@ export function UpdatePageRequestFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
108
108
|
'name': json['name'],
|
|
109
109
|
'slug': json['slug'],
|
|
110
110
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
111
|
-
'startDate': json['start_date'] == null ? undefined : json['start_date'],
|
|
111
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
112
112
|
'blog': json['blog'] == null ? undefined : CreatePageRequestBlogFromJSON(json['blog']),
|
|
113
113
|
'componentOrder': json['component_order'] == null ? undefined : ((json['component_order'] as Array<any>).map(UpdatePageRequestComponentOrderInnerFromJSON)),
|
|
114
114
|
'seo': ((json['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerFromJSON)),
|
|
@@ -129,7 +129,7 @@ export function UpdatePageRequestToJSONTyped(value?: UpdatePageRequest | null, i
|
|
|
129
129
|
'name': value['name'],
|
|
130
130
|
'slug': value['slug'],
|
|
131
131
|
'enabled': value['enabled'],
|
|
132
|
-
'start_date': value['startDate'],
|
|
132
|
+
'start_date': value['startDate'] === null ? null : ((value['startDate'] as any)?.toISOString()),
|
|
133
133
|
'blog': CreatePageRequestBlogToJSON(value['blog']),
|
|
134
134
|
'component_order': value['componentOrder'] == null ? undefined : ((value['componentOrder'] as Array<any>).map(UpdatePageRequestComponentOrderInnerToJSON)),
|
|
135
135
|
'seo': ((value['seo'] as Array<any>).map(CreateBlogCategoryRequestSeoInnerToJSON)),
|
package/src/models/index.ts
CHANGED
|
@@ -210,7 +210,6 @@ export * from './FreshdeskFaqResourceArrayResponse';
|
|
|
210
210
|
export * from './FrontendCartResource';
|
|
211
211
|
export * from './FrontendCartResourceArrayResponse';
|
|
212
212
|
export * from './FrontendCartResourceCouponsInner';
|
|
213
|
-
export * from './FrontendCartResourceStoreCreditsInner';
|
|
214
213
|
export * from './FrontendComponentLiteResource';
|
|
215
214
|
export * from './FrontendComponentLiteResourceArrayResponse';
|
|
216
215
|
export * from './FrontendComponentResource';
|
|
@@ -228,8 +227,6 @@ export * from './FrontendOrderResource';
|
|
|
228
227
|
export * from './FrontendOrderResourceArrayResponse';
|
|
229
228
|
export * from './FrontendOrderResourceFulfillmentsInner';
|
|
230
229
|
export * from './FrontendOrderResourceFulfillmentsInnerItemsInner';
|
|
231
|
-
export * from './GeneratedCouponCodeResource';
|
|
232
|
-
export * from './GeneratedCouponCodeResourceArrayResponse';
|
|
233
230
|
export * from './GenericResponse';
|
|
234
231
|
export * from './GetUniqueEndpointsRequest';
|
|
235
232
|
export * from './GlobalSearchCategoryResource';
|
|
@@ -405,7 +402,6 @@ export * from './PaginatedSiteLiteResourceResponse';
|
|
|
405
402
|
export * from './PaginatedSiteNotificationListResourceResponse';
|
|
406
403
|
export * from './PaginatedSiteNotificationResourceResponse';
|
|
407
404
|
export * from './PaginatedSiteResourceResponse';
|
|
408
|
-
export * from './PaginatedStoreCreditListResourceResponse';
|
|
409
405
|
export * from './PaginatedStoreListResourceResponse';
|
|
410
406
|
export * from './PaginatedSupplierFrontendResourceResponse';
|
|
411
407
|
export * from './PaginatedSupplierListResourceResponse';
|
|
@@ -651,7 +647,6 @@ export * from './SearchReviewsRequest';
|
|
|
651
647
|
export * from './SearchRolesRequest';
|
|
652
648
|
export * from './SearchSiteNotificationsRequest';
|
|
653
649
|
export * from './SearchSitesRequest';
|
|
654
|
-
export * from './SearchStoreCreditsRequest';
|
|
655
650
|
export * from './SearchStoresRequest';
|
|
656
651
|
export * from './SearchSuppliersRequest';
|
|
657
652
|
export * from './SearchTagsRequest';
|
|
@@ -676,10 +671,6 @@ export * from './SiteResource';
|
|
|
676
671
|
export * from './SiteResourceArrayResponse';
|
|
677
672
|
export * from './SkuSearchProductChildRequest';
|
|
678
673
|
export * from './SocialProvider';
|
|
679
|
-
export * from './StoreCreditListResource';
|
|
680
|
-
export * from './StoreCreditListResourceArrayResponse';
|
|
681
|
-
export * from './StoreCreditLiteResource';
|
|
682
|
-
export * from './StoreCreditLiteResourceArrayResponse';
|
|
683
674
|
export * from './StoreFrontendResource';
|
|
684
675
|
export * from './StoreFrontendResourceArrayResponse';
|
|
685
676
|
export * from './StoreListResource';
|
|
@@ -1,29 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { PaginatedStoreCreditListResourceResponse, SearchStoreCreditsRequest } from '../models/index';
|
|
14
|
-
export interface IndexStoreCreditRequest {
|
|
15
|
-
searchStoreCreditsRequest?: SearchStoreCreditsRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class StoreCreditsApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
* Auto-generated: indexStoreCredit
|
|
23
|
-
*/
|
|
24
|
-
indexStoreCreditRaw(requestParameters: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedStoreCreditListResourceResponse>>;
|
|
25
|
-
/**
|
|
26
|
-
* Auto-generated: indexStoreCredit
|
|
27
|
-
*/
|
|
28
|
-
indexStoreCredit(requestParameters?: IndexStoreCreditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedStoreCreditListResourceResponse>;
|
|
29
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.StoreCreditsApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var StoreCreditsApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(StoreCreditsApi, _super);
|
|
75
|
-
function StoreCreditsApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: indexStoreCredit
|
|
80
|
-
*/
|
|
81
|
-
StoreCreditsApi.prototype.indexStoreCreditRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/admin-api/store-credits/list";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.SearchStoreCreditsRequestToJSON)(requestParameters['searchStoreCreditsRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
98
|
-
case 1:
|
|
99
|
-
response = _a.sent();
|
|
100
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedStoreCreditListResourceResponseFromJSON)(jsonValue); })];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Auto-generated: indexStoreCredit
|
|
107
|
-
*/
|
|
108
|
-
StoreCreditsApi.prototype.indexStoreCredit = function () {
|
|
109
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
-
var response;
|
|
111
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, this.indexStoreCreditRaw(requestParameters, initOverrides)];
|
|
115
|
-
case 1:
|
|
116
|
-
response = _a.sent();
|
|
117
|
-
return [4 /*yield*/, response.value()];
|
|
118
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
return StoreCreditsApi;
|
|
124
|
-
}(runtime.BaseAPI));
|
|
125
|
-
exports.StoreCreditsApi = StoreCreditsApi;
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface FrontendCartResourceStoreCreditsInner
|
|
16
|
-
*/
|
|
17
|
-
export interface FrontendCartResourceStoreCreditsInner {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof FrontendCartResourceStoreCreditsInner
|
|
22
|
-
*/
|
|
23
|
-
id?: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof FrontendCartResourceStoreCreditsInner
|
|
28
|
-
*/
|
|
29
|
-
code?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof FrontendCartResourceStoreCreditsInner
|
|
34
|
-
*/
|
|
35
|
-
amount?: number;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the FrontendCartResourceStoreCreditsInner interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfFrontendCartResourceStoreCreditsInner(value: object): value is FrontendCartResourceStoreCreditsInner;
|
|
41
|
-
export declare function FrontendCartResourceStoreCreditsInnerFromJSON(json: any): FrontendCartResourceStoreCreditsInner;
|
|
42
|
-
export declare function FrontendCartResourceStoreCreditsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontendCartResourceStoreCreditsInner;
|
|
43
|
-
export declare function FrontendCartResourceStoreCreditsInnerToJSON(json: any): FrontendCartResourceStoreCreditsInner;
|
|
44
|
-
export declare function FrontendCartResourceStoreCreditsInnerToJSONTyped(value?: FrontendCartResourceStoreCreditsInner | null, ignoreDiscriminator?: boolean): any;
|