n8n-nodes-hamkar 3.1.9 → 3.2.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.
@@ -24,27 +24,12 @@ class HamkarSendSms {
24
24
  ],
25
25
  properties: [
26
26
  {
27
- name: 'phones',
28
- displayName: 'Phone Numbers',
29
- type: 'fixedCollection',
30
- default: {},
31
- placeholder: 'Add phone number',
32
- description: 'Receiver phone numbers',
33
- options: [
34
- {
35
- name: 'phone',
36
- displayName: 'Phone',
37
- values: [
38
- {
39
- name: 'number',
40
- displayName: 'Phone Number',
41
- type: 'string',
42
- default: '',
43
- placeholder: '09123456789',
44
- },
45
- ],
46
- },
47
- ],
27
+ displayName: 'Phone',
28
+ name: 'phone',
29
+ type: 'string',
30
+ required: true,
31
+ default: '',
32
+ description: 'Receiver phone number',
48
33
  },
49
34
  {
50
35
  displayName: 'Text',
@@ -58,16 +43,15 @@ class HamkarSendSms {
58
43
  };
59
44
  }
60
45
  async execute() {
61
- var _a;
62
46
  const items = this.getInputData();
63
47
  const returnData = [];
64
48
  for (let i = 0; i < items.length; i++) {
65
- const phones = ((_a = this.getNodeParameter('phones', i).phone) === null || _a === void 0 ? void 0 : _a.map((p) => p.number)) || [];
49
+ const phone = this.getNodeParameter('phone', i);
66
50
  const text = this.getNodeParameter('text', i);
67
51
  const response = await this.helpers.httpRequestWithAuthentication.call(this, 'hamkarApi', {
68
52
  method: 'POST',
69
53
  url: 'https://dev-api.hamkar.co/api/send-sms/',
70
- body: { phones, text },
54
+ body: { phone, text },
71
55
  json: true,
72
56
  });
73
57
  returnData.push(response);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-hamkar",
3
- "version": "3.1.9",
3
+ "version": "3.2.0",
4
4
  "description": "n8n node for Hamkar.co API - Contact and Record management operations",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",