@commercetools/tools-core 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/index.cjs +10285 -0
  2. package/dist/index.cjs.map +1 -0
  3. package/dist/index.d.cts +835 -0
  4. package/dist/index.d.ts +835 -5
  5. package/dist/index.js +6436 -1
  6. package/package.json +10 -11
  7. package/dist/decorators/test/tool.decorator.test.d.ts +0 -1
  8. package/dist/decorators/tool.decorator.d.ts +0 -26
  9. package/dist/handlers/base.handler.d.ts +0 -34
  10. package/dist/handlers/commercetools.handler.d.ts +0 -16
  11. package/dist/handlers/test/base.handler.test.d.ts +0 -1
  12. package/dist/handlers/test/commercetools.handler.test.d.ts +0 -1
  13. package/dist/handlers/test/fixtures.d.ts +0 -24
  14. package/dist/resources/customer/customer.handler.d.ts +0 -22
  15. package/dist/resources/customer/customer.prompt.d.ts +0 -4
  16. package/dist/resources/customer/customer.schema.d.ts +0 -281
  17. package/dist/resources/customer/test/customer.hander.test.d.ts +0 -1
  18. package/dist/resources/customer/test/fixtures.d.ts +0 -2
  19. package/dist/resources/project/project.handler.d.ts +0 -26
  20. package/dist/resources/project/project.prompt.d.ts +0 -2
  21. package/dist/resources/project/project.schema.d.ts +0 -454
  22. package/dist/resources/project/test/fixtures.d.ts +0 -2
  23. package/dist/resources/project/test/project.handler.test.d.ts +0 -1
  24. package/dist/shared/client/client.base.d.ts +0 -9
  25. package/dist/shared/client/sdk.commercetools.d.ts +0 -31
  26. package/dist/shared/errors/tool.error.d.ts +0 -34
  27. package/dist/shared/index.d.ts +0 -5
  28. package/dist/shared/types/interface.d.ts +0 -57
  29. package/dist/shared/types/types.d.ts +0 -4
  30. package/dist/utils/constants.d.ts +0 -1
@@ -1,454 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const readProjectParameters: z.ZodObject<{
3
- projectKey: z.ZodOptional<z.ZodString>;
4
- }, "strip", z.ZodTypeAny, {
5
- projectKey?: string;
6
- }, {
7
- projectKey?: string;
8
- }>;
9
- export declare const updateProjectParameters: z.ZodObject<{
10
- version: z.ZodNumber;
11
- actions: z.ZodArray<z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
12
- action: z.ZodLiteral<"changeName">;
13
- name: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- action?: "changeName";
16
- name?: string;
17
- }, {
18
- action?: "changeName";
19
- name?: string;
20
- }>, z.ZodObject<{
21
- action: z.ZodLiteral<"changeCountries">;
22
- countries: z.ZodArray<z.ZodString, "many">;
23
- }, "strip", z.ZodTypeAny, {
24
- action?: "changeCountries";
25
- countries?: string[];
26
- }, {
27
- action?: "changeCountries";
28
- countries?: string[];
29
- }>, z.ZodObject<{
30
- action: z.ZodLiteral<"changeCurrencies">;
31
- currencies: z.ZodArray<z.ZodString, "many">;
32
- }, "strip", z.ZodTypeAny, {
33
- action?: "changeCurrencies";
34
- currencies?: string[];
35
- }, {
36
- action?: "changeCurrencies";
37
- currencies?: string[];
38
- }>, z.ZodObject<{
39
- action: z.ZodLiteral<"changeLanguages">;
40
- languages: z.ZodArray<z.ZodString, "many">;
41
- }, "strip", z.ZodTypeAny, {
42
- action?: "changeLanguages";
43
- languages?: string[];
44
- }, {
45
- action?: "changeLanguages";
46
- languages?: string[];
47
- }>, z.ZodObject<{
48
- action: z.ZodLiteral<"changeMessagesConfiguration">;
49
- messagesConfiguration: z.ZodObject<{
50
- enabled: z.ZodBoolean;
51
- deleteDaysAfterCreation: z.ZodOptional<z.ZodNumber>;
52
- }, "strip", z.ZodTypeAny, {
53
- enabled?: boolean;
54
- deleteDaysAfterCreation?: number;
55
- }, {
56
- enabled?: boolean;
57
- deleteDaysAfterCreation?: number;
58
- }>;
59
- }, "strip", z.ZodTypeAny, {
60
- action?: "changeMessagesConfiguration";
61
- messagesConfiguration?: {
62
- enabled?: boolean;
63
- deleteDaysAfterCreation?: number;
64
- };
65
- }, {
66
- action?: "changeMessagesConfiguration";
67
- messagesConfiguration?: {
68
- enabled?: boolean;
69
- deleteDaysAfterCreation?: number;
70
- };
71
- }>, z.ZodObject<{
72
- action: z.ZodLiteral<"changeCartsConfiguration">;
73
- cartsConfiguration: z.ZodObject<{
74
- deleteDaysAfterLastModification: z.ZodOptional<z.ZodNumber>;
75
- countryTaxRateFallbackEnabled: z.ZodOptional<z.ZodBoolean>;
76
- }, "strip", z.ZodTypeAny, {
77
- deleteDaysAfterLastModification?: number;
78
- countryTaxRateFallbackEnabled?: boolean;
79
- }, {
80
- deleteDaysAfterLastModification?: number;
81
- countryTaxRateFallbackEnabled?: boolean;
82
- }>;
83
- }, "strip", z.ZodTypeAny, {
84
- action?: "changeCartsConfiguration";
85
- cartsConfiguration?: {
86
- deleteDaysAfterLastModification?: number;
87
- countryTaxRateFallbackEnabled?: boolean;
88
- };
89
- }, {
90
- action?: "changeCartsConfiguration";
91
- cartsConfiguration?: {
92
- deleteDaysAfterLastModification?: number;
93
- countryTaxRateFallbackEnabled?: boolean;
94
- };
95
- }>, z.ZodObject<{
96
- action: z.ZodLiteral<"changeCountryTaxRateFallbackEnabled">;
97
- countryTaxRateFallbackEnabled: z.ZodBoolean;
98
- }, "strip", z.ZodTypeAny, {
99
- action?: "changeCountryTaxRateFallbackEnabled";
100
- countryTaxRateFallbackEnabled?: boolean;
101
- }, {
102
- action?: "changeCountryTaxRateFallbackEnabled";
103
- countryTaxRateFallbackEnabled?: boolean;
104
- }>, z.ZodObject<{
105
- action: z.ZodLiteral<"changeShoppingListsConfiguration">;
106
- shoppingListsConfiguration: z.ZodObject<{
107
- deleteDaysAfterLastModification: z.ZodOptional<z.ZodNumber>;
108
- }, "strip", z.ZodTypeAny, {
109
- deleteDaysAfterLastModification?: number;
110
- }, {
111
- deleteDaysAfterLastModification?: number;
112
- }>;
113
- }, "strip", z.ZodTypeAny, {
114
- action?: "changeShoppingListsConfiguration";
115
- shoppingListsConfiguration?: {
116
- deleteDaysAfterLastModification?: number;
117
- };
118
- }, {
119
- action?: "changeShoppingListsConfiguration";
120
- shoppingListsConfiguration?: {
121
- deleteDaysAfterLastModification?: number;
122
- };
123
- }>, z.ZodObject<{
124
- action: z.ZodLiteral<"changeMyBusinessUnitStatusOnCreation">;
125
- status: z.ZodEnum<["Active", "Inactive", "Verification"]>;
126
- }, "strip", z.ZodTypeAny, {
127
- status?: "Active" | "Inactive" | "Verification";
128
- action?: "changeMyBusinessUnitStatusOnCreation";
129
- }, {
130
- status?: "Active" | "Inactive" | "Verification";
131
- action?: "changeMyBusinessUnitStatusOnCreation";
132
- }>, z.ZodObject<{
133
- action: z.ZodLiteral<"setMyBusinessUnitAssociateRoleOnCreation">;
134
- associateRole: z.ZodObject<{
135
- typeId: z.ZodLiteral<"associate-role">;
136
- id: z.ZodOptional<z.ZodString>;
137
- key: z.ZodOptional<z.ZodString>;
138
- }, "strip", z.ZodTypeAny, {
139
- id?: string;
140
- key?: string;
141
- typeId?: "associate-role";
142
- }, {
143
- id?: string;
144
- key?: string;
145
- typeId?: "associate-role";
146
- }>;
147
- }, "strip", z.ZodTypeAny, {
148
- action?: "setMyBusinessUnitAssociateRoleOnCreation";
149
- associateRole?: {
150
- id?: string;
151
- key?: string;
152
- typeId?: "associate-role";
153
- };
154
- }, {
155
- action?: "setMyBusinessUnitAssociateRoleOnCreation";
156
- associateRole?: {
157
- id?: string;
158
- key?: string;
159
- typeId?: "associate-role";
160
- };
161
- }>, z.ZodObject<{
162
- action: z.ZodLiteral<"setShippingRateInputType">;
163
- shippingRateInputType: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
164
- type: z.ZodLiteral<"CartValue">;
165
- }, "strip", z.ZodTypeAny, {
166
- type?: "CartValue";
167
- }, {
168
- type?: "CartValue";
169
- }>, z.ZodObject<{
170
- type: z.ZodLiteral<"CartClassification">;
171
- values: z.ZodArray<z.ZodObject<{
172
- key: z.ZodString;
173
- label: z.ZodRecord<z.ZodString, z.ZodString>;
174
- }, "strip", z.ZodTypeAny, {
175
- key?: string;
176
- label?: Record<string, string>;
177
- }, {
178
- key?: string;
179
- label?: Record<string, string>;
180
- }>, "many">;
181
- }, "strip", z.ZodTypeAny, {
182
- type?: "CartClassification";
183
- values?: {
184
- key?: string;
185
- label?: Record<string, string>;
186
- }[];
187
- }, {
188
- type?: "CartClassification";
189
- values?: {
190
- key?: string;
191
- label?: Record<string, string>;
192
- }[];
193
- }>, z.ZodObject<{
194
- type: z.ZodLiteral<"CartScore">;
195
- score: z.ZodNumber;
196
- }, "strip", z.ZodTypeAny, {
197
- type?: "CartScore";
198
- score?: number;
199
- }, {
200
- type?: "CartScore";
201
- score?: number;
202
- }>]>>;
203
- }, "strip", z.ZodTypeAny, {
204
- action?: "setShippingRateInputType";
205
- shippingRateInputType?: {
206
- type?: "CartValue";
207
- } | {
208
- type?: "CartClassification";
209
- values?: {
210
- key?: string;
211
- label?: Record<string, string>;
212
- }[];
213
- } | {
214
- type?: "CartScore";
215
- score?: number;
216
- };
217
- }, {
218
- action?: "setShippingRateInputType";
219
- shippingRateInputType?: {
220
- type?: "CartValue";
221
- } | {
222
- type?: "CartClassification";
223
- values?: {
224
- key?: string;
225
- label?: Record<string, string>;
226
- }[];
227
- } | {
228
- type?: "CartScore";
229
- score?: number;
230
- };
231
- }>, z.ZodObject<{
232
- action: z.ZodLiteral<"setExternalOAuth">;
233
- externalOAuth: z.ZodOptional<z.ZodObject<{
234
- url: z.ZodString;
235
- authorizationHeader: z.ZodString;
236
- }, "strip", z.ZodTypeAny, {
237
- url?: string;
238
- authorizationHeader?: string;
239
- }, {
240
- url?: string;
241
- authorizationHeader?: string;
242
- }>>;
243
- }, "strip", z.ZodTypeAny, {
244
- action?: "setExternalOAuth";
245
- externalOAuth?: {
246
- url?: string;
247
- authorizationHeader?: string;
248
- };
249
- }, {
250
- action?: "setExternalOAuth";
251
- externalOAuth?: {
252
- url?: string;
253
- authorizationHeader?: string;
254
- };
255
- }>, z.ZodObject<{
256
- action: z.ZodLiteral<"changeProductSearchIndexingEnabled">;
257
- enabled: z.ZodBoolean;
258
- mode: z.ZodOptional<z.ZodEnum<["ProductProjectionsSearch", "ProductsSearch"]>>;
259
- }, "strip", z.ZodTypeAny, {
260
- action?: "changeProductSearchIndexingEnabled";
261
- enabled?: boolean;
262
- mode?: "ProductProjectionsSearch" | "ProductsSearch";
263
- }, {
264
- action?: "changeProductSearchIndexingEnabled";
265
- enabled?: boolean;
266
- mode?: "ProductProjectionsSearch" | "ProductsSearch";
267
- }>, z.ZodObject<{
268
- action: z.ZodLiteral<"changeOrderSearchStatus">;
269
- status: z.ZodEnum<["Activated", "Deactivated"]>;
270
- }, "strip", z.ZodTypeAny, {
271
- status?: "Activated" | "Deactivated";
272
- action?: "changeOrderSearchStatus";
273
- }, {
274
- status?: "Activated" | "Deactivated";
275
- action?: "changeOrderSearchStatus";
276
- }>, z.ZodObject<{
277
- action: z.ZodLiteral<"changeCustomerSearchStatus">;
278
- status: z.ZodEnum<["Activated", "Deactivated"]>;
279
- }, "strip", z.ZodTypeAny, {
280
- status?: "Activated" | "Deactivated";
281
- action?: "changeCustomerSearchStatus";
282
- }, {
283
- status?: "Activated" | "Deactivated";
284
- action?: "changeCustomerSearchStatus";
285
- }>, z.ZodObject<{
286
- action: z.ZodLiteral<"changeBusinessUnitSearchStatus">;
287
- status: z.ZodEnum<["Activated", "Deactivated"]>;
288
- }, "strip", z.ZodTypeAny, {
289
- status?: "Activated" | "Deactivated";
290
- action?: "changeBusinessUnitSearchStatus";
291
- }, {
292
- status?: "Activated" | "Deactivated";
293
- action?: "changeBusinessUnitSearchStatus";
294
- }>]>, "many">;
295
- projectKey: z.ZodOptional<z.ZodString>;
296
- }, "strip", z.ZodTypeAny, {
297
- version?: number;
298
- actions?: ({
299
- action?: "changeName";
300
- name?: string;
301
- } | {
302
- action?: "changeCountries";
303
- countries?: string[];
304
- } | {
305
- action?: "changeCurrencies";
306
- currencies?: string[];
307
- } | {
308
- action?: "changeLanguages";
309
- languages?: string[];
310
- } | {
311
- action?: "changeMessagesConfiguration";
312
- messagesConfiguration?: {
313
- enabled?: boolean;
314
- deleteDaysAfterCreation?: number;
315
- };
316
- } | {
317
- action?: "changeCartsConfiguration";
318
- cartsConfiguration?: {
319
- deleteDaysAfterLastModification?: number;
320
- countryTaxRateFallbackEnabled?: boolean;
321
- };
322
- } | {
323
- action?: "changeCountryTaxRateFallbackEnabled";
324
- countryTaxRateFallbackEnabled?: boolean;
325
- } | {
326
- action?: "changeShoppingListsConfiguration";
327
- shoppingListsConfiguration?: {
328
- deleteDaysAfterLastModification?: number;
329
- };
330
- } | {
331
- status?: "Active" | "Inactive" | "Verification";
332
- action?: "changeMyBusinessUnitStatusOnCreation";
333
- } | {
334
- action?: "setMyBusinessUnitAssociateRoleOnCreation";
335
- associateRole?: {
336
- id?: string;
337
- key?: string;
338
- typeId?: "associate-role";
339
- };
340
- } | {
341
- action?: "setShippingRateInputType";
342
- shippingRateInputType?: {
343
- type?: "CartValue";
344
- } | {
345
- type?: "CartClassification";
346
- values?: {
347
- key?: string;
348
- label?: Record<string, string>;
349
- }[];
350
- } | {
351
- type?: "CartScore";
352
- score?: number;
353
- };
354
- } | {
355
- action?: "setExternalOAuth";
356
- externalOAuth?: {
357
- url?: string;
358
- authorizationHeader?: string;
359
- };
360
- } | {
361
- action?: "changeProductSearchIndexingEnabled";
362
- enabled?: boolean;
363
- mode?: "ProductProjectionsSearch" | "ProductsSearch";
364
- } | {
365
- status?: "Activated" | "Deactivated";
366
- action?: "changeOrderSearchStatus";
367
- } | {
368
- status?: "Activated" | "Deactivated";
369
- action?: "changeCustomerSearchStatus";
370
- } | {
371
- status?: "Activated" | "Deactivated";
372
- action?: "changeBusinessUnitSearchStatus";
373
- })[];
374
- projectKey?: string;
375
- }, {
376
- version?: number;
377
- actions?: ({
378
- action?: "changeName";
379
- name?: string;
380
- } | {
381
- action?: "changeCountries";
382
- countries?: string[];
383
- } | {
384
- action?: "changeCurrencies";
385
- currencies?: string[];
386
- } | {
387
- action?: "changeLanguages";
388
- languages?: string[];
389
- } | {
390
- action?: "changeMessagesConfiguration";
391
- messagesConfiguration?: {
392
- enabled?: boolean;
393
- deleteDaysAfterCreation?: number;
394
- };
395
- } | {
396
- action?: "changeCartsConfiguration";
397
- cartsConfiguration?: {
398
- deleteDaysAfterLastModification?: number;
399
- countryTaxRateFallbackEnabled?: boolean;
400
- };
401
- } | {
402
- action?: "changeCountryTaxRateFallbackEnabled";
403
- countryTaxRateFallbackEnabled?: boolean;
404
- } | {
405
- action?: "changeShoppingListsConfiguration";
406
- shoppingListsConfiguration?: {
407
- deleteDaysAfterLastModification?: number;
408
- };
409
- } | {
410
- status?: "Active" | "Inactive" | "Verification";
411
- action?: "changeMyBusinessUnitStatusOnCreation";
412
- } | {
413
- action?: "setMyBusinessUnitAssociateRoleOnCreation";
414
- associateRole?: {
415
- id?: string;
416
- key?: string;
417
- typeId?: "associate-role";
418
- };
419
- } | {
420
- action?: "setShippingRateInputType";
421
- shippingRateInputType?: {
422
- type?: "CartValue";
423
- } | {
424
- type?: "CartClassification";
425
- values?: {
426
- key?: string;
427
- label?: Record<string, string>;
428
- }[];
429
- } | {
430
- type?: "CartScore";
431
- score?: number;
432
- };
433
- } | {
434
- action?: "setExternalOAuth";
435
- externalOAuth?: {
436
- url?: string;
437
- authorizationHeader?: string;
438
- };
439
- } | {
440
- action?: "changeProductSearchIndexingEnabled";
441
- enabled?: boolean;
442
- mode?: "ProductProjectionsSearch" | "ProductsSearch";
443
- } | {
444
- status?: "Activated" | "Deactivated";
445
- action?: "changeOrderSearchStatus";
446
- } | {
447
- status?: "Activated" | "Deactivated";
448
- action?: "changeCustomerSearchStatus";
449
- } | {
450
- status?: "Activated" | "Deactivated";
451
- action?: "changeBusinessUnitSearchStatus";
452
- })[];
453
- projectKey?: string;
454
- }>;
@@ -1,2 +0,0 @@
1
- import { ApiRoot } from '@commercetools/platform-sdk';
2
- export declare const mockApiRoot: ApiRoot;
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { type Configuration, type IApiClientFactory } from '../types/interface';
2
- import { CommercetoolsAPIClient } from './sdk.commercetools';
3
- /**
4
- * Default implementation of API client factory
5
- */
6
- export declare class ApiClientFactory implements IApiClientFactory<Configuration> {
7
- createApiClient(configuration: Configuration, authToken: string): import("@commercetools/platform-sdk").ApiRoot;
8
- getApiRoot(configuration: Configuration, authToken: string): CommercetoolsAPIClient;
9
- }
@@ -1,31 +0,0 @@
1
- import { type Client } from '@commercetools/ts-client';
2
- import { type ApiRoot } from '@commercetools/platform-sdk';
3
- import { type Configuration } from '../types/interface';
4
- import { type ApiRootFn } from '../types/types';
5
- /**
6
- * Commercetools API Client
7
- * Creates and manages commercetools SDK client instances
8
- */
9
- export declare class CommercetoolsAPIClient {
10
- private client;
11
- private apiRoot;
12
- private configuration;
13
- private authToken?;
14
- constructor(configuration: Configuration, authToken?: string);
15
- /**
16
- * Get the API root instance
17
- */
18
- getApiRoot(fn?: ApiRootFn, baseUri?: string): ApiRoot;
19
- /**
20
- * Get the client instance
21
- */
22
- getClient(): Client;
23
- /**
24
- * Construct an apiRoot
25
- */
26
- contructApiRoot(client: Client, fn: (client: Client, baseUri?: string) => ApiRoot, baseUri?: string): ApiRoot;
27
- /**
28
- * Create commercetools client
29
- */
30
- private createClient;
31
- }
@@ -1,34 +0,0 @@
1
- import { type Configuration, type ToolExecutionContext } from '../types/interface';
2
- /**
3
- * Structured error for tool execution failures
4
- * Provides context and debugging information
5
- */
6
- export declare class ToolExecutionError extends Error {
7
- readonly toolName: string;
8
- readonly operation: string;
9
- readonly projectKey: string;
10
- readonly sessionId?: string;
11
- readonly parameters: Record<string, unknown>;
12
- readonly originalError: unknown;
13
- readonly timestamp: Date;
14
- constructor(message: string, context: ToolExecutionContext<Configuration>, originalError?: unknown);
15
- /**
16
- * Extract operation from tool name
17
- */
18
- private extractOperation;
19
- /**
20
- * Get error details for logging/debugging
21
- */
22
- toJSON(): {
23
- name: string;
24
- message: string;
25
- toolName: string;
26
- operation: string;
27
- projectKey: string;
28
- sessionId: string;
29
- parameters: Record<string, unknown>;
30
- timestamp: string;
31
- originalError: unknown;
32
- stack: string;
33
- };
34
- }
@@ -1,5 +0,0 @@
1
- export * from './types/interface';
2
- export * from './types/types';
3
- export * from './errors/tool.error';
4
- export * from './client/client.base';
5
- export * from './client/sdk.commercetools';
@@ -1,57 +0,0 @@
1
- import { z } from 'zod';
2
- import { ApiRoot } from '@commercetools/platform-sdk';
3
- export interface ResourceSchema {
4
- read: z.ZodObject<Record<string, z.ZodTypeAny>>;
5
- create: z.ZodObject<Record<string, z.ZodTypeAny>>;
6
- update: z.ZodObject<Record<string, z.ZodTypeAny>>;
7
- delete: z.ZodObject<Record<string, z.ZodTypeAny>>;
8
- }
9
- export interface ResourceMetadata {
10
- namespace: string;
11
- description: string;
12
- toolNamePrefix?: string;
13
- schemas: ResourceSchema;
14
- }
15
- export interface ToolExecutionContext<TConfig = unknown> {
16
- authToken: string;
17
- configuration: TConfig;
18
- toolName: string;
19
- parameters: Record<string, unknown>;
20
- sessionId?: string;
21
- }
22
- export interface ToolHandler<TConfig> {
23
- execute(context: ToolExecutionContext<TConfig>): Promise<unknown>;
24
- }
25
- /**
26
- * Factory interface for creating API clients
27
- * Allows dependency injection and testing
28
- */
29
- export interface IApiClientFactory<TConfig = unknown> {
30
- createApiClient(configuration: TConfig, authToken: string): ApiRoot;
31
- }
32
- export interface Configuration {
33
- projectKey: string;
34
- allowedTools: string[];
35
- metadata?: {
36
- toolDescriptions?: Record<string, string>;
37
- responseTransformations?: Record<string, unknown>;
38
- rateLimits?: {
39
- requestsPerMinute?: number;
40
- };
41
- customFields?: Record<string, unknown>;
42
- apiUrl?: string;
43
- authUrl?: string;
44
- clientId?: string;
45
- clientSecret?: string;
46
- };
47
- }
48
- /**
49
- * Constructor type
50
- * Note: BaseResourceHandler is defined in @core package to avoid circular dependencies
51
- */
52
- export interface IConstructor<T = unknown> {
53
- new (...args: IApiClientFactory<Configuration>[]): T;
54
- }
55
- export interface IErrorConstructor extends ErrorConstructor {
56
- captureStackTrace: (...args: unknown[]) => void;
57
- }
@@ -1,4 +0,0 @@
1
- import { type Client } from '@commercetools/ts-client';
2
- import { type ApiRoot } from '@commercetools/platform-sdk';
3
- export type ToolOperation = 'read' | 'create' | 'update' | 'delete';
4
- export type ApiRootFn = (client: Client, baseUri?: string) => ApiRoot;
@@ -1 +0,0 @@
1
- export declare const OPERATIONS: string[];