@orchesty/connector-wflow 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 (54) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +190 -0
  3. package/dist/Batch/WflowSubscribeWebhookBatch.d.ts +7 -0
  4. package/dist/Batch/WflowSubscribeWebhookBatch.js +52 -0
  5. package/dist/Batch/WflowUnsubscribeWebhookBatch.d.ts +7 -0
  6. package/dist/Batch/WflowUnsubscribeWebhookBatch.js +42 -0
  7. package/dist/Connector/WflowGetDocumentConnector.d.ts +310 -0
  8. package/dist/Connector/WflowGetDocumentConnector.js +25 -0
  9. package/dist/Connector/WflowGetOrganizationsConnector.d.ts +15 -0
  10. package/dist/Connector/WflowGetOrganizationsConnector.js +27 -0
  11. package/dist/Connector/WflowPutDocumentConnector.d.ts +117 -0
  12. package/dist/Connector/WflowPutDocumentConnector.js +32 -0
  13. package/dist/Connector/WflowUpdateDocumentStateConnector.d.ts +11 -0
  14. package/dist/Connector/WflowUpdateDocumentStateConnector.js +25 -0
  15. package/dist/WflowApplication.d.ts +40 -0
  16. package/dist/WflowApplication.js +126 -0
  17. package/dist/package.json +22 -0
  18. package/jest.config.js +13 -0
  19. package/package.json +22 -0
  20. package/src/Batch/WflowSubscribeWebhookBatch.ts +80 -0
  21. package/src/Batch/WflowUnsubscribeWebhookBatch.ts +55 -0
  22. package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/input.json +6 -0
  23. package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/mock.json +5 -0
  24. package/src/Batch/__tests__/Data/WflowSubscribeWebhookBatch/output.json +6 -0
  25. package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/input.json +6 -0
  26. package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/mock.json +5 -0
  27. package/src/Batch/__tests__/Data/WflowUnsubscribeWebhookBatch/output.json +6 -0
  28. package/src/Batch/__tests__/WflowSubscribeWebhookBatch.ts +17 -0
  29. package/src/Batch/__tests__/WflowUnsubscribeWebhookBatch.ts +17 -0
  30. package/src/Connector/WflowGetDocumentConnector.ts +341 -0
  31. package/src/Connector/WflowGetOrganizationsConnector.ts +40 -0
  32. package/src/Connector/WflowPutDocumentConnector.ts +152 -0
  33. package/src/Connector/WflowUpdateDocumentStateConnector.ts +39 -0
  34. package/src/Connector/__tests__/Data/WflowGetDocumentConnector/input.json +9 -0
  35. package/src/Connector/__tests__/Data/WflowGetDocumentConnector/mock.json +449 -0
  36. package/src/Connector/__tests__/Data/WflowGetDocumentConnector/output.json +450 -0
  37. package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/input.json +6 -0
  38. package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/mock.json +12 -0
  39. package/src/Connector/__tests__/Data/WflowGetOrganizationsConnector/output.json +13 -0
  40. package/src/Connector/__tests__/Data/WflowPutDocumentConnector/input.json +9 -0
  41. package/src/Connector/__tests__/Data/WflowPutDocumentConnector/mock.json +5 -0
  42. package/src/Connector/__tests__/Data/WflowPutDocumentConnector/output.json +9 -0
  43. package/src/Connector/__tests__/Data/WflowUpdateDocumentState/input.json +8 -0
  44. package/src/Connector/__tests__/Data/WflowUpdateDocumentState/mock.json +5 -0
  45. package/src/Connector/__tests__/Data/WflowUpdateDocumentState/output.json +8 -0
  46. package/src/Connector/__tests__/WflowGetDocumentConnector.ts +17 -0
  47. package/src/Connector/__tests__/WflowGetOrganizationsConnector.ts +17 -0
  48. package/src/Connector/__tests__/WflowPutDocumentConnector.ts +17 -0
  49. package/src/Connector/__tests__/WflowUpdateDocumentState.ts +17 -0
  50. package/src/WflowApplication.ts +140 -0
  51. package/test/dataProvider.ts +55 -0
  52. package/tsconfig.json +9 -0
  53. package/tsconfig.prod.json +10 -0
  54. package/tsconfig.prod.tsbuildinfo +1 -0
@@ -0,0 +1,450 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
7
+ "serie": {
8
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
9
+ "externalId": "string",
10
+ "code": "string",
11
+ "description": "string",
12
+ "isValid": true,
13
+ "kind": "IncomingInvoice",
14
+ "invoiceType": "TaxInvoice"
15
+ },
16
+ "number": "string",
17
+ "internalCode": "string",
18
+ "vatDocumentCode": "string",
19
+ "variableSymbol": "string",
20
+ "constantSymbol": "string",
21
+ "specificSymbol": "string",
22
+ "issueDate": "2019-08-24T14:15:22Z",
23
+ "dueDate": "2019-08-24T14:15:22Z",
24
+ "vatDate": "2019-08-24T14:15:22Z",
25
+ "acceptDate": "2019-08-24T14:15:22Z",
26
+ "caseDate": "2019-08-24T14:15:22Z",
27
+ "validFrom": "2019-08-24T14:15:22Z",
28
+ "validTo": "2019-08-24T14:15:22Z",
29
+ "effectiveFrom": "2019-08-24T14:15:22Z",
30
+ "effectiveTo": "2019-08-24T14:15:22Z",
31
+ "signatureDate": "2019-08-24T14:15:22Z",
32
+ "reviewDate": "2019-08-24T14:15:22Z",
33
+ "accountTerm": "string",
34
+ "vatTerm": "string",
35
+ "taxExclusiveAmount": -1.7976931348623157e308,
36
+ "totalAmount": -1.7976931348623157e308,
37
+ "roundingAmount": -1.7976931348623157e308,
38
+ "totalAmountFC": -1.7976931348623157e308,
39
+ "advanceAmount": -1.7976931348623157e308,
40
+ "currency": "string",
41
+ "partnerIC": "string",
42
+ "partnerVAT": "string",
43
+ "partnerLocalVAT": "string",
44
+ "partnerName": "string",
45
+ "partnerAddress": "string",
46
+ "partnerEmail": "string",
47
+ "accountNo": "string",
48
+ "bankCode": "string",
49
+ "iban": "string",
50
+ "bic": "string",
51
+ "meIC": "string",
52
+ "exchangeRate": -1.7976931348623157e308,
53
+ "exchangeRateUnits": -2147483648,
54
+ "tag": "string",
55
+ "orderNo": "string",
56
+ "description": "string",
57
+ "contactPersonName": "string",
58
+ "contactPersonEmail": "string",
59
+ "remainsToDeliverAmount": -1.7976931348623157e308,
60
+ "invoiceType": "TaxInvoice",
61
+ "expectedDeliveryDate": "2019-08-24T14:15:22Z",
62
+ "accountCode": "string",
63
+ "doNotPay": true,
64
+ "created": "2019-08-24T14:15:22Z",
65
+ "updated": "2019-08-24T14:15:22Z",
66
+ "lastAction": "2019-08-24T14:15:22Z",
67
+ "removed": "2019-08-24T14:15:22Z",
68
+ "locked": true,
69
+ "approvalStatus": "NotApproved",
70
+ "flowStatus": "New",
71
+ "payment": {
72
+ "paidAmount": 0,
73
+ "paidDate": "2019-08-24T14:15:22Z",
74
+ "paymentStatus": "NotPaid",
75
+ "paymentOrderAmount": 0,
76
+ "paymentOrderStatus": "Requested",
77
+ "activePaymentRequestDate": "2019-08-24T14:15:22Z"
78
+ },
79
+ "dataSource": "ISDOC",
80
+ "source": "Email",
81
+ "createdBy": "string",
82
+ "series": "string",
83
+ "type": {
84
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
85
+ "name": "string",
86
+ "kind": "IncomingInvoice",
87
+ "default": true,
88
+ "erpExclude": true,
89
+ "filesExtendName": true,
90
+ "docCreatingMethod": "Upload",
91
+ "autoStamp": "None",
92
+ "serie": {
93
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
94
+ "externalId": "string",
95
+ "code": "string",
96
+ "description": "string",
97
+ "isValid": true,
98
+ "kind": "IncomingInvoice",
99
+ "invoiceType": "TaxInvoice"
100
+ },
101
+ "sequence": {
102
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
103
+ "entity": "string",
104
+ "description": "string",
105
+ "fixedPart": "string",
106
+ "counter": "string"
107
+ },
108
+ "invoiceType": "TaxInvoice"
109
+ },
110
+ "partner": {
111
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
112
+ "externalId": "string",
113
+ "ic": "string",
114
+ "vat": "string",
115
+ "name": "string",
116
+ "address": "string",
117
+ "localVAT": "string",
118
+ "note": "string",
119
+ "phoneNo": "string",
120
+ "mailAddress": "string",
121
+ "deliveryPeriod": 0,
122
+ "minOrderTotal": 0,
123
+ "toleranceRate": 0,
124
+ "language": "string",
125
+ "isValid": true,
126
+ "businessRegisterRegistration": "string",
127
+ "customer": true,
128
+ "supplier": true
129
+ },
130
+ "deliveryLocation": {
131
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
132
+ "externalId": "string",
133
+ "code": "string",
134
+ "description": "string",
135
+ "isValid": true,
136
+ "address": "string",
137
+ "contact": "string"
138
+ },
139
+ "accounting": {
140
+ "businessItemCode": "string",
141
+ "accountingRule": {
142
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
143
+ "externalId": "string",
144
+ "code": "string",
145
+ "description": "string",
146
+ "isValid": true,
147
+ "kind": "IncomingInvoice"
148
+ },
149
+ "activity": {
150
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
151
+ "externalId": "string",
152
+ "code": "string",
153
+ "description": "string",
154
+ "isValid": true
155
+ },
156
+ "businessCase": {
157
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
158
+ "externalId": "string",
159
+ "code": "string",
160
+ "description": "string",
161
+ "isValid": true
162
+ },
163
+ "cardDocumentType": {
164
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
165
+ "externalId": "string",
166
+ "code": "string",
167
+ "description": "string",
168
+ "isValid": true
169
+ },
170
+ "cashDocumentType": {
171
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
172
+ "externalId": "string",
173
+ "code": "string",
174
+ "description": "string",
175
+ "isValid": true
176
+ },
177
+ "cashRegister": {
178
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
179
+ "externalId": "string",
180
+ "code": "string",
181
+ "description": "string",
182
+ "isValid": true
183
+ },
184
+ "contraAccount": {
185
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
186
+ "externalId": "string",
187
+ "code": "string",
188
+ "description": "string",
189
+ "isValid": true
190
+ },
191
+ "contract": {
192
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
193
+ "externalId": "string",
194
+ "code": "string",
195
+ "description": "string",
196
+ "isValid": true
197
+ },
198
+ "costCenter": {
199
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
200
+ "externalId": "string",
201
+ "code": "string",
202
+ "description": "string",
203
+ "isValid": true
204
+ },
205
+ "employee": {
206
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
207
+ "externalId": "string",
208
+ "code": "string",
209
+ "description": "string",
210
+ "isValid": true
211
+ },
212
+ "paymentMethod": {
213
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
214
+ "externalId": "string",
215
+ "code": "string",
216
+ "description": "string",
217
+ "isValid": true,
218
+ "kind": "IncomingInvoice"
219
+ },
220
+ "project": {
221
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
222
+ "externalId": "string",
223
+ "code": "string",
224
+ "description": "string",
225
+ "isValid": true
226
+ },
227
+ "vatControlStatementLine": {
228
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
229
+ "externalId": "string",
230
+ "code": "string",
231
+ "description": "string",
232
+ "isValid": true
233
+ },
234
+ "vatReturnLine": {
235
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
236
+ "externalId": "string",
237
+ "code": "string",
238
+ "description": "string",
239
+ "isValid": true,
240
+ "reverseCharge": true
241
+ },
242
+ "vatReverseChargeCode": {
243
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
244
+ "externalId": "string",
245
+ "code": "string",
246
+ "description": "string",
247
+ "isValid": true
248
+ },
249
+ "vehicle": {
250
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
251
+ "externalId": "string",
252
+ "code": "string",
253
+ "description": "string",
254
+ "isValid": true
255
+ },
256
+ "vatSupplyModeCode": "Normal",
257
+ "vatApplyReductionCoefficient": true,
258
+ "vatFixedAssets": true,
259
+ "vatMode": "Standard"
260
+ },
261
+ "vaTs": [
262
+ {
263
+ "rate": 0,
264
+ "type": "Exempt",
265
+ "base": 0,
266
+ "tax": 0
267
+ }
268
+ ],
269
+ "lines": [
270
+ {
271
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
272
+ "totalAmount": 0,
273
+ "totalAmountFC": 0,
274
+ "accountCode": "string",
275
+ "currency": "string",
276
+ "description": "string",
277
+ "quantity": 0,
278
+ "unitPrice": 0,
279
+ "measureUnit": "string",
280
+ "vatType": "Exempt",
281
+ "vatRate": 0,
282
+ "order": 0,
283
+ "approval": {
284
+ "level": 0,
285
+ "team": {
286
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
287
+ "name": "string",
288
+ "description": "string",
289
+ "system": true
290
+ },
291
+ "identity": {
292
+ "login": "string",
293
+ "firstName": "string",
294
+ "lastName": "string",
295
+ "fullName": "string"
296
+ },
297
+ "date": "2019-08-24T14:15:22Z",
298
+ "status": "NotApproved"
299
+ },
300
+ "changedAfterApprove": true,
301
+ "accounting": {
302
+ "businessItemCode": "string",
303
+ "accountingRule": {
304
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
305
+ "externalId": "string",
306
+ "code": "string",
307
+ "description": "string",
308
+ "isValid": true,
309
+ "kind": "IncomingInvoice"
310
+ },
311
+ "activity": {
312
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
313
+ "externalId": "string",
314
+ "code": "string",
315
+ "description": "string",
316
+ "isValid": true
317
+ },
318
+ "businessCase": {
319
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
320
+ "externalId": "string",
321
+ "code": "string",
322
+ "description": "string",
323
+ "isValid": true
324
+ },
325
+ "cardDocumentType": {
326
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
327
+ "externalId": "string",
328
+ "code": "string",
329
+ "description": "string",
330
+ "isValid": true
331
+ },
332
+ "cashDocumentType": {
333
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
334
+ "externalId": "string",
335
+ "code": "string",
336
+ "description": "string",
337
+ "isValid": true
338
+ },
339
+ "cashRegister": {
340
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
341
+ "externalId": "string",
342
+ "code": "string",
343
+ "description": "string",
344
+ "isValid": true
345
+ },
346
+ "contraAccount": {
347
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
348
+ "externalId": "string",
349
+ "code": "string",
350
+ "description": "string",
351
+ "isValid": true
352
+ },
353
+ "contract": {
354
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
355
+ "externalId": "string",
356
+ "code": "string",
357
+ "description": "string",
358
+ "isValid": true
359
+ },
360
+ "costCenter": {
361
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
362
+ "externalId": "string",
363
+ "code": "string",
364
+ "description": "string",
365
+ "isValid": true
366
+ },
367
+ "employee": {
368
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
369
+ "externalId": "string",
370
+ "code": "string",
371
+ "description": "string",
372
+ "isValid": true
373
+ },
374
+ "paymentMethod": {
375
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
376
+ "externalId": "string",
377
+ "code": "string",
378
+ "description": "string",
379
+ "isValid": true,
380
+ "kind": "IncomingInvoice"
381
+ },
382
+ "project": {
383
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
384
+ "externalId": "string",
385
+ "code": "string",
386
+ "description": "string",
387
+ "isValid": true
388
+ },
389
+ "vatControlStatementLine": {
390
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
391
+ "externalId": "string",
392
+ "code": "string",
393
+ "description": "string",
394
+ "isValid": true
395
+ },
396
+ "vatReturnLine": {
397
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
398
+ "externalId": "string",
399
+ "code": "string",
400
+ "description": "string",
401
+ "isValid": true,
402
+ "reverseCharge": true
403
+ },
404
+ "vatReverseChargeCode": {
405
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
406
+ "externalId": "string",
407
+ "code": "string",
408
+ "description": "string",
409
+ "isValid": true
410
+ },
411
+ "vehicle": {
412
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
413
+ "externalId": "string",
414
+ "code": "string",
415
+ "description": "string",
416
+ "isValid": true
417
+ },
418
+ "vatSupplyModeCode": "Normal",
419
+ "vatApplyReductionCoefficient": true,
420
+ "vatFixedAssets": true,
421
+ "vatMode": "Standard"
422
+ },
423
+ "code": "string",
424
+ "costCenter": {
425
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
426
+ "externalId": "string",
427
+ "code": "string",
428
+ "description": "string",
429
+ "isValid": true
430
+ },
431
+ "contract": {
432
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
433
+ "externalId": "string",
434
+ "code": "string",
435
+ "description": "string",
436
+ "isValid": true
437
+ },
438
+ "activity": {
439
+ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
440
+ "externalId": "string",
441
+ "code": "string",
442
+ "description": "string",
443
+ "isValid": true
444
+ }
445
+ }
446
+ ],
447
+ "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",
448
+ "expenseCardId": "a8fd484a-d41d-4d62-82b9-479b13da2c4c"
449
+ }
450
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {}
6
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "http": "GET https://api.wflow.com/api/user/myorganizations",
3
+ "code": 200,
4
+ "body": [
5
+ {
6
+ "name": "Test",
7
+ "baseURL": "test.wflow.com",
8
+ "subdomain": "test",
9
+ "trialExpiration": "2026-08-24T14:15:22Z"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "name": "Test",
8
+ "baseURL": "test.wflow.com",
9
+ "subdomain": "test",
10
+ "trialExpiration": "2026-08-24T14:15:22Z"
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "id": "test-document",
7
+ "tag": "1"
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PUT https://api.wflow.com/api/test/documents",
3
+ "code": 200,
4
+ "body": "test-document"
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "id": "test-document",
7
+ "tag": "1"
8
+ }
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "documentId": "test-document"
7
+ }
8
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "http": "PUT https://api.wflow.com/api/test/documents/test-document/task/Export/processed",
3
+ "code": 200,
4
+ "body": null
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "documentId": "test-document"
7
+ }
8
+ }
@@ -0,0 +1,17 @@
1
+ import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
+ import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
+ import init from '../../../test/dataProvider';
4
+ import { NAME as WFLOW_GET_DOCUMENT_CONNECTOR } from '../WflowGetDocumentConnector';
5
+
6
+ let tester: NodeTester;
7
+
8
+ describe('Tests for WflowGetDocumentConnector', () => {
9
+ beforeEach(() => {
10
+ tester = new NodeTester(container, __filename);
11
+ init();
12
+ });
13
+
14
+ it('process - ok', async () => {
15
+ await tester.testConnector(WFLOW_GET_DOCUMENT_CONNECTOR);
16
+ });
17
+ });
@@ -0,0 +1,17 @@
1
+ import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
+ import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
+ import init from '../../../test/dataProvider';
4
+ import { NAME as WFLOW_GET_ORGANIZATIONS_CONNECTOR } from '../WflowGetOrganizationsConnector';
5
+
6
+ let tester: NodeTester;
7
+
8
+ describe('Tests for WflowGetOrganizationsConnector', () => {
9
+ beforeEach(() => {
10
+ tester = new NodeTester(container, __filename);
11
+ init();
12
+ });
13
+
14
+ it('process - ok', async () => {
15
+ await tester.testConnector(WFLOW_GET_ORGANIZATIONS_CONNECTOR);
16
+ });
17
+ });
@@ -0,0 +1,17 @@
1
+ import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
+ import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
+ import init from '../../../test/dataProvider';
4
+ import { NAME as WFLOW_PUT_DOCUMENT } from '../WflowPutDocumentConnector';
5
+
6
+ let tester: NodeTester;
7
+
8
+ describe('Tests for WflowPutDocumentConnector', () => {
9
+ beforeEach(() => {
10
+ tester = new NodeTester(container, __filename);
11
+ init();
12
+ });
13
+
14
+ it('process - ok', async () => {
15
+ await tester.testConnector(WFLOW_PUT_DOCUMENT);
16
+ });
17
+ });
@@ -0,0 +1,17 @@
1
+ import { container } from '@orchesty/nodejs-connectors/test/TestAbstract';
2
+ import NodeTester from '@orchesty/nodejs-sdk/dist/test/Testers/NodeTester';
3
+ import init from '../../../test/dataProvider';
4
+ import { NAME as WFLOW_UPDATE_DOCUMENT_STATE } from '../WflowUpdateDocumentStateConnector';
5
+
6
+ let tester: NodeTester;
7
+
8
+ describe('Tests for WflowUpdateDocumentStateConnector', () => {
9
+ beforeEach(() => {
10
+ tester = new NodeTester(container, __filename);
11
+ init();
12
+ });
13
+
14
+ it('process - ok', async () => {
15
+ await tester.testConnector(WFLOW_UPDATE_DOCUMENT_STATE);
16
+ });
17
+ });