@hostwebhook/node-types 1.74.0 → 1.75.1

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.
@@ -2,18 +2,24 @@
2
2
  * Shopify Admin API operations — single source of truth across the api, the
3
3
  * dashboard and downstream consumers (MCP server).
4
4
  *
5
- * ## Four, out of several hundred
5
+ * ## Ten, out of several hundred
6
6
  *
7
- * The Admin API has hundreds of mutations. This node exposes four, and the
7
+ * The Admin API has hundreds of mutations. This node exposes ten, and the
8
8
  * choice is argued in `api/docs/ADR-0007-shopify.md`: a menu of everything is
9
- * how a node becomes unusable, and these four cover what people actually
10
- * automate — put a customer in the store, tag something, sync stock, and read
11
- * back what the store already knows.
9
+ * how a node becomes unusable.
12
10
  *
13
- * Product creation and order fulfilment were considered and left out of v1.
14
- * A product means variants, media and prices; a fulfilment means a location, a
15
- * fulfilment service and a state machine. Each is a configuration surface of
16
- * its own, not a field.
11
+ * The first four cover what people automate on day one — put a customer in the
12
+ * store, tag something, sync stock, and read back what the store already
13
+ * knows. The six added on 2026-09-08 cover what they ask for on day two: the
14
+ * order lifecycle (draft → complete → fulfil → cancel), custom data
15
+ * (metafields) and putting a product in the catalogue.
16
+ *
17
+ * ⚠️ **Every entry below carries the OAuth scope it needs**, in
18
+ * `SHOPIFY_OPERATION_SCOPES`. That is not documentation: a scope missing from
19
+ * the credential answers HTTP 403 on a call that looks perfectly formed, and
20
+ * on Shopify a scope is granted at INSTALL time — adding one to the app means
21
+ * every existing credential has to be reconnected before it can use the new
22
+ * operation.
17
23
  *
18
24
  * ## GraphQL only, and the version is not ours to drift on
19
25
  *
@@ -54,12 +60,45 @@
54
60
  * `inventoryAdjustQuantities` must be sent with the `@idempotent` directive
55
61
  * and an idempotency key. A stock adjustment is the one operation here where a
56
62
  * silent retry is a real inventory error, so this is not boilerplate.
63
+ *
64
+ * ## What was verified for the six added on 2026-09-08
65
+ *
66
+ * Read off the Admin GraphQL reference for the current version, not recalled.
67
+ * The pages, and the one fact from each that a from-memory version gets wrong:
68
+ *
69
+ * - `draftOrderCreate(input: DraftOrderInput!)` — `lineItems` is the only
70
+ * required field of the input, and each item is `{ variantId, quantity }`
71
+ * OR `{ title, originalUnitPrice, quantity }` for a custom line.
72
+ * - `draftOrderComplete(id: ID!, …)` — the id is a **sibling argument**, not
73
+ * inside an input. `paymentPending` is deprecated and is not offered here.
74
+ * - `fulfillmentCreate(fulfillment: FulfillmentInput!)` — takes
75
+ * `lineItemsByFulfillmentOrder`, NOT an order id. There is no mutation that
76
+ * fulfils "an order": fulfilment hangs off FulfillmentOrder, so the
77
+ * executor has to look them up first. That indirection is the whole reason
78
+ * ADR-0007 left this out of v1.
79
+ * - `orderCancel(orderId:, reason:, restock:, …)` — `reason` and `restock` are
80
+ * **required arguments**, and the payload's errors arrive in
81
+ * `orderCancelUserErrors`; plain `userErrors` is deprecated there.
82
+ * - `metafieldsSet(metafields: [MetafieldsSetInput!]!)` — takes a LIST, and
83
+ * each entry needs all of `ownerId`, `namespace`, `key`, `type`, `value`.
84
+ * `type` is not guessable from the value: `single_line_text_field` and
85
+ * `number_integer` are different metafields.
86
+ * - `productCreate(product: ProductCreateInput!)` — the argument is `product`,
87
+ * not `input`; `input: ProductInput` is the deprecated spelling. It creates
88
+ * ONE default variant; more variants are `productVariantsBulkCreate`, which
89
+ * is a surface of its own and is not offered here.
57
90
  */
58
91
  export const SHOPIFY_OPERATIONS = [
59
92
  'upsertCustomer',
60
93
  'setTags',
61
94
  'adjustInventory',
62
95
  'findRecords',
96
+ 'createDraftOrder',
97
+ 'completeDraftOrder',
98
+ 'fulfillOrder',
99
+ 'cancelOrder',
100
+ 'setMetafield',
101
+ 'createProduct',
63
102
  ];
64
103
  /** Type guard — for DTOs and AI tool calls, where the input is untrusted. */
65
104
  export function isShopifyOperation(value) {
@@ -86,6 +125,27 @@ export const SHOPIFY_SEARCHABLE_RESOURCES = [
86
125
  'customers',
87
126
  'products',
88
127
  ];
128
+ /**
129
+ * `OrderCancelReason`, the whole enum, in Shopify's own spelling.
130
+ *
131
+ * A dropdown and not free text — and that is the opposite of the call made for
132
+ * `adjustInventory`'s `reason`, on purpose. The difference is not taste: the
133
+ * inventory vocabulary was NOT verifiable from the reference (see the note
134
+ * above), so a dropdown there would have been a list of invented values. This
135
+ * one IS the enumeration, read off `enums/OrderCancelReason`, and an argument
136
+ * of type `OrderCancelReason!` rejects anything outside it — so free text here
137
+ * would only mean the user finds out by failing.
138
+ */
139
+ export const SHOPIFY_CANCEL_REASONS = [
140
+ 'CUSTOMER',
141
+ 'DECLINED',
142
+ 'FRAUD',
143
+ 'INVENTORY',
144
+ 'OTHER',
145
+ 'STAFF',
146
+ ];
147
+ /** `ProductStatus`, the whole enum. Same reasoning as the cancel reasons. */
148
+ export const SHOPIFY_PRODUCT_STATUSES = ['ACTIVE', 'DRAFT', 'ARCHIVED'];
89
149
  export const SHOPIFY_OPERATION_SPECS = {
90
150
  upsertCustomer: {
91
151
  label: 'Add or update customer',
@@ -256,4 +316,348 @@ export const SHOPIFY_OPERATION_SPECS = {
256
316
  },
257
317
  ],
258
318
  },
319
+ createDraftOrder: {
320
+ label: 'Create draft order',
321
+ description: 'Build an order the merchant can review, invoice or complete. This is the supported way to put an order into a store from outside — it does not charge anybody by itself.',
322
+ apiRoute: 'mutation draftOrderCreate',
323
+ params: [
324
+ {
325
+ name: 'lineItems',
326
+ label: 'Line items',
327
+ type: 'json',
328
+ required: true,
329
+ description: 'A JSON array. Each entry is either {"variantId":"gid://shopify/ProductVariant/…","quantity":1} for something in the catalogue, or {"title":"…","originalUnitPrice":"10.00","quantity":1} for a custom line. An empty array is refused by Shopify, not by us.',
330
+ placeholder: '[{"variantId":"gid://shopify/ProductVariant/1234","quantity":1}]',
331
+ },
332
+ {
333
+ name: 'email',
334
+ label: 'Customer email',
335
+ type: 'email',
336
+ description: 'Who the draft is for, when you do not already have their Shopify id. Ignored if you set a customer id.',
337
+ placeholder: '{{payload.email}}',
338
+ },
339
+ {
340
+ name: 'customerId',
341
+ label: 'Customer id',
342
+ type: 'gid',
343
+ description: 'gid://shopify/Customer/1234. Wins over the email — with both set, Shopify attaches the draft to this customer.',
344
+ placeholder: '{{payload.customerId}}',
345
+ },
346
+ {
347
+ name: 'note',
348
+ label: 'Note',
349
+ type: 'string',
350
+ description: 'Internal note, visible to staff in the Shopify admin.',
351
+ },
352
+ {
353
+ name: 'tags',
354
+ label: 'Tags',
355
+ type: 'tags',
356
+ description: 'Tags to put on the draft order.',
357
+ },
358
+ {
359
+ name: 'shippingAddress',
360
+ label: 'Shipping address',
361
+ type: 'json',
362
+ description: 'A JSON object: {"address1":"…","city":"…","province":"…","country":"…","zip":"…"}. Leave empty to let the merchant fill it in.',
363
+ },
364
+ ],
365
+ },
366
+ completeDraftOrder: {
367
+ label: 'Complete draft order',
368
+ description: 'Turn a draft order into a real order. This is the step that reserves stock and can charge — it is not undone by running it again.',
369
+ apiRoute: 'mutation draftOrderComplete',
370
+ params: [
371
+ {
372
+ name: 'draftOrderId',
373
+ label: 'Draft order id',
374
+ type: 'gid',
375
+ required: true,
376
+ description: 'gid://shopify/DraftOrder/1234. The create-draft operation puts one in its output, so the usual shape is one node feeding the next.',
377
+ placeholder: '{{payload.id}}',
378
+ },
379
+ {
380
+ name: 'paymentGatewayId',
381
+ label: 'Payment gateway id',
382
+ type: 'gid',
383
+ description: 'Which gateway processes it. Leave empty to complete the order as pending payment, which is what most automations want.',
384
+ },
385
+ {
386
+ name: 'sourceName',
387
+ label: 'Source name',
388
+ type: 'string',
389
+ description: 'A sales-channel handle, for attribution in the store\'s reports.',
390
+ },
391
+ ],
392
+ },
393
+ fulfillOrder: {
394
+ label: 'Fulfil order',
395
+ description: "Mark an order shipped, optionally with tracking. Fulfils every one of the order's open fulfilment orders.",
396
+ apiRoute: 'query order.fulfillmentOrders, then mutation fulfillmentCreate (one call per order, all its fulfilment orders in one)',
397
+ params: [
398
+ {
399
+ name: 'orderId',
400
+ label: 'Order id',
401
+ type: 'gid',
402
+ required: true,
403
+ description: 'gid://shopify/Order/1234. NOT a fulfilment order id — those are looked up from this one, because Shopify has no "fulfil this order" mutation.',
404
+ placeholder: '{{payload.admin_graphql_api_id}}',
405
+ },
406
+ {
407
+ name: 'trackingNumber',
408
+ label: 'Tracking number',
409
+ type: 'string',
410
+ description: 'Optional. With a number and no carrier, Shopify tries to guess the carrier from the number.',
411
+ placeholder: '{{payload.tracking_number}}',
412
+ },
413
+ {
414
+ name: 'trackingCompany',
415
+ label: 'Carrier',
416
+ type: 'string',
417
+ description: 'Optional. Shopify builds the tracking link itself for carriers it knows by name.',
418
+ placeholder: 'DHL Express',
419
+ },
420
+ {
421
+ name: 'trackingUrl',
422
+ label: 'Tracking URL',
423
+ type: 'string',
424
+ description: 'Optional. Only needed for a carrier Shopify does not know — otherwise the number is enough.',
425
+ },
426
+ {
427
+ name: 'notifyCustomer',
428
+ label: 'Email the customer',
429
+ type: 'boolean',
430
+ description: 'Off by default. On sends the shipping confirmation, which is a real email to a real person — the one field here with a consequence outside the store.',
431
+ },
432
+ ],
433
+ },
434
+ cancelOrder: {
435
+ label: 'Cancel order',
436
+ description: 'Cancel an order, optionally restocking it and refunding. Shopify runs this as a background job, so success means "accepted", not "already done".',
437
+ apiRoute: 'mutation orderCancel',
438
+ params: [
439
+ {
440
+ name: 'orderId',
441
+ label: 'Order id',
442
+ type: 'gid',
443
+ required: true,
444
+ description: 'gid://shopify/Order/1234.',
445
+ placeholder: '{{payload.admin_graphql_api_id}}',
446
+ },
447
+ {
448
+ name: 'reason',
449
+ label: 'Reason',
450
+ type: 'cancelReason',
451
+ required: true,
452
+ description: "Required by Shopify, not by us, and it lands on the order where the merchant reads it. OTHER is the honest answer when none of the others fit.",
453
+ },
454
+ {
455
+ name: 'restock',
456
+ label: 'Put the stock back',
457
+ type: 'boolean',
458
+ description: 'Off by default, which is the safe side: restocking something that never left is how a shelf count goes wrong. Turn it on when the goods really are still there.',
459
+ },
460
+ {
461
+ name: 'notifyCustomer',
462
+ label: 'Email the customer',
463
+ type: 'boolean',
464
+ description: 'Off by default. On sends the cancellation email.',
465
+ },
466
+ {
467
+ name: 'staffNote',
468
+ label: 'Staff note',
469
+ type: 'string',
470
+ description: 'Internal note on the cancellation, for whoever reads it later.',
471
+ },
472
+ ],
473
+ },
474
+ setMetafield: {
475
+ label: 'Set a metafield',
476
+ description: 'Write one piece of custom data onto an order, a customer, a product or a variant — the general way to keep a foreign id or a computed value on a Shopify record.',
477
+ apiRoute: 'mutation metafieldsSet',
478
+ params: [
479
+ {
480
+ name: 'ownerId',
481
+ label: 'Owner id',
482
+ type: 'gid',
483
+ required: true,
484
+ description: 'What the metafield hangs off, as a global id — an order, a customer, a product, a variant. A Shopify trigger gives you one in the payload.',
485
+ placeholder: '{{payload.admin_graphql_api_id}}',
486
+ },
487
+ {
488
+ name: 'namespace',
489
+ label: 'Namespace',
490
+ type: 'string',
491
+ required: true,
492
+ description: '"custom" is the namespace the Shopify admin shows merchants; anything else is only visible through the API unless a definition exists for it.',
493
+ placeholder: 'custom',
494
+ },
495
+ {
496
+ name: 'key',
497
+ label: 'Key',
498
+ type: 'string',
499
+ required: true,
500
+ description: 'The field name inside the namespace.',
501
+ placeholder: 'external_id',
502
+ },
503
+ {
504
+ name: 'type',
505
+ label: 'Type',
506
+ type: 'string',
507
+ required: true,
508
+ description: 'The metafield type, e.g. single_line_text_field, number_integer, boolean, json, date. It is NOT inferred from the value — the wrong type is rejected, which is better than silently storing a number as text.',
509
+ placeholder: 'single_line_text_field',
510
+ },
511
+ {
512
+ name: 'value',
513
+ label: 'Value',
514
+ type: 'string',
515
+ required: true,
516
+ description: 'Always sent as a string, whatever the type says: Shopify parses it against the type on its side. Setting it again REPLACES what was there.',
517
+ placeholder: '{{payload.id}}',
518
+ },
519
+ ],
520
+ },
521
+ createProduct: {
522
+ label: 'Create product',
523
+ description: 'Put a product in the catalogue. Creates the product and its one default variant; several variants, prices and media are separate mutations and are not offered here.',
524
+ apiRoute: 'mutation productCreate',
525
+ params: [
526
+ {
527
+ name: 'title',
528
+ label: 'Title',
529
+ type: 'string',
530
+ required: true,
531
+ description: 'The only field Shopify insists on.',
532
+ placeholder: '{{payload.title}}',
533
+ },
534
+ {
535
+ name: 'descriptionHtml',
536
+ label: 'Description',
537
+ type: 'string',
538
+ description: 'HTML, not plain text — line breaks typed here do not survive as line breaks in the storefront.',
539
+ },
540
+ {
541
+ name: 'vendor',
542
+ label: 'Vendor',
543
+ type: 'string',
544
+ description: 'Free text; Shopify does not check it against anything.',
545
+ },
546
+ {
547
+ name: 'productType',
548
+ label: 'Product type',
549
+ type: 'string',
550
+ description: 'Free text, and separate from the store\'s collections.',
551
+ },
552
+ {
553
+ name: 'tags',
554
+ label: 'Tags',
555
+ type: 'tags',
556
+ description: 'Tags to put on the product.',
557
+ },
558
+ {
559
+ name: 'status',
560
+ label: 'Status',
561
+ type: 'productStatus',
562
+ description: 'Left empty, Shopify makes it ACTIVE — visible to shoppers the moment it is created. Pick DRAFT when a person should look at it first.',
563
+ },
564
+ {
565
+ name: 'handle',
566
+ label: 'Handle',
567
+ type: 'string',
568
+ description: 'The URL slug. Left empty, Shopify builds one from the title; set it and a collision fails the whole mutation.',
569
+ },
570
+ ],
571
+ },
259
572
  };
573
+ /**
574
+ * The OAuth scope each operation needs, so a missing one is named BEFORE the
575
+ * call instead of arriving as an HTTP 403 on a request that looks fine.
576
+ *
577
+ * ## The list is "any one of", not "all of"
578
+ *
579
+ * That is `fulfillOrder`'s doing and it is not a generalisation for its own
580
+ * sake: which fulfilment-order scope applies depends on where the order is
581
+ * fulfilled from — the merchant's own locations, a third-party service, or the
582
+ * app itself acting as one. Shopify accepts the mutation if the token carries
583
+ * ANY of the three. Requiring all three would refuse a store that is correctly
584
+ * set up.
585
+ *
586
+ * ## An empty list means "not checkable from the operation alone"
587
+ *
588
+ * `setTags` tags an order, a customer or a product through the same mutation,
589
+ * and `setMetafield` writes onto whichever resource the owner id points at —
590
+ * so the scope depends on a FIELD, not on the operation. Guessing would be
591
+ * worse than not checking: a wrong guess blocks a call Shopify would have
592
+ * accepted, and a pre-flight check that produces false refusals gets deleted.
593
+ * Those fall through to Shopify's own 403, which `describeShopifyError`
594
+ * already explains.
595
+ *
596
+ * ⚠️ Read against `shopify.dev/docs/api/usage/access-scopes` and each
597
+ * mutation's own "Access requirements". Two things follow from that page and
598
+ * are relied on by `scopesQueFaltanEnShopify`:
599
+ *
600
+ * - **A write scope includes read.** `write_orders` grants `read_orders`, so
601
+ * a required `read_x` is satisfied by a granted `write_x`.
602
+ * - **Scopes are granted at install.** Adding one to the app does not give
603
+ * it to credentials that already exist; those have to be reconnected.
604
+ */
605
+ export const SHOPIFY_OPERATION_SCOPES = {
606
+ upsertCustomer: ['write_customers'],
607
+ /* Depende del recurso elegido, no de la operación. Ver la cabecera. */
608
+ setTags: [],
609
+ adjustInventory: ['write_inventory'],
610
+ /* `findRecords` lee tres colecciones distintas según el recurso. Igual. */
611
+ findRecords: [],
612
+ createDraftOrder: ['write_draft_orders'],
613
+ completeDraftOrder: ['write_draft_orders'],
614
+ fulfillOrder: [
615
+ 'write_merchant_managed_fulfillment_orders',
616
+ 'write_third_party_fulfillment_orders',
617
+ 'write_assigned_fulfillment_orders',
618
+ ],
619
+ cancelOrder: ['write_orders'],
620
+ /* Depende del dueño al que apunte `ownerId`. Ver la cabecera. */
621
+ setMetafield: [],
622
+ createProduct: ['write_products'],
623
+ };
624
+ /**
625
+ * Which of an operation's scopes the credential does NOT have.
626
+ *
627
+ * Empty means "nothing to say" — and it says that in three different
628
+ * situations, all of which have to fail OPEN:
629
+ *
630
+ * 1. The operation declares no scope (the resource-dependent ones).
631
+ * 2. The credential has a scope string and it covers one of the alternatives.
632
+ * 3. **The credential has no scope string at all.** Shopify returns the
633
+ * granted scopes on the token exchange, but a credential stored before
634
+ * that was read, or one whose metadata was pruned, has an empty string —
635
+ * and refusing to run a node because we cannot see its permissions would
636
+ * break working flows to prevent a maybe. Shopify is the authority here;
637
+ * this check only saves the round trip when it can prove the answer.
638
+ *
639
+ * @param concedidos what Shopify granted, as it sends it: a comma-separated
640
+ * string, or the already-split list.
641
+ */
642
+ export function scopesQueFaltanEnShopify(concedidos, requeridos) {
643
+ if (requeridos.length === 0)
644
+ return [];
645
+ const lista = (typeof concedidos === 'string'
646
+ ? concedidos.split(',')
647
+ : Array.isArray(concedidos)
648
+ ? concedidos
649
+ : [])
650
+ .map((s) => String(s).trim())
651
+ .filter(Boolean);
652
+ // Fail open: sin scopes a la vista no se puede probar que falte ninguno.
653
+ if (lista.length === 0)
654
+ return [];
655
+ const tiene = new Set(lista);
656
+ const cubierto = (scope) => tiene.has(scope) ||
657
+ // `write_x` incluye `read_x`, y ésa es la única implicación que existe.
658
+ (scope.startsWith('read_') && tiene.has(`write_${scope.slice(5)}`));
659
+ // «Cualquiera de» — con una basta, y entonces no falta nada.
660
+ if (requeridos.some(cubierto))
661
+ return [];
662
+ return [...requeridos];
663
+ }
package/dist/index.d.ts CHANGED
@@ -30,8 +30,8 @@ export { DISCORD_TOOLKIT_SPECS, DISCORD_TOOLKIT_BY_TOOL_NAME, herramientasDeDisc
30
30
  export type { DiscordToolkitSpec, DiscordToolkitParameter, } from './discord-toolkit.js';
31
31
  export { MAILCHIMP_OPERATIONS, MAILCHIMP_OPERATION_SPECS, MAILCHIMP_CONTACT_STATUSES, isMailchimpOperation, } from './mailchimp-operations.js';
32
32
  export type { MailchimpOperation, MailchimpContactStatus, MailchimpParamSpec, MailchimpOperationSpec, } from './mailchimp-operations.js';
33
- export { SHOPIFY_OPERATIONS, SHOPIFY_OPERATION_SPECS, SHOPIFY_TAGGABLE_RESOURCES, SHOPIFY_SEARCHABLE_RESOURCES, isShopifyOperation, } from './shopify-operations.js';
34
- export type { ShopifyOperation, ShopifyTaggableResource, ShopifySearchableResource, ShopifyParamSpec, ShopifyOperationSpec, } from './shopify-operations.js';
33
+ export { SHOPIFY_OPERATIONS, SHOPIFY_OPERATION_SPECS, SHOPIFY_OPERATION_SCOPES, SHOPIFY_TAGGABLE_RESOURCES, SHOPIFY_SEARCHABLE_RESOURCES, SHOPIFY_CANCEL_REASONS, SHOPIFY_PRODUCT_STATUSES, isShopifyOperation, scopesQueFaltanEnShopify, } from './shopify-operations.js';
34
+ export type { ShopifyOperation, ShopifyTaggableResource, ShopifySearchableResource, ShopifyCancelReason, ShopifyProductStatus, ShopifyParamSpec, ShopifyOperationSpec, } from './shopify-operations.js';
35
35
  export { GITHUB_OPERATIONS, GITHUB_OPERATION_SPECS, GITHUB_DROPDOWN_OPERATIONS, GITHUB_ITERABLE_OPERATIONS, isGithubOperation, } from './github-operations.js';
36
36
  export type { GithubOperation, GithubParamType, GithubParamSpec, GithubOperationSpec, } from './github-operations.js';
37
37
  export { JIRA_OPERATIONS, JIRA_OPERATION_SPECS, JIRA_DROPDOWN_OPERATIONS, JIRA_ITERABLE_OPERATIONS, isJiraOperation, } from './jira-operations.js';
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DRIVE_OPERATION_SPECS = exports.DRIVE_OPERATIONS = exports.GOOGLE_CALENDAR_TOOLKIT_BY_TOOL_NAME = exports.GOOGLE_CALENDAR_TOOLKIT_SPECS = exports.isGoogleCalendarOperation = exports.GOOGLE_CALENDAR_OPERATION_SPECS = exports.GOOGLE_CALENDAR_OPERATIONS = exports.isGmailOperation = exports.resolveGmailSendFields = exports.GMAIL_SEND_LEGACY_FIELDS = exports.NATIVE_EMAIL_TOOLKIT_BY_TOOL_NAME = exports.GMAIL_TOOLKIT_BY_TOOL_NAME = exports.NATIVE_EMAIL_TOOLKIT_SPECS = exports.GMAIL_SEND_AND_WAIT_TOOL_SPEC = exports.GMAIL_ALL_TOOLKIT_SPECS = exports.GMAIL_TOOLKIT_SPECS = exports.GMAIL_TOOLKIT_OPERATIONS = exports.GMAIL_DROPDOWN_OPERATIONS = exports.GMAIL_OPERATION_GROUPS = exports.GMAIL_OPERATION_SPECS = exports.GMAIL_OPERATIONS = exports.versionCatalogErrors = exports.fieldsLost = exports.fieldsLostBetween = exports.currentVersion = exports.versionSpec = exports.versionsOf = exports.isVersioned = exports.NODE_TYPE_TO_PREFIX = exports.PREFIX_TO_NODE_TYPE = exports.NODE_STATE_KEYS = exports.NODE_COLORS = exports.NODE_DETAIL_PATHS = exports.getNodeRegistryEntry = exports.NODE_REGISTRY = exports.getNodeDispatchConfig = exports.getAllNodeCollections = exports.NODE_DISPATCH = exports.resolveNodeId = exports.PREFIX_TO_TYPE = exports.NODE_UI = exports.ALL_NODE_TYPES = exports.isNodeType = exports.isTerminal = exports.canSendToNodes = exports.canReceiveFromNodes = exports.canReceiveFrom = exports.NODE_CONNECTIONS = exports.iterableMeta = exports.singleMeta = void 0;
4
- exports.operacionesDeSlackPara = exports.SLACK_CAPACIDADES_POR_CREDENCIAL = exports.SLACK_OPERATION_SPECS = exports.SLACK_OPERATIONS = exports.isBucketOperation = exports.BUCKET_ITERABLE_OPERATIONS = exports.BUCKET_OPERATION_SPECS = exports.BUCKET_OPERATIONS = exports.isJiraOperation = exports.JIRA_ITERABLE_OPERATIONS = exports.JIRA_DROPDOWN_OPERATIONS = exports.JIRA_OPERATION_SPECS = exports.JIRA_OPERATIONS = exports.isGithubOperation = exports.GITHUB_ITERABLE_OPERATIONS = exports.GITHUB_DROPDOWN_OPERATIONS = exports.GITHUB_OPERATION_SPECS = exports.GITHUB_OPERATIONS = exports.isShopifyOperation = exports.SHOPIFY_SEARCHABLE_RESOURCES = exports.SHOPIFY_TAGGABLE_RESOURCES = exports.SHOPIFY_OPERATION_SPECS = exports.SHOPIFY_OPERATIONS = exports.isMailchimpOperation = exports.MAILCHIMP_CONTACT_STATUSES = exports.MAILCHIMP_OPERATION_SPECS = exports.MAILCHIMP_OPERATIONS = exports.herramientasDeDiscordPara = exports.DISCORD_TOOLKIT_BY_TOOL_NAME = exports.DISCORD_TOOLKIT_SPECS = exports.isDiscordOperation = exports.camposDeDiscordNoDisponibles = exports.discordPuedeEjecutar = exports.operacionesDeDiscordPara = exports.DISCORD_CAPACIDADES_POR_CREDENCIAL = exports.DISCORD_OPERATION_SPECS = exports.DISCORD_OPERATIONS = exports.camposNoDisponiblesPara = exports.puedeEjecutar = exports.operacionesPara = exports.isWhatsAppOperation = exports.WHATSAPP_OPERATIONS = exports.TELEGRAM_TOOLKIT_BY_TOOL_NAME = exports.TELEGRAM_TOOLKIT_SPECS = exports.isTelegramOperation = exports.TELEGRAM_OPERATION_SPECS = exports.TELEGRAM_OPERATIONS = exports.DRIVE_TOOLKIT_BY_TOOL_NAME = exports.DRIVE_TOOLKIT_SPECS = exports.isDriveOperation = void 0;
5
- exports.CREDENTIAL_TYPES = exports.ventanaDeContextoDeOpenRouter = exports.opcionesDeModelosDeOpenRouter = exports.URL_DE_MODELOS_DE_OPENROUTER = exports.getModelLabel = exports.getDefaultModel = exports.getModelsFor = exports.MODEL_CONTEXT_WINDOWS = exports.LLM_MODELS = exports.LLM_PROVIDERS = exports.DOCS_TOOLKIT_DEFAULTABLE = exports.DOCS_TOOLKIT_BY_TOOL_NAME = exports.DOCS_TOOLKIT_SPECS = exports.isDocsOperation = exports.DOCS_OPERATION_SPECS = exports.DOCS_OPERATIONS = exports.isMongoOperation = exports.MONGO_OPERATION_SPECS = exports.MONGO_OPERATIONS = exports.isPostgresOperation = exports.POSTGRES_OPERATION_SPECS = exports.POSTGRES_MODES = exports.POSTGRES_OPERATIONS = exports.isNotionOperation = exports.NOTION_DROPDOWN_OPERATIONS = exports.NOTION_OPERATION_SPECS = exports.NOTION_OPERATIONS = exports.isGoogleAnalyticsOperation = exports.GOOGLE_ANALYTICS_DROPDOWN_OPERATIONS = exports.GOOGLE_ANALYTICS_OPERATION_SPECS = exports.GOOGLE_ANALYTICS_OPERATIONS = exports.isGoogleContactsOperation = exports.GOOGLE_CONTACTS_DEFAULT_PERSON_FIELDS = exports.GOOGLE_CONTACTS_OPERATION_GROUPS = exports.GOOGLE_CONTACTS_OPERATION_SPECS = exports.GOOGLE_CONTACTS_OPERATIONS_V2 = exports.GOOGLE_CONTACTS_OPERATIONS_V1 = exports.GOOGLE_CONTACTS_OPERATIONS = exports.SHEETS_TOOLKIT_DEFAULTABLE = exports.SHEETS_TOOLKIT_BY_TOOL_NAME = exports.SHEETS_TOOLKIT_SPECS = exports.isSheetsOperation = exports.SHEETS_OPERATION_SPECS = exports.SHEETS_OPERATIONS = exports.herramientasDeSlackPara = exports.SLACK_TOOLKIT_BY_TOOL_NAME = exports.SLACK_TOOLKIT_SPECS = exports.isSlackOperation = exports.camposDeSlackNoDisponibles = exports.slackPuedeEjecutar = void 0;
6
- exports.isCredentialType = exports.getCredentialType = exports.credentialTypeValues = exports.CREDENTIAL_TYPE_VALUES = void 0;
4
+ exports.isBucketOperation = exports.BUCKET_ITERABLE_OPERATIONS = exports.BUCKET_OPERATION_SPECS = exports.BUCKET_OPERATIONS = exports.isJiraOperation = exports.JIRA_ITERABLE_OPERATIONS = exports.JIRA_DROPDOWN_OPERATIONS = exports.JIRA_OPERATION_SPECS = exports.JIRA_OPERATIONS = exports.isGithubOperation = exports.GITHUB_ITERABLE_OPERATIONS = exports.GITHUB_DROPDOWN_OPERATIONS = exports.GITHUB_OPERATION_SPECS = exports.GITHUB_OPERATIONS = exports.scopesQueFaltanEnShopify = exports.isShopifyOperation = exports.SHOPIFY_PRODUCT_STATUSES = exports.SHOPIFY_CANCEL_REASONS = exports.SHOPIFY_SEARCHABLE_RESOURCES = exports.SHOPIFY_TAGGABLE_RESOURCES = exports.SHOPIFY_OPERATION_SCOPES = exports.SHOPIFY_OPERATION_SPECS = exports.SHOPIFY_OPERATIONS = exports.isMailchimpOperation = exports.MAILCHIMP_CONTACT_STATUSES = exports.MAILCHIMP_OPERATION_SPECS = exports.MAILCHIMP_OPERATIONS = exports.herramientasDeDiscordPara = exports.DISCORD_TOOLKIT_BY_TOOL_NAME = exports.DISCORD_TOOLKIT_SPECS = exports.isDiscordOperation = exports.camposDeDiscordNoDisponibles = exports.discordPuedeEjecutar = exports.operacionesDeDiscordPara = exports.DISCORD_CAPACIDADES_POR_CREDENCIAL = exports.DISCORD_OPERATION_SPECS = exports.DISCORD_OPERATIONS = exports.camposNoDisponiblesPara = exports.puedeEjecutar = exports.operacionesPara = exports.isWhatsAppOperation = exports.WHATSAPP_OPERATIONS = exports.TELEGRAM_TOOLKIT_BY_TOOL_NAME = exports.TELEGRAM_TOOLKIT_SPECS = exports.isTelegramOperation = exports.TELEGRAM_OPERATION_SPECS = exports.TELEGRAM_OPERATIONS = exports.DRIVE_TOOLKIT_BY_TOOL_NAME = exports.DRIVE_TOOLKIT_SPECS = exports.isDriveOperation = void 0;
5
+ exports.getModelLabel = exports.getDefaultModel = exports.getModelsFor = exports.MODEL_CONTEXT_WINDOWS = exports.LLM_MODELS = exports.LLM_PROVIDERS = exports.DOCS_TOOLKIT_DEFAULTABLE = exports.DOCS_TOOLKIT_BY_TOOL_NAME = exports.DOCS_TOOLKIT_SPECS = exports.isDocsOperation = exports.DOCS_OPERATION_SPECS = exports.DOCS_OPERATIONS = exports.isMongoOperation = exports.MONGO_OPERATION_SPECS = exports.MONGO_OPERATIONS = exports.isPostgresOperation = exports.POSTGRES_OPERATION_SPECS = exports.POSTGRES_MODES = exports.POSTGRES_OPERATIONS = exports.isNotionOperation = exports.NOTION_DROPDOWN_OPERATIONS = exports.NOTION_OPERATION_SPECS = exports.NOTION_OPERATIONS = exports.isGoogleAnalyticsOperation = exports.GOOGLE_ANALYTICS_DROPDOWN_OPERATIONS = exports.GOOGLE_ANALYTICS_OPERATION_SPECS = exports.GOOGLE_ANALYTICS_OPERATIONS = exports.isGoogleContactsOperation = exports.GOOGLE_CONTACTS_DEFAULT_PERSON_FIELDS = exports.GOOGLE_CONTACTS_OPERATION_GROUPS = exports.GOOGLE_CONTACTS_OPERATION_SPECS = exports.GOOGLE_CONTACTS_OPERATIONS_V2 = exports.GOOGLE_CONTACTS_OPERATIONS_V1 = exports.GOOGLE_CONTACTS_OPERATIONS = exports.SHEETS_TOOLKIT_DEFAULTABLE = exports.SHEETS_TOOLKIT_BY_TOOL_NAME = exports.SHEETS_TOOLKIT_SPECS = exports.isSheetsOperation = exports.SHEETS_OPERATION_SPECS = exports.SHEETS_OPERATIONS = exports.herramientasDeSlackPara = exports.SLACK_TOOLKIT_BY_TOOL_NAME = exports.SLACK_TOOLKIT_SPECS = exports.isSlackOperation = exports.camposDeSlackNoDisponibles = exports.slackPuedeEjecutar = exports.operacionesDeSlackPara = exports.SLACK_CAPACIDADES_POR_CREDENCIAL = exports.SLACK_OPERATION_SPECS = exports.SLACK_OPERATIONS = void 0;
6
+ exports.isCredentialType = exports.getCredentialType = exports.credentialTypeValues = exports.CREDENTIAL_TYPE_VALUES = exports.CREDENTIAL_TYPES = exports.ventanaDeContextoDeOpenRouter = exports.opcionesDeModelosDeOpenRouter = exports.URL_DE_MODELOS_DE_OPENROUTER = void 0;
7
7
  var types_js_1 = require("./types.js");
8
8
  Object.defineProperty(exports, "singleMeta", { enumerable: true, get: function () { return types_js_1.singleMeta; } });
9
9
  Object.defineProperty(exports, "iterableMeta", { enumerable: true, get: function () { return types_js_1.iterableMeta; } });
@@ -115,9 +115,13 @@ Object.defineProperty(exports, "isMailchimpOperation", { enumerable: true, get:
115
115
  var shopify_operations_js_1 = require("./shopify-operations.js");
116
116
  Object.defineProperty(exports, "SHOPIFY_OPERATIONS", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_OPERATIONS; } });
117
117
  Object.defineProperty(exports, "SHOPIFY_OPERATION_SPECS", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_OPERATION_SPECS; } });
118
+ Object.defineProperty(exports, "SHOPIFY_OPERATION_SCOPES", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_OPERATION_SCOPES; } });
118
119
  Object.defineProperty(exports, "SHOPIFY_TAGGABLE_RESOURCES", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_TAGGABLE_RESOURCES; } });
119
120
  Object.defineProperty(exports, "SHOPIFY_SEARCHABLE_RESOURCES", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_SEARCHABLE_RESOURCES; } });
121
+ Object.defineProperty(exports, "SHOPIFY_CANCEL_REASONS", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_CANCEL_REASONS; } });
122
+ Object.defineProperty(exports, "SHOPIFY_PRODUCT_STATUSES", { enumerable: true, get: function () { return shopify_operations_js_1.SHOPIFY_PRODUCT_STATUSES; } });
120
123
  Object.defineProperty(exports, "isShopifyOperation", { enumerable: true, get: function () { return shopify_operations_js_1.isShopifyOperation; } });
124
+ Object.defineProperty(exports, "scopesQueFaltanEnShopify", { enumerable: true, get: function () { return shopify_operations_js_1.scopesQueFaltanEnShopify; } });
121
125
  var github_operations_js_1 = require("./github-operations.js");
122
126
  Object.defineProperty(exports, "GITHUB_OPERATIONS", { enumerable: true, get: function () { return github_operations_js_1.GITHUB_OPERATIONS; } });
123
127
  Object.defineProperty(exports, "GITHUB_OPERATION_SPECS", { enumerable: true, get: function () { return github_operations_js_1.GITHUB_OPERATION_SPECS; } });