@drttix/drt-sdk 0.9.7 → 0.9.9
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/demo/test.html +1554 -674
- package/dist/bundle/drt-sdk.js +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/src/definitions/portal.d.ts +2 -0
- package/dist/cjs/src/definitions/portal.js +2 -0
- package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/cjs/src/generated/portal/index.d.ts +3 -0
- package/dist/cjs/src/generated/portal/index.js +3 -1
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.js +2 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.js +40 -0
- package/dist/cjs/src/generated/portal/types.d.ts +2 -0
- package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
- package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
- package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/cjs/src/scripts/build-all.js +46 -2
- package/dist/cjs/src/staging/wrapService.js +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/src/definitions/portal.d.ts +2 -0
- package/dist/esm/src/definitions/portal.js +2 -0
- package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
- package/dist/esm/src/generated/portal/index.d.ts +3 -0
- package/dist/esm/src/generated/portal/index.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
- package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
- package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.js +1 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
- package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.js +36 -0
- package/dist/esm/src/generated/portal/types.d.ts +2 -0
- package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
- package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
- package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
- package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
- package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
- package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
- package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
- package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
- package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
- package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
- package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
- package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
- package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
- package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
- package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
- package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
- package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
- package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
- package/dist/esm/src/scripts/build-all.js +46 -2
- package/dist/esm/src/staging/wrapService.js +1 -1
- package/drt-api-specs-staging.json +14 -0
- package/package.json +38 -38
- package/public/sdk/latest/drt-sdk.js +1 -1
- package/src/definitions/portal.ts +2 -0
- package/src/generated/portal/core/OpenAPI.ts +1 -1
- package/src/generated/portal/index.ts +3 -0
- package/src/generated/portal/models/SupportTicketResponseDto.ts +31 -0
- package/src/generated/portal/models/SupportTicketStatusResponseDto.ts +9 -0
- package/src/generated/portal/services/SuperUserSupportTicketsService.ts +46 -0
- package/src/generated/portal/types.ts +2 -0
- package/src/generated/shopper/services/AccountService.ts +0 -44
- package/src/generated/shopper/services/CartService.ts +0 -22
- package/src/generated/shopper/services/CheckoutService.ts +0 -55
- package/src/generated/shopper/services/CodeService.ts +0 -55
- package/src/generated/shopper/services/DonationService.ts +0 -20
- package/src/generated/shopper/services/EventService.ts +0 -44
- package/src/generated/shopper/services/GiftCardService.ts +0 -55
- package/src/generated/shopper/services/OrderService.ts +0 -154
- package/src/generated/shopper/services/PaymentService.ts +0 -33
- package/src/generated/shopper/services/ProductService.ts +0 -33
- package/src/generated/shopper/services/SeatService.ts +0 -66
- package/src/generated/shopper/services/SessionService.ts +0 -22
- package/src/scripts/build-all.ts +59 -2
- package/src/staging/wrapService.ts +1 -1
|
@@ -7,21 +7,13 @@ class ProductService {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get all products
|
|
9
9
|
* Retrieves all products available for the specified account.
|
|
10
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
11
|
-
* @param accountid Unique identifier for the account.
|
|
12
|
-
* @param apikey API key for authentication.
|
|
13
10
|
* @returns ProductData Returns a list of products for the account.
|
|
14
11
|
* @throws ApiError
|
|
15
12
|
*/
|
|
16
|
-
static getProducts(
|
|
13
|
+
static getProducts() {
|
|
17
14
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
18
15
|
method: 'GET',
|
|
19
16
|
url: '/product',
|
|
20
|
-
headers: {
|
|
21
|
-
'shopperguid': shopperguid,
|
|
22
|
-
'accountid': accountid,
|
|
23
|
-
'apikey': apikey,
|
|
24
|
-
},
|
|
25
17
|
errors: {
|
|
26
18
|
400: `Bad Request error with error details.`,
|
|
27
19
|
404: `Not found error with error details.`,
|
|
@@ -32,22 +24,14 @@ class ProductService {
|
|
|
32
24
|
/**
|
|
33
25
|
* Add a product
|
|
34
26
|
* Adds a new product to the specified account.
|
|
35
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
36
|
-
* @param accountid Unique identifier for the account.
|
|
37
|
-
* @param apikey API key for authentication.
|
|
38
27
|
* @param requestBody Product details to add.
|
|
39
28
|
* @returns ProductAddResponse Returns the result of the product addition.
|
|
40
29
|
* @throws ApiError
|
|
41
30
|
*/
|
|
42
|
-
static addProduct(
|
|
31
|
+
static addProduct(requestBody) {
|
|
43
32
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
44
33
|
method: 'POST',
|
|
45
34
|
url: '/product',
|
|
46
|
-
headers: {
|
|
47
|
-
'shopperguid': shopperguid,
|
|
48
|
-
'accountid': accountid,
|
|
49
|
-
'apikey': apikey,
|
|
50
|
-
},
|
|
51
35
|
body: requestBody,
|
|
52
36
|
mediaType: 'application/json',
|
|
53
37
|
errors: {
|
|
@@ -60,22 +44,14 @@ class ProductService {
|
|
|
60
44
|
/**
|
|
61
45
|
* Remove a product
|
|
62
46
|
* Removes a product from the specified account.
|
|
63
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
64
|
-
* @param accountid Unique identifier for the account.
|
|
65
|
-
* @param apikey API key for authentication.
|
|
66
47
|
* @param requestBody Product details to remove.
|
|
67
48
|
* @returns ProductUpdateResponse Returns the result of the product removal.
|
|
68
49
|
* @throws ApiError
|
|
69
50
|
*/
|
|
70
|
-
static deleteProduct(
|
|
51
|
+
static deleteProduct(requestBody) {
|
|
71
52
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
72
53
|
method: 'DELETE',
|
|
73
54
|
url: '/product',
|
|
74
|
-
headers: {
|
|
75
|
-
'shopperguid': shopperguid,
|
|
76
|
-
'accountid': accountid,
|
|
77
|
-
'apikey': apikey,
|
|
78
|
-
},
|
|
79
55
|
body: requestBody,
|
|
80
56
|
mediaType: 'application/json',
|
|
81
57
|
errors: {
|
|
@@ -17,67 +17,49 @@ export declare class SeatService {
|
|
|
17
17
|
/**
|
|
18
18
|
* Hold a reserved seat
|
|
19
19
|
* Holds a reserved seat for the shopper.
|
|
20
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
21
|
-
* @param accountid Unique identifier for the account.
|
|
22
|
-
* @param apikey API key for authentication.
|
|
23
20
|
* @param requestBody Seat data for holding a reserved seat
|
|
24
21
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
25
22
|
* @throws ApiError
|
|
26
23
|
*/
|
|
27
|
-
static holdReservedSeat(
|
|
24
|
+
static holdReservedSeat(requestBody: SeatData): CancelablePromise<SeatHoldReturn>;
|
|
28
25
|
/**
|
|
29
26
|
* Hold a general admission seat
|
|
30
27
|
* Holds a general admission seat for the shopper.
|
|
31
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
32
|
-
* @param accountid Unique identifier for the account.
|
|
33
|
-
* @param apikey API key for authentication.
|
|
34
28
|
* @param requestBody Seat data for holding a general admission seat
|
|
35
29
|
* @returns GAResponse Successfully held the general admission seat.
|
|
36
30
|
* @throws ApiError
|
|
37
31
|
*/
|
|
38
|
-
static holdGaSeat(
|
|
32
|
+
static holdGaSeat(requestBody: GAHold): CancelablePromise<GAResponse>;
|
|
39
33
|
/**
|
|
40
34
|
* Hold a reserved seat for a BA event
|
|
41
35
|
* Holds a reserved seat for a BA event.
|
|
42
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
43
|
-
* @param accountid Unique identifier for the account.
|
|
44
|
-
* @param apikey API key for authentication.
|
|
45
36
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
46
37
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
47
38
|
* @throws ApiError
|
|
48
39
|
*/
|
|
49
|
-
static holdBaSeat(
|
|
40
|
+
static holdBaSeat(requestBody: BAHold): CancelablePromise<SeatHoldReturn>;
|
|
50
41
|
/**
|
|
51
42
|
* Release a reserved seat
|
|
52
43
|
* Releases a reserved seat for the shopper.
|
|
53
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
54
|
-
* @param accountid Unique identifier for the account.
|
|
55
|
-
* @param apikey API key for authentication.
|
|
56
44
|
* @param requestBody Seat data for releasing a reserved seat
|
|
57
45
|
* @returns any Successfully released the reserved seat.
|
|
58
46
|
* @throws ApiError
|
|
59
47
|
*/
|
|
60
|
-
static releaseReservedSeat(
|
|
48
|
+
static releaseReservedSeat(requestBody: SeatData): CancelablePromise<any>;
|
|
61
49
|
/**
|
|
62
50
|
* Release a general admission seat
|
|
63
51
|
* Releases a general admission seat for the shopper.
|
|
64
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
65
|
-
* @param accountid Unique identifier for the account.
|
|
66
|
-
* @param apikey API key for authentication.
|
|
67
52
|
* @param requestBody Seat data for releasing a general admission seat
|
|
68
53
|
* @returns any
|
|
69
54
|
* @throws ApiError
|
|
70
55
|
*/
|
|
71
|
-
static releaseGaSeat(
|
|
56
|
+
static releaseGaSeat(requestBody: GASeatRelease): CancelablePromise<any>;
|
|
72
57
|
/**
|
|
73
58
|
* Update tier information for a seat
|
|
74
59
|
* Updates the tier information for a seat.
|
|
75
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
76
|
-
* @param accountid Unique identifier for the account.
|
|
77
|
-
* @param apikey API key for authentication.
|
|
78
60
|
* @param requestBody Data for updating tier information
|
|
79
61
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
80
62
|
* @throws ApiError
|
|
81
63
|
*/
|
|
82
|
-
static updateTier(
|
|
64
|
+
static updateTier(requestBody: UpdateTierData): CancelablePromise<UpdateTierData>;
|
|
83
65
|
}
|
|
@@ -24,22 +24,14 @@ class SeatService {
|
|
|
24
24
|
/**
|
|
25
25
|
* Hold a reserved seat
|
|
26
26
|
* Holds a reserved seat for the shopper.
|
|
27
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
28
|
-
* @param accountid Unique identifier for the account.
|
|
29
|
-
* @param apikey API key for authentication.
|
|
30
27
|
* @param requestBody Seat data for holding a reserved seat
|
|
31
28
|
* @returns SeatHoldReturn Successfully held the reserved seat.
|
|
32
29
|
* @throws ApiError
|
|
33
30
|
*/
|
|
34
|
-
static holdReservedSeat(
|
|
31
|
+
static holdReservedSeat(requestBody) {
|
|
35
32
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
36
33
|
method: 'POST',
|
|
37
34
|
url: '/seat/hold-reserved',
|
|
38
|
-
headers: {
|
|
39
|
-
'shopperguid': shopperguid,
|
|
40
|
-
'accountid': accountid,
|
|
41
|
-
'apikey': apikey,
|
|
42
|
-
},
|
|
43
35
|
body: requestBody,
|
|
44
36
|
mediaType: 'application/json',
|
|
45
37
|
errors: {
|
|
@@ -52,22 +44,14 @@ class SeatService {
|
|
|
52
44
|
/**
|
|
53
45
|
* Hold a general admission seat
|
|
54
46
|
* Holds a general admission seat for the shopper.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
47
|
* @param requestBody Seat data for holding a general admission seat
|
|
59
48
|
* @returns GAResponse Successfully held the general admission seat.
|
|
60
49
|
* @throws ApiError
|
|
61
50
|
*/
|
|
62
|
-
static holdGaSeat(
|
|
51
|
+
static holdGaSeat(requestBody) {
|
|
63
52
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
64
53
|
method: 'POST',
|
|
65
54
|
url: '/seat/hold-ga',
|
|
66
|
-
headers: {
|
|
67
|
-
'shopperguid': shopperguid,
|
|
68
|
-
'accountid': accountid,
|
|
69
|
-
'apikey': apikey,
|
|
70
|
-
},
|
|
71
55
|
body: requestBody,
|
|
72
56
|
mediaType: 'application/json',
|
|
73
57
|
errors: {
|
|
@@ -80,22 +64,14 @@ class SeatService {
|
|
|
80
64
|
/**
|
|
81
65
|
* Hold a reserved seat for a BA event
|
|
82
66
|
* Holds a reserved seat for a BA event.
|
|
83
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
84
|
-
* @param accountid Unique identifier for the account.
|
|
85
|
-
* @param apikey API key for authentication.
|
|
86
67
|
* @param requestBody Seat data for holding a reserved seat for a BA event
|
|
87
68
|
* @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
|
|
88
69
|
* @throws ApiError
|
|
89
70
|
*/
|
|
90
|
-
static holdBaSeat(
|
|
71
|
+
static holdBaSeat(requestBody) {
|
|
91
72
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
92
73
|
method: 'POST',
|
|
93
74
|
url: '/seat/hold-ba',
|
|
94
|
-
headers: {
|
|
95
|
-
'shopperguid': shopperguid,
|
|
96
|
-
'accountid': accountid,
|
|
97
|
-
'apikey': apikey,
|
|
98
|
-
},
|
|
99
75
|
body: requestBody,
|
|
100
76
|
mediaType: 'application/json',
|
|
101
77
|
errors: {
|
|
@@ -108,22 +84,14 @@ class SeatService {
|
|
|
108
84
|
/**
|
|
109
85
|
* Release a reserved seat
|
|
110
86
|
* Releases a reserved seat for the shopper.
|
|
111
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
112
|
-
* @param accountid Unique identifier for the account.
|
|
113
|
-
* @param apikey API key for authentication.
|
|
114
87
|
* @param requestBody Seat data for releasing a reserved seat
|
|
115
88
|
* @returns any Successfully released the reserved seat.
|
|
116
89
|
* @throws ApiError
|
|
117
90
|
*/
|
|
118
|
-
static releaseReservedSeat(
|
|
91
|
+
static releaseReservedSeat(requestBody) {
|
|
119
92
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
120
93
|
method: 'DELETE',
|
|
121
94
|
url: '/seat/release-reserved',
|
|
122
|
-
headers: {
|
|
123
|
-
'shopperguid': shopperguid,
|
|
124
|
-
'accountid': accountid,
|
|
125
|
-
'apikey': apikey,
|
|
126
|
-
},
|
|
127
95
|
body: requestBody,
|
|
128
96
|
mediaType: 'application/json',
|
|
129
97
|
errors: {
|
|
@@ -136,22 +104,14 @@ class SeatService {
|
|
|
136
104
|
/**
|
|
137
105
|
* Release a general admission seat
|
|
138
106
|
* Releases a general admission seat for the shopper.
|
|
139
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
140
|
-
* @param accountid Unique identifier for the account.
|
|
141
|
-
* @param apikey API key for authentication.
|
|
142
107
|
* @param requestBody Seat data for releasing a general admission seat
|
|
143
108
|
* @returns any
|
|
144
109
|
* @throws ApiError
|
|
145
110
|
*/
|
|
146
|
-
static releaseGaSeat(
|
|
111
|
+
static releaseGaSeat(requestBody) {
|
|
147
112
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
148
113
|
method: 'DELETE',
|
|
149
114
|
url: '/seat/release-ga',
|
|
150
|
-
headers: {
|
|
151
|
-
'shopperguid': shopperguid,
|
|
152
|
-
'accountid': accountid,
|
|
153
|
-
'apikey': apikey,
|
|
154
|
-
},
|
|
155
115
|
body: requestBody,
|
|
156
116
|
mediaType: 'application/json',
|
|
157
117
|
errors: {
|
|
@@ -164,22 +124,14 @@ class SeatService {
|
|
|
164
124
|
/**
|
|
165
125
|
* Update tier information for a seat
|
|
166
126
|
* Updates the tier information for a seat.
|
|
167
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
168
|
-
* @param accountid Unique identifier for the account.
|
|
169
|
-
* @param apikey API key for authentication.
|
|
170
127
|
* @param requestBody Data for updating tier information
|
|
171
128
|
* @returns UpdateTierData Successfully updated the tier information.
|
|
172
129
|
* @throws ApiError
|
|
173
130
|
*/
|
|
174
|
-
static updateTier(
|
|
131
|
+
static updateTier(requestBody) {
|
|
175
132
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
176
133
|
method: 'POST',
|
|
177
134
|
url: '/seat/update-tier',
|
|
178
|
-
headers: {
|
|
179
|
-
'shopperguid': shopperguid,
|
|
180
|
-
'accountid': accountid,
|
|
181
|
-
'apikey': apikey,
|
|
182
|
-
},
|
|
183
135
|
body: requestBody,
|
|
184
136
|
mediaType: 'application/json',
|
|
185
137
|
errors: {
|
|
@@ -14,21 +14,15 @@ export declare class SessionService {
|
|
|
14
14
|
/**
|
|
15
15
|
* Get Session information
|
|
16
16
|
* Retrieves all Sessions available for the specified account.
|
|
17
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
18
|
-
* @param accountid Unique identifier for the account.
|
|
19
|
-
* @param apikey API key for authentication.
|
|
20
17
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
21
18
|
* @throws ApiError
|
|
22
19
|
*/
|
|
23
|
-
static getSessions(
|
|
20
|
+
static getSessions(): CancelablePromise<SessionInfoDto>;
|
|
24
21
|
/**
|
|
25
22
|
* Get Session Timer Heartbeat
|
|
26
23
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
27
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
28
|
-
* @param accountid Unique identifier for the account.
|
|
29
|
-
* @param apikey API key for authentication.
|
|
30
24
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
31
25
|
* @throws ApiError
|
|
32
26
|
*/
|
|
33
|
-
static getHeartbeat(
|
|
27
|
+
static getHeartbeat(): CancelablePromise<SessionHeartbeatDto>;
|
|
34
28
|
}
|
|
@@ -27,21 +27,13 @@ class SessionService {
|
|
|
27
27
|
/**
|
|
28
28
|
* Get Session information
|
|
29
29
|
* Retrieves all Sessions available for the specified account.
|
|
30
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
31
|
-
* @param accountid Unique identifier for the account.
|
|
32
|
-
* @param apikey API key for authentication.
|
|
33
30
|
* @returns SessionInfoDto Returns session data for the provided shopperguid.
|
|
34
31
|
* @throws ApiError
|
|
35
32
|
*/
|
|
36
|
-
static getSessions(
|
|
33
|
+
static getSessions() {
|
|
37
34
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
38
35
|
method: 'GET',
|
|
39
36
|
url: '/session',
|
|
40
|
-
headers: {
|
|
41
|
-
'shopperguid': shopperguid,
|
|
42
|
-
'accountid': accountid,
|
|
43
|
-
'apikey': apikey,
|
|
44
|
-
},
|
|
45
37
|
errors: {
|
|
46
38
|
400: `Bad Request error with error details.`,
|
|
47
39
|
404: `Not found error with error details.`,
|
|
@@ -52,21 +44,13 @@ class SessionService {
|
|
|
52
44
|
/**
|
|
53
45
|
* Get Session Timer Heartbeat
|
|
54
46
|
* Retrieves the heartbeat for the sessions timer in ms.
|
|
55
|
-
* @param shopperguid Unique identifier for the shopper.
|
|
56
|
-
* @param accountid Unique identifier for the account.
|
|
57
|
-
* @param apikey API key for authentication.
|
|
58
47
|
* @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
|
|
59
48
|
* @throws ApiError
|
|
60
49
|
*/
|
|
61
|
-
static getHeartbeat(
|
|
50
|
+
static getHeartbeat() {
|
|
62
51
|
return (0, request_1.request)(OpenAPI_1.OpenAPI, {
|
|
63
52
|
method: 'GET',
|
|
64
53
|
url: '/session/heartbeat',
|
|
65
|
-
headers: {
|
|
66
|
-
'shopperguid': shopperguid,
|
|
67
|
-
'accountid': accountid,
|
|
68
|
-
'apikey': apikey,
|
|
69
|
-
},
|
|
70
54
|
errors: {
|
|
71
55
|
400: `Bad Request error with error details.`,
|
|
72
56
|
404: `Not found error with error details.`,
|
|
@@ -6,8 +6,13 @@ 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
|
-
// Load the spec list
|
|
10
|
-
const
|
|
9
|
+
// Load the spec list (use staging specs when --staging flag is passed)
|
|
10
|
+
const isStaging = process.argv.includes('--staging');
|
|
11
|
+
const specsFile = isStaging
|
|
12
|
+
? 'drt-api-specs-staging.json'
|
|
13
|
+
: 'drt-api-specs.json';
|
|
14
|
+
const specsPath = path_1.default.resolve(specsFile);
|
|
15
|
+
console.log(`📋 Using specs: ${specsFile}`);
|
|
11
16
|
const specs = JSON.parse(fs_1.default.readFileSync(specsPath, 'utf-8'));
|
|
12
17
|
const GENERATED_BASE = path_1.default.resolve('src', 'generated');
|
|
13
18
|
const INDEX_FILE = path_1.default.resolve('index.ts'); // <== write to project root
|
|
@@ -63,6 +68,45 @@ fs_1.default.writeFileSync(portalRequestPath, customRequestContent);
|
|
|
63
68
|
console.log('✅ Replaced portal/core/request.ts with custom-request.txt');
|
|
64
69
|
fs_1.default.writeFileSync(scannerRequestPath, customRequestContent);
|
|
65
70
|
console.log('✅ Replaced scanner/core/request.ts with custom-request.txt');
|
|
71
|
+
// Strip credential params (shopperguid/accountid/apikey) from all generated service methods.
|
|
72
|
+
// DRT.init() injects these globally via OpenAPI.HEADERS, so callers never need to pass them.
|
|
73
|
+
console.log('⚙️ Stripping credential params from generated services...');
|
|
74
|
+
function walkServices(dir) {
|
|
75
|
+
const results = [];
|
|
76
|
+
for (const entry of fs_1.default.readdirSync(dir, { withFileTypes: true })) {
|
|
77
|
+
const full = path_1.default.join(dir, entry.name);
|
|
78
|
+
if (entry.isDirectory())
|
|
79
|
+
results.push(...walkServices(full));
|
|
80
|
+
else if (entry.isFile() &&
|
|
81
|
+
entry.name.endsWith('.ts') &&
|
|
82
|
+
dir.endsWith('services'))
|
|
83
|
+
results.push(full);
|
|
84
|
+
}
|
|
85
|
+
return results;
|
|
86
|
+
}
|
|
87
|
+
const serviceFiles = walkServices(GENERATED_BASE);
|
|
88
|
+
for (const file of serviceFiles) {
|
|
89
|
+
let src = fs_1.default.readFileSync(file, 'utf-8');
|
|
90
|
+
let patched = src
|
|
91
|
+
// Remove param lines from function signatures
|
|
92
|
+
.replace(/\n\s*shopperguid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
93
|
+
.replace(/\n\s*accountid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
94
|
+
.replace(/\n\s*apikey: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
|
|
95
|
+
// Remove @param jsdoc lines
|
|
96
|
+
.replace(/\n\s*\* @param shopperguid[^\n]*/g, '')
|
|
97
|
+
.replace(/\n\s*\* @param accountid[^\n]*/g, '')
|
|
98
|
+
.replace(/\n\s*\* @param apikey[^\n]*/g, '')
|
|
99
|
+
// Remove header entries inside __request
|
|
100
|
+
.replace(/\n\s*'shopperguid': shopperguid,/g, '')
|
|
101
|
+
.replace(/\n\s*'accountid': accountid,/g, '')
|
|
102
|
+
.replace(/\n\s*'apikey': apikey,/g, '')
|
|
103
|
+
// Remove empty headers: {} blocks left behind
|
|
104
|
+
.replace(/\n\s*headers: \{\s*\},/g, '');
|
|
105
|
+
if (patched !== src) {
|
|
106
|
+
fs_1.default.writeFileSync(file, patched);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
console.log(`✅ Stripped credentials from ${serviceFiles.length} service files`);
|
|
66
110
|
// --- Generate index.ts
|
|
67
111
|
console.log(`🧩 Generating DRT index...`);
|
|
68
112
|
const lines = [];
|
|
@@ -36,7 +36,7 @@ function wrapServiceForStaging(ServiceClass, openAPIConfig, stagingBase) {
|
|
|
36
36
|
}
|
|
37
37
|
// Staging base URLs
|
|
38
38
|
// Scanner doesn't have a staging
|
|
39
|
-
// TODO: Update shopper to use production URL
|
|
39
|
+
// TODO: Update shopper to use production URL (shopper-prod)
|
|
40
40
|
exports.STAGING_URLS = {
|
|
41
41
|
portal: "https://api.staging.drttix.com/admin-portal",
|
|
42
42
|
shopper: "https://api.drttix.com/shopper",
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export declare const DRT: {
|
|
|
54
54
|
settings: typeof import("./src/generated/portal").SettingsService;
|
|
55
55
|
shows: typeof import("./src/generated/portal").ShowsService;
|
|
56
56
|
superuserabandonedcarts: typeof import("./src/generated/portal").SuperUserAbandonedCartsService;
|
|
57
|
+
superusersupporttickets: typeof import("./src/generated/portal").SuperUserSupportTicketsService;
|
|
57
58
|
};
|
|
58
59
|
init: typeof init;
|
|
59
60
|
isReady: typeof isReady;
|
|
@@ -29,6 +29,7 @@ import { ReportsService } from "../generated/portal";
|
|
|
29
29
|
import { SettingsService } from "../generated/portal";
|
|
30
30
|
import { ShowsService } from "../generated/portal";
|
|
31
31
|
import { SuperUserAbandonedCartsService } from "../generated/portal";
|
|
32
|
+
import { SuperUserSupportTicketsService } from "../generated/portal";
|
|
32
33
|
export declare const portal: {
|
|
33
34
|
account: typeof AccountService;
|
|
34
35
|
accounting: typeof AccountingService;
|
|
@@ -61,5 +62,6 @@ export declare const portal: {
|
|
|
61
62
|
settings: typeof SettingsService;
|
|
62
63
|
shows: typeof ShowsService;
|
|
63
64
|
superuserabandonedcarts: typeof SuperUserAbandonedCartsService;
|
|
65
|
+
superusersupporttickets: typeof SuperUserSupportTicketsService;
|
|
64
66
|
};
|
|
65
67
|
export * as PortalTypes from "../generated/portal/types";
|
|
@@ -30,6 +30,7 @@ import { ReportsService } from "../generated/portal/index.js";
|
|
|
30
30
|
import { SettingsService } from "../generated/portal/index.js";
|
|
31
31
|
import { ShowsService } from "../generated/portal/index.js";
|
|
32
32
|
import { SuperUserAbandonedCartsService } from "../generated/portal/index.js";
|
|
33
|
+
import { SuperUserSupportTicketsService } from "../generated/portal/index.js";
|
|
33
34
|
export const portal = {
|
|
34
35
|
account: AccountService,
|
|
35
36
|
accounting: AccountingService,
|
|
@@ -62,6 +63,7 @@ export const portal = {
|
|
|
62
63
|
settings: SettingsService,
|
|
63
64
|
shows: ShowsService,
|
|
64
65
|
superuserabandonedcarts: SuperUserAbandonedCartsService,
|
|
66
|
+
superusersupporttickets: SuperUserSupportTicketsService,
|
|
65
67
|
};
|
|
66
68
|
// Re-export all types as a namespace
|
|
67
69
|
export * as PortalTypes from "../generated/portal/types.js";
|
|
@@ -275,6 +275,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
|
|
|
275
275
|
export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
|
|
276
276
|
export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
|
|
277
277
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
278
|
+
export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
|
|
279
|
+
export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
|
|
278
280
|
export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
|
|
279
281
|
export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
|
|
280
282
|
export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
|
|
@@ -368,3 +370,4 @@ export { ReportsService } from './services/ReportsService';
|
|
|
368
370
|
export { SettingsService } from './services/SettingsService';
|
|
369
371
|
export { ShowsService } from './services/ShowsService';
|
|
370
372
|
export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService';
|
|
373
|
+
export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService';
|
|
@@ -36,3 +36,4 @@ export { ReportsService } from './services/ReportsService.js';
|
|
|
36
36
|
export { SettingsService } from './services/SettingsService.js';
|
|
37
37
|
export { ShowsService } from './services/ShowsService.js';
|
|
38
38
|
export { SuperUserAbandonedCartsService } from './services/SuperUserAbandonedCartsService.js';
|
|
39
|
+
export { SuperUserSupportTicketsService } from './services/SuperUserSupportTicketsService.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type SupportTicketResponseDto = {
|
|
2
|
+
id: number;
|
|
3
|
+
guid: string;
|
|
4
|
+
adminUserId: number;
|
|
5
|
+
statusId: number;
|
|
6
|
+
typeId: number;
|
|
7
|
+
leadId: number;
|
|
8
|
+
orderId: number;
|
|
9
|
+
reasonId: number;
|
|
10
|
+
reasonOther: string;
|
|
11
|
+
pocId: number;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
phone: string;
|
|
15
|
+
description: string;
|
|
16
|
+
isFromVm: number;
|
|
17
|
+
vmPhoneNumber: string;
|
|
18
|
+
voicemailId: number;
|
|
19
|
+
dateCreated: string;
|
|
20
|
+
lastShowStart: string;
|
|
21
|
+
statusName: string;
|
|
22
|
+
reasonName: string;
|
|
23
|
+
numNotes: number;
|
|
24
|
+
adminUserName: string;
|
|
25
|
+
hashValue: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SupportTicketResponseDto } from '../models/SupportTicketResponseDto';
|
|
2
|
+
import type { SupportTicketStatusResponseDto } from '../models/SupportTicketStatusResponseDto';
|
|
3
|
+
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
|
+
export declare class SuperUserSupportTicketsService {
|
|
5
|
+
/**
|
|
6
|
+
* Fetch the list of support tickets for a studio
|
|
7
|
+
* Fetch the list of support tickets for a studio
|
|
8
|
+
* @param xStudioId The ID of the studio
|
|
9
|
+
* @param statusId The ID of the support ticket status
|
|
10
|
+
* @returns SupportTicketResponseDto Support ticket statuses fetched successfully
|
|
11
|
+
* @throws ApiError
|
|
12
|
+
*/
|
|
13
|
+
static getSupportTickets(xStudioId: string, statusId: string): CancelablePromise<Array<SupportTicketResponseDto>>;
|
|
14
|
+
/**
|
|
15
|
+
* Fetch the list of support ticket status for a studio
|
|
16
|
+
* Fetch the list of support ticket status for a studio
|
|
17
|
+
* @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
static getSupportTicketStatus(): CancelablePromise<Array<SupportTicketStatusResponseDto>>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OpenAPI } from '../core/OpenAPI.js';
|
|
2
|
+
import { request as __request } from '../core/request.js';
|
|
3
|
+
export class SuperUserSupportTicketsService {
|
|
4
|
+
/**
|
|
5
|
+
* Fetch the list of support tickets for a studio
|
|
6
|
+
* Fetch the list of support tickets for a studio
|
|
7
|
+
* @param xStudioId The ID of the studio
|
|
8
|
+
* @param statusId The ID of the support ticket status
|
|
9
|
+
* @returns SupportTicketResponseDto Support ticket statuses fetched successfully
|
|
10
|
+
* @throws ApiError
|
|
11
|
+
*/
|
|
12
|
+
static getSupportTickets(xStudioId, statusId) {
|
|
13
|
+
return __request(OpenAPI, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
url: '/superuser/support-tickets',
|
|
16
|
+
headers: {
|
|
17
|
+
'x-studio-id': xStudioId,
|
|
18
|
+
},
|
|
19
|
+
query: {
|
|
20
|
+
'statusId': statusId,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Fetch the list of support ticket status for a studio
|
|
26
|
+
* Fetch the list of support ticket status for a studio
|
|
27
|
+
* @returns SupportTicketStatusResponseDto Support ticket status fetched successfully
|
|
28
|
+
* @throws ApiError
|
|
29
|
+
*/
|
|
30
|
+
static getSupportTicketStatus() {
|
|
31
|
+
return __request(OpenAPI, {
|
|
32
|
+
method: 'GET',
|
|
33
|
+
url: '/superuser/support-tickets/status',
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -271,6 +271,8 @@ export type { StudentCreditOrdersResponseDto } from './models/StudentCreditOrder
|
|
|
271
271
|
export type { StudentCreditResponseDto } from './models/StudentCreditResponseDto';
|
|
272
272
|
export type { StudioIntegratorDetailResponseDto } from './models/StudioIntegratorDetailResponseDto';
|
|
273
273
|
export type { SuccessResponse } from './models/SuccessResponse';
|
|
274
|
+
export type { SupportTicketResponseDto } from './models/SupportTicketResponseDto';
|
|
275
|
+
export type { SupportTicketStatusResponseDto } from './models/SupportTicketStatusResponseDto';
|
|
274
276
|
export type { TaxAndBankDetailsResponseDto } from './models/TaxAndBankDetailsResponseDto';
|
|
275
277
|
export type { TaxByMonthRequestDto } from './models/TaxByMonthRequestDto';
|
|
276
278
|
export type { TaxByMonthResponseDto } from './models/TaxByMonthResponseDto';
|