n8n-nodes-sudomock 0.1.0 → 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SudoMock Labs
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
@@ -15,7 +15,6 @@ n8n community node for the SudoMock API. Integrate mockup rendering into your n8
15
15
  - **Get Mockup**: Get detailed information about a specific mockup template
16
16
  - **Update Mockup**: Update the name of a mockup template
17
17
  - **Delete Mockup**: Delete a specific mockup template
18
- - **Delete All Mockups**: Delete all your mockup templates at once
19
18
 
20
19
  ### Rendering
21
20
  - **Render Mockup**: Generate mockups by combining templates with your designs
@@ -247,21 +246,6 @@ Deletion confirmation
247
246
 
248
247
  ---
249
248
 
250
- ### Delete All Mockups
251
-
252
- Delete all your mockup templates at once.
253
-
254
- **Parameters:** None
255
-
256
- **Output:**
257
- ```json
258
- {
259
- "deleted_count": 15
260
- }
261
- ```
262
-
263
- ---
264
-
265
249
  ## Example Workflows
266
250
 
267
251
  Ready-to-use n8n workflows are available in the [`examples/`](./examples) folder:
@@ -269,7 +253,7 @@ Ready-to-use n8n workflows are available in the [`examples/`](./examples) folder
269
253
  ### 1. Complete API Test Workflow
270
254
  **File**: [`examples/complete-test-workflow.json`](./examples/complete-test-workflow.json)
271
255
 
272
- Tests all 8 operations in sequence:
256
+ Tests all 7 operations in sequence:
273
257
  - Get Account Info → Upload PSD → Get Mockup → List Mockups
274
258
  - Render Mockup → Update Name → Verify Update → Delete Mockup
275
259
 
@@ -288,6 +272,19 @@ Demonstrates proper rate limit error handling with automatic retry logic:
288
272
 
289
273
  [View Details →](./examples/README.md#2-rate-limit-error-handling-test-rate-limit-test-workflowjson)
290
274
 
275
+ ### 3. Sequential Batch Render Workflow
276
+ **File**: [`examples/batch-render-workflow.json`](./examples/batch-render-workflow.json)
277
+
278
+ Demonstrates the power of n8n workflows with sequential batch processing:
279
+ - Renders 10 mockups one after another
280
+ - Uses different designs for each render
281
+ - 2-second delay between renders to avoid rate limits
282
+ - Progress tracking and final summary with all rendered URLs
283
+
284
+ Perfect for understanding batch processing and workflow automation.
285
+
286
+ [View Details →](./examples/README.md#3-sequential-batch-render-batch-render-workflowjson)
287
+
291
288
  ### Quick Start with Examples
292
289
 
293
290
  1. Import a workflow:
@@ -80,12 +80,6 @@ class SudoMock {
80
80
  description: 'Delete a specific mockup template',
81
81
  action: 'Delete a mockup',
82
82
  },
83
- {
84
- name: 'Delete All Mockups',
85
- value: 'deleteAllMockups',
86
- description: 'Delete all your mockup templates',
87
- action: 'Delete all mockups',
88
- },
89
83
  ],
90
84
  default: 'render',
91
85
  },
@@ -728,27 +722,19 @@ class SudoMock {
728
722
  // ========================================
729
723
  else if (operation === 'deleteMockup') {
730
724
  const mockupUuid = this.getNodeParameter('deleteMockupUuid', i);
731
- const response = await this.helpers.httpRequestWithAuthentication.call(this, 'sudoMockApi', {
725
+ await this.helpers.httpRequestWithAuthentication.call(this, 'sudoMockApi', {
732
726
  method: 'DELETE',
733
- url: `https://api.sudomock.com/api/v1/psd/${mockupUuid}`,
734
- json: true,
735
- });
736
- returnData.push({
737
- json: response,
738
- pairedItem: { item: i },
739
- });
740
- }
741
- // ========================================
742
- // DELETE ALL MOCKUPS
743
- // ========================================
744
- else if (operation === 'deleteAllMockups') {
745
- const response = await this.helpers.httpRequestWithAuthentication.call(this, 'sudoMockApi', {
746
- method: 'DELETE',
747
- url: 'https://api.sudomock.com/api/v1/mockups/all',
748
- json: true,
727
+ url: `https://api.sudomock.com/api/v1/mockups/${mockupUuid}`,
728
+ // No json: true - DELETE returns 204 No Content (no body)
749
729
  });
730
+ // Create manual success response for 204 No Content
750
731
  returnData.push({
751
- json: response,
732
+ json: {
733
+ success: true,
734
+ message: 'Mockup deleted successfully',
735
+ mockupUuid: mockupUuid,
736
+ statusCode: 204,
737
+ },
752
738
  pairedItem: { item: i },
753
739
  });
754
740
  }
package/package.json CHANGED
@@ -1,9 +1,12 @@
1
1
  {
2
2
  "name": "n8n-nodes-sudomock",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "n8n community node for SudoMock mockup rendering API - POD automation",
5
5
  "license": "MIT",
6
6
  "homepage": "https://sudomock.com",
7
+ "bugs": {
8
+ "url": "https://github.com/sudomock/n8n-nodes-sudomock/issues"
9
+ },
7
10
  "author": {
8
11
  "name": "SudoMock",
9
12
  "email": "hello@sudomock.com"