@affeldt28/n8n-nodes-weclapp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +126 -0
  3. package/dist/credentials/WeclappApi.credentials.d.ts +10 -0
  4. package/dist/credentials/WeclappApi.credentials.js +50 -0
  5. package/dist/credentials/WeclappApi.credentials.js.map +1 -0
  6. package/dist/icons/weclapp.svg +20 -0
  7. package/dist/nodes/Weclapp/Weclapp.node.d.ts +5 -0
  8. package/dist/nodes/Weclapp/Weclapp.node.js +67 -0
  9. package/dist/nodes/Weclapp/Weclapp.node.js.map +1 -0
  10. package/dist/nodes/Weclapp/Weclapp.node.json +22 -0
  11. package/dist/nodes/Weclapp/descriptions/article/Article.resource.d.ts +2 -0
  12. package/dist/nodes/Weclapp/descriptions/article/Article.resource.js +95 -0
  13. package/dist/nodes/Weclapp/descriptions/article/Article.resource.js.map +1 -0
  14. package/dist/nodes/Weclapp/descriptions/article/count.operation.d.ts +28 -0
  15. package/dist/nodes/Weclapp/descriptions/article/count.operation.js +14 -0
  16. package/dist/nodes/Weclapp/descriptions/article/count.operation.js.map +1 -0
  17. package/dist/nodes/Weclapp/descriptions/article/query.operation.d.ts +28 -0
  18. package/dist/nodes/Weclapp/descriptions/article/query.operation.js +21 -0
  19. package/dist/nodes/Weclapp/descriptions/article/query.operation.js.map +1 -0
  20. package/dist/nodes/Weclapp/descriptions/article/queryId.operation.d.ts +28 -0
  21. package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js +13 -0
  22. package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js.map +1 -0
  23. package/dist/nodes/Weclapp/descriptions/index.d.ts +4 -0
  24. package/dist/nodes/Weclapp/descriptions/index.js +41 -0
  25. package/dist/nodes/Weclapp/descriptions/index.js.map +1 -0
  26. package/dist/nodes/Weclapp/descriptions/party/Party.resource.d.ts +2 -0
  27. package/dist/nodes/Weclapp/descriptions/party/Party.resource.js +95 -0
  28. package/dist/nodes/Weclapp/descriptions/party/Party.resource.js.map +1 -0
  29. package/dist/nodes/Weclapp/descriptions/party/count.operation.d.ts +28 -0
  30. package/dist/nodes/Weclapp/descriptions/party/count.operation.js +14 -0
  31. package/dist/nodes/Weclapp/descriptions/party/count.operation.js.map +1 -0
  32. package/dist/nodes/Weclapp/descriptions/party/create.operation.d.ts +28 -0
  33. package/dist/nodes/Weclapp/descriptions/party/create.operation.js +1654 -0
  34. package/dist/nodes/Weclapp/descriptions/party/create.operation.js.map +1 -0
  35. package/dist/nodes/Weclapp/descriptions/party/query.operation.d.ts +28 -0
  36. package/dist/nodes/Weclapp/descriptions/party/query.operation.js +21 -0
  37. package/dist/nodes/Weclapp/descriptions/party/query.operation.js.map +1 -0
  38. package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.d.ts +2 -0
  39. package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js +92 -0
  40. package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js.map +1 -0
  41. package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.d.ts +28 -0
  42. package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.js +14 -0
  43. package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.js.map +1 -0
  44. package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.d.ts +28 -0
  45. package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js +21 -0
  46. package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js.map +1 -0
  47. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.d.ts +2 -0
  48. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js +181 -0
  49. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js.map +1 -0
  50. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.d.ts +1 -0
  51. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.js +18 -0
  52. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.js.map +1 -0
  53. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.d.ts +2 -0
  54. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js +52 -0
  55. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js.map +1 -0
  56. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.d.ts +2 -0
  57. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.js +17 -0
  58. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.js.map +1 -0
  59. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.d.ts +2 -0
  60. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js +302 -0
  61. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js.map +1 -0
  62. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.d.ts +2 -0
  63. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js +37 -0
  64. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js.map +1 -0
  65. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.d.ts +8 -0
  66. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js +25 -0
  67. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js.map +1 -0
  68. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.d.ts +2 -0
  69. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js +80 -0
  70. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js.map +1 -0
  71. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.d.ts +2 -0
  72. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js +38 -0
  73. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js.map +1 -0
  74. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.d.ts +2 -0
  75. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.js +17 -0
  76. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.js.map +1 -0
  77. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.d.ts +2 -0
  78. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js +53 -0
  79. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js.map +1 -0
  80. package/dist/nodes/Weclapp/descriptions/shared/enum.d.ts +6 -0
  81. package/dist/nodes/Weclapp/descriptions/shared/enum.js +304 -0
  82. package/dist/nodes/Weclapp/descriptions/shared/enum.js.map +1 -0
  83. package/dist/nodes/Weclapp/descriptions/user/User.resource.d.ts +2 -0
  84. package/dist/nodes/Weclapp/descriptions/user/User.resource.js +99 -0
  85. package/dist/nodes/Weclapp/descriptions/user/User.resource.js.map +1 -0
  86. package/dist/nodes/Weclapp/descriptions/user/count.operation.d.ts +28 -0
  87. package/dist/nodes/Weclapp/descriptions/user/count.operation.js +14 -0
  88. package/dist/nodes/Weclapp/descriptions/user/count.operation.js.map +1 -0
  89. package/dist/nodes/Weclapp/descriptions/user/create.operation.d.ts +28 -0
  90. package/dist/nodes/Weclapp/descriptions/user/create.operation.js +243 -0
  91. package/dist/nodes/Weclapp/descriptions/user/create.operation.js.map +1 -0
  92. package/dist/nodes/Weclapp/descriptions/user/query.operation.d.ts +28 -0
  93. package/dist/nodes/Weclapp/descriptions/user/query.operation.js +21 -0
  94. package/dist/nodes/Weclapp/descriptions/user/query.operation.js.map +1 -0
  95. package/dist/package.json +57 -0
  96. package/dist/tsconfig.tsbuildinfo +1 -0
  97. package/package.json +57 -0
package/LICENSE.md ADDED
@@ -0,0 +1,19 @@
1
+ Copyright 2022 n8n
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
4
+ this software and associated documentation files (the "Software"), to deal in
5
+ the Software without restriction, including without limitation the rights to
6
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7
+ of the Software, and to permit persons to whom the Software is furnished to do
8
+ so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,126 @@
1
+ # n8n-nodes-weclapp
2
+
3
+ This is an n8n community node. It lets you use weclapp in your n8n workflows.
4
+
5
+ weclapp is a cloud-based ERP software that helps businesses manage their operations, including sales, inventory, and customer relationships. With this n8n node, you can integrate weclapp into your automated workflows to streamline your business processes.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
+
9
+ [Installation](#installation)
10
+ [Operations](#operations)
11
+ [Credentials](#credentials)
12
+ [Compatibility](#compatibility)
13
+ [Usage](#usage)
14
+ [Resources](#resources)
15
+
16
+ ## Installation
17
+
18
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.
19
+
20
+ ## Operations
21
+
22
+ This node currently supports the following weclapp resources and operations:
23
+
24
+ ### Article
25
+
26
+ | Operation | API | Implemented |
27
+ | --------------------------- | --------------------------------------------------------------------------------------------------------------------------- | ----------- |
28
+ | Query articles | [GET /article](https://www.weclapp.com/api/#get-/article) | ✅ |
29
+ | Create articles | [POST /article](https://www.weclapp.com/api/#post-/article) | 🚫 |
30
+ | Count articles | [GET /article/count](https://www.weclapp.com/api/#get-/article/count) | ✅ |
31
+ | Query article by ID | [GET /article/id/{id}](https://www.weclapp.com/api/#get-/article/id/-id-) | ✅ |
32
+ | Update article | [PUT /article/id/{id}](https://www.weclapp.com/api/#put-/article/id/-id-) | 🚫 |
33
+ | Delete article | [DELETE /article/id/{id}](https://www.weclapp.com/api/#delete-/article/id/-id-) | 🚫 |
34
+ | Change unit | [POST /article/id/{id}/changeUnit](https://www.weclapp.com/api/#post-/article/id/-id-/changeUnit) | 🚫 |
35
+ | Create datasheet PDF | [POST /article/id/{id}/createDatasheetPdf](https://www.weclapp.com/api/#post-/article/id/-id-/createDatasheetPdf) | 🚫 |
36
+ | Create label PDF | [POST /article/id/{id}/createLabelPdf](https://www.weclapp.com/api/#post-/article/id/-id-/createLabelPdf) | 🚫 |
37
+ | Download article image | [GET /article/id/{id}/downloadArticleImage](https://www.weclapp.com/api/#get-/article/id/-id-/downloadArticleImage) | 🚫 |
38
+ | Download main article image | [GET /article/id/{id}/downloadMainArticleImage](https://www.weclapp.com/api/#get-/article/id/-id-/downloadMainArticleImage) | 🚫 |
39
+ | Packaging unit structure | [GET /article/id/{id}/packagingUnitStructure](https://www.weclapp.com/api/#get-/article/id/-id-/packagingUnitStructure) | 🚫 |
40
+ | Upload article image | [POST /article/id/{id}/uploadArticleImage](https://www.weclapp.com/api/#post-/article/id/-id-/uploadArticleImage) | 🚫 |
41
+
42
+ ### Party
43
+
44
+ | Operation | API | Implemented |
45
+ | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
46
+ | Query party | [GET /party](https://www.weclapp.com/api/#get-/party) | ✅ |
47
+ | Create party | [POST /party](https://www.weclapp.com/api/#post-/party) | ✅ |
48
+ | Count parties | [GET /party/count](https://www.weclapp.com/api/#get-/party/count) | ✅ |
49
+ | Query party by id | [GET /party/id/{id}](https://www.weclapp.com/api/#get-/party/id/-id-) | 🚫 |
50
+ | Update party | [PUT /party/id/{id}](https://www.weclapp.com/api/#put-/party/id/-id-) | 🚫 |
51
+ | Delete party | [DELETE /party/id/{id}](https://www.weclapp.com/api/#delete-/party/id/-id-) | 🚫 |
52
+ | Create public page | [POST /party/id/{id}/createPublicPage](https://www.weclapp.com/api/#post-/party/id/-id-/createPublicPage) | 🚫 |
53
+ | Download image | [GET /party/id/{id}/downloadImage](https://www.weclapp.com/api/#get-/party/id/-id-/downloadImage) | 🚫 |
54
+ | Transfer address to open records | [POST /party/id/{id}/startTransferAddressesToOpenRecords](https://www.weclapp.com/api/#post-/party/id/-id-/startTransferAddressesToOpenRecords) | 🚫 |
55
+ | Transfer email to open records | [POST /party/id/{id}/startTransferEmailAddressesToOpenRecords](https://www.weclapp.com/api/#post-/party/id/-id-/startTransferEmailAddressesToOpenRecords) | 🚫 |
56
+ | Upload image | [POST /party/id/{id}/uploadImage](https://www.weclapp.com/api/#post-/party/id/-id-/uploadImage) | 🚫 |
57
+
58
+ ### Recurring Invoice
59
+
60
+ > [!CAUTION]
61
+ > This is an unofficial implementation of the weclapp API. The following operations are implemented. But it's not officially documented in the weclapp API documentation. Use at your own risk.
62
+
63
+ | Operation | API | Implemented |
64
+ | ------------------------ | --------------------------------------------------------------------------------------- | ----------- |
65
+ | Query recurring invoices | [GET /recurringInvoice](https://www.weclapp.com/api/#get-/recurringInvoice) | ✅ |
66
+ | Count recurring invoices | [GET /recurringInvoice/count](https://www.weclapp.com/api/#get-/recurringInvoice/count) | ✅ |
67
+
68
+ ### User
69
+
70
+ | Operation | API | Implemented |
71
+ | --------------------- | --------------------------------------------------------------------------------------------------------- | ----------- |
72
+ | Query users | [GET /user](https://www.weclapp.com/api/#get-/user) | ✅ |
73
+ | Create user | [POST /user](https://www.weclapp.com/api/#post-/user) | ✅ |
74
+ | Count users | [GET /user/count](https://www.weclapp.com/api/#get-/user/count) | ✅ |
75
+ | Current user | [GET /user/currentUser](https://www.weclapp.com/api/#get-/user/currentUser) | 🚫 |
76
+ | Query user by ID | [GET /user/id/{id}](https://www.weclapp.com/api/#get-/user/id/-id-) | 🚫 |
77
+ | Update user | [PUT /user/id/{id}](https://www.weclapp.com/api/#put-/user/id/-id-) | 🚫 |
78
+ | Delete mfa device | [POST /user/id/{id}/deleteMfaDevice](https://www.weclapp.com/api/#post-/user/id/-id-/deleteMfaDevice) | 🚫 |
79
+ | Invite user | [POST /user/id/{id}/invite](https://www.weclapp.com/api/#post-/user/id/-id-/invite) | 🚫 |
80
+ | Read user mfa devices | [GET /user/id/{id}/readMfaDevices](https://www.weclapp.com/api/#get-/user/id/-id-/readMfaDevices) | 🚫 |
81
+ | Soft delete user | [POST /user/id/{id}/softDelete](https://www.weclapp.com/api/#post-/user/id/-id-/softDelete) | 🚫 |
82
+ | User image | [GET /user/id/{id}/userImage](https://www.weclapp.com/api/#get-/user/id/-id-/userImage) | 🚫 |
83
+ | User image thumbnail | [GET /user/id/{id}/userImageThumbnail](https://www.weclapp.com/api/#get-/user/id/-id-/userImageThumbnail) | 🚫 |
84
+
85
+ ## Credentials
86
+
87
+ This node uses the **Weclapp API** credential.
88
+
89
+ You need:
90
+
91
+ * A weclapp tenant, available at `https://<TENANT>.weclapp.com`
92
+ * An API token from your weclapp account
93
+
94
+ To configure the credential in n8n:
95
+
96
+ 1. Create a new **Weclapp API** credential.
97
+ 2. Enter your **Tenant**. For `https://example.weclapp.com`, enter `example`.
98
+ 3. Enter your **API Token**. You can configure it in weclapp under **My settings > API**.
99
+ 4. Save the credential.
100
+
101
+ The node sends the token as the `AuthenticationToken` header and calls the weclapp API at `https://<TENANT>.weclapp.com/webapp/api/v2`.
102
+
103
+ ## Compatibility
104
+
105
+ This package uses the n8n community node API version 1 and depends on `n8n-workflow`.
106
+
107
+ No specific minimum n8n version is pinned in this package yet.
108
+
109
+ ## Usage
110
+
111
+ For query operations, use the available query parameters to shape the weclapp request:
112
+
113
+ * **Page**, **Page Size**, and **Offset** control pagination.
114
+ * **Sort** adds one or more sort criteria.
115
+ * **Filter Mode** supports basic n8n filters or advanced weclapp filter operators.
116
+ * **Properties** limits the returned fields.
117
+ * **Include Referenced Entities** includes referenced entities in the response.
118
+ * **Serialize Nulls** controls whether null values are included.
119
+ * **Additional Properties** is available for article queries.
120
+
121
+ For the **User > Create** operation, enable **Dry Run** to validate the request without creating the user in weclapp.
122
+
123
+ ## Resources
124
+
125
+ * [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
126
+ * [weclapp api documentation](https://www.weclapp.com/api/)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
2
+ export declare class WeclappApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WeclappApi = void 0;
4
+ class WeclappApi {
5
+ constructor() {
6
+ this.name = 'weclappApi';
7
+ this.displayName = 'Weclapp API';
8
+ this.icon = { light: 'file:../icons/weclapp.svg', dark: 'file:../icons/weclapp.svg' };
9
+ this.documentationUrl = 'https://www.weclapp.com/api/#overview--security-and-authentication';
10
+ this.properties = [
11
+ {
12
+ displayName: 'Tenant',
13
+ name: 'tenant',
14
+ type: 'string',
15
+ typeOptions: { password: false },
16
+ required: true,
17
+ default: '',
18
+ description: 'The base URL of your weclapp instance is https://&lt;TENANT&gt;.weclapp.com. Enter the &lt;TENANT&gt; part here.',
19
+ hint: 'The base URL of your weclapp instance is <code>https://&lt;TENANT&gt;.weclapp.com</code>. Enter the <code>&lt;TENANT&gt;</code> part here.',
20
+ },
21
+ {
22
+ displayName: 'API Token',
23
+ name: 'apiToken',
24
+ type: 'string',
25
+ typeOptions: { password: true },
26
+ required: true,
27
+ default: '',
28
+ description: 'The token is configurable in your weclapp account under My settings &gt; API.',
29
+ hint: 'The token is configurable in your weclapp account under <code>My settings &gt; API.</code>',
30
+ },
31
+ ];
32
+ this.authenticate = {
33
+ type: 'generic',
34
+ properties: {
35
+ headers: {
36
+ AuthenticationToken: '={{$credentials.apiToken}}',
37
+ },
38
+ },
39
+ };
40
+ this.test = {
41
+ request: {
42
+ baseURL: '={{ `https://${$credentials.tenant}.weclapp.com/webapp/api/v2` }}',
43
+ url: '/user/count',
44
+ method: 'GET',
45
+ },
46
+ };
47
+ }
48
+ }
49
+ exports.WeclappApi = WeclappApi;
50
+ //# sourceMappingURL=WeclappApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WeclappApi.credentials.js","sourceRoot":"","sources":["../../credentials/WeclappApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,2BAA2B,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;QAEvF,qBAAgB,GAAG,oEAAoE,CAAC;QAExF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;gBAChC,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,kHAAkH;gBACnH,IAAI,EAAE,4IAA4I;aAClJ;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,+EAA+E;gBAChF,IAAI,EAAE,4FAA4F;aAClG;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,mBAAmB,EAAE,4BAA4B;iBACjD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,mEAAmE;gBAC5E,GAAG,EAAE,aAAa;gBAClB,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAlDD,gCAkDC"}
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg id="logosandtypes_com" data-name="logosandtypes com" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150">
3
+ <defs>
4
+ <style>
5
+ .cls-1 {
6
+ fill: none;
7
+ }
8
+
9
+ .cls-2 {
10
+ fill: #12da9d;
11
+ }
12
+ </style>
13
+ </defs>
14
+ <path class="cls-1" d="M0,0H150V150H0V0Z"/>
15
+ <g>
16
+ <path class="cls-2" d="M44.89,32.82l-9.81,64.58c-.36,11.47-16.99,11.46-17.34,0h0L8.15,32.82c-1.68-5.73,2.72-11.72,8.67-11.87h19.4c5.97,.14,10.34,6.15,8.67,11.87Z"/>
17
+ <path class="cls-2" d="M141.88,32.82l-9.58,64.58c-1.6,10.04-16.2,9.81-17.34,0l-9.81-64.58c-1.68-5.73,2.72-11.72,8.67-11.87h19.4c5.97,.14,10.34,6.15,8.67,11.87Z"/>
18
+ <path class="cls-2" d="M56.53,122.28l9.81-64.81c1.6-9.81,16.2-9.58,17.34,0l9.81,64.81c1.32,5.72-3.04,11.41-8.9,11.64h-19.17c-5.87-.22-10.21-5.92-8.9-11.64Z"/>
19
+ </g>
20
+ </svg>
@@ -0,0 +1,5 @@
1
+ import { type INodeType, type INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class Weclapp implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {};
5
+ }
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Weclapp = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const descriptions_1 = require("./descriptions");
6
+ class Weclapp {
7
+ constructor() {
8
+ this.description = {
9
+ displayName: 'Weclapp',
10
+ name: 'weclapp',
11
+ icon: { light: 'file:../../icons/weclapp.svg', dark: 'file:../../icons/weclapp.svg' },
12
+ group: ['input'],
13
+ subtitle: '={{ $parameter["operation"] + ": " + $parameter["resource"] }}',
14
+ version: 1,
15
+ description: 'Interact with weclapp API',
16
+ defaults: {
17
+ name: 'Weclapp',
18
+ },
19
+ usableAsTool: true,
20
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
21
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
22
+ credentials: [
23
+ {
24
+ name: 'weclappApi',
25
+ required: true,
26
+ },
27
+ ],
28
+ requestDefaults: {
29
+ baseURL: '=https://{{ $credentials.tenant }}.weclapp.com/webapp/api/v2',
30
+ },
31
+ properties: [
32
+ {
33
+ displayName: 'Resource',
34
+ name: 'resource',
35
+ type: 'options',
36
+ noDataExpression: true,
37
+ options: [
38
+ {
39
+ name: 'User',
40
+ value: 'user',
41
+ },
42
+ {
43
+ name: 'Article',
44
+ value: 'article',
45
+ },
46
+ {
47
+ name: 'Recurring Invoice',
48
+ value: 'recurringInvoice',
49
+ },
50
+ {
51
+ name: 'Party',
52
+ value: 'party',
53
+ },
54
+ ],
55
+ default: 'user',
56
+ },
57
+ ...descriptions_1.article.description,
58
+ ...descriptions_1.party.description,
59
+ ...descriptions_1.recurringInvoice.description,
60
+ ...descriptions_1.user.description,
61
+ ],
62
+ };
63
+ this.methods = {};
64
+ }
65
+ }
66
+ exports.Weclapp = Weclapp;
67
+ //# sourceMappingURL=Weclapp.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Weclapp.node.js","sourceRoot":"","sources":["../../../nodes/Weclapp/Weclapp.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,iDAAwE;AAExE,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,SAAS;YACtB,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,EAAE,KAAK,EAAE,8BAA8B,EAAE,IAAI,EAAE,8BAA8B,EAAE;YACrF,KAAK,EAAE,CAAC,OAAO,CAAC;YAChB,QAAQ,EAAE,gEAAgE;YAC1E,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE;gBACT,IAAI,EAAE,SAAS;aACf;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACd;aACD;YACD,eAAe,EAAE;gBAChB,OAAO,EAAE,8DAA8D;aACvE;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;wBACD;4BACC,IAAI,EAAE,mBAAmB;4BACzB,KAAK,EAAE,kBAAkB;yBACzB;wBACD;4BACC,IAAI,EAAE,OAAO;4BACb,KAAK,EAAE,OAAO;yBACd;qBACD;oBACD,OAAO,EAAE,MAAM;iBACf;gBAED,GAAG,sBAAO,CAAC,WAAW;gBACtB,GAAG,oBAAK,CAAC,WAAW;gBACpB,GAAG,+BAAgB,CAAC,WAAW;gBAC/B,GAAG,mBAAI,CAAC,WAAW;aACnB;SACD,CAAC;QACF,YAAO,GAAG,EAAE,CAAC;IACd,CAAC;CAAA;AA1DD,0BA0DC"}
@@ -0,0 +1,22 @@
1
+ {
2
+ "node": "n8n-nodes-weclapp-weclapp",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": [
6
+ "Finance & Accounting",
7
+ "Productivity",
8
+ "Sales"
9
+ ],
10
+ "resources": {
11
+ "credentialDocumentation": [
12
+ {
13
+ "url": "https://www.weclapp.com/api/#overview--security-and-authentication"
14
+ }
15
+ ],
16
+ "primaryDocumentation": [
17
+ {
18
+ "url": "https://www.weclapp.com/api/"
19
+ }
20
+ ]
21
+ }
22
+ }
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const description: INodeProperties[];
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.description = void 0;
37
+ const count = __importStar(require("./count.operation"));
38
+ const query = __importStar(require("./query.operation"));
39
+ const queryId = __importStar(require("./queryId.operation"));
40
+ exports.description = [
41
+ {
42
+ name: 'operation',
43
+ displayName: 'Operation',
44
+ type: 'options',
45
+ default: 'count',
46
+ noDataExpression: true,
47
+ displayOptions: {
48
+ show: {
49
+ resource: ['article'],
50
+ },
51
+ },
52
+ options: [
53
+ {
54
+ name: 'Query',
55
+ description: 'Query Articles',
56
+ value: 'query',
57
+ routing: {
58
+ request: {
59
+ method: 'GET',
60
+ url: '/article',
61
+ },
62
+ },
63
+ action: 'Query Articles',
64
+ },
65
+ {
66
+ name: 'Count',
67
+ description: 'Count Articles',
68
+ value: 'count',
69
+ routing: {
70
+ request: {
71
+ method: 'GET',
72
+ url: '/article/count',
73
+ },
74
+ },
75
+ action: 'Count Articles',
76
+ },
77
+ {
78
+ name: 'Query by ID',
79
+ description: 'Query Article by ID',
80
+ value: 'queryId',
81
+ routing: {
82
+ request: {
83
+ method: 'GET',
84
+ url: '/article/id/{{ $parameter["articleId"] }}',
85
+ },
86
+ },
87
+ action: 'Query Article by ID',
88
+ },
89
+ ],
90
+ },
91
+ ...query.description,
92
+ ...count.description,
93
+ ...queryId.description,
94
+ ];
95
+ //# sourceMappingURL=Article.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Article.resource.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/article/Article.resource.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yDAA2C;AAC3C,yDAA2C;AAC3C,6DAA+C;AAElC,QAAA,WAAW,GAAsB;IAC7C;QACC,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,OAAO;QAChB,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,gBAAgB;gBAC7B,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,UAAU;qBACf;iBACD;gBACD,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,WAAW,EAAE,gBAAgB;gBAC7B,KAAK,EAAE,OAAO;gBACd,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,gBAAgB;qBACrB;iBACD;gBACD,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,WAAW,EAAE,qBAAqB;gBAClC,KAAK,EAAE,SAAS;gBAChB,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,2CAA2C;qBAChD;iBACD;gBACD,MAAM,EAAE,qBAAqB;aAC7B;SACD;KACD;IACD,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,KAAK,CAAC,WAAW;IACpB,GAAG,OAAO,CAAC,WAAW;CACtB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const QueryParameter_1 = require("../shared/QueryParameter");
6
+ const properties = [...QueryParameter_1.filterQueryParameters];
7
+ const displayOptions = {
8
+ show: {
9
+ resource: ['article'],
10
+ operation: ['count'],
11
+ },
12
+ };
13
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
14
+ //# sourceMappingURL=count.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"count.operation.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/article/count.operation.ts"],"names":[],"mappings":";;;AAAA,+CAA0E;AAC1E,6DAAiE;AAEjE,MAAM,UAAU,GAAsB,CAAC,GAAG,sCAAqB,CAAC,CAAC;AAEjE,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,SAAS,CAAC;QACrB,SAAS,EAAE,CAAC,OAAO,CAAC;KACpB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const QueryParameter_1 = require("../shared/QueryParameter");
6
+ const properties = [
7
+ ...QueryParameter_1.paginationQueryParameters,
8
+ QueryParameter_1.serializeNullsQueryParameter,
9
+ QueryParameter_1.sortQueryParameter,
10
+ ...QueryParameter_1.filterQueryParameters,
11
+ QueryParameter_1.propertiesQueryParameter,
12
+ QueryParameter_1.includeReferencedEntitiesQueryParameter,
13
+ ];
14
+ const displayOptions = {
15
+ show: {
16
+ resource: ['article'],
17
+ operation: ['query'],
18
+ },
19
+ };
20
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
21
+ //# sourceMappingURL=query.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query.operation.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/article/query.operation.ts"],"names":[],"mappings":";;;AAAA,+CAA0E;AAC1E,6DAOkC;AAElC,MAAM,UAAU,GAAsB;IACrC,GAAG,0CAAyB;IAC5B,6CAA4B;IAC5B,mCAAkB;IAClB,GAAG,sCAAqB;IACxB,yCAAwB;IACxB,wDAAuC;CACvC,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,SAAS,CAAC;QACrB,SAAS,EAAE,CAAC,OAAO,CAAC;KACpB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { type INodeProperties } from 'n8n-workflow';
2
+ export declare const description: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.description = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const properties = [];
6
+ const displayOptions = {
7
+ show: {
8
+ resource: ['article'],
9
+ operation: ['queryId'],
10
+ },
11
+ };
12
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
13
+ //# sourceMappingURL=queryId.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryId.operation.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/article/queryId.operation.ts"],"names":[],"mappings":";;;AAAA,+CAA0E;AAE1E,MAAM,UAAU,GAAsB,EAAE,CAAC;AAEzC,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,SAAS,CAAC;QACrB,SAAS,EAAE,CAAC,SAAS,CAAC;KACtB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * as article from './article/Article.resource';
2
+ export * as party from './party/Party.resource';
3
+ export * as recurringInvoice from './recurringInvoice/RecurringInvoice.resource';
4
+ export * as user from './user/User.resource';