@drttix/drt-sdk 1.2.5 → 1.3.2
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/azure-pipelines.yml +2 -0
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/shopper/index.d.ts +8 -0
- package/dist/cjs/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
- package/dist/cjs/src/generated/shopper/models/CartHashResponse.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
- package/dist/cjs/src/generated/shopper/models/CartItemCounts.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CartSummary.d.ts +26 -0
- package/dist/cjs/src/generated/shopper/models/CartSummary.js +2 -0
- package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/CashPaymentDetail.js +2 -0
- package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/DonateOrderRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
- package/dist/cjs/src/generated/shopper/models/ExchangeRequest.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
- package/dist/cjs/src/generated/shopper/models/SeatIdInput.js +2 -0
- package/dist/cjs/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/models/SeatsByShow.js +2 -0
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +24 -0
- package/dist/cjs/src/generated/shopper/services/CartService.js +51 -0
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +18 -0
- package/dist/cjs/src/generated/shopper/services/OrderService.js +40 -0
- package/dist/cjs/src/generated/shopper/types.d.ts +8 -0
- package/dist/cjs/src/scripts/build-all.js +10 -15
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/shopper/index.d.ts +8 -0
- package/dist/esm/src/generated/shopper/models/CartHashResponse.d.ts +6 -0
- package/dist/esm/src/generated/shopper/models/CartHashResponse.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartItemCounts.d.ts +10 -0
- package/dist/esm/src/generated/shopper/models/CartItemCounts.js +1 -0
- package/dist/esm/src/generated/shopper/models/CartSummary.d.ts +26 -0
- package/dist/esm/src/generated/shopper/models/CartSummary.js +1 -0
- package/dist/esm/src/generated/shopper/models/CashPaymentDetail.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/CashPaymentDetail.js +1 -0
- package/dist/esm/src/generated/shopper/models/DonateOrderRequest.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/DonateOrderRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/ExchangeRequest.d.ts +11 -0
- package/dist/esm/src/generated/shopper/models/ExchangeRequest.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatIdInput.d.ts +4 -0
- package/dist/esm/src/generated/shopper/models/SeatIdInput.js +1 -0
- package/dist/esm/src/generated/shopper/models/SeatsByShow.d.ts +18 -0
- package/dist/esm/src/generated/shopper/models/SeatsByShow.js +1 -0
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +24 -0
- package/dist/esm/src/generated/shopper/services/CartService.js +51 -0
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +18 -0
- package/dist/esm/src/generated/shopper/services/OrderService.js +40 -0
- package/dist/esm/src/generated/shopper/types.d.ts +8 -0
- package/dist/esm/src/scripts/build-all.js +11 -16
- package/package.json +2 -2
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/core/OpenAPI.ts +1 -1
- package/src/generated/shopper/index.ts +8 -0
- package/src/generated/shopper/models/CartHashResponse.ts +11 -0
- package/src/generated/shopper/models/CartItemCounts.ts +15 -0
- package/src/generated/shopper/models/CartSummary.ts +31 -0
- package/src/generated/shopper/models/CashPaymentDetail.ts +23 -0
- package/src/generated/shopper/models/DonateOrderRequest.ts +9 -0
- package/src/generated/shopper/models/ExchangeRequest.ts +16 -0
- package/src/generated/shopper/models/SeatIdInput.ts +9 -0
- package/src/generated/shopper/models/SeatsByShow.ts +23 -0
- package/src/generated/shopper/services/CartService.ts +57 -0
- package/src/generated/shopper/services/OrderService.ts +46 -0
- package/src/generated/shopper/types.ts +8 -0
- package/src/scripts/build-all.ts +22 -23
package/azure-pipelines.yml
CHANGED
|
@@ -51,6 +51,7 @@ steps:
|
|
|
51
51
|
scriptType: 'inline'
|
|
52
52
|
inlineScript: |
|
|
53
53
|
aws s3 cp $(Build.SourcesDirectory)/dist/bundle/drt-sdk.js s3://drt-public-assets/sdk/$(VERSION)/drt-sdk.js --cache-control "max-age=31536000,public,immutable"
|
|
54
|
+
aws s3 cp $(Build.SourcesDirectory)/dist/bundle/staging.js s3://drt-public-assets/sdk/$(VERSION)/staging.js --cache-control "max-age=31536000,public,immutable"
|
|
54
55
|
|
|
55
56
|
- task: AWSShellScript@1
|
|
56
57
|
displayName: 'Upload to latest'
|
|
@@ -60,6 +61,7 @@ steps:
|
|
|
60
61
|
scriptType: 'inline'
|
|
61
62
|
inlineScript: |
|
|
62
63
|
aws s3 cp $(Build.SourcesDirectory)/dist/bundle/drt-sdk.js s3://drt-public-assets/sdk/latest/drt-sdk.js --cache-control "max-age=0,no-cache,no-store,must-revalidate"
|
|
64
|
+
aws s3 cp $(Build.SourcesDirectory)/dist/bundle/staging.js s3://drt-public-assets/sdk/latest/staging.js --cache-control "max-age=0,no-cache,no-store,must-revalidate"
|
|
63
65
|
|
|
64
66
|
- task: AWSShellScript@1
|
|
65
67
|
displayName: 'Upload demo files'
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.OpenAPI = void 0;
|
|
4
4
|
exports.OpenAPI = {
|
|
5
5
|
BASE: 'https://api.drttix.com/shopper',
|
|
6
|
-
VERSION: '
|
|
6
|
+
VERSION: '20260619.2',
|
|
7
7
|
WITH_CREDENTIALS: false,
|
|
8
8
|
CREDENTIALS: 'include',
|
|
9
9
|
TOKEN: undefined,
|
|
@@ -11,7 +11,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
11
11
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
12
12
|
export type { Cart } from './models/Cart';
|
|
13
13
|
export type { CartCounts } from './models/CartCounts';
|
|
14
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
15
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
16
|
+
export type { CartSummary } from './models/CartSummary';
|
|
14
17
|
export type { CartWithTime } from './models/CartWithTime';
|
|
18
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
15
19
|
export type { Chart } from './models/Chart';
|
|
16
20
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
17
21
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -27,6 +31,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
27
31
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
28
32
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
29
33
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
34
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
30
35
|
export type { DonationContribution } from './models/DonationContribution';
|
|
31
36
|
export type { DonationFund } from './models/DonationFund';
|
|
32
37
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -37,6 +42,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
37
42
|
export type { EngineSeat } from './models/EngineSeat';
|
|
38
43
|
export type { EventDetails } from './models/EventDetails';
|
|
39
44
|
export type { EventGroup } from './models/EventGroup';
|
|
45
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
40
46
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
41
47
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
42
48
|
export type { GAHold } from './models/GAHold';
|
|
@@ -94,8 +100,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
94
100
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
95
101
|
export type { SeatData } from './models/SeatData';
|
|
96
102
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
103
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
97
104
|
export type { SeatInCart } from './models/SeatInCart';
|
|
98
105
|
export type { SeatingTier } from './models/SeatingTier';
|
|
106
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
99
107
|
export type { Section } from './models/Section';
|
|
100
108
|
export type { SectionRule } from './models/SectionRule';
|
|
101
109
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CartItemCounts } from './CartItemCounts';
|
|
2
|
+
import type { CheckoutDonation } from './CheckoutDonation';
|
|
3
|
+
import type { CheckoutProduct } from './CheckoutProduct';
|
|
4
|
+
import type { SeatsByShow } from './SeatsByShow';
|
|
5
|
+
export type CartSummary = {
|
|
6
|
+
/**
|
|
7
|
+
* Number of shows currently available to the shopper.
|
|
8
|
+
*/
|
|
9
|
+
availableShowCount: number;
|
|
10
|
+
/**
|
|
11
|
+
* Products currently in the session.
|
|
12
|
+
*/
|
|
13
|
+
products: Array<CheckoutProduct>;
|
|
14
|
+
/**
|
|
15
|
+
* Donations currently in the session.
|
|
16
|
+
*/
|
|
17
|
+
donations: Array<CheckoutDonation>;
|
|
18
|
+
/**
|
|
19
|
+
* Held seats grouped by show.
|
|
20
|
+
*/
|
|
21
|
+
seatsGroupedByShow: Array<SeatsByShow>;
|
|
22
|
+
/**
|
|
23
|
+
* Count of available products and donation funds.
|
|
24
|
+
*/
|
|
25
|
+
availableItemCounts: CartItemCounts;
|
|
26
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CashPaymentDetail = {
|
|
2
|
+
/**
|
|
3
|
+
* The total amount of the order
|
|
4
|
+
*/
|
|
5
|
+
orderTotal: number;
|
|
6
|
+
/**
|
|
7
|
+
* The total amount paid via cash/adjustments
|
|
8
|
+
*/
|
|
9
|
+
paymentsTotal: number;
|
|
10
|
+
/**
|
|
11
|
+
* House card code for cash payment
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* House card PIN for cash payment
|
|
16
|
+
*/
|
|
17
|
+
pin: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type SeatsByShow = {
|
|
2
|
+
/**
|
|
3
|
+
* Number of seats held for the show.
|
|
4
|
+
*/
|
|
5
|
+
numSeats: number;
|
|
6
|
+
/**
|
|
7
|
+
* Full name of the show.
|
|
8
|
+
*/
|
|
9
|
+
showName: string;
|
|
10
|
+
/**
|
|
11
|
+
* Short display name of the show.
|
|
12
|
+
*/
|
|
13
|
+
shortName: string;
|
|
14
|
+
/**
|
|
15
|
+
* Title of the show.
|
|
16
|
+
*/
|
|
17
|
+
showTitle: Record<string, any>;
|
|
18
|
+
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import type { CartHashResponse } from '../models/CartHashResponse';
|
|
2
|
+
import type { CartSummary } from '../models/CartSummary';
|
|
1
3
|
import type { CartWithTime } from '../models/CartWithTime';
|
|
4
|
+
import type { CashPaymentDetail } from '../models/CashPaymentDetail';
|
|
2
5
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
6
|
export declare class CartService {
|
|
4
7
|
/**
|
|
@@ -15,4 +18,25 @@ export declare class CartService {
|
|
|
15
18
|
* @throws ApiError
|
|
16
19
|
*/
|
|
17
20
|
static deleteCart(): CancelablePromise<any>;
|
|
21
|
+
/**
|
|
22
|
+
* Get Cart Summary
|
|
23
|
+
* Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
|
|
24
|
+
* @returns CartSummary Cart summary retrieved successfully.
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
static getCartSummary(): CancelablePromise<CartSummary>;
|
|
28
|
+
/**
|
|
29
|
+
* Get Cart Hash
|
|
30
|
+
* Returns the computed cart hash for the current shopper session.
|
|
31
|
+
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static getCartHash(): CancelablePromise<CartHashResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get Cash Payment Detail
|
|
37
|
+
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
38
|
+
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
39
|
+
* @throws ApiError
|
|
40
|
+
*/
|
|
41
|
+
static getCashPaymentDetail(): CancelablePromise<CashPaymentDetail>;
|
|
18
42
|
}
|
|
@@ -38,5 +38,56 @@ class CartService {
|
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Get Cart Summary
|
|
43
|
+
* Returns a consolidated summary of the shopper's current cart, including: products in session, donations in session, held seats grouped by show, the count of available shows, and the count of available products and donation funds for the account based on the session date.
|
|
44
|
+
* @returns CartSummary Cart summary retrieved successfully.
|
|
45
|
+
* @throws ApiError
|
|
46
|
+
*/
|
|
47
|
+
static getCartSummary() {
|
|
48
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
49
|
+
method: 'GET',
|
|
50
|
+
url: '/cart/summary',
|
|
51
|
+
errors: {
|
|
52
|
+
400: `Bad Request error with error details.`,
|
|
53
|
+
404: `Not found error with error details.`,
|
|
54
|
+
500: `Internal Server Error, please contact developers.`,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Get Cart Hash
|
|
60
|
+
* Returns the computed cart hash for the current shopper session.
|
|
61
|
+
* @returns CartHashResponse Cart hash retrieved successfully.
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
static getCartHash() {
|
|
65
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
66
|
+
method: 'GET',
|
|
67
|
+
url: '/cart/hash',
|
|
68
|
+
errors: {
|
|
69
|
+
400: `Bad Request error with error details.`,
|
|
70
|
+
404: `Not found error with error details.`,
|
|
71
|
+
500: `Internal Server Error, please contact developers.`,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Get Cash Payment Detail
|
|
77
|
+
* Returns cash payment details for the current shopper session, including order total, payments total, and house card credentials.
|
|
78
|
+
* @returns CashPaymentDetail Cash payment detail retrieved successfully.
|
|
79
|
+
* @throws ApiError
|
|
80
|
+
*/
|
|
81
|
+
static getCashPaymentDetail() {
|
|
82
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
83
|
+
method: 'GET',
|
|
84
|
+
url: '/cart/cash-payment-detail',
|
|
85
|
+
errors: {
|
|
86
|
+
400: `Bad Request error with error details.`,
|
|
87
|
+
404: `Not found error with error details.`,
|
|
88
|
+
500: `Internal Server Error, please contact developers.`,
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
}
|
|
41
92
|
}
|
|
42
93
|
exports.CartService = CartService;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { AssignNamesReturn } from '../models/AssignNamesReturn';
|
|
2
|
+
import type { DonateOrderRequest } from '../models/DonateOrderRequest';
|
|
2
3
|
import type { EmailUpdate } from '../models/EmailUpdate';
|
|
4
|
+
import type { ExchangeRequest } from '../models/ExchangeRequest';
|
|
3
5
|
import type { GuidReturn } from '../models/GuidReturn';
|
|
4
6
|
import type { LinkWithSuccess } from '../models/LinkWithSuccess';
|
|
5
7
|
import type { NameUpdate } from '../models/NameUpdate';
|
|
@@ -114,6 +116,14 @@ export declare class OrderService {
|
|
|
114
116
|
* @throws ApiError
|
|
115
117
|
*/
|
|
116
118
|
static postRecalcOrder(guid: string, requestBody: OrderRecalc): CancelablePromise<RecalcResponse>;
|
|
119
|
+
/**
|
|
120
|
+
* Donate order in lieu of refund
|
|
121
|
+
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
122
|
+
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
123
|
+
* @returns SuccessResponse Returns success status after donating the order.
|
|
124
|
+
* @throws ApiError
|
|
125
|
+
*/
|
|
126
|
+
static postDonateOrder(requestBody: DonateOrderRequest): CancelablePromise<SuccessResponse>;
|
|
117
127
|
/**
|
|
118
128
|
* Register a stream for a shopper
|
|
119
129
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
@@ -130,4 +140,12 @@ export declare class OrderService {
|
|
|
130
140
|
* @throws ApiError
|
|
131
141
|
*/
|
|
132
142
|
static deleteRegisteredStream(requestBody: RegisterStreamRequest): CancelablePromise<SuccessResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Execute a seat exchange for an order
|
|
145
|
+
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
146
|
+
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
147
|
+
* @returns SuccessResponse Returns success after completing the exchange.
|
|
148
|
+
* @throws ApiError
|
|
149
|
+
*/
|
|
150
|
+
static postExchange(requestBody: ExchangeRequest): CancelablePromise<SuccessResponse>;
|
|
133
151
|
}
|
|
@@ -268,6 +268,26 @@ class OrderService {
|
|
|
268
268
|
},
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* Donate order in lieu of refund
|
|
273
|
+
* Marks an order as donated in lieu of refund using the provided order guid and donated IP address.
|
|
274
|
+
* @param requestBody Donate order payload containing guid and donatedIpAddress.
|
|
275
|
+
* @returns SuccessResponse Returns success status after donating the order.
|
|
276
|
+
* @throws ApiError
|
|
277
|
+
*/
|
|
278
|
+
static postDonateOrder(requestBody) {
|
|
279
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
280
|
+
method: 'POST',
|
|
281
|
+
url: '/order/donate-order',
|
|
282
|
+
body: requestBody,
|
|
283
|
+
mediaType: 'application/json',
|
|
284
|
+
errors: {
|
|
285
|
+
400: `Bad Request error with error details.`,
|
|
286
|
+
404: `Not found error with error details.`,
|
|
287
|
+
500: `Internal Server Error, please contact developers.`,
|
|
288
|
+
},
|
|
289
|
+
});
|
|
290
|
+
}
|
|
271
291
|
/**
|
|
272
292
|
* Register a stream for a shopper
|
|
273
293
|
* Registers a stream for the specified shopper and account using the provided stream registration details.
|
|
@@ -308,5 +328,25 @@ class OrderService {
|
|
|
308
328
|
},
|
|
309
329
|
});
|
|
310
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Execute a seat exchange for an order
|
|
333
|
+
* Swaps seats held in the cart for the seats specified in seatIds on an existing order.
|
|
334
|
+
* @param requestBody Exchange request containing the order GUID and seat IDs to exchange out.
|
|
335
|
+
* @returns SuccessResponse Returns success after completing the exchange.
|
|
336
|
+
* @throws ApiError
|
|
337
|
+
*/
|
|
338
|
+
static postExchange(requestBody) {
|
|
339
|
+
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
340
|
+
method: 'POST',
|
|
341
|
+
url: '/order/exchange',
|
|
342
|
+
body: requestBody,
|
|
343
|
+
mediaType: 'application/json',
|
|
344
|
+
errors: {
|
|
345
|
+
400: `Bad Request error with error details.`,
|
|
346
|
+
404: `Not found error with error details.`,
|
|
347
|
+
500: `Internal Server Error, please contact developers.`,
|
|
348
|
+
},
|
|
349
|
+
});
|
|
350
|
+
}
|
|
311
351
|
}
|
|
312
352
|
exports.OrderService = OrderService;
|
|
@@ -7,7 +7,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
7
7
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
8
8
|
export type { Cart } from './models/Cart';
|
|
9
9
|
export type { CartCounts } from './models/CartCounts';
|
|
10
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
11
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
12
|
+
export type { CartSummary } from './models/CartSummary';
|
|
10
13
|
export type { CartWithTime } from './models/CartWithTime';
|
|
14
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
11
15
|
export type { Chart } from './models/Chart';
|
|
12
16
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
13
17
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -23,6 +27,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
23
27
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
24
28
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
25
29
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
30
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
26
31
|
export type { DonationContribution } from './models/DonationContribution';
|
|
27
32
|
export type { DonationFund } from './models/DonationFund';
|
|
28
33
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -33,6 +38,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
33
38
|
export type { EngineSeat } from './models/EngineSeat';
|
|
34
39
|
export type { EventDetails } from './models/EventDetails';
|
|
35
40
|
export type { EventGroup } from './models/EventGroup';
|
|
41
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
36
42
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
37
43
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
38
44
|
export type { GAHold } from './models/GAHold';
|
|
@@ -90,8 +96,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
90
96
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
91
97
|
export type { SeatData } from './models/SeatData';
|
|
92
98
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
99
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
93
100
|
export type { SeatInCart } from './models/SeatInCart';
|
|
94
101
|
export type { SeatingTier } from './models/SeatingTier';
|
|
102
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
95
103
|
export type { Section } from './models/Section';
|
|
96
104
|
export type { SectionRule } from './models/SectionRule';
|
|
97
105
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -6,17 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const fs_1 = __importDefault(require("fs"));
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const child_process_1 = require("child_process");
|
|
9
|
-
// On Windows, execFileSync with shell:true joins args without quoting, so paths
|
|
10
|
-
// containing spaces are split. Use execSync with manual quoting on Windows instead.
|
|
11
|
-
function runCommand(cmd, args) {
|
|
12
|
-
if (process.platform === 'win32') {
|
|
13
|
-
const quotedArgs = args.map((a) => (a.includes(' ') ? `"${a}"` : a));
|
|
14
|
-
(0, child_process_1.execSync)([cmd, ...quotedArgs].join(' '), { stdio: 'inherit' });
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
(0, child_process_1.execFileSync)(cmd, args, { stdio: 'inherit' });
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
9
|
// Load the spec list (use staging specs when --staging flag is passed)
|
|
21
10
|
const isStaging = process.argv.includes('--staging');
|
|
22
11
|
const specsFile = isStaging
|
|
@@ -38,8 +27,11 @@ for (const spec of specs) {
|
|
|
38
27
|
const tempSpecFile = path_1.default.join(process.cwd(), `${name}-spec.json`);
|
|
39
28
|
try {
|
|
40
29
|
console.log(`📥 Downloading spec from ${url}...`);
|
|
41
|
-
|
|
42
|
-
|
|
30
|
+
(0, child_process_1.execFileSync)(CURL_CMD, ['-s', '-o', tempSpecFile, url], {
|
|
31
|
+
stdio: 'inherit',
|
|
32
|
+
shell: true,
|
|
33
|
+
});
|
|
34
|
+
(0, child_process_1.execFileSync)(NPX_CMD, [
|
|
43
35
|
'openapi-typescript-codegen',
|
|
44
36
|
'--input',
|
|
45
37
|
tempSpecFile,
|
|
@@ -47,7 +39,7 @@ for (const spec of specs) {
|
|
|
47
39
|
outputDir,
|
|
48
40
|
'--client',
|
|
49
41
|
'fetch',
|
|
50
|
-
]);
|
|
42
|
+
], { stdio: 'inherit', shell: true });
|
|
51
43
|
// Clean up temp file
|
|
52
44
|
fs_1.default.unlinkSync(tempSpecFile);
|
|
53
45
|
}
|
|
@@ -59,7 +51,10 @@ for (const spec of specs) {
|
|
|
59
51
|
throw error;
|
|
60
52
|
}
|
|
61
53
|
console.log(`⚙️ Generating wrapper for ${name}...`);
|
|
62
|
-
|
|
54
|
+
(0, child_process_1.execFileSync)(NPX_CMD, ['tsx', 'src/scripts/generate-definition.ts', name], {
|
|
55
|
+
stdio: 'inherit',
|
|
56
|
+
shell: true,
|
|
57
|
+
});
|
|
63
58
|
}
|
|
64
59
|
// After generating all clients and definitions, replace request.ts for all services
|
|
65
60
|
const customRequestPath = path_1.default.resolve('src/custom/custom-request.txt');
|
|
@@ -11,7 +11,11 @@ export type { BAHold } from './models/BAHold';
|
|
|
11
11
|
export type { BlockOfTickets } from './models/BlockOfTickets';
|
|
12
12
|
export type { Cart } from './models/Cart';
|
|
13
13
|
export type { CartCounts } from './models/CartCounts';
|
|
14
|
+
export type { CartHashResponse } from './models/CartHashResponse';
|
|
15
|
+
export type { CartItemCounts } from './models/CartItemCounts';
|
|
16
|
+
export type { CartSummary } from './models/CartSummary';
|
|
14
17
|
export type { CartWithTime } from './models/CartWithTime';
|
|
18
|
+
export type { CashPaymentDetail } from './models/CashPaymentDetail';
|
|
15
19
|
export type { Chart } from './models/Chart';
|
|
16
20
|
export type { CheckoutDonation } from './models/CheckoutDonation';
|
|
17
21
|
export type { CheckoutFailResponse } from './models/CheckoutFailResponse';
|
|
@@ -27,6 +31,7 @@ export type { CompleteBody } from './models/CompleteBody';
|
|
|
27
31
|
export type { CreateCustomerResponse } from './models/CreateCustomerResponse';
|
|
28
32
|
export type { CreateSessionDto } from './models/CreateSessionDto';
|
|
29
33
|
export type { DigitalAsset } from './models/DigitalAsset';
|
|
34
|
+
export type { DonateOrderRequest } from './models/DonateOrderRequest';
|
|
30
35
|
export type { DonationContribution } from './models/DonationContribution';
|
|
31
36
|
export type { DonationFund } from './models/DonationFund';
|
|
32
37
|
export type { DonationInCart } from './models/DonationInCart';
|
|
@@ -37,6 +42,7 @@ export type { EmailUpdate } from './models/EmailUpdate';
|
|
|
37
42
|
export type { EngineSeat } from './models/EngineSeat';
|
|
38
43
|
export type { EventDetails } from './models/EventDetails';
|
|
39
44
|
export type { EventGroup } from './models/EventGroup';
|
|
45
|
+
export type { ExchangeRequest } from './models/ExchangeRequest';
|
|
40
46
|
export type { ExistingRefundDetails } from './models/ExistingRefundDetails';
|
|
41
47
|
export type { FullEventDetails } from './models/FullEventDetails';
|
|
42
48
|
export type { GAHold } from './models/GAHold';
|
|
@@ -94,8 +100,10 @@ export type { SaveDetailsBody } from './models/SaveDetailsBody';
|
|
|
94
100
|
export type { SaveNonceBody } from './models/SaveNonceBody';
|
|
95
101
|
export type { SeatData } from './models/SeatData';
|
|
96
102
|
export type { SeatHoldReturn } from './models/SeatHoldReturn';
|
|
103
|
+
export type { SeatIdInput } from './models/SeatIdInput';
|
|
97
104
|
export type { SeatInCart } from './models/SeatInCart';
|
|
98
105
|
export type { SeatingTier } from './models/SeatingTier';
|
|
106
|
+
export type { SeatsByShow } from './models/SeatsByShow';
|
|
99
107
|
export type { Section } from './models/Section';
|
|
100
108
|
export type { SectionRule } from './models/SectionRule';
|
|
101
109
|
export type { SessionHeartbeatDto } from './models/SessionHeartbeatDto';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { CartItemCounts } from './CartItemCounts';
|
|
2
|
+
import type { CheckoutDonation } from './CheckoutDonation';
|
|
3
|
+
import type { CheckoutProduct } from './CheckoutProduct';
|
|
4
|
+
import type { SeatsByShow } from './SeatsByShow';
|
|
5
|
+
export type CartSummary = {
|
|
6
|
+
/**
|
|
7
|
+
* Number of shows currently available to the shopper.
|
|
8
|
+
*/
|
|
9
|
+
availableShowCount: number;
|
|
10
|
+
/**
|
|
11
|
+
* Products currently in the session.
|
|
12
|
+
*/
|
|
13
|
+
products: Array<CheckoutProduct>;
|
|
14
|
+
/**
|
|
15
|
+
* Donations currently in the session.
|
|
16
|
+
*/
|
|
17
|
+
donations: Array<CheckoutDonation>;
|
|
18
|
+
/**
|
|
19
|
+
* Held seats grouped by show.
|
|
20
|
+
*/
|
|
21
|
+
seatsGroupedByShow: Array<SeatsByShow>;
|
|
22
|
+
/**
|
|
23
|
+
* Count of available products and donation funds.
|
|
24
|
+
*/
|
|
25
|
+
availableItemCounts: CartItemCounts;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type CashPaymentDetail = {
|
|
2
|
+
/**
|
|
3
|
+
* The total amount of the order
|
|
4
|
+
*/
|
|
5
|
+
orderTotal: number;
|
|
6
|
+
/**
|
|
7
|
+
* The total amount paid via cash/adjustments
|
|
8
|
+
*/
|
|
9
|
+
paymentsTotal: number;
|
|
10
|
+
/**
|
|
11
|
+
* House card code for cash payment
|
|
12
|
+
*/
|
|
13
|
+
code: string;
|
|
14
|
+
/**
|
|
15
|
+
* House card PIN for cash payment
|
|
16
|
+
*/
|
|
17
|
+
pin: string;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|