@superdurable/connector-hubspot 0.0.0-stage → 0.1.0

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/dist/mock.d.ts ADDED
@@ -0,0 +1,118 @@
1
+ import { MockQuery, MockMutation, Case } from '@superdurable/connectors-sdk/connectormock';
2
+ import { Failure } from '@superdurable/connectors-sdk';
3
+ import { f as Operations, a as Connection, S as SearchObjectsInput, O as ObjectPage, G as GetObjectInput, C as CRMObject, b as UpsertObjectInput, c as UpsertedObject, U as UpdateObjectInput, l as SearchFilter, m as SearchFilterGroup, q as SearchSort } from './connection-B7L88dB2.js';
4
+ import 'zod';
5
+
6
+ /** Go zero value for SearchFilter in scripted cases. */
7
+ declare const emptySearchFilter: SearchFilter;
8
+ /** Go zero value for SearchFilterGroup in scripted cases. */
9
+ declare const emptySearchFilterGroup: SearchFilterGroup;
10
+ /** Go zero value for SearchSort in scripted cases. */
11
+ declare const emptySearchSort: SearchSort;
12
+ /** Go zero value for SearchObjectsInput in scripted cases. */
13
+ declare const emptySearchObjectsInput: SearchObjectsInput;
14
+ /** Go zero value for CRMObject in scripted cases. */
15
+ declare const emptyCRMObject: CRMObject;
16
+ /** Go zero value for ObjectPage in scripted cases. */
17
+ declare const emptyObjectPage: ObjectPage;
18
+ /** Go zero value for GetObjectInput in scripted cases. */
19
+ declare const emptyGetObjectInput: GetObjectInput;
20
+ /** Go zero value for UpsertObjectInput in scripted cases. */
21
+ declare const emptyUpsertObjectInput: UpsertObjectInput;
22
+ /** Go zero value for UpsertedObject in scripted cases. */
23
+ declare const emptyUpsertedObject: UpsertedObject;
24
+ /** Go zero value for UpdateObjectInput in scripted cases. */
25
+ declare const emptyUpdateObjectInput: UpdateObjectInput;
26
+ /** Script the searched branch. */
27
+ declare function searchObjectsSearched(value: ObjectPage, failure?: Failure): Case<ObjectPage>;
28
+ /** Script the providerRejected branch. */
29
+ declare function searchObjectsProviderRejected(value: ObjectPage, failure?: Failure): Case<ObjectPage>;
30
+ /** Script the invalidResponse branch. */
31
+ declare function searchObjectsInvalidResponse(value: ObjectPage, failure?: Failure): Case<ObjectPage>;
32
+ /** Script the defect branch. */
33
+ declare function searchObjectsDefect(value: ObjectPage, failure?: Failure): Case<ObjectPage>;
34
+ /** Script a safe retry of searchObjects. */
35
+ declare function searchObjectsRetry(failure: Failure, retryAfterMs?: number): Case<ObjectPage>;
36
+ /** Manifest scenario recentOpenDeals for searchObjects. */
37
+ declare function searchObjectsRecentOpenDeals(): Case<ObjectPage>;
38
+ /** Default searchObjects scenario. */
39
+ declare function searchObjectsDefault(): Case<ObjectPage>;
40
+ /** Manifest scenario searchRejected for searchObjects. */
41
+ declare function searchObjectsSearchRejected(): Case<ObjectPage>;
42
+ /** Script the found branch. */
43
+ declare function getObjectFound(value: CRMObject, failure?: Failure): Case<CRMObject>;
44
+ /** Script the notFound branch. */
45
+ declare function getObjectNotFound(value: CRMObject, failure?: Failure): Case<CRMObject>;
46
+ /** Script the providerRejected branch. */
47
+ declare function getObjectProviderRejected(value: CRMObject, failure?: Failure): Case<CRMObject>;
48
+ /** Script the invalidResponse branch. */
49
+ declare function getObjectInvalidResponse(value: CRMObject, failure?: Failure): Case<CRMObject>;
50
+ /** Script the defect branch. */
51
+ declare function getObjectDefect(value: CRMObject, failure?: Failure): Case<CRMObject>;
52
+ /** Script a safe retry of getObject. */
53
+ declare function getObjectRetry(failure: Failure, retryAfterMs?: number): Case<CRMObject>;
54
+ /** Manifest scenario qualifiedDeal for getObject. */
55
+ declare function getObjectQualifiedDeal(): Case<CRMObject>;
56
+ /** Default getObject scenario. */
57
+ declare function getObjectDefault(): Case<CRMObject>;
58
+ /** Manifest scenario objectMissing for getObject. */
59
+ declare function getObjectObjectMissing(): Case<CRMObject>;
60
+ /** Manifest scenario objectReadRejected for getObject. */
61
+ declare function getObjectObjectReadRejected(): Case<CRMObject>;
62
+ /** Script the upserted branch. */
63
+ declare function upsertObjectUpserted(value: UpsertedObject, failure?: Failure): Case<UpsertedObject>;
64
+ /** Script the conflict branch. */
65
+ declare function upsertObjectConflict(value: UpsertedObject, failure?: Failure): Case<UpsertedObject>;
66
+ /** Script the providerRejected branch. */
67
+ declare function upsertObjectProviderRejected(value: UpsertedObject, failure?: Failure): Case<UpsertedObject>;
68
+ /** Script the invalidResponse branch. */
69
+ declare function upsertObjectInvalidResponse(value: UpsertedObject, failure?: Failure): Case<UpsertedObject>;
70
+ /** Script the defect branch. */
71
+ declare function upsertObjectDefect(value: UpsertedObject, failure?: Failure): Case<UpsertedObject>;
72
+ /** Script a safe retry of upsertObject. */
73
+ declare function upsertObjectRetry(failure: Failure, retryAfterMs?: number): Case<UpsertedObject>;
74
+ /** Manifest scenario upsertedLead for upsertObject. */
75
+ declare function upsertObjectUpsertedLead(): Case<UpsertedObject>;
76
+ /** Default upsertObject scenario. */
77
+ declare function upsertObjectDefault(): Case<UpsertedObject>;
78
+ /** Manifest scenario upsertConflict for upsertObject. */
79
+ declare function upsertObjectUpsertConflict(): Case<UpsertedObject>;
80
+ /** Manifest scenario upsertRejected for upsertObject. */
81
+ declare function upsertObjectUpsertRejected(): Case<UpsertedObject>;
82
+ /** Script the updated branch. */
83
+ declare function updateObjectUpdated(value: CRMObject, failure?: Failure): Case<CRMObject>;
84
+ /** Script the notFound branch. */
85
+ declare function updateObjectNotFound(value: CRMObject, failure?: Failure): Case<CRMObject>;
86
+ /** Script the conflict branch. */
87
+ declare function updateObjectConflict(value: CRMObject, failure?: Failure): Case<CRMObject>;
88
+ /** Script the providerRejected branch. */
89
+ declare function updateObjectProviderRejected(value: CRMObject, failure?: Failure): Case<CRMObject>;
90
+ /** Script the invalidResponse branch. */
91
+ declare function updateObjectInvalidResponse(value: CRMObject, failure?: Failure): Case<CRMObject>;
92
+ /** Script the defect branch. */
93
+ declare function updateObjectDefect(value: CRMObject, failure?: Failure): Case<CRMObject>;
94
+ /** Script a safe retry of updateObject. */
95
+ declare function updateObjectRetry(failure: Failure, retryAfterMs?: number): Case<CRMObject>;
96
+ /** Manifest scenario advancedDeal for updateObject. */
97
+ declare function updateObjectAdvancedDeal(): Case<CRMObject>;
98
+ /** Default updateObject scenario. */
99
+ declare function updateObjectDefault(): Case<CRMObject>;
100
+ /** Manifest scenario dealMissing for updateObject. */
101
+ declare function updateObjectDealMissing(): Case<CRMObject>;
102
+ /** Manifest scenario dealConflict for updateObject. */
103
+ declare function updateObjectDealConflict(): Case<CRMObject>;
104
+ /** Manifest scenario updateRejected for updateObject. */
105
+ declare function updateObjectUpdateRejected(): Case<CRMObject>;
106
+ /** Scripted operations and manifest defaults for this connector. */
107
+ declare class GeneratedMock implements Operations {
108
+ #private;
109
+ constructor(connectionName: string);
110
+ connection(): Connection;
111
+ searchObjects(): MockQuery<SearchObjectsInput, ObjectPage>;
112
+ getObject(): MockQuery<GetObjectInput, CRMObject>;
113
+ upsertObject(): MockMutation<UpsertObjectInput, UpsertedObject>;
114
+ updateObject(): MockMutation<UpdateObjectInput, CRMObject>;
115
+ assertNoFailures(): void;
116
+ }
117
+
118
+ export { GeneratedMock, emptyCRMObject, emptyGetObjectInput, emptyObjectPage, emptySearchFilter, emptySearchFilterGroup, emptySearchObjectsInput, emptySearchSort, emptyUpdateObjectInput, emptyUpsertObjectInput, emptyUpsertedObject, getObjectDefault, getObjectDefect, getObjectFound, getObjectInvalidResponse, getObjectNotFound, getObjectObjectMissing, getObjectObjectReadRejected, getObjectProviderRejected, getObjectQualifiedDeal, getObjectRetry, searchObjectsDefault, searchObjectsDefect, searchObjectsInvalidResponse, searchObjectsProviderRejected, searchObjectsRecentOpenDeals, searchObjectsRetry, searchObjectsSearchRejected, searchObjectsSearched, updateObjectAdvancedDeal, updateObjectConflict, updateObjectDealConflict, updateObjectDealMissing, updateObjectDefault, updateObjectDefect, updateObjectInvalidResponse, updateObjectNotFound, updateObjectProviderRejected, updateObjectRetry, updateObjectUpdateRejected, updateObjectUpdated, upsertObjectConflict, upsertObjectDefault, upsertObjectDefect, upsertObjectInvalidResponse, upsertObjectProviderRejected, upsertObjectRetry, upsertObjectUpsertConflict, upsertObjectUpsertRejected, upsertObjectUpserted, upsertObjectUpsertedLead };
package/dist/mock.js ADDED
@@ -0,0 +1,284 @@
1
+ import {
2
+ CRMObjectSchema,
3
+ ConnectorID,
4
+ GetObjectDefinition,
5
+ GetObjectInputSchema,
6
+ ObjectPageSchema,
7
+ ProviderID,
8
+ SearchFilterGroupSchema,
9
+ SearchFilterSchema,
10
+ SearchObjectsDefinition,
11
+ SearchObjectsInputSchema,
12
+ SearchSortSchema,
13
+ UpdateObjectDefinition,
14
+ UpdateObjectInputSchema,
15
+ UpsertObjectDefinition,
16
+ UpsertObjectInputSchema,
17
+ UpsertedObjectSchema,
18
+ newConnectionWithOperations
19
+ } from "./chunk-SUNBKTMW.js";
20
+
21
+ // src/generated/mock.ts
22
+ import { branchCase, retryCase, newMutation, newQuery } from "@superdurable/connectors-sdk/connectormock";
23
+ var emptySearchFilter = SearchFilterSchema.parse({
24
+ "propertyName": "",
25
+ "operator": ""
26
+ });
27
+ var emptySearchFilterGroup = SearchFilterGroupSchema.parse({
28
+ "filters": []
29
+ });
30
+ var emptySearchSort = SearchSortSchema.parse({
31
+ "propertyName": "",
32
+ "direction": ""
33
+ });
34
+ var emptySearchObjectsInput = SearchObjectsInputSchema.parse({
35
+ "objectType": ""
36
+ });
37
+ var emptyCRMObject = CRMObjectSchema.parse({
38
+ "objectType": "",
39
+ "id": "",
40
+ "archived": false
41
+ });
42
+ var emptyObjectPage = ObjectPageSchema.parse({
43
+ "objectType": "",
44
+ "total": 0,
45
+ "objects": []
46
+ });
47
+ var emptyGetObjectInput = GetObjectInputSchema.parse({
48
+ "objectType": "",
49
+ "objectId": ""
50
+ });
51
+ var emptyUpsertObjectInput = UpsertObjectInputSchema.parse({
52
+ "objectType": "",
53
+ "idProperty": "",
54
+ "idValue": ""
55
+ });
56
+ var emptyUpsertedObject = UpsertedObjectSchema.parse({
57
+ "object": emptyCRMObject,
58
+ "created": false
59
+ });
60
+ var emptyUpdateObjectInput = UpdateObjectInputSchema.parse({
61
+ "objectType": "",
62
+ "objectId": "",
63
+ "properties": {}
64
+ });
65
+ function searchObjectsSearched(value, failure) {
66
+ return branchCase("searched", value, failure);
67
+ }
68
+ function searchObjectsProviderRejected(value, failure) {
69
+ return branchCase("providerRejected", value, failure);
70
+ }
71
+ function searchObjectsInvalidResponse(value, failure) {
72
+ return branchCase("invalidResponse", value, failure);
73
+ }
74
+ function searchObjectsDefect(value, failure) {
75
+ return branchCase("defect", value, failure);
76
+ }
77
+ function searchObjectsRetry(failure, retryAfterMs = 0) {
78
+ return retryCase(failure, retryAfterMs);
79
+ }
80
+ function searchObjectsRecentOpenDeals() {
81
+ const value = emptyObjectPage;
82
+ return branchCase("searched", value);
83
+ }
84
+ function searchObjectsDefault() {
85
+ return searchObjectsRecentOpenDeals();
86
+ }
87
+ function searchObjectsSearchRejected() {
88
+ const value = emptyObjectPage;
89
+ return branchCase("providerRejected", value, { kind: "VALIDATION", provider: ConnectorID, operation: "searchObjects", message: "HubSpot rejected the CRM search filter." });
90
+ }
91
+ function getObjectFound(value, failure) {
92
+ return branchCase("found", value, failure);
93
+ }
94
+ function getObjectNotFound(value, failure) {
95
+ return branchCase("notFound", value, failure);
96
+ }
97
+ function getObjectProviderRejected(value, failure) {
98
+ return branchCase("providerRejected", value, failure);
99
+ }
100
+ function getObjectInvalidResponse(value, failure) {
101
+ return branchCase("invalidResponse", value, failure);
102
+ }
103
+ function getObjectDefect(value, failure) {
104
+ return branchCase("defect", value, failure);
105
+ }
106
+ function getObjectRetry(failure, retryAfterMs = 0) {
107
+ return retryCase(failure, retryAfterMs);
108
+ }
109
+ function getObjectQualifiedDeal() {
110
+ const value = CRMObjectSchema.parse({ "archived": false, "createdAt": "2026-10-01T09:00:00Z", "id": "9001", "objectType": "deals", "properties": { "createdate": "2026-10-01T09:00:00.000Z", "dealname": "Analytical Engines renewal", "dealstage": "qualifiedtobuy", "hs_lastmodifieddate": "2026-10-25T10:05:00.000Z", "hs_object_id": "9001", "pipeline": "default" }, "updatedAt": "2026-10-25T10:05:00Z" });
111
+ return branchCase("found", value);
112
+ }
113
+ function getObjectDefault() {
114
+ return getObjectQualifiedDeal();
115
+ }
116
+ function getObjectObjectMissing() {
117
+ const value = emptyCRMObject;
118
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "getObject", message: "HubSpot could not find the CRM record." });
119
+ }
120
+ function getObjectObjectReadRejected() {
121
+ const value = emptyCRMObject;
122
+ return branchCase("providerRejected", value, { kind: "AUTHORIZATION", provider: ConnectorID, operation: "getObject", message: "HubSpot rejected the CRM record read." });
123
+ }
124
+ function upsertObjectUpserted(value, failure) {
125
+ return branchCase("upserted", value, failure);
126
+ }
127
+ function upsertObjectConflict(value, failure) {
128
+ return branchCase("conflict", value, failure);
129
+ }
130
+ function upsertObjectProviderRejected(value, failure) {
131
+ return branchCase("providerRejected", value, failure);
132
+ }
133
+ function upsertObjectInvalidResponse(value, failure) {
134
+ return branchCase("invalidResponse", value, failure);
135
+ }
136
+ function upsertObjectDefect(value, failure) {
137
+ return branchCase("defect", value, failure);
138
+ }
139
+ function upsertObjectRetry(failure, retryAfterMs = 0) {
140
+ return retryCase(failure, retryAfterMs);
141
+ }
142
+ function upsertObjectUpsertedLead() {
143
+ const value = UpsertedObjectSchema.parse({ "created": false, "object": { "archived": false, "createdAt": "2026-09-15T08:00:00Z", "id": "501", "objectType": "contacts", "properties": { "company": "Analytical Engines", "createdate": "2026-09-15T08:00:00.000Z", "email": "ada@example.com", "firstname": "Ada", "hs_object_id": "501", "hubspot_owner_id": "77", "lastmodifieddate": "2026-10-25T10:04:00.000Z", "lastname": "Lovelace" }, "updatedAt": "2026-10-25T10:04:00Z" } });
144
+ return branchCase("upserted", value);
145
+ }
146
+ function upsertObjectDefault() {
147
+ return upsertObjectUpsertedLead();
148
+ }
149
+ function upsertObjectUpsertConflict() {
150
+ const value = emptyUpsertedObject;
151
+ return branchCase("conflict", value, { kind: "CONFLICT", provider: ConnectorID, operation: "upsertObject", message: "Another HubSpot contact owns the email." });
152
+ }
153
+ function upsertObjectUpsertRejected() {
154
+ const value = emptyUpsertedObject;
155
+ return branchCase("providerRejected", value, { kind: "VALIDATION", provider: ConnectorID, operation: "upsertObject", message: "HubSpot rejected the contact properties." });
156
+ }
157
+ function updateObjectUpdated(value, failure) {
158
+ return branchCase("updated", value, failure);
159
+ }
160
+ function updateObjectNotFound(value, failure) {
161
+ return branchCase("notFound", value, failure);
162
+ }
163
+ function updateObjectConflict(value, failure) {
164
+ return branchCase("conflict", value, failure);
165
+ }
166
+ function updateObjectProviderRejected(value, failure) {
167
+ return branchCase("providerRejected", value, failure);
168
+ }
169
+ function updateObjectInvalidResponse(value, failure) {
170
+ return branchCase("invalidResponse", value, failure);
171
+ }
172
+ function updateObjectDefect(value, failure) {
173
+ return branchCase("defect", value, failure);
174
+ }
175
+ function updateObjectRetry(failure, retryAfterMs = 0) {
176
+ return retryCase(failure, retryAfterMs);
177
+ }
178
+ function updateObjectAdvancedDeal() {
179
+ const value = CRMObjectSchema.parse({ "archived": false, "createdAt": "2026-10-01T09:00:00Z", "id": "9001", "objectType": "deals", "properties": { "createdate": "2026-10-01T09:00:00.000Z", "dealname": "Analytical Engines renewal", "dealstage": "qualifiedtobuy", "hs_lastmodifieddate": "2026-10-25T10:05:00.000Z", "hs_object_id": "9001", "pipeline": "default" }, "updatedAt": "2026-10-25T10:05:00Z" });
180
+ return branchCase("updated", value);
181
+ }
182
+ function updateObjectDefault() {
183
+ return updateObjectAdvancedDeal();
184
+ }
185
+ function updateObjectDealMissing() {
186
+ const value = emptyCRMObject;
187
+ return branchCase("notFound", value, { kind: "NOT_FOUND", provider: ConnectorID, operation: "updateObject", message: "HubSpot could not find the deal." });
188
+ }
189
+ function updateObjectDealConflict() {
190
+ const value = emptyCRMObject;
191
+ return branchCase("conflict", value, { kind: "CONFLICT", provider: ConnectorID, operation: "updateObject", message: "HubSpot rejected the conflicting stage update." });
192
+ }
193
+ function updateObjectUpdateRejected() {
194
+ const value = emptyCRMObject;
195
+ return branchCase("providerRejected", value, { kind: "VALIDATION", provider: ConnectorID, operation: "updateObject", message: "HubSpot rejected the deal stage update." });
196
+ }
197
+ var GeneratedMock = class {
198
+ #searchObjects;
199
+ #getObject;
200
+ #upsertObject;
201
+ #updateObject;
202
+ #connection;
203
+ constructor(connectionName) {
204
+ this.#searchObjects = newQuery(SearchObjectsDefinition).default(searchObjectsDefault());
205
+ this.#getObject = newQuery(GetObjectDefinition).default(getObjectDefault());
206
+ this.#upsertObject = newMutation(UpsertObjectDefinition).default(upsertObjectDefault());
207
+ this.#updateObject = newMutation(UpdateObjectDefinition).default(updateObjectDefault());
208
+ this.#connection = newConnectionWithOperations(this, { provider: ProviderID, name: connectionName });
209
+ }
210
+ connection() {
211
+ return this.#connection;
212
+ }
213
+ searchObjects() {
214
+ return this.#searchObjects;
215
+ }
216
+ getObject() {
217
+ return this.#getObject;
218
+ }
219
+ upsertObject() {
220
+ return this.#upsertObject;
221
+ }
222
+ updateObject() {
223
+ return this.#updateObject;
224
+ }
225
+ assertNoFailures() {
226
+ this.#searchObjects.assertNoFailures();
227
+ this.#getObject.assertNoFailures();
228
+ this.#upsertObject.assertNoFailures();
229
+ this.#updateObject.assertNoFailures();
230
+ }
231
+ };
232
+ export {
233
+ GeneratedMock,
234
+ emptyCRMObject,
235
+ emptyGetObjectInput,
236
+ emptyObjectPage,
237
+ emptySearchFilter,
238
+ emptySearchFilterGroup,
239
+ emptySearchObjectsInput,
240
+ emptySearchSort,
241
+ emptyUpdateObjectInput,
242
+ emptyUpsertObjectInput,
243
+ emptyUpsertedObject,
244
+ getObjectDefault,
245
+ getObjectDefect,
246
+ getObjectFound,
247
+ getObjectInvalidResponse,
248
+ getObjectNotFound,
249
+ getObjectObjectMissing,
250
+ getObjectObjectReadRejected,
251
+ getObjectProviderRejected,
252
+ getObjectQualifiedDeal,
253
+ getObjectRetry,
254
+ searchObjectsDefault,
255
+ searchObjectsDefect,
256
+ searchObjectsInvalidResponse,
257
+ searchObjectsProviderRejected,
258
+ searchObjectsRecentOpenDeals,
259
+ searchObjectsRetry,
260
+ searchObjectsSearchRejected,
261
+ searchObjectsSearched,
262
+ updateObjectAdvancedDeal,
263
+ updateObjectConflict,
264
+ updateObjectDealConflict,
265
+ updateObjectDealMissing,
266
+ updateObjectDefault,
267
+ updateObjectDefect,
268
+ updateObjectInvalidResponse,
269
+ updateObjectNotFound,
270
+ updateObjectProviderRejected,
271
+ updateObjectRetry,
272
+ updateObjectUpdateRejected,
273
+ updateObjectUpdated,
274
+ upsertObjectConflict,
275
+ upsertObjectDefault,
276
+ upsertObjectDefect,
277
+ upsertObjectInvalidResponse,
278
+ upsertObjectProviderRejected,
279
+ upsertObjectRetry,
280
+ upsertObjectUpsertConflict,
281
+ upsertObjectUpsertRejected,
282
+ upsertObjectUpserted,
283
+ upsertObjectUpsertedLead
284
+ };
package/package.json CHANGED
@@ -1,6 +1,63 @@
1
1
  {
2
2
  "name": "@superdurable/connector-hubspot",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "HubSpot CRM operations for Dex Flows",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/superdurable/dex-connectors-library.git",
8
+ "directory": "connectors/hubspot/typescript"
9
+ },
10
+ "type": "module",
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "registry": "https://registry.npmjs.org"
14
+ },
15
+ "engines": {
16
+ "node": "^22.0.0 || ^24.0.0"
17
+ },
18
+ "module": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.js"
24
+ },
25
+ "./mock": {
26
+ "types": "./dist/mock.d.ts",
27
+ "import": "./dist/mock.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "dex-connector.json",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "scripts": {
37
+ "build": "tsup src/index.ts src/mock.ts --format esm --dts --clean",
38
+ "typecheck": "tsc --noEmit",
39
+ "lint": "eslint src test examples",
40
+ "test": "npm run build && vitest run --exclude 'test/integration/**'",
41
+ "test:integration": "npm run build && vitest run test/integration/*.integration.test.ts",
42
+ "check": "npm test && npm run typecheck && npm run lint",
43
+ "example:search": "npm run build && tsx examples/search-deals/main.ts",
44
+ "example:search:start": "npm run build && tsx examples/search-deals/start.ts"
45
+ },
46
+ "dependencies": {
47
+ "@superdurable/connectors-sdk": "0.7.0",
48
+ "@superdurable/dex": ">=1.28.0",
49
+ "zod": "^4.1.0"
50
+ },
51
+ "devDependencies": {
52
+ "@eslint/js": "^9.0.0",
53
+ "@types/node": "^22.0.0",
54
+ "eslint": "^9.0.0",
55
+ "tsup": "^8.0.0",
56
+ "tsx": "^4.23.15",
57
+ "typescript": "^5.9.0",
58
+ "typescript-eslint": "^8.0.0",
59
+ "vitest": "^3.0.0",
60
+ "yaml": "^2.9.1"
61
+ },
62
+ "license": "MIT"
63
+ }