@affeldt28/n8n-nodes-weclapp 1.0.1 → 1.1.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 (76) hide show
  1. package/README.md +11 -0
  2. package/dist/nodes/Weclapp/Weclapp.node.js +5 -0
  3. package/dist/nodes/Weclapp/Weclapp.node.js.map +1 -1
  4. package/dist/nodes/Weclapp/Weclapp.node.json +1 -1
  5. package/dist/nodes/Weclapp/descriptions/article/Article.resource.js +9 -9
  6. package/dist/nodes/Weclapp/descriptions/article/Article.resource.js.map +1 -1
  7. package/dist/nodes/Weclapp/descriptions/article/query.operation.js +1 -3
  8. package/dist/nodes/Weclapp/descriptions/article/query.operation.js.map +1 -1
  9. package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js +13 -2
  10. package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js.map +1 -1
  11. package/dist/nodes/Weclapp/descriptions/index.d.ts +1 -0
  12. package/dist/nodes/Weclapp/descriptions/index.js +2 -1
  13. package/dist/nodes/Weclapp/descriptions/index.js.map +1 -1
  14. package/dist/nodes/Weclapp/descriptions/party/Party.resource.js +7 -7
  15. package/dist/nodes/Weclapp/descriptions/party/Party.resource.js.map +1 -1
  16. package/dist/nodes/Weclapp/descriptions/party/create.operation.js +183 -183
  17. package/dist/nodes/Weclapp/descriptions/party/create.operation.js.map +1 -1
  18. package/dist/nodes/Weclapp/descriptions/party/query.operation.js +1 -3
  19. package/dist/nodes/Weclapp/descriptions/party/query.operation.js.map +1 -1
  20. package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js +5 -5
  21. package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js.map +1 -1
  22. package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js +1 -3
  23. package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js.map +1 -1
  24. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js +16 -16
  25. package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js.map +1 -1
  26. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js +1 -1
  27. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js.map +1 -1
  28. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js +1 -1
  29. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js.map +1 -1
  30. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js +2 -2
  31. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js.map +1 -1
  32. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.d.ts +1 -0
  33. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js +1 -0
  34. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js.map +1 -1
  35. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/options.d.ts +2 -0
  36. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/options.js +19 -0
  37. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/options.js.map +1 -0
  38. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js +3 -3
  39. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js.map +1 -1
  40. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js +2 -2
  41. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js.map +1 -1
  42. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js +2 -2
  43. package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js.map +1 -1
  44. package/dist/nodes/Weclapp/descriptions/user/User.resource.js +6 -6
  45. package/dist/nodes/Weclapp/descriptions/user/User.resource.js.map +1 -1
  46. package/dist/nodes/Weclapp/descriptions/user/create.operation.js +13 -13
  47. package/dist/nodes/Weclapp/descriptions/user/create.operation.js.map +1 -1
  48. package/dist/nodes/Weclapp/descriptions/user/query.operation.js +1 -3
  49. package/dist/nodes/Weclapp/descriptions/user/query.operation.js.map +1 -1
  50. package/dist/nodes/Weclapp/descriptions/webhook/Webhook.resource.d.ts +2 -0
  51. package/dist/nodes/Weclapp/descriptions/webhook/Webhook.resource.js +137 -0
  52. package/dist/nodes/Weclapp/descriptions/webhook/Webhook.resource.js.map +1 -0
  53. package/dist/nodes/Weclapp/descriptions/webhook/count.operation.d.ts +28 -0
  54. package/dist/nodes/Weclapp/descriptions/webhook/count.operation.js +14 -0
  55. package/dist/nodes/Weclapp/descriptions/webhook/count.operation.js.map +1 -0
  56. package/dist/nodes/Weclapp/descriptions/webhook/create.operation.d.ts +28 -0
  57. package/dist/nodes/Weclapp/descriptions/webhook/create.operation.js +15 -0
  58. package/dist/nodes/Weclapp/descriptions/webhook/create.operation.js.map +1 -0
  59. package/dist/nodes/Weclapp/descriptions/webhook/delete.operation.d.ts +28 -0
  60. package/dist/nodes/Weclapp/descriptions/webhook/delete.operation.js +15 -0
  61. package/dist/nodes/Weclapp/descriptions/webhook/delete.operation.js.map +1 -0
  62. package/dist/nodes/Weclapp/descriptions/webhook/query.operation.d.ts +28 -0
  63. package/dist/nodes/Weclapp/descriptions/webhook/query.operation.js +19 -0
  64. package/dist/nodes/Weclapp/descriptions/webhook/query.operation.js.map +1 -0
  65. package/dist/nodes/Weclapp/descriptions/webhook/queryId.operation.d.ts +28 -0
  66. package/dist/nodes/Weclapp/descriptions/webhook/queryId.operation.js +14 -0
  67. package/dist/nodes/Weclapp/descriptions/webhook/queryId.operation.js.map +1 -0
  68. package/dist/nodes/Weclapp/descriptions/webhook/shared.d.ts +3 -0
  69. package/dist/nodes/Weclapp/descriptions/webhook/shared.js +158 -0
  70. package/dist/nodes/Weclapp/descriptions/webhook/shared.js.map +1 -0
  71. package/dist/nodes/Weclapp/descriptions/webhook/update.operation.d.ts +28 -0
  72. package/dist/nodes/Weclapp/descriptions/webhook/update.operation.js +19 -0
  73. package/dist/nodes/Weclapp/descriptions/webhook/update.operation.js.map +1 -0
  74. package/dist/package.json +4 -4
  75. package/dist/tsconfig.tsbuildinfo +1 -1
  76. package/package.json +4 -4
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createUpdateProperties = exports.webhookIdParameter = void 0;
4
+ exports.webhookIdParameter = {
5
+ name: 'webhookId',
6
+ displayName: 'Webhook ID',
7
+ type: 'resourceLocator',
8
+ default: {
9
+ mode: 'id',
10
+ value: '',
11
+ },
12
+ modes: [
13
+ {
14
+ displayName: 'By ID',
15
+ name: 'id',
16
+ type: 'string',
17
+ placeholder: 'e.g. 12345',
18
+ },
19
+ ],
20
+ required: true,
21
+ };
22
+ exports.createUpdateProperties = {
23
+ name: 'attributes',
24
+ displayName: 'Attributes',
25
+ type: 'collection',
26
+ default: {},
27
+ placeholder: 'Add Attribute',
28
+ options: [
29
+ {
30
+ name: 'atCreate',
31
+ displayName: 'At Create',
32
+ description: 'If true, the webhook will be triggered when the resource is created.',
33
+ type: 'boolean',
34
+ default: false,
35
+ routing: {
36
+ send: {
37
+ type: 'body',
38
+ property: 'atCreate',
39
+ },
40
+ },
41
+ },
42
+ {
43
+ name: 'atDelete',
44
+ displayName: 'At Delete',
45
+ description: 'If true, the webhook will be triggered when the resource is deleted.',
46
+ type: 'boolean',
47
+ default: false,
48
+ routing: {
49
+ send: {
50
+ type: 'body',
51
+ property: 'atDelete',
52
+ },
53
+ },
54
+ },
55
+ {
56
+ name: 'atUpdate',
57
+ displayName: 'At Update',
58
+ description: 'If true, the webhook will be triggered when the resource is updated.',
59
+ type: 'boolean',
60
+ default: false,
61
+ routing: {
62
+ send: {
63
+ type: 'body',
64
+ property: 'atUpdate',
65
+ },
66
+ },
67
+ },
68
+ {
69
+ name: 'deactivatedDate',
70
+ displayName: 'Deactivated Date',
71
+ description: 'The date when the resource was deactivated.',
72
+ type: 'dateTime',
73
+ default: '',
74
+ routing: {
75
+ send: {
76
+ type: 'body',
77
+ property: 'deactivatedDate',
78
+ value: '={{ Date.parse($value) }}',
79
+ },
80
+ },
81
+ },
82
+ {
83
+ name: 'entityName',
84
+ displayName: 'Entity Name',
85
+ description: 'Name of the entity',
86
+ type: 'string',
87
+ typeOptions: {
88
+ maxLength: 255,
89
+ },
90
+ default: '',
91
+ placeholder: 'Enter entity name',
92
+ routing: {
93
+ send: {
94
+ type: 'body',
95
+ property: 'entityName',
96
+ },
97
+ },
98
+ },
99
+ {
100
+ name: 'errorMessage',
101
+ displayName: 'Error Message',
102
+ description: 'Message describing the error',
103
+ type: 'string',
104
+ typeOptions: {
105
+ maxLength: 255,
106
+ },
107
+ default: '',
108
+ placeholder: 'Enter error message',
109
+ routing: {
110
+ send: {
111
+ type: 'body',
112
+ property: 'errorMessage',
113
+ },
114
+ },
115
+ },
116
+ {
117
+ name: 'requestMethod',
118
+ displayName: 'Request Method',
119
+ description: 'The HTTP method for the request',
120
+ type: 'options',
121
+ default: '',
122
+ options: [
123
+ {
124
+ name: 'GET',
125
+ value: 'GET',
126
+ },
127
+ {
128
+ name: 'POST',
129
+ value: 'POST',
130
+ },
131
+ ],
132
+ routing: {
133
+ send: {
134
+ type: 'body',
135
+ property: 'requestMethod',
136
+ },
137
+ },
138
+ },
139
+ {
140
+ name: 'url',
141
+ displayName: 'URL',
142
+ description: 'The URL to which the webhook will be sent',
143
+ type: 'string',
144
+ typeOptions: {
145
+ maxLength: 1000,
146
+ },
147
+ default: '',
148
+ placeholder: 'Enter URL',
149
+ routing: {
150
+ send: {
151
+ type: 'body',
152
+ property: 'url',
153
+ },
154
+ },
155
+ },
156
+ ],
157
+ };
158
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/webhook/shared.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IAClD,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YA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d,WAAW,EAAE;gBACZ,SAAS,EAAE,IAAI;aACf;YACD,OAAO,EAAE,EAAE;YACX,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE;gBACR,IAAI,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,QAAQ,EAAE,KAAK;iBACf;aACD;SACD;KACD;CACD,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,19 @@
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 shared_1 = require("./shared");
7
+ const properties = [
8
+ shared_1.webhookIdParameter,
9
+ QueryParameter_1.dryRunQueryParameter,
10
+ shared_1.createUpdateProperties,
11
+ ];
12
+ const displayOptions = {
13
+ show: {
14
+ resource: ['webhook'],
15
+ operation: ['update'],
16
+ },
17
+ };
18
+ exports.description = (0, n8n_workflow_1.updateDisplayOptions)(displayOptions, properties);
19
+ //# sourceMappingURL=update.operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Weclapp/descriptions/webhook/update.operation.ts"],"names":[],"mappings":";;;AAAA,+CAA0E;AAC1E,6DAAgE;AAChE,qCAAsE;AAEtE,MAAM,UAAU,GAAsB;IACrC,2BAAkB;IAClB,qCAAoB;IACpB,+BAAsB;CACtB,CAAC;AAEF,MAAM,cAAc,GAAG;IACtB,IAAI,EAAE;QACL,QAAQ,EAAE,CAAC,SAAS,CAAC;QACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;KACrB;CACD,CAAC;AAEW,QAAA,WAAW,GAAG,IAAA,mCAAoB,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@affeldt28/n8n-nodes-weclapp",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "n8n node for Weclapp",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/affeldt28/n8n-nodes-weclapp",
@@ -11,7 +11,7 @@
11
11
  "erp"
12
12
  ],
13
13
  "author": {
14
- "name": "Marvin Affeldt",
14
+ "name": "affeldt28",
15
15
  "email": "code@affeldt.dev"
16
16
  },
17
17
  "repository": {
@@ -46,9 +46,9 @@
46
46
  "access": "public"
47
47
  },
48
48
  "devDependencies": {
49
- "@biomejs/biome": "2.5.1",
49
+ "@biomejs/biome": "2.5.2",
50
50
  "@n8n/node-cli": "*",
51
- "release-it": "20.2.0",
51
+ "release-it": "20.2.1",
52
52
  "typescript": "6.0.3"
53
53
  },
54
54
  "peerDependencies": {