@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.
Files changed (104) hide show
  1. package/demo/test.html +1554 -674
  2. package/dist/bundle/drt-sdk.js +1 -1
  3. package/dist/cjs/index.d.ts +1 -0
  4. package/dist/cjs/src/definitions/portal.d.ts +2 -0
  5. package/dist/cjs/src/definitions/portal.js +2 -0
  6. package/dist/cjs/src/generated/portal/core/OpenAPI.js +1 -1
  7. package/dist/cjs/src/generated/portal/index.d.ts +3 -0
  8. package/dist/cjs/src/generated/portal/index.js +3 -1
  9. package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
  10. package/dist/cjs/src/generated/portal/models/SupportTicketResponseDto.js +2 -0
  11. package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
  12. package/dist/cjs/src/generated/portal/models/SupportTicketStatusResponseDto.js +2 -0
  13. package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
  14. package/dist/cjs/src/generated/portal/services/SuperUserSupportTicketsService.js +40 -0
  15. package/dist/cjs/src/generated/portal/types.d.ts +2 -0
  16. package/dist/cjs/src/generated/shopper/services/AccountService.d.ts +4 -16
  17. package/dist/cjs/src/generated/shopper/services/AccountService.js +4 -36
  18. package/dist/cjs/src/generated/shopper/services/CartService.d.ts +2 -8
  19. package/dist/cjs/src/generated/shopper/services/CartService.js +2 -18
  20. package/dist/cjs/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  21. package/dist/cjs/src/generated/shopper/services/CheckoutService.js +5 -45
  22. package/dist/cjs/src/generated/shopper/services/CodeService.d.ts +5 -20
  23. package/dist/cjs/src/generated/shopper/services/CodeService.js +5 -45
  24. package/dist/cjs/src/generated/shopper/services/DonationService.d.ts +2 -8
  25. package/dist/cjs/src/generated/shopper/services/DonationService.js +2 -16
  26. package/dist/cjs/src/generated/shopper/services/EventService.d.ts +4 -16
  27. package/dist/cjs/src/generated/shopper/services/EventService.js +4 -36
  28. package/dist/cjs/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  29. package/dist/cjs/src/generated/shopper/services/GiftCardService.js +5 -45
  30. package/dist/cjs/src/generated/shopper/services/OrderService.d.ts +14 -56
  31. package/dist/cjs/src/generated/shopper/services/OrderService.js +14 -126
  32. package/dist/cjs/src/generated/shopper/services/PaymentService.d.ts +3 -12
  33. package/dist/cjs/src/generated/shopper/services/PaymentService.js +3 -27
  34. package/dist/cjs/src/generated/shopper/services/ProductService.d.ts +3 -12
  35. package/dist/cjs/src/generated/shopper/services/ProductService.js +3 -27
  36. package/dist/cjs/src/generated/shopper/services/SeatService.d.ts +6 -24
  37. package/dist/cjs/src/generated/shopper/services/SeatService.js +6 -54
  38. package/dist/cjs/src/generated/shopper/services/SessionService.d.ts +2 -8
  39. package/dist/cjs/src/generated/shopper/services/SessionService.js +2 -18
  40. package/dist/cjs/src/scripts/build-all.js +46 -2
  41. package/dist/cjs/src/staging/wrapService.js +1 -1
  42. package/dist/esm/index.d.ts +1 -0
  43. package/dist/esm/src/definitions/portal.d.ts +2 -0
  44. package/dist/esm/src/definitions/portal.js +2 -0
  45. package/dist/esm/src/generated/portal/core/OpenAPI.js +1 -1
  46. package/dist/esm/src/generated/portal/index.d.ts +3 -0
  47. package/dist/esm/src/generated/portal/index.js +1 -0
  48. package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.d.ts +26 -0
  49. package/dist/esm/src/generated/portal/models/SupportTicketResponseDto.js +1 -0
  50. package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.d.ts +4 -0
  51. package/dist/esm/src/generated/portal/models/SupportTicketStatusResponseDto.js +1 -0
  52. package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.d.ts +21 -0
  53. package/dist/esm/src/generated/portal/services/SuperUserSupportTicketsService.js +36 -0
  54. package/dist/esm/src/generated/portal/types.d.ts +2 -0
  55. package/dist/esm/src/generated/shopper/services/AccountService.d.ts +4 -16
  56. package/dist/esm/src/generated/shopper/services/AccountService.js +4 -36
  57. package/dist/esm/src/generated/shopper/services/CartService.d.ts +2 -8
  58. package/dist/esm/src/generated/shopper/services/CartService.js +2 -18
  59. package/dist/esm/src/generated/shopper/services/CheckoutService.d.ts +5 -20
  60. package/dist/esm/src/generated/shopper/services/CheckoutService.js +5 -45
  61. package/dist/esm/src/generated/shopper/services/CodeService.d.ts +5 -20
  62. package/dist/esm/src/generated/shopper/services/CodeService.js +5 -45
  63. package/dist/esm/src/generated/shopper/services/DonationService.d.ts +2 -8
  64. package/dist/esm/src/generated/shopper/services/DonationService.js +2 -16
  65. package/dist/esm/src/generated/shopper/services/EventService.d.ts +4 -16
  66. package/dist/esm/src/generated/shopper/services/EventService.js +4 -36
  67. package/dist/esm/src/generated/shopper/services/GiftCardService.d.ts +5 -20
  68. package/dist/esm/src/generated/shopper/services/GiftCardService.js +5 -45
  69. package/dist/esm/src/generated/shopper/services/OrderService.d.ts +14 -56
  70. package/dist/esm/src/generated/shopper/services/OrderService.js +14 -126
  71. package/dist/esm/src/generated/shopper/services/PaymentService.d.ts +3 -12
  72. package/dist/esm/src/generated/shopper/services/PaymentService.js +3 -27
  73. package/dist/esm/src/generated/shopper/services/ProductService.d.ts +3 -12
  74. package/dist/esm/src/generated/shopper/services/ProductService.js +3 -27
  75. package/dist/esm/src/generated/shopper/services/SeatService.d.ts +6 -24
  76. package/dist/esm/src/generated/shopper/services/SeatService.js +6 -54
  77. package/dist/esm/src/generated/shopper/services/SessionService.d.ts +2 -8
  78. package/dist/esm/src/generated/shopper/services/SessionService.js +2 -18
  79. package/dist/esm/src/scripts/build-all.js +46 -2
  80. package/dist/esm/src/staging/wrapService.js +1 -1
  81. package/drt-api-specs-staging.json +14 -0
  82. package/package.json +38 -38
  83. package/public/sdk/latest/drt-sdk.js +1 -1
  84. package/src/definitions/portal.ts +2 -0
  85. package/src/generated/portal/core/OpenAPI.ts +1 -1
  86. package/src/generated/portal/index.ts +3 -0
  87. package/src/generated/portal/models/SupportTicketResponseDto.ts +31 -0
  88. package/src/generated/portal/models/SupportTicketStatusResponseDto.ts +9 -0
  89. package/src/generated/portal/services/SuperUserSupportTicketsService.ts +46 -0
  90. package/src/generated/portal/types.ts +2 -0
  91. package/src/generated/shopper/services/AccountService.ts +0 -44
  92. package/src/generated/shopper/services/CartService.ts +0 -22
  93. package/src/generated/shopper/services/CheckoutService.ts +0 -55
  94. package/src/generated/shopper/services/CodeService.ts +0 -55
  95. package/src/generated/shopper/services/DonationService.ts +0 -20
  96. package/src/generated/shopper/services/EventService.ts +0 -44
  97. package/src/generated/shopper/services/GiftCardService.ts +0 -55
  98. package/src/generated/shopper/services/OrderService.ts +0 -154
  99. package/src/generated/shopper/services/PaymentService.ts +0 -33
  100. package/src/generated/shopper/services/ProductService.ts +0 -33
  101. package/src/generated/shopper/services/SeatService.ts +0 -66
  102. package/src/generated/shopper/services/SessionService.ts +0 -22
  103. package/src/scripts/build-all.ts +59 -2
  104. package/src/staging/wrapService.ts +1 -1
@@ -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.`,
@@ -1,8 +1,13 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { execFileSync } from 'child_process';
4
- // Load the spec list
5
- const specsPath = path.resolve('drt-api-specs.json');
4
+ // Load the spec list (use staging specs when --staging flag is passed)
5
+ const isStaging = process.argv.includes('--staging');
6
+ const specsFile = isStaging
7
+ ? 'drt-api-specs-staging.json'
8
+ : 'drt-api-specs.json';
9
+ const specsPath = path.resolve(specsFile);
10
+ console.log(`📋 Using specs: ${specsFile}`);
6
11
  const specs = JSON.parse(fs.readFileSync(specsPath, 'utf-8'));
7
12
  const GENERATED_BASE = path.resolve('src', 'generated');
8
13
  const INDEX_FILE = path.resolve('index.ts'); // <== write to project root
@@ -58,6 +63,45 @@ fs.writeFileSync(portalRequestPath, customRequestContent);
58
63
  console.log('✅ Replaced portal/core/request.ts with custom-request.txt');
59
64
  fs.writeFileSync(scannerRequestPath, customRequestContent);
60
65
  console.log('✅ Replaced scanner/core/request.ts with custom-request.txt');
66
+ // Strip credential params (shopperguid/accountid/apikey) from all generated service methods.
67
+ // DRT.init() injects these globally via OpenAPI.HEADERS, so callers never need to pass them.
68
+ console.log('⚙️ Stripping credential params from generated services...');
69
+ function walkServices(dir) {
70
+ const results = [];
71
+ for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
72
+ const full = path.join(dir, entry.name);
73
+ if (entry.isDirectory())
74
+ results.push(...walkServices(full));
75
+ else if (entry.isFile() &&
76
+ entry.name.endsWith('.ts') &&
77
+ dir.endsWith('services'))
78
+ results.push(full);
79
+ }
80
+ return results;
81
+ }
82
+ const serviceFiles = walkServices(GENERATED_BASE);
83
+ for (const file of serviceFiles) {
84
+ let src = fs.readFileSync(file, 'utf-8');
85
+ let patched = src
86
+ // Remove param lines from function signatures
87
+ .replace(/\n\s*shopperguid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
88
+ .replace(/\n\s*accountid: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
89
+ .replace(/\n\s*apikey: string(?:\s*\|\s*undefined)?\s*(?:=\s*undefined)?,/g, '')
90
+ // Remove @param jsdoc lines
91
+ .replace(/\n\s*\* @param shopperguid[^\n]*/g, '')
92
+ .replace(/\n\s*\* @param accountid[^\n]*/g, '')
93
+ .replace(/\n\s*\* @param apikey[^\n]*/g, '')
94
+ // Remove header entries inside __request
95
+ .replace(/\n\s*'shopperguid': shopperguid,/g, '')
96
+ .replace(/\n\s*'accountid': accountid,/g, '')
97
+ .replace(/\n\s*'apikey': apikey,/g, '')
98
+ // Remove empty headers: {} blocks left behind
99
+ .replace(/\n\s*headers: \{\s*\},/g, '');
100
+ if (patched !== src) {
101
+ fs.writeFileSync(file, patched);
102
+ }
103
+ }
104
+ console.log(`✅ Stripped credentials from ${serviceFiles.length} service files`);
61
105
  // --- Generate index.ts
62
106
  console.log(`🧩 Generating DRT index...`);
63
107
  const lines = [];
@@ -32,7 +32,7 @@ export function wrapServiceForStaging(ServiceClass, openAPIConfig, stagingBase)
32
32
  }
33
33
  // Staging base URLs
34
34
  // Scanner doesn't have a staging
35
- // TODO: Update shopper to use production URL
35
+ // TODO: Update shopper to use production URL (shopper-prod)
36
36
  export const STAGING_URLS = {
37
37
  portal: "https://api.staging.drttix.com/admin-portal",
38
38
  shopper: "https://api.drttix.com/shopper",
@@ -0,0 +1,14 @@
1
+ [
2
+ {
3
+ "name": "shopper",
4
+ "url": "https://api.drttix.com/shopper/docs-json"
5
+ },
6
+ {
7
+ "name": "scanner",
8
+ "url": "https://api.drttix.com/scanner-v3/docs-json"
9
+ },
10
+ {
11
+ "name": "portal",
12
+ "url": "https://api.staging.drttix.com/admin-portal/docs-json"
13
+ }
14
+ ]
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
1
  {
2
- "name": "@drttix/drt-sdk",
3
- "description": "DRT SDK",
4
- "version": "0.9.7",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/esm/index.js",
7
- "types": "dist/esm/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/esm/index.js",
11
- "require": "./dist/cjs/index.js",
12
- "types": "./dist/esm/index.d.ts"
13
- },
14
- "./staging": {
15
- "import": "./dist/esm/staging.js",
16
- "require": "./dist/cjs/staging.js",
17
- "types": "./dist/esm/staging.d.ts"
18
- }
19
- },
20
- "type": "commonjs",
21
- "private": false,
22
- "publishConfig": {
23
- "access": "public",
24
- "registry": "https://registry.npmjs.org/"
25
- },
26
- "scripts": {
27
- "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
- "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
29
- "generate": "npx tsx src/scripts/build-all.ts",
30
- "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
- },
32
- "devDependencies": {
33
- "@types/node": "^24.0.4",
34
- "esbuild": "^0.20.0",
35
- "typescript": "^5.8.3"
36
- },
37
- "dependencies": {
38
- "@drttix/drt-sdk": "^0.2.9"
39
- }
2
+ "name": "@drttix/drt-sdk",
3
+ "description": "DRT SDK",
4
+ "version": "0.9.9",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
+ "types": "dist/esm/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/esm/index.js",
11
+ "require": "./dist/cjs/index.js",
12
+ "types": "./dist/esm/index.d.ts"
13
+ },
14
+ "./staging": {
15
+ "import": "./dist/esm/staging.js",
16
+ "require": "./dist/cjs/staging.js",
17
+ "types": "./dist/esm/staging.d.ts"
18
+ }
19
+ },
20
+ "type": "commonjs",
21
+ "private": false,
22
+ "publishConfig": {
23
+ "access": "public",
24
+ "registry": "https://registry.npmjs.org/"
25
+ },
26
+ "scripts": {
27
+ "build": "npx tsc --project tsconfig.esm.json && npx tsc --project tsconfig.cjs.json && node scripts/fix-import-extensions.mjs",
28
+ "build:bundle": "npm run build && npx esbuild dist/esm/index.js --bundle --format=esm --outfile=dist/bundle/drt-sdk.js --minify",
29
+ "generate": "npx tsx src/scripts/build-all.ts && npx tsx src/scripts/build-all.ts --staging",
30
+ "prepublishOnly": "npx tsx src/scripts/check-version-not-published.ts && npm run build"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^24.0.4",
34
+ "esbuild": "^0.20.0",
35
+ "typescript": "^5.8.3"
36
+ },
37
+ "dependencies": {
38
+ "@drttix/drt-sdk": "^0.2.9"
39
+ }
40
40
  }