@drttix/drt-sdk 0.9.7 → 0.9.8

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.
Files changed (67) hide show
  1. package/demo/test.html +1554 -674
  2. package/dist/bundle/drt-sdk.js +1 -1
  3. package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
  4. package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
  5. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
  6. package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
  7. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  8. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
  9. package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
  10. package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
  11. package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
  12. package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
  13. package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
  14. package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
  15. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  16. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
  17. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
  18. package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
  19. package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
  20. package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
  21. package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
  22. package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
  23. package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
  24. package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
  25. package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
  26. package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
  27. package/dist/cjs/src/scripts/build-all.js +39 -0
  28. package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
  29. package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
  30. package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
  31. package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
  32. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  33. package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
  34. package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
  35. package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
  36. package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
  37. package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
  38. package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
  39. package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
  40. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  41. package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
  42. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
  43. package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
  44. package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
  45. package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
  46. package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
  47. package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
  48. package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
  49. package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
  50. package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
  51. package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
  52. package/dist/esm/src/scripts/build-all.js +39 -0
  53. package/package.json +1 -1
  54. package/public/sdk/latest/drt-sdk.js +1 -1
  55. package/src/generated/shopper/services/AccountService.ts +0 -44
  56. package/src/generated/shopper/services/CartService.ts +0 -22
  57. package/src/generated/shopper/services/CheckoutService.ts +0 -55
  58. package/src/generated/shopper/services/CodeService.ts +0 -55
  59. package/src/generated/shopper/services/DonationService.ts +0 -20
  60. package/src/generated/shopper/services/EventService.ts +0 -44
  61. package/src/generated/shopper/services/GiftCardService.ts +0 -55
  62. package/src/generated/shopper/services/OrderService.ts +0 -154
  63. package/src/generated/shopper/services/PaymentService.ts +0 -33
  64. package/src/generated/shopper/services/ProductService.ts +0 -33
  65. package/src/generated/shopper/services/SeatService.ts +0 -66
  66. package/src/generated/shopper/services/SessionService.ts +0 -22
  67. package/src/scripts/build-all.ts +52 -0
@@ -4,21 +4,13 @@ export class ProductService {
4
4
  /**
5
5
  * Get all products
6
6
  * Retrieves all products available for the specified account.
7
- * @param shopperguid Unique identifier for the shopper.
8
- * @param accountid Unique identifier for the account.
9
- * @param apikey API key for authentication.
10
7
  * @returns ProductData Returns a list of products for the account.
11
8
  * @throws ApiError
12
9
  */
13
- static getProducts(shopperguid, accountid, apikey) {
10
+ static getProducts() {
14
11
  return __request(OpenAPI, {
15
12
  method: 'GET',
16
13
  url: '/product',
17
- headers: {
18
- 'shopperguid': shopperguid,
19
- 'accountid': accountid,
20
- 'apikey': apikey,
21
- },
22
14
  errors: {
23
15
  400: `Bad Request error with error details.`,
24
16
  404: `Not found error with error details.`,
@@ -29,22 +21,14 @@ export class ProductService {
29
21
  /**
30
22
  * Add a product
31
23
  * Adds a new product to the specified account.
32
- * @param shopperguid Unique identifier for the shopper.
33
- * @param accountid Unique identifier for the account.
34
- * @param apikey API key for authentication.
35
24
  * @param requestBody Product details to add.
36
25
  * @returns ProductAddResponse Returns the result of the product addition.
37
26
  * @throws ApiError
38
27
  */
39
- static addProduct(shopperguid, accountid, apikey, requestBody) {
28
+ static addProduct(requestBody) {
40
29
  return __request(OpenAPI, {
41
30
  method: 'POST',
42
31
  url: '/product',
43
- headers: {
44
- 'shopperguid': shopperguid,
45
- 'accountid': accountid,
46
- 'apikey': apikey,
47
- },
48
32
  body: requestBody,
49
33
  mediaType: 'application/json',
50
34
  errors: {
@@ -57,22 +41,14 @@ export class ProductService {
57
41
  /**
58
42
  * Remove a product
59
43
  * Removes a product from the specified account.
60
- * @param shopperguid Unique identifier for the shopper.
61
- * @param accountid Unique identifier for the account.
62
- * @param apikey API key for authentication.
63
44
  * @param requestBody Product details to remove.
64
45
  * @returns ProductUpdateResponse Returns the result of the product removal.
65
46
  * @throws ApiError
66
47
  */
67
- static deleteProduct(shopperguid, accountid, apikey, requestBody) {
48
+ static deleteProduct(requestBody) {
68
49
  return __request(OpenAPI, {
69
50
  method: 'DELETE',
70
51
  url: '/product',
71
- headers: {
72
- 'shopperguid': shopperguid,
73
- 'accountid': accountid,
74
- 'apikey': apikey,
75
- },
76
52
  body: requestBody,
77
53
  mediaType: 'application/json',
78
54
  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(shopperguid: string, accountid: string, apikey: string, requestBody: SeatData): CancelablePromise<SeatHoldReturn>;
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(shopperguid: string, accountid: string, apikey: string, requestBody: GAHold): CancelablePromise<GAResponse>;
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(shopperguid: string, accountid: string, apikey: string, requestBody: BAHold): CancelablePromise<SeatHoldReturn>;
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(shopperguid: string, accountid: string, apikey: string, requestBody: SeatData): CancelablePromise<any>;
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(shopperguid: string, accountid: string, apikey: string, requestBody: GASeatRelease): CancelablePromise<any>;
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(shopperguid: string, accountid: string, apikey: string, requestBody: UpdateTierData): CancelablePromise<UpdateTierData>;
64
+ static updateTier(requestBody: UpdateTierData): CancelablePromise<UpdateTierData>;
83
65
  }
@@ -21,22 +21,14 @@ export class SeatService {
21
21
  /**
22
22
  * Hold a reserved seat
23
23
  * Holds a reserved seat for the shopper.
24
- * @param shopperguid Unique identifier for the shopper.
25
- * @param accountid Unique identifier for the account.
26
- * @param apikey API key for authentication.
27
24
  * @param requestBody Seat data for holding a reserved seat
28
25
  * @returns SeatHoldReturn Successfully held the reserved seat.
29
26
  * @throws ApiError
30
27
  */
31
- static holdReservedSeat(shopperguid, accountid, apikey, requestBody) {
28
+ static holdReservedSeat(requestBody) {
32
29
  return __request(OpenAPI, {
33
30
  method: 'POST',
34
31
  url: '/seat/hold-reserved',
35
- headers: {
36
- 'shopperguid': shopperguid,
37
- 'accountid': accountid,
38
- 'apikey': apikey,
39
- },
40
32
  body: requestBody,
41
33
  mediaType: 'application/json',
42
34
  errors: {
@@ -49,22 +41,14 @@ export class SeatService {
49
41
  /**
50
42
  * Hold a general admission seat
51
43
  * Holds a general admission seat for the shopper.
52
- * @param shopperguid Unique identifier for the shopper.
53
- * @param accountid Unique identifier for the account.
54
- * @param apikey API key for authentication.
55
44
  * @param requestBody Seat data for holding a general admission seat
56
45
  * @returns GAResponse Successfully held the general admission seat.
57
46
  * @throws ApiError
58
47
  */
59
- static holdGaSeat(shopperguid, accountid, apikey, requestBody) {
48
+ static holdGaSeat(requestBody) {
60
49
  return __request(OpenAPI, {
61
50
  method: 'POST',
62
51
  url: '/seat/hold-ga',
63
- headers: {
64
- 'shopperguid': shopperguid,
65
- 'accountid': accountid,
66
- 'apikey': apikey,
67
- },
68
52
  body: requestBody,
69
53
  mediaType: 'application/json',
70
54
  errors: {
@@ -77,22 +61,14 @@ export class SeatService {
77
61
  /**
78
62
  * Hold a reserved seat for a BA event
79
63
  * Holds a reserved seat for a BA event.
80
- * @param shopperguid Unique identifier for the shopper.
81
- * @param accountid Unique identifier for the account.
82
- * @param apikey API key for authentication.
83
64
  * @param requestBody Seat data for holding a reserved seat for a BA event
84
65
  * @returns SeatHoldReturn Successfully held the reserved seat for a BA event.
85
66
  * @throws ApiError
86
67
  */
87
- static holdBaSeat(shopperguid, accountid, apikey, requestBody) {
68
+ static holdBaSeat(requestBody) {
88
69
  return __request(OpenAPI, {
89
70
  method: 'POST',
90
71
  url: '/seat/hold-ba',
91
- headers: {
92
- 'shopperguid': shopperguid,
93
- 'accountid': accountid,
94
- 'apikey': apikey,
95
- },
96
72
  body: requestBody,
97
73
  mediaType: 'application/json',
98
74
  errors: {
@@ -105,22 +81,14 @@ export class SeatService {
105
81
  /**
106
82
  * Release a reserved seat
107
83
  * Releases a reserved seat for the shopper.
108
- * @param shopperguid Unique identifier for the shopper.
109
- * @param accountid Unique identifier for the account.
110
- * @param apikey API key for authentication.
111
84
  * @param requestBody Seat data for releasing a reserved seat
112
85
  * @returns any Successfully released the reserved seat.
113
86
  * @throws ApiError
114
87
  */
115
- static releaseReservedSeat(shopperguid, accountid, apikey, requestBody) {
88
+ static releaseReservedSeat(requestBody) {
116
89
  return __request(OpenAPI, {
117
90
  method: 'DELETE',
118
91
  url: '/seat/release-reserved',
119
- headers: {
120
- 'shopperguid': shopperguid,
121
- 'accountid': accountid,
122
- 'apikey': apikey,
123
- },
124
92
  body: requestBody,
125
93
  mediaType: 'application/json',
126
94
  errors: {
@@ -133,22 +101,14 @@ export class SeatService {
133
101
  /**
134
102
  * Release a general admission seat
135
103
  * Releases a general admission seat for the shopper.
136
- * @param shopperguid Unique identifier for the shopper.
137
- * @param accountid Unique identifier for the account.
138
- * @param apikey API key for authentication.
139
104
  * @param requestBody Seat data for releasing a general admission seat
140
105
  * @returns any
141
106
  * @throws ApiError
142
107
  */
143
- static releaseGaSeat(shopperguid, accountid, apikey, requestBody) {
108
+ static releaseGaSeat(requestBody) {
144
109
  return __request(OpenAPI, {
145
110
  method: 'DELETE',
146
111
  url: '/seat/release-ga',
147
- headers: {
148
- 'shopperguid': shopperguid,
149
- 'accountid': accountid,
150
- 'apikey': apikey,
151
- },
152
112
  body: requestBody,
153
113
  mediaType: 'application/json',
154
114
  errors: {
@@ -161,22 +121,14 @@ export class SeatService {
161
121
  /**
162
122
  * Update tier information for a seat
163
123
  * Updates the tier information for a seat.
164
- * @param shopperguid Unique identifier for the shopper.
165
- * @param accountid Unique identifier for the account.
166
- * @param apikey API key for authentication.
167
124
  * @param requestBody Data for updating tier information
168
125
  * @returns UpdateTierData Successfully updated the tier information.
169
126
  * @throws ApiError
170
127
  */
171
- static updateTier(shopperguid, accountid, apikey, requestBody) {
128
+ static updateTier(requestBody) {
172
129
  return __request(OpenAPI, {
173
130
  method: 'POST',
174
131
  url: '/seat/update-tier',
175
- headers: {
176
- 'shopperguid': shopperguid,
177
- 'accountid': accountid,
178
- 'apikey': apikey,
179
- },
180
132
  body: requestBody,
181
133
  mediaType: 'application/json',
182
134
  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(shopperguid: string, accountid: string, apikey: string): CancelablePromise<SessionInfoDto>;
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(shopperguid: string, accountid: string, apikey: string): CancelablePromise<SessionHeartbeatDto>;
27
+ static getHeartbeat(): CancelablePromise<SessionHeartbeatDto>;
34
28
  }
@@ -24,21 +24,13 @@ export class SessionService {
24
24
  /**
25
25
  * Get Session information
26
26
  * Retrieves all Sessions available for the specified account.
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
  * @returns SessionInfoDto Returns session data for the provided shopperguid.
31
28
  * @throws ApiError
32
29
  */
33
- static getSessions(shopperguid, accountid, apikey) {
30
+ static getSessions() {
34
31
  return __request(OpenAPI, {
35
32
  method: 'GET',
36
33
  url: '/session',
37
- headers: {
38
- 'shopperguid': shopperguid,
39
- 'accountid': accountid,
40
- 'apikey': apikey,
41
- },
42
34
  errors: {
43
35
  400: `Bad Request error with error details.`,
44
36
  404: `Not found error with error details.`,
@@ -49,21 +41,13 @@ export class SessionService {
49
41
  /**
50
42
  * Get Session Timer Heartbeat
51
43
  * Retrieves the heartbeat for the sessions timer in ms.
52
- * @param shopperguid Unique identifier for the shopper.
53
- * @param accountid Unique identifier for the account.
54
- * @param apikey API key for authentication.
55
44
  * @returns SessionHeartbeatDto Returns session data for the provided shopperguid.
56
45
  * @throws ApiError
57
46
  */
58
- static getHeartbeat(shopperguid, accountid, apikey) {
47
+ static getHeartbeat() {
59
48
  return __request(OpenAPI, {
60
49
  method: 'GET',
61
50
  url: '/session/heartbeat',
62
- headers: {
63
- 'shopperguid': shopperguid,
64
- 'accountid': accountid,
65
- 'apikey': apikey,
66
- },
67
51
  errors: {
68
52
  400: `Bad Request error with error details.`,
69
53
  404: `Not found error with error details.`,
@@ -58,6 +58,45 @@ fs.writeFileSync(portalRequestPath, customRequestContent);
58
58
  console.log('✅ Replaced portal/core/request.ts with custom-request.txt');
59
59
  fs.writeFileSync(scannerRequestPath, customRequestContent);
60
60
  console.log('✅ Replaced scanner/core/request.ts with custom-request.txt');
61
+ // Strip credential params (shopperguid/accountid/apikey) from all generated service methods.
62
+ // DRT.init() injects these globally via OpenAPI.HEADERS, so callers never need to pass them.
63
+ console.log('⚙️ Stripping credential params from generated services...');
64
+ function walkServices(dir) {
65
+ const results = [];
66
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
67
+ const full = path.join(dir, entry.name);
68
+ if (entry.isDirectory())
69
+ results.push(...walkServices(full));
70
+ else if (entry.isFile() &&
71
+ entry.name.endsWith('.ts') &&
72
+ dir.endsWith('services'))
73
+ results.push(full);
74
+ }
75
+ return results;
76
+ }
77
+ const serviceFiles = walkServices(GENERATED_BASE);
78
+ for (const file of serviceFiles) {
79
+ let src = fs.readFileSync(file, 'utf-8');
80
+ let patched = src
81
+ // Remove param lines from function signatures
82
+ .replace(/\n\s*shopperguid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
83
+ .replace(/\n\s*accountid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
84
+ .replace(/\n\s*apikey: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
85
+ // Remove @param jsdoc lines
86
+ .replace(/\n\s*\* @param shopperguid[^\n]*/g, '')
87
+ .replace(/\n\s*\* @param accountid[^\n]*/g, '')
88
+ .replace(/\n\s*\* @param apikey[^\n]*/g, '')
89
+ // Remove header entries inside __request
90
+ .replace(/\n\s*'shopperguid': shopperguid,/g, '')
91
+ .replace(/\n\s*'accountid': accountid,/g, '')
92
+ .replace(/\n\s*'apikey': apikey,/g, '')
93
+ // Remove empty headers: {} blocks left behind
94
+ .replace(/\n\s*headers: \{\s*\},/g, '');
95
+ if (patched !== src) {
96
+ fs.writeFileSync(file, patched);
97
+ }
98
+ }
99
+ console.log(`✅ Stripped credentials from ${serviceFiles.length} service files`);
61
100
  // --- Generate index.ts
62
101
  console.log(`🧩 Generating DRT index...`);
63
102
  const lines = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drttix/drt-sdk",
3
3
  "description": "DRT SDK",
4
- "version": "0.9.7",
4
+ "version": "0.9.8",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/esm/index.d.ts",