@orchesty/connector-raynet-crm 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 (118) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +190 -0
  3. package/coverage/clover.xml +283 -0
  4. package/coverage/coverage-final.json +13 -0
  5. package/coverage/lcov-report/base.css +224 -0
  6. package/coverage/lcov-report/block-navigation.js +87 -0
  7. package/coverage/lcov-report/favicon.png +0 -0
  8. package/coverage/lcov-report/index.html +161 -0
  9. package/coverage/lcov-report/prettify.css +1 -0
  10. package/coverage/lcov-report/prettify.js +2 -0
  11. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  12. package/coverage/lcov-report/sorter.js +210 -0
  13. package/coverage/lcov-report/src/Batch/RaynetCRMGetActivities.ts.html +385 -0
  14. package/coverage/lcov-report/src/Batch/RaynetCRMGetClients.ts.html +679 -0
  15. package/coverage/lcov-report/src/Batch/RaynetCRMGetContactPersons.ts.html +553 -0
  16. package/coverage/lcov-report/src/Batch/RaynetCRMSubscribeWebhook.ts.html +355 -0
  17. package/coverage/lcov-report/src/Batch/RaynetCRMUnregisterWebhook.ts.html +241 -0
  18. package/coverage/lcov-report/src/Batch/index.html +176 -0
  19. package/coverage/lcov-report/src/Connector/RaynetCRMGetVoipByTel.ts.html +856 -0
  20. package/coverage/lcov-report/src/Connector/RaynetCRMUniversalActivityDetail.ts.html +448 -0
  21. package/coverage/lcov-report/src/Connector/RaynetCRMUniversalCreateActivity.ts.html +223 -0
  22. package/coverage/lcov-report/src/Connector/RaynetCRMUniversalDeleteActivity.ts.html +184 -0
  23. package/coverage/lcov-report/src/Connector/RaynetCRMUniversalUpdateActivity.ts.html +205 -0
  24. package/coverage/lcov-report/src/Connector/index.html +176 -0
  25. package/coverage/lcov-report/src/RaynetCRMApplication.ts.html +331 -0
  26. package/coverage/lcov-report/src/index.html +116 -0
  27. package/coverage/lcov-report/test/dataProvider.ts.html +205 -0
  28. package/coverage/lcov-report/test/index.html +116 -0
  29. package/coverage/lcov.info +465 -0
  30. package/dist/Batch/RaynetCRMGetActivities.d.ts +58 -0
  31. package/dist/Batch/RaynetCRMGetActivities.js +38 -0
  32. package/dist/Batch/RaynetCRMGetClients.d.ts +161 -0
  33. package/dist/Batch/RaynetCRMGetClients.js +33 -0
  34. package/dist/Batch/RaynetCRMGetContactPersons.d.ts +119 -0
  35. package/dist/Batch/RaynetCRMGetContactPersons.js +33 -0
  36. package/dist/Batch/RaynetCRMSubscribeWebhook.d.ts +15 -0
  37. package/dist/Batch/RaynetCRMSubscribeWebhook.js +64 -0
  38. package/dist/Batch/RaynetCRMUnregisterWebhook.d.ts +7 -0
  39. package/dist/Batch/RaynetCRMUnregisterWebhook.js +39 -0
  40. package/dist/Connector/RaynetCRMGetVoipByTel.d.ts +225 -0
  41. package/dist/Connector/RaynetCRMGetVoipByTel.js +27 -0
  42. package/dist/Connector/RaynetCRMUniversalActivityDetail.d.ts +86 -0
  43. package/dist/Connector/RaynetCRMUniversalActivityDetail.js +31 -0
  44. package/dist/Connector/RaynetCRMUniversalCreateActivity.d.ts +18 -0
  45. package/dist/Connector/RaynetCRMUniversalCreateActivity.js +25 -0
  46. package/dist/Connector/RaynetCRMUniversalDeleteActivity.d.ts +12 -0
  47. package/dist/Connector/RaynetCRMUniversalDeleteActivity.js +22 -0
  48. package/dist/Connector/RaynetCRMUniversalUpdateActivity.d.ts +11 -0
  49. package/dist/Connector/RaynetCRMUniversalUpdateActivity.js +27 -0
  50. package/dist/RaynetCRMApplication.d.ts +19 -0
  51. package/dist/RaynetCRMApplication.js +92 -0
  52. package/dist/package.json +23 -0
  53. package/jest.config.js +13 -0
  54. package/package.json +23 -0
  55. package/src/Batch/RaynetCRMGetActivities.ts +100 -0
  56. package/src/Batch/RaynetCRMGetClients.ts +198 -0
  57. package/src/Batch/RaynetCRMGetContactPersons.ts +156 -0
  58. package/src/Batch/RaynetCRMSubscribeWebhook.ts +90 -0
  59. package/src/Batch/RaynetCRMUnregisterWebhook.ts +52 -0
  60. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/from-input.json +8 -0
  61. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/from-mock.json +64 -0
  62. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/from-output.json +11 -0
  63. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/input.json +6 -0
  64. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/mock.json +64 -0
  65. package/src/Batch/__tests__/Data/RaynetCRMGetActivities/output.json +11 -0
  66. package/src/Batch/__tests__/Data/RaynetCRMGetClients/email-input.json +8 -0
  67. package/src/Batch/__tests__/Data/RaynetCRMGetClients/email-mock.json +157 -0
  68. package/src/Batch/__tests__/Data/RaynetCRMGetClients/email-output.json +11 -0
  69. package/src/Batch/__tests__/Data/RaynetCRMGetClients/input.json +6 -0
  70. package/src/Batch/__tests__/Data/RaynetCRMGetClients/mock.json +157 -0
  71. package/src/Batch/__tests__/Data/RaynetCRMGetClients/output.json +11 -0
  72. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/email-input.json +8 -0
  73. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/email-mock.json +157 -0
  74. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/email-output.json +11 -0
  75. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/input.json +6 -0
  76. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/mock.json +112 -0
  77. package/src/Batch/__tests__/Data/RaynetCRMGetContactPersons/output.json +11 -0
  78. package/src/Batch/__tests__/Data/RaynetCRMSubscribeWebhook/input.json +6 -0
  79. package/src/Batch/__tests__/Data/RaynetCRMSubscribeWebhook/mock.json +10 -0
  80. package/src/Batch/__tests__/Data/RaynetCRMSubscribeWebhook/output.json +6 -0
  81. package/src/Batch/__tests__/Data/RaynetCRMUnregisterWebhook/input.json +6 -0
  82. package/src/Batch/__tests__/Data/RaynetCRMUnregisterWebhook/mock.json +7 -0
  83. package/src/Batch/__tests__/Data/RaynetCRMUnregisterWebhook/output.json +6 -0
  84. package/src/Batch/__tests__/RaynetCRMGetActivities.ts +23 -0
  85. package/src/Batch/__tests__/RaynetCRMGetClients.ts +23 -0
  86. package/src/Batch/__tests__/RaynetCRMGetContactPersons.ts +23 -0
  87. package/src/Batch/__tests__/RaynetCRMSubscribeWebhook.ts +18 -0
  88. package/src/Batch/__tests__/RaynetCRMUnregisterWebhook.ts +42 -0
  89. package/src/Connector/RaynetCRMGetVoipByTel.ts +257 -0
  90. package/src/Connector/RaynetCRMUniversalActivityDetail.ts +121 -0
  91. package/src/Connector/RaynetCRMUniversalCreateActivity.ts +46 -0
  92. package/src/Connector/RaynetCRMUniversalDeleteActivity.ts +33 -0
  93. package/src/Connector/RaynetCRMUniversalUpdateActivity.ts +40 -0
  94. package/src/Connector/__tests__/Data/RaynetCRMGetVoipByTel/input.json +8 -0
  95. package/src/Connector/__tests__/Data/RaynetCRMGetVoipByTel/mock.json +216 -0
  96. package/src/Connector/__tests__/Data/RaynetCRMGetVoipByTel/output.json +217 -0
  97. package/src/Connector/__tests__/Data/RaynetCRMUniversalActivityDetail/input.json +22 -0
  98. package/src/Connector/__tests__/Data/RaynetCRMUniversalActivityDetail/mock.json +84 -0
  99. package/src/Connector/__tests__/Data/RaynetCRMUniversalActivityDetail/output.json +83 -0
  100. package/src/Connector/__tests__/Data/RaynetCRMUniversalCreateActivity/input.json +83 -0
  101. package/src/Connector/__tests__/Data/RaynetCRMUniversalCreateActivity/mock.json +10 -0
  102. package/src/Connector/__tests__/Data/RaynetCRMUniversalCreateActivity/output.json +11 -0
  103. package/src/Connector/__tests__/Data/RaynetCRMUniversalDeleteActivity/input.json +9 -0
  104. package/src/Connector/__tests__/Data/RaynetCRMUniversalDeleteActivity/mock.json +7 -0
  105. package/src/Connector/__tests__/Data/RaynetCRMUniversalDeleteActivity/output.json +8 -0
  106. package/src/Connector/__tests__/Data/RaynetCRMUniversalUpdateActivity/input.json +83 -0
  107. package/src/Connector/__tests__/Data/RaynetCRMUniversalUpdateActivity/mock.json +7 -0
  108. package/src/Connector/__tests__/Data/RaynetCRMUniversalUpdateActivity/output.json +8 -0
  109. package/src/Connector/__tests__/RaynetCRMGetVoipByTel.ts +18 -0
  110. package/src/Connector/__tests__/RaynetCRMUniversalActivityDetail.ts +18 -0
  111. package/src/Connector/__tests__/RaynetCRMUniversalCreateActivity.ts +18 -0
  112. package/src/Connector/__tests__/RaynetCRMUniversalDeleteActivity.ts +18 -0
  113. package/src/Connector/__tests__/RaynetCRMUniversalUpdateActivity.ts +18 -0
  114. package/src/RaynetCRMApplication.ts +82 -0
  115. package/test/dataProvider.ts +40 -0
  116. package/tsconfig.json +8 -0
  117. package/tsconfig.prod.json +13 -0
  118. package/tsconfig.prod.tsbuildinfo +1 -0
@@ -0,0 +1,216 @@
1
+ {
2
+ "http": "GET https://app.raynet.cz/api/v2/voip/searchByTel?query=12345",
3
+ "code": 201,
4
+ "body": {
5
+ "success": true,
6
+ "data": {
7
+ "person": [],
8
+ "company": [
9
+ {
10
+ "id": 1,
11
+ "_permission": 31,
12
+ "_version": 2,
13
+ "name": "RAYNET s.r.o.",
14
+ "state": "A_POTENTIAL",
15
+ "role": "C_SUPPLIER",
16
+ "owner": {
17
+ "id": 2,
18
+ "_permission": 31,
19
+ "_version": 4,
20
+ "gender": null,
21
+ "fullName": "Richard Fíla",
22
+ "fullNameWithoutTitles": "Richard Fíla",
23
+ "firstName": "Richard",
24
+ "lastName": "Fíla",
25
+ "titleBefore": null,
26
+ "notice": null,
27
+ "titleAfter": null,
28
+ "photo": null,
29
+ "category": null,
30
+ "salutation": null,
31
+ "personClassification1": null,
32
+ "personClassification2": null,
33
+ "personClassification3": null,
34
+ "customFields": null,
35
+ "contactInfo.tel1": "123456789",
36
+ "contactInfo.tel1Type": null,
37
+ "contactInfo.tel2": null,
38
+ "contactInfo.tel2Type": null,
39
+ "contactInfo.email": "fila.richard@gmail.com",
40
+ "contactInfo.email2": null,
41
+ "contactInfo.www": null,
42
+ "privateAddress.countryCode": null,
43
+ "activeUserAccount": true,
44
+ "extIds": null,
45
+ "securityLevel": {
46
+ "id": 1,
47
+ "_permission": 31,
48
+ "name": "Sdílená",
49
+ "locked": true,
50
+ "extIds": null
51
+ }
52
+ },
53
+ "category": null,
54
+ "rating": "A",
55
+ "economyActivity": null,
56
+ "turnover": null,
57
+ "notice": null,
58
+ "contactSource": null,
59
+ "legalForm": {
60
+ "id": 42,
61
+ "_permission": 31,
62
+ "code01": "s.r.o.",
63
+ "strValue01": null,
64
+ "rowAccess": null
65
+ },
66
+ "employeesNumber": null,
67
+ "regNumber": "26843820",
68
+ "taxNumber": "CZ26843820",
69
+ "taxNumber2": null,
70
+ "bankAccount": null,
71
+ "paymentTerm": {
72
+ "id": 51,
73
+ "_permission": 31,
74
+ "code01": "7 dní",
75
+ "code02": null,
76
+ "numValue01": 0.0000,
77
+ "numValue02": 0.0000,
78
+ "strValue01": null,
79
+ "strValue02": null,
80
+ "rowAccess": null,
81
+ "extIds": null
82
+ },
83
+ "taxPayer": null,
84
+ "databox": null,
85
+ "court": null,
86
+ "originLead": null,
87
+ "logo": {
88
+ "id": 2,
89
+ "_permission": 29,
90
+ "_version": 0,
91
+ "contentType": "image/png",
92
+ "fileName": "raynet.png",
93
+ "iconSmallSize": 0,
94
+ "iconSmallUuid": null,
95
+ "size": 3933,
96
+ "preview": true,
97
+ "uuid": "cddc90a6-8668-42fa-82e2-de22748e0ec9",
98
+ "iconMediumUuid": "cddc90a6-8668-42fa-82e2-de22748e0ec9",
99
+ "iconMediumSize": 3933,
100
+ "iconLargeUuid": null,
101
+ "iconLargeSize": 0
102
+ },
103
+ "birthday": "2004-10-07",
104
+ "birthdayMonthDay": "10-07",
105
+ "primaryAddress": {
106
+ "id": 1,
107
+ "_permission": 31,
108
+ "_version": 0,
109
+ "address.name": "Sídlo klienta",
110
+ "address.street": "Hlavní třída 6078/13",
111
+ "address.province": null,
112
+ "address.zipCode": "708 00",
113
+ "address.city": "Ostrava-Poruba",
114
+ "address.countryCode": "CZ",
115
+ "address.countryName": "Česká republika",
116
+ "address.lat": 49.8259006000000000,
117
+ "address.lng": 18.1824497000000000,
118
+ "territory": null,
119
+ "contactInfo.tel1": "+420 553 401 520",
120
+ "contactInfo.tel1Normalized": "+420553401520",
121
+ "contactInfo.tel1Type": null,
122
+ "contactInfo.tel2": null,
123
+ "contactInfo.tel2Normalized": null,
124
+ "contactInfo.tel2Type": null,
125
+ "contactInfo.email": "info@raynet.cz",
126
+ "contactInfo.email2": null,
127
+ "contactInfo.www": "raynet.cz",
128
+ "contactInfo.fax": null,
129
+ "contactInfo.doNotSendMM": false,
130
+ "contactInfo.otherContact": null,
131
+ "primary": true,
132
+ "extIds": null,
133
+ "contactAddress": true
134
+ },
135
+ "contactAddress": {
136
+ "id": 1,
137
+ "_permission": 31,
138
+ "_version": 0,
139
+ "address.name": "Sídlo klienta",
140
+ "address.street": "Hlavní třída 6078/13",
141
+ "address.province": null,
142
+ "address.zipCode": "708 00",
143
+ "address.city": "Ostrava-Poruba",
144
+ "address.countryCode": "CZ",
145
+ "address.countryName": "Česká republika",
146
+ "address.lat": 49.8259006000000000,
147
+ "address.lng": 18.1824497000000000,
148
+ "territory": null,
149
+ "contactInfo.tel1": "+420 553 401 520",
150
+ "contactInfo.tel1Normalized": "+420553401520",
151
+ "contactInfo.tel1Type": null,
152
+ "contactInfo.tel2": null,
153
+ "contactInfo.tel2Normalized": null,
154
+ "contactInfo.tel2Type": null,
155
+ "contactInfo.email": "info@raynet.cz",
156
+ "contactInfo.email2": null,
157
+ "contactInfo.www": "raynet.cz",
158
+ "contactInfo.fax": null,
159
+ "contactInfo.doNotSendMM": false,
160
+ "contactInfo.otherContact": null,
161
+ "primary": true,
162
+ "extIds": null,
163
+ "contactAddress": true
164
+ },
165
+ "companyClassification1": null,
166
+ "companyClassification2": null,
167
+ "companyClassification3": null,
168
+ "prevActivity": null,
169
+ "nextActivity": null,
170
+ "lastWonBc": null,
171
+ "rowInfo.createdAt": "2024-03-04 14:47",
172
+ "rowInfo.createdBy": "(unknown)",
173
+ "rowInfo.rowAccess": null,
174
+ "rowInfo.rowState": null,
175
+ "rowInfo.updatedAt": null,
176
+ "rowInfo.updatedBy": null,
177
+ "rowInfo.lastModifiedAt": "2024-03-04 14:47",
178
+ "rowInfo.lastModifiedBy": "(unknown)",
179
+ "securityLevel": {
180
+ "id": 1,
181
+ "_permission": 31,
182
+ "name": "Sdílená",
183
+ "locked": true,
184
+ "extIds": null
185
+ },
186
+ "tags": null,
187
+ "validFrom": "2004-10-07",
188
+ "validTill": null,
189
+ "customFields": null,
190
+ "socialNetworkContact.googleplus": null,
191
+ "socialNetworkContact.twitter": null,
192
+ "socialNetworkContact.linkedin": null,
193
+ "socialNetworkContact.pinterest": null,
194
+ "socialNetworkContact.instagram": null,
195
+ "socialNetworkContact.skype": null,
196
+ "socialNetworkContact.facebook": "https://www.facebook.com/raynetsw",
197
+ "socialNetworkContact.youtube": null,
198
+ "firstName": null,
199
+ "lastName": null,
200
+ "salutation": null,
201
+ "titleAfter": null,
202
+ "titleBefore": null,
203
+ "person": false,
204
+ "fullName": null,
205
+ "inlineGdpr": null,
206
+ "inlineSign": null,
207
+ "extIds": null,
208
+ "currentBusinessValue.businessValue": 0.0000,
209
+ "currentBusinessValue.openBusinessValue": 0.0000,
210
+ "noticeJson": null
211
+ }
212
+ ],
213
+ "lead": []
214
+ }
215
+ }
216
+ }
@@ -0,0 +1,217 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "data": {
7
+ "company": [
8
+ {
9
+ "_permission": 31,
10
+ "_version": 2,
11
+ "bankAccount": null,
12
+ "birthday": "2004-10-07",
13
+ "birthdayMonthDay": "10-07",
14
+ "category": null,
15
+ "companyClassification1": null,
16
+ "companyClassification2": null,
17
+ "companyClassification3": null,
18
+ "contactAddress": {
19
+ "_permission": 31,
20
+ "_version": 0,
21
+ "address.city": "Ostrava-Poruba",
22
+ "address.countryCode": "CZ",
23
+ "address.countryName": "Česká republika",
24
+ "address.lat": 49.8259006,
25
+ "address.lng": 18.1824497,
26
+ "address.name": "Sídlo klienta",
27
+ "address.province": null,
28
+ "address.street": "Hlavní třída 6078/13",
29
+ "address.zipCode": "708 00",
30
+ "contactAddress": true,
31
+ "contactInfo.doNotSendMM": false,
32
+ "contactInfo.email": "info@raynet.cz",
33
+ "contactInfo.email2": null,
34
+ "contactInfo.fax": null,
35
+ "contactInfo.otherContact": null,
36
+ "contactInfo.tel1": "+420 553 401 520",
37
+ "contactInfo.tel1Normalized": "+420553401520",
38
+ "contactInfo.tel1Type": null,
39
+ "contactInfo.tel2": null,
40
+ "contactInfo.tel2Normalized": null,
41
+ "contactInfo.tel2Type": null,
42
+ "contactInfo.www": "raynet.cz",
43
+ "extIds": null,
44
+ "id": 1,
45
+ "primary": true,
46
+ "territory": null
47
+ },
48
+ "contactSource": null,
49
+ "court": null,
50
+ "currentBusinessValue.businessValue": 0,
51
+ "currentBusinessValue.openBusinessValue": 0,
52
+ "customFields": null,
53
+ "databox": null,
54
+ "economyActivity": null,
55
+ "employeesNumber": null,
56
+ "extIds": null,
57
+ "firstName": null,
58
+ "fullName": null,
59
+ "id": 1,
60
+ "inlineGdpr": null,
61
+ "inlineSign": null,
62
+ "lastName": null,
63
+ "lastWonBc": null,
64
+ "legalForm": {
65
+ "_permission": 31,
66
+ "code01": "s.r.o.",
67
+ "id": 42,
68
+ "rowAccess": null,
69
+ "strValue01": null
70
+ },
71
+ "logo": {
72
+ "_permission": 29,
73
+ "_version": 0,
74
+ "contentType": "image/png",
75
+ "fileName": "raynet.png",
76
+ "iconLargeSize": 0,
77
+ "iconLargeUuid": null,
78
+ "iconMediumSize": 3933,
79
+ "iconMediumUuid": "cddc90a6-8668-42fa-82e2-de22748e0ec9",
80
+ "iconSmallSize": 0,
81
+ "iconSmallUuid": null,
82
+ "id": 2,
83
+ "preview": true,
84
+ "size": 3933,
85
+ "uuid": "cddc90a6-8668-42fa-82e2-de22748e0ec9"
86
+ },
87
+ "name": "RAYNET s.r.o.",
88
+ "nextActivity": null,
89
+ "notice": null,
90
+ "noticeJson": null,
91
+ "originLead": null,
92
+ "owner": {
93
+ "_permission": 31,
94
+ "_version": 4,
95
+ "activeUserAccount": true,
96
+ "category": null,
97
+ "contactInfo.email": "fila.richard@gmail.com",
98
+ "contactInfo.email2": null,
99
+ "contactInfo.tel1": "123456789",
100
+ "contactInfo.tel1Type": null,
101
+ "contactInfo.tel2": null,
102
+ "contactInfo.tel2Type": null,
103
+ "contactInfo.www": null,
104
+ "customFields": null,
105
+ "extIds": null,
106
+ "firstName": "Richard",
107
+ "fullName": "Richard Fíla",
108
+ "fullNameWithoutTitles": "Richard Fíla",
109
+ "gender": null,
110
+ "id": 2,
111
+ "lastName": "Fíla",
112
+ "notice": null,
113
+ "personClassification1": null,
114
+ "personClassification2": null,
115
+ "personClassification3": null,
116
+ "photo": null,
117
+ "privateAddress.countryCode": null,
118
+ "salutation": null,
119
+ "securityLevel": {
120
+ "_permission": 31,
121
+ "extIds": null,
122
+ "id": 1,
123
+ "locked": true,
124
+ "name": "Sdílená"
125
+ },
126
+ "titleAfter": null,
127
+ "titleBefore": null
128
+ },
129
+ "paymentTerm": {
130
+ "_permission": 31,
131
+ "code01": "7 dní",
132
+ "code02": null,
133
+ "extIds": null,
134
+ "id": 51,
135
+ "numValue01": 0,
136
+ "numValue02": 0,
137
+ "rowAccess": null,
138
+ "strValue01": null,
139
+ "strValue02": null
140
+ },
141
+ "person": false,
142
+ "prevActivity": null,
143
+ "primaryAddress": {
144
+ "_permission": 31,
145
+ "_version": 0,
146
+ "address.city": "Ostrava-Poruba",
147
+ "address.countryCode": "CZ",
148
+ "address.countryName": "Česká republika",
149
+ "address.lat": 49.8259006,
150
+ "address.lng": 18.1824497,
151
+ "address.name": "Sídlo klienta",
152
+ "address.province": null,
153
+ "address.street": "Hlavní třída 6078/13",
154
+ "address.zipCode": "708 00",
155
+ "contactAddress": true,
156
+ "contactInfo.doNotSendMM": false,
157
+ "contactInfo.email": "info@raynet.cz",
158
+ "contactInfo.email2": null,
159
+ "contactInfo.fax": null,
160
+ "contactInfo.otherContact": null,
161
+ "contactInfo.tel1": "+420 553 401 520",
162
+ "contactInfo.tel1Normalized": "+420553401520",
163
+ "contactInfo.tel1Type": null,
164
+ "contactInfo.tel2": null,
165
+ "contactInfo.tel2Normalized": null,
166
+ "contactInfo.tel2Type": null,
167
+ "contactInfo.www": "raynet.cz",
168
+ "extIds": null,
169
+ "id": 1,
170
+ "primary": true,
171
+ "territory": null
172
+ },
173
+ "rating": "A",
174
+ "regNumber": "26843820",
175
+ "role": "C_SUPPLIER",
176
+ "rowInfo.createdAt": "2024-03-04 14:47",
177
+ "rowInfo.createdBy": "(unknown)",
178
+ "rowInfo.lastModifiedAt": "2024-03-04 14:47",
179
+ "rowInfo.lastModifiedBy": "(unknown)",
180
+ "rowInfo.rowAccess": null,
181
+ "rowInfo.rowState": null,
182
+ "rowInfo.updatedAt": null,
183
+ "rowInfo.updatedBy": null,
184
+ "salutation": null,
185
+ "securityLevel": {
186
+ "_permission": 31,
187
+ "extIds": null,
188
+ "id": 1,
189
+ "locked": true,
190
+ "name": "Sdílená"
191
+ },
192
+ "socialNetworkContact.facebook": "https://www.facebook.com/raynetsw",
193
+ "socialNetworkContact.googleplus": null,
194
+ "socialNetworkContact.instagram": null,
195
+ "socialNetworkContact.linkedin": null,
196
+ "socialNetworkContact.pinterest": null,
197
+ "socialNetworkContact.skype": null,
198
+ "socialNetworkContact.twitter": null,
199
+ "socialNetworkContact.youtube": null,
200
+ "state": "A_POTENTIAL",
201
+ "tags": null,
202
+ "taxNumber": "CZ26843820",
203
+ "taxNumber2": null,
204
+ "taxPayer": null,
205
+ "titleAfter": null,
206
+ "titleBefore": null,
207
+ "turnover": null,
208
+ "validFrom": "2004-10-07",
209
+ "validTill": null
210
+ }
211
+ ],
212
+ "lead": [],
213
+ "person": []
214
+ },
215
+ "success": true
216
+ }
217
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "eventId": "62497f2c609d4b7184b9adf1e427fa55",
7
+ "createdAt": "2017-01-18T13:16:39.923+01:00",
8
+ "type": "record.created",
9
+ "author": "admin@raynet.cz",
10
+ "source": {
11
+ "name": "user",
12
+ "description": "browser"
13
+ },
14
+ "data": {
15
+ "entityName": "Task",
16
+ "entityId": 123,
17
+ "extIds": [
18
+ "1111"
19
+ ]
20
+ }
21
+ }
22
+ }
@@ -0,0 +1,84 @@
1
+ {
2
+ "http": "GET https://app.raynet.cz/api/v2/task/123?dateFormat=ISO8601",
3
+ "code": 200,
4
+ "body": {
5
+ "success": "true",
6
+ "data": {
7
+ "id": 89,
8
+ "title": "Navázat kontakt s klientem",
9
+ "category": {
10
+ "id": 90,
11
+ "value": "Lékař"
12
+ },
13
+ "priority": "DEFAULT",
14
+ "status": "SCHEDULED",
15
+ "personal": false,
16
+ "owner": {
17
+ "id": 2,
18
+ "fullName": "Petr Svetr"
19
+ },
20
+ "company": {
21
+ "id": 2,
22
+ "name": "Klient s.r.o."
23
+ },
24
+ "person": {
25
+ "id": 3,
26
+ "fullName": "Pavel Dobrý"
27
+ },
28
+ "lead": null,
29
+ "businessCase": null,
30
+ "offer": null,
31
+ "salesOrder": null,
32
+ "project": null,
33
+ "activity": null,
34
+ "scheduledFrom": "2022-06-11 15:00",
35
+ "scheduledTill": "2022-06-11 16:00",
36
+ "deadline": "2022-06-11 15:03",
37
+ "completed": null,
38
+ "description": "Je potřeba být laskavý!",
39
+ "solution": "Nakonec to dopadlo dobře.",
40
+ "tags": [ ],
41
+ "rowInfo.createdAt": "2022-04-24 08:06",
42
+ "rowInfo.createdBy": "info@raynet.cz",
43
+ "rowInfo.updatedAt": "2022-05-17 10:46",
44
+ "rowInfo.updatedBy": "info@raynet.cz",
45
+ "rowInfo.rowAccess": null,
46
+ "rowInfo.rowState": null,
47
+ "securityLevel": {
48
+ "id": 1,
49
+ "name": "Sdílená"
50
+ },
51
+ "customFields": {
52
+ "VIP_b91d1": false
53
+ },
54
+ "participants": [
55
+ {
56
+ "id": 123,
57
+ "owner": false,
58
+ "role": null,
59
+ "name": "Martin Vosa",
60
+ "person": 6,
61
+ "company": 2,
62
+ "lead": null
63
+ },
64
+ {
65
+ "id": 119,
66
+ "owner": true,
67
+ "role": "FROM",
68
+ "name": "Petr Svetr",
69
+ "person": 2,
70
+ "company": 2,
71
+ "lead": null
72
+ }
73
+ ],
74
+ "recurrence": {
75
+ "id": 5,
76
+ "count": 3,
77
+ "endDate": null,
78
+ "interval": "WEEKLY",
79
+ "recurrenceDay": 4,
80
+ "startDate": "2022-03-05"
81
+ }
82
+ }
83
+ }
84
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "_entityName": "Task",
7
+ "activity": null,
8
+ "businessCase": null,
9
+ "category": {
10
+ "id": 90,
11
+ "value": "Lékař"
12
+ },
13
+ "company": {
14
+ "id": 2,
15
+ "name": "Klient s.r.o."
16
+ },
17
+ "completed": null,
18
+ "customFields": {
19
+ "VIP_b91d1": false
20
+ },
21
+ "deadline": "2022-06-11 15:03",
22
+ "description": "Je potřeba být laskavý!",
23
+ "id": 89,
24
+ "lead": null,
25
+ "offer": null,
26
+ "owner": {
27
+ "fullName": "Petr Svetr",
28
+ "id": 2
29
+ },
30
+ "participants": [
31
+ {
32
+ "company": 2,
33
+ "id": 123,
34
+ "lead": null,
35
+ "name": "Martin Vosa",
36
+ "owner": false,
37
+ "person": 6,
38
+ "role": null
39
+ },
40
+ {
41
+ "company": 2,
42
+ "id": 119,
43
+ "lead": null,
44
+ "name": "Petr Svetr",
45
+ "owner": true,
46
+ "person": 2,
47
+ "role": "FROM"
48
+ }
49
+ ],
50
+ "person": {
51
+ "fullName": "Pavel Dobrý",
52
+ "id": 3
53
+ },
54
+ "personal": false,
55
+ "priority": "DEFAULT",
56
+ "project": null,
57
+ "recurrence": {
58
+ "count": 3,
59
+ "endDate": null,
60
+ "id": 5,
61
+ "interval": "WEEKLY",
62
+ "recurrenceDay": 4,
63
+ "startDate": "2022-03-05"
64
+ },
65
+ "rowInfo.createdAt": "2022-04-24 08:06",
66
+ "rowInfo.createdBy": "info@raynet.cz",
67
+ "rowInfo.rowAccess": null,
68
+ "rowInfo.rowState": null,
69
+ "rowInfo.updatedAt": "2022-05-17 10:46",
70
+ "rowInfo.updatedBy": "info@raynet.cz",
71
+ "salesOrder": null,
72
+ "scheduledFrom": "2022-06-11 15:00",
73
+ "scheduledTill": "2022-06-11 16:00",
74
+ "securityLevel": {
75
+ "id": 1,
76
+ "name": "Sdílená"
77
+ },
78
+ "solution": "Nakonec to dopadlo dobře.",
79
+ "status": "SCHEDULED",
80
+ "tags": [],
81
+ "title": "Navázat kontakt s klientem"
82
+ }
83
+ }