n8n-nodes-mockingbird 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +106 -2
- package/dist/assets/mockingbird.svg +1 -0
- package/dist/credentials/MockingbirdApi.credentials.d.ts +13 -0
- package/dist/credentials/MockingbirdApi.credentials.js +85 -0
- package/dist/credentials/MockingbirdApi.credentials.js.map +1 -0
- package/dist/credentials/mockingbird.dark.svg +1 -0
- package/dist/credentials/mockingbird.svg +1 -0
- package/dist/docs/mockingbird-logo-icon.png +0 -0
- package/dist/nodes/Commerce/MockingbirdCommerce.node.d.ts +4 -0
- package/dist/nodes/Commerce/MockingbirdCommerce.node.js +35 -0
- package/dist/nodes/Commerce/MockingbirdCommerce.node.js.map +1 -0
- package/dist/nodes/Commerce/generated/properties.d.ts +2 -0
- package/dist/nodes/Commerce/generated/properties.js +1602 -0
- package/dist/nodes/Commerce/generated/properties.js.map +1 -0
- package/dist/nodes/Commerce/mockingbird.dark.svg +1 -0
- package/dist/nodes/Commerce/mockingbird.svg +1 -0
- package/dist/nodes/FinanceSecurity/MockingbirdFinanceSecurity.node.d.ts +4 -0
- package/dist/nodes/FinanceSecurity/MockingbirdFinanceSecurity.node.js +35 -0
- package/dist/nodes/FinanceSecurity/MockingbirdFinanceSecurity.node.js.map +1 -0
- package/dist/nodes/FinanceSecurity/generated/properties.d.ts +2 -0
- package/dist/nodes/FinanceSecurity/generated/properties.js +815 -0
- package/dist/nodes/FinanceSecurity/generated/properties.js.map +1 -0
- package/dist/nodes/FinanceSecurity/mockingbird.dark.svg +1 -0
- package/dist/nodes/FinanceSecurity/mockingbird.svg +1 -0
- package/dist/nodes/Fun/MockingbirdFun.node.d.ts +4 -0
- package/dist/nodes/Fun/MockingbirdFun.node.js +35 -0
- package/dist/nodes/Fun/MockingbirdFun.node.js.map +1 -0
- package/dist/nodes/Fun/generated/properties.d.ts +2 -0
- package/dist/nodes/Fun/generated/properties.js +1202 -0
- package/dist/nodes/Fun/generated/properties.js.map +1 -0
- package/dist/nodes/Fun/mockingbird.dark.svg +1 -0
- package/dist/nodes/Fun/mockingbird.svg +1 -0
- package/dist/nodes/People/MockingbirdPeople.node.d.ts +4 -0
- package/dist/nodes/People/MockingbirdPeople.node.js +35 -0
- package/dist/nodes/People/MockingbirdPeople.node.js.map +1 -0
- package/dist/nodes/People/generated/properties.d.ts +2 -0
- package/dist/nodes/People/generated/properties.js +1620 -0
- package/dist/nodes/People/generated/properties.js.map +1 -0
- package/dist/nodes/People/mockingbird.dark.svg +1 -0
- package/dist/nodes/People/mockingbird.svg +1 -0
- package/dist/nodes/Platform/MockingbirdPlatform.node.d.ts +4 -0
- package/dist/nodes/Platform/MockingbirdPlatform.node.js +35 -0
- package/dist/nodes/Platform/MockingbirdPlatform.node.js.map +1 -0
- package/dist/nodes/Platform/generated/properties.d.ts +2 -0
- package/dist/nodes/Platform/generated/properties.js +591 -0
- package/dist/nodes/Platform/generated/properties.js.map +1 -0
- package/dist/nodes/Platform/mockingbird.dark.svg +1 -0
- package/dist/nodes/Platform/mockingbird.svg +1 -0
- package/dist/nodes/Support/MockingbirdSupport.node.d.ts +4 -0
- package/dist/nodes/Support/MockingbirdSupport.node.js +35 -0
- package/dist/nodes/Support/MockingbirdSupport.node.js.map +1 -0
- package/dist/nodes/Support/generated/properties.d.ts +2 -0
- package/dist/nodes/Support/generated/properties.js +1390 -0
- package/dist/nodes/Support/generated/properties.js.map +1 -0
- package/dist/nodes/Support/mockingbird.dark.svg +1 -0
- package/dist/nodes/Support/mockingbird.svg +1 -0
- package/dist/nodes/shared/unwrapData.d.ts +2 -0
- package/dist/nodes/shared/unwrapData.js +11 -0
- package/dist/nodes/shared/unwrapData.js.map +1 -0
- package/dist/package.json +61 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +60 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 n8n
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
-
#
|
|
1
|
+
# n8n-nodes-mockingbird
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
n8n community nodes for [Mockingbird](https://mockingbird.n8n.io), the stable mock APIs used in n8n courses, demos, and content.
|
|
4
|
+
|
|
5
|
+
[n8n](https://n8n.io/) is the platform for AI agents and workflows: the one place to build, run, and manage them, from a first prototype to enterprise scale.
|
|
6
|
+
|
|
7
|
+
[Installation](#installation)
|
|
8
|
+
[Nodes](#nodes)
|
|
9
|
+
[Credentials](#credentials)
|
|
10
|
+
[Usage](#usage)
|
|
11
|
+
[Development](#development)
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
|
|
16
|
+
|
|
17
|
+
## Nodes
|
|
18
|
+
|
|
19
|
+
Six nodes group the Mockingbird APIs by theme. Pick the node, then a resource, then an operation.
|
|
20
|
+
|
|
21
|
+
| Node | Resources | Credential |
|
|
22
|
+
| -------------------------------- | ---------------------------------------------- | ---------- |
|
|
23
|
+
| Mockingbird Commerce | Product, Order, Inventory, Review, Customer | Optional |
|
|
24
|
+
| Mockingbird Support | Ticket, Article, Agent Tool, Text | Required |
|
|
25
|
+
| Mockingbird People | Employee, Time Off Request, Room | Required |
|
|
26
|
+
| Mockingbird Finance and Security | Transaction, Security, Exchange Rate | Optional |
|
|
27
|
+
| Mockingbird Platform | Job, Event, Webhook, File, Sandbox, Assessment | Optional |
|
|
28
|
+
| Mockingbird Fun and Utilities | Fun, Utility, Weather, Quote | Optional |
|
|
29
|
+
|
|
30
|
+
Some resources need no credential. Examples are Product, Weather, and Exchange Rate. In a node marked Optional, a resource that needs a key fails with 401 if you add no credential. Nodes marked Required always need one.
|
|
31
|
+
|
|
32
|
+
### Operations
|
|
33
|
+
|
|
34
|
+
| Resource | Operations |
|
|
35
|
+
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
|
+
| Product | Get, Get Many, Get Categories |
|
|
37
|
+
| Order | Get, Get Many, Get Many (Cursor) |
|
|
38
|
+
| Inventory | Get, Create Reservation, Delete Reservation |
|
|
39
|
+
| Review | Get Many, Get Latest, Create, Moderate |
|
|
40
|
+
| Customer | Get, Get Many, Create |
|
|
41
|
+
| Ticket | Get, Get Many, Create, Update, Replace, Add Comment |
|
|
42
|
+
| Article | Search, Get |
|
|
43
|
+
| Agent Tool | Look Up Customer, Refund Order, Cancel Order, Resend Invoice, Get Next Ticket, Resolve Ticket, Get Tools |
|
|
44
|
+
| Text | Classify Sentiment, Classify Intent, Extract Entities |
|
|
45
|
+
| Employee | Get, Get Many, Create, Update, Get Reports, Get Departments, Get Org Chart, Get Salary Bands |
|
|
46
|
+
| Time Off Request | Get Many, Get Many by Employee, Create, Update, Get Balance, Get Calendar |
|
|
47
|
+
| Room | Get Many, Get Availability, Create Booking, Delete Booking |
|
|
48
|
+
| Transaction | Get, Get Many, Score, Create Case, Update Case |
|
|
49
|
+
| Security | Get Many Events, Get Many Blocks, Create Block |
|
|
50
|
+
| Exchange Rate | Get Rates, Convert |
|
|
51
|
+
| Job | Create, Get, Get Result |
|
|
52
|
+
| Event | Get Many |
|
|
53
|
+
| Webhook | Get Many Subscriptions, Create Subscription, Delete Subscription, Fire |
|
|
54
|
+
| File | Get Many |
|
|
55
|
+
| Sandbox | Reset, Get ID |
|
|
56
|
+
| Assessment | Get, Get Many, Get Source, Submit |
|
|
57
|
+
| Fun | Get Random Dog, Get Dog Breeds, Get Random Dog by Breed, Get Random Cat, Get Random Robot, Get Random Joke, Get Joke, Get Random Fact, Get Random Activity, Get Trivia, Get Random Users, Get Number Fact, Get Fortune |
|
|
58
|
+
| Utility | Get Countries, Echo, Respond With Status, Respond After Delay, Generate UUID, Hash Text, Encode Base64, Decode Base64, Validate Email, Validate IBAN, Validate VAT Number, Convert Units, Generate Lorem Ipsum |
|
|
59
|
+
| Weather | Get Current, Get Forecast |
|
|
60
|
+
| Quote | Get, Get Many, Get Quote of the Day |
|
|
61
|
+
|
|
62
|
+
**Get Many (Cursor)** makes one request and returns the full `{ data, meta }` response. It does not follow `meta.next_cursor`. Pass the cursor back in Additional Fields to read the next page.
|
|
63
|
+
|
|
64
|
+
## Credentials
|
|
65
|
+
|
|
66
|
+
Some resources need no credential, such as Product and Weather. See the Nodes table.
|
|
67
|
+
|
|
68
|
+
1. Get an API key from the Mockingbird dashboard.
|
|
69
|
+
2. Create a **Mockingbird API** credential in n8n.
|
|
70
|
+
3. Enter the API key.
|
|
71
|
+
4. Choose the ID type: **Sandbox** (default) or **Assessment**.
|
|
72
|
+
5. Enter the ID.
|
|
73
|
+
|
|
74
|
+
### About the ID
|
|
75
|
+
|
|
76
|
+
The ID is only for temporary writes and per-learner state. Reads of seed data ignore it.
|
|
77
|
+
|
|
78
|
+
- **Sandbox** is for everyone. It is sent as `X-Sandbox-Id`. To get a new ID, call `GET /v1/sandbox-id`.
|
|
79
|
+
- **Assessment** is for Academy learners. It is sent as `X-Assessment-Id`. Use the ID your course gave you.
|
|
80
|
+
- Format: 8 to 64 characters from `A-Z a-z 0-9 _ -`.
|
|
81
|
+
- Rows you create are stored under the ID for 48 hours. Two callers with the same ID share rows.
|
|
82
|
+
- Assessments use the ID to pick your row set and to credit your pass.
|
|
83
|
+
- Idempotency keys are scoped by the ID.
|
|
84
|
+
|
|
85
|
+
Send only one of the two headers. The credential does this for you.
|
|
86
|
+
|
|
87
|
+
The credential also works with the HTTP Request node as a predefined credential type.
|
|
88
|
+
|
|
89
|
+
## Usage
|
|
90
|
+
|
|
91
|
+
Add a Mockingbird node to a workflow. Pick a resource and an operation. Example: Mockingbird Commerce, Product, Get Many, with `Search` set to `chair`.
|
|
92
|
+
|
|
93
|
+
## Development
|
|
94
|
+
|
|
95
|
+
Nodes are generated from `spec/openapi.json` with `@devlikeapro/n8n-openapi-node`. Edit `scripts/generate.cjs`, not the files in `generated/`.
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
npm run generate
|
|
99
|
+
npm run build
|
|
100
|
+
npm run lint
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
CI fails when generated files drift from the spec.
|
|
104
|
+
|
|
105
|
+
## License
|
|
106
|
+
|
|
107
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="180 160 680 680"><path fill="#dd004f" stroke="#dd004f" stroke-width="16" stroke-linejoin="round" fill-rule="evenodd" d="M348.4,772.0C347.3,771.6 345.1,769.7 343.7,767.8C342.2,766.0 340.6,764.0 340.0,763.4C338.6,761.6 339.5,741.6 341.4,732.7C343.6,722.7 347.4,711.4 351.7,702.0C354.6,695.8 355.4,692.4 356.6,682.0C361.7,636.8 372.7,603.4 394.7,566.2C402.5,553.0 404.3,550.5 413.2,539.4L418.9,532.3L410.2,528.9C405.4,527.1 401.3,525.7 401.1,525.9C400.9,526.0 400.4,525.7 400.1,525.2C399.8,524.7 394.8,521.9 389.0,519.0C383.2,516.1 373.6,510.6 367.5,506.6C355.2,498.7 356.0,499.2 346.9,491.6C343.2,488.6 339.9,486.4 339.5,486.8C339.2,487.2 338.9,487.0 339.1,486.5C339.2,485.9 333.3,479.4 325.9,471.9C310.9,456.7 307.7,453.2 302.4,445.4C300.3,442.4 298.3,440.0 297.8,440.0C297.4,440.0 297.1,439.7 297.2,439.2C297.4,438.5 294.1,432.9 292.9,432.0C292.3,431.5 291.0,429.4 285.2,419.0C283.8,416.5 282.3,414.2 281.8,413.9C281.3,413.6 280.8,412.5 280.6,411.4C280.3,410.4 278.4,405.9 276.2,401.5C274.1,397.1 270.3,387.9 267.9,381.0C265.6,374.1 263.2,368.3 262.8,368.2C262.4,368.0 262.2,367.5 262.5,367.0C262.8,366.6 261.7,361.1 260.0,354.9C254.6,333.9 253.5,323.3 253.6,294.0C253.7,269.1 253.9,266.4 256.8,250.0C262.1,219.5 263.7,216.0 271.6,216.0C276.5,216.0 276.9,216.2 285.5,226.5C293.7,236.3 312.8,255.0 314.6,255.0C315.0,255.0 316.0,255.8 316.9,256.8C319.4,259.4 326.8,265.0 327.9,265.0C328.4,265.0 329.0,265.3 329.2,265.8C330.1,267.8 342.6,275.7 344.3,275.2C344.8,275.1 344.9,275.4 344.5,276.0C344.2,276.5 344.3,277.0 344.9,277.0C345.5,277.0 348.3,278.5 351.2,280.3C357.4,284.2 378.1,294.9 379.4,294.9C379.9,294.8 380.6,295.2 380.9,295.7C381.2,296.2 394.6,303.1 410.5,311.0C426.4,318.8 439.7,325.6 440.0,326.0C440.3,326.4 442.8,327.9 445.6,329.3C448.5,330.8 452.8,333.3 455.3,335.0C457.8,336.6 460.0,338.0 460.4,338.0C463.1,338.0 491.3,361.1 504.0,373.9C509.2,379.1 513.8,383.3 514.2,383.2C514.7,383.1 515.0,383.5 515.0,384.1C515.0,384.7 517.2,387.8 519.8,390.9C524.5,396.4 532.2,406.8 537.1,414.2C540.0,418.8 540.5,418.9 542.6,414.8C543.5,413.0 544.6,411.3 544.9,411.0C545.8,410.4 555.8,393.6 556.8,391.2C558.3,387.7 564.1,378.1 565.5,377.0C566.3,376.3 567.0,375.4 567.0,374.9C567.0,373.5 580.3,360.5 586.0,356.2C607.7,340.1 642.3,337.6 667.3,350.4C677.5,355.6 683.1,359.9 694.1,370.6L702.7,379.0L722.8,379.0C743.3,379.0 746.0,378.7 746.0,376.5C746.0,374.1 754.6,367.3 759.9,365.5C778.2,359.5 794.9,381.0 784.4,397.2C774.9,411.9 755.5,410.7 745.8,394.8C744.1,392.0 743.9,392.0 734.4,392.0L724.8,392.0L725.4,394.8C726.4,399.6 724.2,402.0 715.8,405.0C694.4,412.8 680.1,425.0 670.9,443.2C665.7,453.6 664.8,456.3 659.5,479.5C638.6,569.7 589.6,615.2 501.3,626.4C494.8,627.2 483.0,628.6 475.0,629.5C423.7,635.2 391.9,654.0 371.3,690.7L367.8,697.1L368.3,716.3C368.5,726.9 369.6,740.9 370.5,747.6L372.3,759.7L370.2,764.1C366.4,771.8 356.7,775.4 348.4,772.0ZM358.7,754.7C358.3,752.4 357.5,745.6 356.9,739.7C355.5,727.3 354.5,727.5 353.0,740.6C351.1,757.3 352.3,762.5 357.2,759.9C358.9,759.0 359.1,758.2 358.7,754.7ZM382.9,654.2C406.3,631.1 436.2,619.3 480.5,615.5C503.5,613.5 527.6,609.0 544.5,603.5C566.6,596.4 592.3,579.8 605.1,564.5C607.0,562.2 609.1,559.8 609.8,559.0C620.7,546.5 631.8,526.1 638.9,505.7C641.1,499.2 642.9,493.6 642.8,493.2C642.7,492.8 643.0,491.8 643.3,491.0C644.1,488.9 646.7,478.2 649.1,467.0C654.2,443.2 662.8,426.9 678.0,412.7C685.0,406.1 698.1,397.0 700.7,397.0C703.1,396.9 704.4,395.1 703.1,393.6C701.9,392.2 697.8,392.0 671.7,392.0C638.2,392.0 638.0,392.0 638.0,385.4C638.0,379.4 639.7,379.0 663.5,379.0L684.5,378.9L679.0,373.9C655.1,352.2 616.5,349.2 593.0,367.2C585.1,373.2 568.0,393.9 568.0,397.4C568.0,398.2 556.9,417.1 552.0,424.7L547.1,432.1L549.4,437.3C569.0,481.6 560.6,519.2 527.4,535.8C507.4,545.8 473.5,547.5 444.2,539.9L432.7,536.9L429.8,539.7C428.2,541.2 423.8,546.5 420.1,551.5C398.0,580.8 382.7,614.3 374.4,651.4C371.4,664.9 371.3,667.5 373.7,664.0C374.6,662.6 378.8,658.2 382.9,654.2ZM500.5,529.9C538.7,524.6 554.7,497.9 543.5,458.3C542.6,455.4 541.1,451.1 540.0,448.6L538.1,444.0L528.8,453.3C515.7,466.4 507.1,473.8 487.0,489.0C469.7,502.1 449.2,518.9 445.7,522.7C443.2,525.5 444.8,526.4 455.0,528.4C469.9,531.2 487.3,531.8 500.5,529.9ZM430.8,519.2C446.0,504.8 451.6,499.8 463.5,490.7C496.6,465.2 503.0,460.1 511.9,451.5C517.0,446.6 523.5,439.9 526.2,436.7L531.2,431.0L526.9,423.3C524.5,419.1 521.3,414.4 519.9,412.9C518.4,411.3 517.5,409.8 517.8,409.6C518.1,409.3 517.5,408.8 516.6,408.4C515.7,408.1 515.2,407.4 515.5,407.0C515.8,406.5 515.0,405.4 513.8,404.6C512.6,403.7 512.0,403.0 512.5,403.0C513.0,403.0 512.5,402.0 511.3,400.8C510.1,399.5 506.1,395.1 502.4,391.0C491.5,378.7 478.1,366.5 468.5,359.9C465.8,358.0 463.1,356.0 462.5,355.4C461.7,354.4 452.5,348.4 445.9,344.5C431.1,335.8 423.0,331.4 404.0,322.2C367.0,304.2 359.7,300.5 352.3,296.2C348.4,293.9 344.9,292.0 344.6,292.0C344.1,292.0 319.3,275.8 317.5,274.3C316.9,273.8 314.9,272.4 313.0,271.0C307.7,267.4 298.3,259.2 291.7,252.5C288.4,249.2 285.4,246.6 284.9,246.8C284.4,246.9 284.0,246.4 284.0,245.8C283.9,245.1 281.5,241.8 278.6,238.6L273.2,232.6L272.1,238.1C253.5,322.5 277.0,405.4 336.0,464.0C350.8,478.7 379.6,501.0 383.8,501.0C384.4,501.0 385.0,501.4 385.2,501.8C385.6,502.8 403.3,511.6 404.2,511.2C404.7,511.1 405.0,511.4 405.0,511.9C405.0,512.4 405.8,513.0 406.8,513.3C407.7,513.6 412.3,515.5 417.0,517.4C426.8,521.4 428.3,521.7 430.8,519.2ZM772.2,392.3C777.9,387.3 773.7,378.1 765.8,378.0C762.1,378.0 757.0,382.3 757.0,385.5C757.0,392.9 766.6,397.1 772.2,392.3Z"/></svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAuthenticate, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class MockingbirdApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: {
|
|
6
|
+
readonly light: "file:mockingbird.svg";
|
|
7
|
+
readonly dark: "file:mockingbird.dark.svg";
|
|
8
|
+
};
|
|
9
|
+
documentationUrl: string;
|
|
10
|
+
properties: INodeProperties[];
|
|
11
|
+
authenticate: IAuthenticate;
|
|
12
|
+
test: ICredentialTestRequest;
|
|
13
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockingbirdApi = void 0;
|
|
4
|
+
class MockingbirdApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'mockingbirdApi';
|
|
7
|
+
this.displayName = 'Mockingbird API';
|
|
8
|
+
this.icon = {
|
|
9
|
+
light: 'file:mockingbird.svg',
|
|
10
|
+
dark: 'file:mockingbird.dark.svg',
|
|
11
|
+
};
|
|
12
|
+
this.documentationUrl = 'https://github.com/n8n-io/n8n-nodes-mockingbird?tab=readme-ov-file#credentials';
|
|
13
|
+
this.properties = [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'API Key',
|
|
16
|
+
name: 'apiKey',
|
|
17
|
+
type: 'string',
|
|
18
|
+
typeOptions: { password: true },
|
|
19
|
+
required: true,
|
|
20
|
+
default: '',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
displayName: 'ID Type',
|
|
24
|
+
name: 'idType',
|
|
25
|
+
type: 'options',
|
|
26
|
+
options: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Sandbox',
|
|
29
|
+
value: 'sandbox',
|
|
30
|
+
description: 'For everyone. Mint an ID with GET /v1/sandbox-id. Sent as X-Sandbox-Id.',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'Assessment',
|
|
34
|
+
value: 'assessment',
|
|
35
|
+
description: 'For Academy learners. Use the ID your course gave you. Sent as X-Assessment-Id.',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
default: 'sandbox',
|
|
39
|
+
description: 'Scope requests to a sandbox or to an Academy assessment',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'The ID only keeps your test rows separate. Reads of seed data ignore it. Rows you create are stored under the ID for 48 hours, and anyone who uses the same ID shares them. Assessments use the ID to find your row set and to credit your pass. Idempotency keys are scoped by the ID.',
|
|
43
|
+
name: 'idNotice',
|
|
44
|
+
type: 'notice',
|
|
45
|
+
default: '',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
displayName: 'ID',
|
|
49
|
+
name: 'idValue',
|
|
50
|
+
type: 'string',
|
|
51
|
+
required: true,
|
|
52
|
+
default: '',
|
|
53
|
+
placeholder: 'e.g. sbx_kQ3f7z9Lm2Xr8p_1Nc4B',
|
|
54
|
+
description: 'Any 8 to 64 characters from A-Z, a-z, 0-9, underscore, and hyphen. To get a new one, call GET /v1/sandbox-id (for example with the HTTP Request node).',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
displayName: 'Base URL',
|
|
58
|
+
name: 'baseUrl',
|
|
59
|
+
type: 'string',
|
|
60
|
+
default: 'https://mockingbird.n8n.io/v1',
|
|
61
|
+
description: 'Use https unless Mockingbird runs on a trusted internal network. The API key and ID are sent to this address.',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
this.authenticate = async (credentials, requestOptions) => {
|
|
65
|
+
const idHeader = credentials.idType === 'assessment' ? 'X-Assessment-Id' : 'X-Sandbox-Id';
|
|
66
|
+
return {
|
|
67
|
+
...requestOptions,
|
|
68
|
+
headers: {
|
|
69
|
+
...requestOptions.headers,
|
|
70
|
+
'X-Api-Key': credentials.apiKey,
|
|
71
|
+
[idHeader]: credentials.idValue,
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
this.test = {
|
|
76
|
+
request: {
|
|
77
|
+
baseURL: '={{ ($credentials.baseUrl || "https://mockingbird.n8n.io/v1").replace(/\\/+$/, "") }}',
|
|
78
|
+
url: '/tickets',
|
|
79
|
+
qs: { limit: 1 },
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.MockingbirdApi = MockingbirdApi;
|
|
85
|
+
//# sourceMappingURL=MockingbirdApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MockingbirdApi.credentials.js","sourceRoot":"","sources":["../../credentials/MockingbirdApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QAExB,gBAAW,GAAG,iBAAiB,CAAC;QAEhC,SAAI,GAAG;YACN,KAAK,EAAE,sBAAsB;YAC7B,IAAI,EAAE,2BAA2B;SACxB,CAAC;QAEX,qBAAgB,GACf,gFAAgF,CAAC;QAElF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,SAAS;wBACf,KAAK,EAAE,SAAS;wBAChB,WAAW,EAAE,yEAAyE;qBACtF;oBACD;wBACC,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,YAAY;wBACnB,WAAW,EACV,iFAAiF;qBAClF;iBACD;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,yDAAyD;aACtE;YACD;gBACC,WAAW,EACV,yRAAyR;gBAC1R,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,IAAI;gBACjB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+BAA+B;gBAC5C,WAAW,EACV,wJAAwJ;aACzJ;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,+BAA+B;gBACxC,WAAW,EACV,+GAA+G;aAChH;SACD,CAAC;QAEF,iBAAY,GAAkB,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,EAAE;YACnE,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,KAAK,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,cAAc,CAAC;YAC1F,OAAO;gBACN,GAAG,cAAc;gBACjB,OAAO,EAAE;oBACR,GAAG,cAAc,CAAC,OAAO;oBACzB,WAAW,EAAE,WAAW,CAAC,MAAgB;oBACzC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAiB;iBACzC;aACD,CAAC;QACH,CAAC,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EACN,uFAAuF;gBACxF,GAAG,EAAE,UAAU;gBACf,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;aAChB;SACD,CAAC;IACH,CAAC;CAAA;AAzFD,wCAyFC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="180 160 680 680"><path fill="#dd004f" stroke="#dd004f" stroke-width="16" stroke-linejoin="round" fill-rule="evenodd" d="M348.4,772.0C347.3,771.6 345.1,769.7 343.7,767.8C342.2,766.0 340.6,764.0 340.0,763.4C338.6,761.6 339.5,741.6 341.4,732.7C343.6,722.7 347.4,711.4 351.7,702.0C354.6,695.8 355.4,692.4 356.6,682.0C361.7,636.8 372.7,603.4 394.7,566.2C402.5,553.0 404.3,550.5 413.2,539.4L418.9,532.3L410.2,528.9C405.4,527.1 401.3,525.7 401.1,525.9C400.9,526.0 400.4,525.7 400.1,525.2C399.8,524.7 394.8,521.9 389.0,519.0C383.2,516.1 373.6,510.6 367.5,506.6C355.2,498.7 356.0,499.2 346.9,491.6C343.2,488.6 339.9,486.4 339.5,486.8C339.2,487.2 338.9,487.0 339.1,486.5C339.2,485.9 333.3,479.4 325.9,471.9C310.9,456.7 307.7,453.2 302.4,445.4C300.3,442.4 298.3,440.0 297.8,440.0C297.4,440.0 297.1,439.7 297.2,439.2C297.4,438.5 294.1,432.9 292.9,432.0C292.3,431.5 291.0,429.4 285.2,419.0C283.8,416.5 282.3,414.2 281.8,413.9C281.3,413.6 280.8,412.5 280.6,411.4C280.3,410.4 278.4,405.9 276.2,401.5C274.1,397.1 270.3,387.9 267.9,381.0C265.6,374.1 263.2,368.3 262.8,368.2C262.4,368.0 262.2,367.5 262.5,367.0C262.8,366.6 261.7,361.1 260.0,354.9C254.6,333.9 253.5,323.3 253.6,294.0C253.7,269.1 253.9,266.4 256.8,250.0C262.1,219.5 263.7,216.0 271.6,216.0C276.5,216.0 276.9,216.2 285.5,226.5C293.7,236.3 312.8,255.0 314.6,255.0C315.0,255.0 316.0,255.8 316.9,256.8C319.4,259.4 326.8,265.0 327.9,265.0C328.4,265.0 329.0,265.3 329.2,265.8C330.1,267.8 342.6,275.7 344.3,275.2C344.8,275.1 344.9,275.4 344.5,276.0C344.2,276.5 344.3,277.0 344.9,277.0C345.5,277.0 348.3,278.5 351.2,280.3C357.4,284.2 378.1,294.9 379.4,294.9C379.9,294.8 380.6,295.2 380.9,295.7C381.2,296.2 394.6,303.1 410.5,311.0C426.4,318.8 439.7,325.6 440.0,326.0C440.3,326.4 442.8,327.9 445.6,329.3C448.5,330.8 452.8,333.3 455.3,335.0C457.8,336.6 460.0,338.0 460.4,338.0C463.1,338.0 491.3,361.1 504.0,373.9C509.2,379.1 513.8,383.3 514.2,383.2C514.7,383.1 515.0,383.5 515.0,384.1C515.0,384.7 517.2,387.8 519.8,390.9C524.5,396.4 532.2,406.8 537.1,414.2C540.0,418.8 540.5,418.9 542.6,414.8C543.5,413.0 544.6,411.3 544.9,411.0C545.8,410.4 555.8,393.6 556.8,391.2C558.3,387.7 564.1,378.1 565.5,377.0C566.3,376.3 567.0,375.4 567.0,374.9C567.0,373.5 580.3,360.5 586.0,356.2C607.7,340.1 642.3,337.6 667.3,350.4C677.5,355.6 683.1,359.9 694.1,370.6L702.7,379.0L722.8,379.0C743.3,379.0 746.0,378.7 746.0,376.5C746.0,374.1 754.6,367.3 759.9,365.5C778.2,359.5 794.9,381.0 784.4,397.2C774.9,411.9 755.5,410.7 745.8,394.8C744.1,392.0 743.9,392.0 734.4,392.0L724.8,392.0L725.4,394.8C726.4,399.6 724.2,402.0 715.8,405.0C694.4,412.8 680.1,425.0 670.9,443.2C665.7,453.6 664.8,456.3 659.5,479.5C638.6,569.7 589.6,615.2 501.3,626.4C494.8,627.2 483.0,628.6 475.0,629.5C423.7,635.2 391.9,654.0 371.3,690.7L367.8,697.1L368.3,716.3C368.5,726.9 369.6,740.9 370.5,747.6L372.3,759.7L370.2,764.1C366.4,771.8 356.7,775.4 348.4,772.0ZM358.7,754.7C358.3,752.4 357.5,745.6 356.9,739.7C355.5,727.3 354.5,727.5 353.0,740.6C351.1,757.3 352.3,762.5 357.2,759.9C358.9,759.0 359.1,758.2 358.7,754.7ZM382.9,654.2C406.3,631.1 436.2,619.3 480.5,615.5C503.5,613.5 527.6,609.0 544.5,603.5C566.6,596.4 592.3,579.8 605.1,564.5C607.0,562.2 609.1,559.8 609.8,559.0C620.7,546.5 631.8,526.1 638.9,505.7C641.1,499.2 642.9,493.6 642.8,493.2C642.7,492.8 643.0,491.8 643.3,491.0C644.1,488.9 646.7,478.2 649.1,467.0C654.2,443.2 662.8,426.9 678.0,412.7C685.0,406.1 698.1,397.0 700.7,397.0C703.1,396.9 704.4,395.1 703.1,393.6C701.9,392.2 697.8,392.0 671.7,392.0C638.2,392.0 638.0,392.0 638.0,385.4C638.0,379.4 639.7,379.0 663.5,379.0L684.5,378.9L679.0,373.9C655.1,352.2 616.5,349.2 593.0,367.2C585.1,373.2 568.0,393.9 568.0,397.4C568.0,398.2 556.9,417.1 552.0,424.7L547.1,432.1L549.4,437.3C569.0,481.6 560.6,519.2 527.4,535.8C507.4,545.8 473.5,547.5 444.2,539.9L432.7,536.9L429.8,539.7C428.2,541.2 423.8,546.5 420.1,551.5C398.0,580.8 382.7,614.3 374.4,651.4C371.4,664.9 371.3,667.5 373.7,664.0C374.6,662.6 378.8,658.2 382.9,654.2ZM500.5,529.9C538.7,524.6 554.7,497.9 543.5,458.3C542.6,455.4 541.1,451.1 540.0,448.6L538.1,444.0L528.8,453.3C515.7,466.4 507.1,473.8 487.0,489.0C469.7,502.1 449.2,518.9 445.7,522.7C443.2,525.5 444.8,526.4 455.0,528.4C469.9,531.2 487.3,531.8 500.5,529.9ZM430.8,519.2C446.0,504.8 451.6,499.8 463.5,490.7C496.6,465.2 503.0,460.1 511.9,451.5C517.0,446.6 523.5,439.9 526.2,436.7L531.2,431.0L526.9,423.3C524.5,419.1 521.3,414.4 519.9,412.9C518.4,411.3 517.5,409.8 517.8,409.6C518.1,409.3 517.5,408.8 516.6,408.4C515.7,408.1 515.2,407.4 515.5,407.0C515.8,406.5 515.0,405.4 513.8,404.6C512.6,403.7 512.0,403.0 512.5,403.0C513.0,403.0 512.5,402.0 511.3,400.8C510.1,399.5 506.1,395.1 502.4,391.0C491.5,378.7 478.1,366.5 468.5,359.9C465.8,358.0 463.1,356.0 462.5,355.4C461.7,354.4 452.5,348.4 445.9,344.5C431.1,335.8 423.0,331.4 404.0,322.2C367.0,304.2 359.7,300.5 352.3,296.2C348.4,293.9 344.9,292.0 344.6,292.0C344.1,292.0 319.3,275.8 317.5,274.3C316.9,273.8 314.9,272.4 313.0,271.0C307.7,267.4 298.3,259.2 291.7,252.5C288.4,249.2 285.4,246.6 284.9,246.8C284.4,246.9 284.0,246.4 284.0,245.8C283.9,245.1 281.5,241.8 278.6,238.6L273.2,232.6L272.1,238.1C253.5,322.5 277.0,405.4 336.0,464.0C350.8,478.7 379.6,501.0 383.8,501.0C384.4,501.0 385.0,501.4 385.2,501.8C385.6,502.8 403.3,511.6 404.2,511.2C404.7,511.1 405.0,511.4 405.0,511.9C405.0,512.4 405.8,513.0 406.8,513.3C407.7,513.6 412.3,515.5 417.0,517.4C426.8,521.4 428.3,521.7 430.8,519.2ZM772.2,392.3C777.9,387.3 773.7,378.1 765.8,378.0C762.1,378.0 757.0,382.3 757.0,385.5C757.0,392.9 766.6,397.1 772.2,392.3Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="180 160 680 680"><path fill="#dd004f" stroke="#dd004f" stroke-width="16" stroke-linejoin="round" fill-rule="evenodd" d="M348.4,772.0C347.3,771.6 345.1,769.7 343.7,767.8C342.2,766.0 340.6,764.0 340.0,763.4C338.6,761.6 339.5,741.6 341.4,732.7C343.6,722.7 347.4,711.4 351.7,702.0C354.6,695.8 355.4,692.4 356.6,682.0C361.7,636.8 372.7,603.4 394.7,566.2C402.5,553.0 404.3,550.5 413.2,539.4L418.9,532.3L410.2,528.9C405.4,527.1 401.3,525.7 401.1,525.9C400.9,526.0 400.4,525.7 400.1,525.2C399.8,524.7 394.8,521.9 389.0,519.0C383.2,516.1 373.6,510.6 367.5,506.6C355.2,498.7 356.0,499.2 346.9,491.6C343.2,488.6 339.9,486.4 339.5,486.8C339.2,487.2 338.9,487.0 339.1,486.5C339.2,485.9 333.3,479.4 325.9,471.9C310.9,456.7 307.7,453.2 302.4,445.4C300.3,442.4 298.3,440.0 297.8,440.0C297.4,440.0 297.1,439.7 297.2,439.2C297.4,438.5 294.1,432.9 292.9,432.0C292.3,431.5 291.0,429.4 285.2,419.0C283.8,416.5 282.3,414.2 281.8,413.9C281.3,413.6 280.8,412.5 280.6,411.4C280.3,410.4 278.4,405.9 276.2,401.5C274.1,397.1 270.3,387.9 267.9,381.0C265.6,374.1 263.2,368.3 262.8,368.2C262.4,368.0 262.2,367.5 262.5,367.0C262.8,366.6 261.7,361.1 260.0,354.9C254.6,333.9 253.5,323.3 253.6,294.0C253.7,269.1 253.9,266.4 256.8,250.0C262.1,219.5 263.7,216.0 271.6,216.0C276.5,216.0 276.9,216.2 285.5,226.5C293.7,236.3 312.8,255.0 314.6,255.0C315.0,255.0 316.0,255.8 316.9,256.8C319.4,259.4 326.8,265.0 327.9,265.0C328.4,265.0 329.0,265.3 329.2,265.8C330.1,267.8 342.6,275.7 344.3,275.2C344.8,275.1 344.9,275.4 344.5,276.0C344.2,276.5 344.3,277.0 344.9,277.0C345.5,277.0 348.3,278.5 351.2,280.3C357.4,284.2 378.1,294.9 379.4,294.9C379.9,294.8 380.6,295.2 380.9,295.7C381.2,296.2 394.6,303.1 410.5,311.0C426.4,318.8 439.7,325.6 440.0,326.0C440.3,326.4 442.8,327.9 445.6,329.3C448.5,330.8 452.8,333.3 455.3,335.0C457.8,336.6 460.0,338.0 460.4,338.0C463.1,338.0 491.3,361.1 504.0,373.9C509.2,379.1 513.8,383.3 514.2,383.2C514.7,383.1 515.0,383.5 515.0,384.1C515.0,384.7 517.2,387.8 519.8,390.9C524.5,396.4 532.2,406.8 537.1,414.2C540.0,418.8 540.5,418.9 542.6,414.8C543.5,413.0 544.6,411.3 544.9,411.0C545.8,410.4 555.8,393.6 556.8,391.2C558.3,387.7 564.1,378.1 565.5,377.0C566.3,376.3 567.0,375.4 567.0,374.9C567.0,373.5 580.3,360.5 586.0,356.2C607.7,340.1 642.3,337.6 667.3,350.4C677.5,355.6 683.1,359.9 694.1,370.6L702.7,379.0L722.8,379.0C743.3,379.0 746.0,378.7 746.0,376.5C746.0,374.1 754.6,367.3 759.9,365.5C778.2,359.5 794.9,381.0 784.4,397.2C774.9,411.9 755.5,410.7 745.8,394.8C744.1,392.0 743.9,392.0 734.4,392.0L724.8,392.0L725.4,394.8C726.4,399.6 724.2,402.0 715.8,405.0C694.4,412.8 680.1,425.0 670.9,443.2C665.7,453.6 664.8,456.3 659.5,479.5C638.6,569.7 589.6,615.2 501.3,626.4C494.8,627.2 483.0,628.6 475.0,629.5C423.7,635.2 391.9,654.0 371.3,690.7L367.8,697.1L368.3,716.3C368.5,726.9 369.6,740.9 370.5,747.6L372.3,759.7L370.2,764.1C366.4,771.8 356.7,775.4 348.4,772.0ZM358.7,754.7C358.3,752.4 357.5,745.6 356.9,739.7C355.5,727.3 354.5,727.5 353.0,740.6C351.1,757.3 352.3,762.5 357.2,759.9C358.9,759.0 359.1,758.2 358.7,754.7ZM382.9,654.2C406.3,631.1 436.2,619.3 480.5,615.5C503.5,613.5 527.6,609.0 544.5,603.5C566.6,596.4 592.3,579.8 605.1,564.5C607.0,562.2 609.1,559.8 609.8,559.0C620.7,546.5 631.8,526.1 638.9,505.7C641.1,499.2 642.9,493.6 642.8,493.2C642.7,492.8 643.0,491.8 643.3,491.0C644.1,488.9 646.7,478.2 649.1,467.0C654.2,443.2 662.8,426.9 678.0,412.7C685.0,406.1 698.1,397.0 700.7,397.0C703.1,396.9 704.4,395.1 703.1,393.6C701.9,392.2 697.8,392.0 671.7,392.0C638.2,392.0 638.0,392.0 638.0,385.4C638.0,379.4 639.7,379.0 663.5,379.0L684.5,378.9L679.0,373.9C655.1,352.2 616.5,349.2 593.0,367.2C585.1,373.2 568.0,393.9 568.0,397.4C568.0,398.2 556.9,417.1 552.0,424.7L547.1,432.1L549.4,437.3C569.0,481.6 560.6,519.2 527.4,535.8C507.4,545.8 473.5,547.5 444.2,539.9L432.7,536.9L429.8,539.7C428.2,541.2 423.8,546.5 420.1,551.5C398.0,580.8 382.7,614.3 374.4,651.4C371.4,664.9 371.3,667.5 373.7,664.0C374.6,662.6 378.8,658.2 382.9,654.2ZM500.5,529.9C538.7,524.6 554.7,497.9 543.5,458.3C542.6,455.4 541.1,451.1 540.0,448.6L538.1,444.0L528.8,453.3C515.7,466.4 507.1,473.8 487.0,489.0C469.7,502.1 449.2,518.9 445.7,522.7C443.2,525.5 444.8,526.4 455.0,528.4C469.9,531.2 487.3,531.8 500.5,529.9ZM430.8,519.2C446.0,504.8 451.6,499.8 463.5,490.7C496.6,465.2 503.0,460.1 511.9,451.5C517.0,446.6 523.5,439.9 526.2,436.7L531.2,431.0L526.9,423.3C524.5,419.1 521.3,414.4 519.9,412.9C518.4,411.3 517.5,409.8 517.8,409.6C518.1,409.3 517.5,408.8 516.6,408.4C515.7,408.1 515.2,407.4 515.5,407.0C515.8,406.5 515.0,405.4 513.8,404.6C512.6,403.7 512.0,403.0 512.5,403.0C513.0,403.0 512.5,402.0 511.3,400.8C510.1,399.5 506.1,395.1 502.4,391.0C491.5,378.7 478.1,366.5 468.5,359.9C465.8,358.0 463.1,356.0 462.5,355.4C461.7,354.4 452.5,348.4 445.9,344.5C431.1,335.8 423.0,331.4 404.0,322.2C367.0,304.2 359.7,300.5 352.3,296.2C348.4,293.9 344.9,292.0 344.6,292.0C344.1,292.0 319.3,275.8 317.5,274.3C316.9,273.8 314.9,272.4 313.0,271.0C307.7,267.4 298.3,259.2 291.7,252.5C288.4,249.2 285.4,246.6 284.9,246.8C284.4,246.9 284.0,246.4 284.0,245.8C283.9,245.1 281.5,241.8 278.6,238.6L273.2,232.6L272.1,238.1C253.5,322.5 277.0,405.4 336.0,464.0C350.8,478.7 379.6,501.0 383.8,501.0C384.4,501.0 385.0,501.4 385.2,501.8C385.6,502.8 403.3,511.6 404.2,511.2C404.7,511.1 405.0,511.4 405.0,511.9C405.0,512.4 405.8,513.0 406.8,513.3C407.7,513.6 412.3,515.5 417.0,517.4C426.8,521.4 428.3,521.7 430.8,519.2ZM772.2,392.3C777.9,387.3 773.7,378.1 765.8,378.0C762.1,378.0 757.0,382.3 757.0,385.5C757.0,392.9 766.6,397.1 772.2,392.3Z"/></svg>
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MockingbirdCommerce = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const properties_1 = require("./generated/properties");
|
|
6
|
+
class MockingbirdCommerce {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.description = {
|
|
9
|
+
displayName: 'Mockingbird Commerce',
|
|
10
|
+
name: 'mockingbirdCommerce',
|
|
11
|
+
icon: { light: 'file:mockingbird.svg', dark: 'file:mockingbird.dark.svg' },
|
|
12
|
+
group: ['transform'],
|
|
13
|
+
version: 1,
|
|
14
|
+
subtitle: '={{$parameter["operation"].replace(/-/g, " ") + ": " + $parameter["resource"]}}',
|
|
15
|
+
description: 'Work with products, orders, inventory, reviews, and customers in Mockingbird',
|
|
16
|
+
defaults: {
|
|
17
|
+
name: 'Mockingbird Commerce',
|
|
18
|
+
},
|
|
19
|
+
usableAsTool: true,
|
|
20
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
22
|
+
credentials: [{ name: 'mockingbirdApi', required: false }],
|
|
23
|
+
requestDefaults: {
|
|
24
|
+
baseURL: '={{ ($credentials?.baseUrl || "https://mockingbird.n8n.io/v1").replace(/\\/+$/, "") }}',
|
|
25
|
+
headers: {
|
|
26
|
+
Accept: 'application/json',
|
|
27
|
+
'Content-Type': 'application/json',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
properties: properties_1.generatedProperties,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.MockingbirdCommerce = MockingbirdCommerce;
|
|
35
|
+
//# sourceMappingURL=MockingbirdCommerce.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MockingbirdCommerce.node.js","sourceRoot":"","sources":["../../../nodes/Commerce/MockingbirdCommerce.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,uDAA6D;AAE7D,MAAa,mBAAmB;IAAhC;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,IAAI,EAAE,2BAA2B,EAAE;YAC1E,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,iFAAiF;YAC3F,WAAW,EAAE,8EAA8E;YAC3F,QAAQ,EAAE;gBACT,IAAI,EAAE,sBAAsB;aAC5B;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;YAC1D,eAAe,EAAE;gBAChB,OAAO,EACN,wFAAwF;gBACzF,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE,gCAAmB;SAC/B,CAAC;IACH,CAAC;CAAA;AA1BD,kDA0BC"}
|