@orchesty/connector-authentica 1.0.0 → 1.0.1

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 (131) hide show
  1. package/dist/package.json +5 -2
  2. package/package.json +5 -2
  3. package/CHANGELOG.md +0 -12
  4. package/coverage/clover.xml +0 -413
  5. package/coverage/coverage-final.json +0 -19
  6. package/coverage/lcov-report/base.css +0 -224
  7. package/coverage/lcov-report/block-navigation.js +0 -87
  8. package/coverage/lcov-report/favicon.png +0 -0
  9. package/coverage/lcov-report/index.html +0 -161
  10. package/coverage/lcov-report/prettify.css +0 -1
  11. package/coverage/lcov-report/prettify.js +0 -2
  12. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  13. package/coverage/lcov-report/sorter.js +0 -210
  14. package/coverage/lcov-report/src/AuthenticaApplication.ts.html +0 -496
  15. package/coverage/lcov-report/src/Batch/AuthenticaGetStock.ts.html +0 -316
  16. package/coverage/lcov-report/src/Batch/AuthenticaGetStockAvailable.ts.html +0 -262
  17. package/coverage/lcov-report/src/Batch/index.html +0 -131
  18. package/coverage/lcov-report/src/Connector/AuthenticaCreateOrder.ts.html +0 -244
  19. package/coverage/lcov-report/src/Connector/AuthenticaCreateProduct.ts.html +0 -247
  20. package/coverage/lcov-report/src/Connector/AuthenticaCreateReceipt.ts.html +0 -244
  21. package/coverage/lcov-report/src/Connector/AuthenticaGetCarriersConnector.ts.html +0 -205
  22. package/coverage/lcov-report/src/Connector/AuthenticaGetOrder.ts.html +0 -259
  23. package/coverage/lcov-report/src/Connector/AuthenticaGetOrderStatus.ts.html +0 -199
  24. package/coverage/lcov-report/src/Connector/AuthenticaGetReceipt.ts.html +0 -259
  25. package/coverage/lcov-report/src/Connector/AuthenticaGetShippingMethods.ts.html +0 -208
  26. package/coverage/lcov-report/src/Connector/AuthenticaPostLabel.ts.html +0 -196
  27. package/coverage/lcov-report/src/Connector/AuthenticaPutOrders.ts.html +0 -334
  28. package/coverage/lcov-report/src/Connector/AuthenticaPutProducts.ts.html +0 -250
  29. package/coverage/lcov-report/src/Connector/AuthenticaUpdateOrder.ts.html +0 -256
  30. package/coverage/lcov-report/src/Connector/AuthenticaUpdateProduct.ts.html +0 -259
  31. package/coverage/lcov-report/src/Connector/AuthenticaUpdateReceipt.ts.html +0 -193
  32. package/coverage/lcov-report/src/Connector/index.html +0 -311
  33. package/coverage/lcov-report/src/index.html +0 -116
  34. package/coverage/lcov-report/test/dataProvider.ts.html +0 -325
  35. package/coverage/lcov-report/test/index.html +0 -116
  36. package/coverage/lcov.info +0 -676
  37. package/jest.config.js +0 -13
  38. package/src/AuthenticaApplication.ts +0 -137
  39. package/src/Batch/AuthenticaGetStock.ts +0 -77
  40. package/src/Batch/AuthenticaGetStockAvailable.ts +0 -59
  41. package/src/Batch/__tests__/AuthenticaGetStock.ts +0 -26
  42. package/src/Batch/__tests__/AuthenticaGetStockAvailable.ts +0 -22
  43. package/src/Batch/__tests__/Data/AuthenticaGetStock/input.json +0 -6
  44. package/src/Batch/__tests__/Data/AuthenticaGetStock/mock.json +0 -23
  45. package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-input.json +0 -6
  46. package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-mock.json +0 -20
  47. package/src/Batch/__tests__/Data/AuthenticaGetStock/nok-output.json +0 -13
  48. package/src/Batch/__tests__/Data/AuthenticaGetStock/output.json +0 -11
  49. package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/1-mock.json +0 -20
  50. package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/input.json +0 -6
  51. package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/mock.json +0 -21
  52. package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/output.json +0 -14
  53. package/src/Batch/__tests__/Data/AuthenticaGetStockAvailable/output1.json +0 -12
  54. package/src/Connector/AuthenticaCreateOrder.ts +0 -53
  55. package/src/Connector/AuthenticaCreateProduct.ts +0 -54
  56. package/src/Connector/AuthenticaCreateReceipt.ts +0 -53
  57. package/src/Connector/AuthenticaGetCarriersConnector.ts +0 -40
  58. package/src/Connector/AuthenticaGetOrder.ts +0 -58
  59. package/src/Connector/AuthenticaGetOrderStatus.ts +0 -38
  60. package/src/Connector/AuthenticaGetReceipt.ts +0 -58
  61. package/src/Connector/AuthenticaGetShippingMethods.ts +0 -41
  62. package/src/Connector/AuthenticaPostLabel.ts +0 -37
  63. package/src/Connector/AuthenticaPutOrders.ts +0 -83
  64. package/src/Connector/AuthenticaPutProducts.ts +0 -55
  65. package/src/Connector/AuthenticaUpdateOrder.ts +0 -57
  66. package/src/Connector/AuthenticaUpdateProduct.ts +0 -58
  67. package/src/Connector/AuthenticaUpdateReceipt.ts +0 -36
  68. package/src/Connector/__tests__/AuthenticaCreateOrder.ts +0 -22
  69. package/src/Connector/__tests__/AuthenticaCreateProduct.ts +0 -22
  70. package/src/Connector/__tests__/AuthenticaCreateReceipt.ts +0 -22
  71. package/src/Connector/__tests__/AuthenticaGetCarriers.ts +0 -22
  72. package/src/Connector/__tests__/AuthenticaGetOrder.ts +0 -22
  73. package/src/Connector/__tests__/AuthenticaGetOrderStatus.ts +0 -36
  74. package/src/Connector/__tests__/AuthenticaGetReceipt.ts +0 -22
  75. package/src/Connector/__tests__/AuthenticaGetShippingMethods.ts +0 -22
  76. package/src/Connector/__tests__/AuthenticaPostLabel.ts +0 -36
  77. package/src/Connector/__tests__/AuthenticaPutOrders.ts +0 -36
  78. package/src/Connector/__tests__/AuthenticaPutProducts.ts +0 -36
  79. package/src/Connector/__tests__/AuthenticaUpdateOrder.ts +0 -22
  80. package/src/Connector/__tests__/AuthenticaUpdateProduct.ts +0 -22
  81. package/src/Connector/__tests__/AuthenticaUpdateReceipt.ts +0 -22
  82. package/src/Connector/__tests__/Data/AuthenticaCreateOrder/input.json +0 -67
  83. package/src/Connector/__tests__/Data/AuthenticaCreateOrder/mock.json +0 -70
  84. package/src/Connector/__tests__/Data/AuthenticaCreateOrder/output.json +0 -71
  85. package/src/Connector/__tests__/Data/AuthenticaCreateProduct/input.json +0 -28
  86. package/src/Connector/__tests__/Data/AuthenticaCreateProduct/mock.json +0 -28
  87. package/src/Connector/__tests__/Data/AuthenticaCreateProduct/output.json +0 -29
  88. package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/input.json +0 -47
  89. package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/mock.json +0 -51
  90. package/src/Connector/__tests__/Data/AuthenticaCreateReceipt/output.json +0 -52
  91. package/src/Connector/__tests__/Data/AuthenticaGetCarriers/input.json +0 -6
  92. package/src/Connector/__tests__/Data/AuthenticaGetCarriers/mock.json +0 -18
  93. package/src/Connector/__tests__/Data/AuthenticaGetCarriers/output.json +0 -19
  94. package/src/Connector/__tests__/Data/AuthenticaGetOrder/input.json +0 -8
  95. package/src/Connector/__tests__/Data/AuthenticaGetOrder/mock.json +0 -63
  96. package/src/Connector/__tests__/Data/AuthenticaGetOrder/output.json +0 -64
  97. package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/input.json +0 -6
  98. package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/mock.json +0 -12
  99. package/src/Connector/__tests__/Data/AuthenticaGetOrderStatus/output.json +0 -11
  100. package/src/Connector/__tests__/Data/AuthenticaGetReceipt/input.json +0 -8
  101. package/src/Connector/__tests__/Data/AuthenticaGetReceipt/mock.json +0 -54
  102. package/src/Connector/__tests__/Data/AuthenticaGetReceipt/output.json +0 -55
  103. package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/input.json +0 -6
  104. package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/mock.json +0 -404
  105. package/src/Connector/__tests__/Data/AuthenticaGetShippingMethods/output.json +0 -403
  106. package/src/Connector/__tests__/Data/AuthenticaPostLabel/input.json +0 -10
  107. package/src/Connector/__tests__/Data/AuthenticaPostLabel/mock.json +0 -5
  108. package/src/Connector/__tests__/Data/AuthenticaPostLabel/output.json +0 -10
  109. package/src/Connector/__tests__/Data/AuthenticaPutOrders/input.json +0 -43
  110. package/src/Connector/__tests__/Data/AuthenticaPutOrders/mock.json +0 -44
  111. package/src/Connector/__tests__/Data/AuthenticaPutOrders/output.json +0 -43
  112. package/src/Connector/__tests__/Data/AuthenticaPutProducts/input.json +0 -19
  113. package/src/Connector/__tests__/Data/AuthenticaPutProducts/mock.json +0 -20
  114. package/src/Connector/__tests__/Data/AuthenticaPutProducts/output.json +0 -19
  115. package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/input.json +0 -68
  116. package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/mock.json +0 -70
  117. package/src/Connector/__tests__/Data/AuthenticaUpdateOrder/output.json +0 -71
  118. package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/input.json +0 -32
  119. package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/mock.json +0 -28
  120. package/src/Connector/__tests__/Data/AuthenticaUpdateProduct/output.json +0 -31
  121. package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/input.json +0 -45
  122. package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/mock.json +0 -51
  123. package/src/Connector/__tests__/Data/AuthenticaUpdateReceipt/output.json +0 -52
  124. package/src/__tests__/AuthenticaApplication.ts +0 -41
  125. package/src/types/order.ts +0 -40
  126. package/src/types/product.ts +0 -21
  127. package/src/types/receipt.ts +0 -30
  128. package/test/dataProvider.ts +0 -80
  129. package/tsconfig.json +0 -8
  130. package/tsconfig.prod.json +0 -13
  131. package/tsconfig.prod.tsbuildinfo +0 -1
@@ -1,52 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 1,
7
- "status": "waiting_for_receipt",
8
- "externalId": "receipt-1",
9
- "incomingDate": 1709178916,
10
- "customerNote": null,
11
- "customerType": "customer-type",
12
- "supplier": {
13
- "firstName": null,
14
- "lastName": null,
15
- "companyName": "Webwings s.r.o.",
16
- "addressLine1": "Marešova 305/14",
17
- "addressLine2": "2nd floor",
18
- "addressLine3": null,
19
- "city": "Brno",
20
- "zip": "602 00",
21
- "country": "CZ",
22
- "state": null
23
- },
24
- "items": [
25
- {
26
- "productId": 1,
27
- "receivedAmount": 0,
28
- "expectedAmount": 5,
29
- "expectedLot": null,
30
- "expectedExpirationDate": null
31
- },
32
- {
33
- "productId": 2,
34
- "receivedAmount": 0,
35
- "expectedAmount": 3,
36
- "expectedLot": "LOT-1",
37
- "expectedExpirationDate": null
38
- },
39
- {
40
- "productId": 3,
41
- "receivedAmount": 0,
42
- "expectedAmount": 1,
43
- "expectedLot": "LOT-1",
44
- "expectedExpirationDate": 1719178916
45
- }
46
- ],
47
- "trackingNumbers": [
48
- "123456789"
49
- ],
50
- "shipments": []
51
- }
52
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }
@@ -1,18 +0,0 @@
1
- {
2
- "http": "GET https://app.authentica.cz/api/shop/TestUser/carrier",
3
- "code": 200,
4
- "body": [
5
- {
6
- "id": 1,
7
- "name": "Česká pošta - Balík do ruky",
8
- "branchSupported": false,
9
- "branchRequired": false
10
- },
11
- {
12
- "id": 2,
13
- "name": "Česká pošta - Balík na poštu",
14
- "branchSupported": true,
15
- "branchRequired": false
16
- }
17
- ]
18
- }
@@ -1,19 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "branchRequired": false,
8
- "branchSupported": false,
9
- "id": 1,
10
- "name": "Česká pošta - Balík do ruky"
11
- },
12
- {
13
- "branchRequired": false,
14
- "branchSupported": true,
15
- "id": 2,
16
- "name": "Česká pošta - Balík na poštu"
17
- }
18
- ]
19
- }
@@ -1,8 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 123
7
- }
8
- }
@@ -1,63 +0,0 @@
1
- {
2
- "http": "GET https://app.authentica.cz/api/shop/TestUser/order/123",
3
- "code": 200,
4
- "body": {
5
- "id": 1,
6
- "status": "preparation",
7
- "externalId": "external-ddw",
8
- "carrierId": 8,
9
- "branchId": null,
10
- "price": "110.00",
11
- "priceCurrency": "EUR",
12
- "cod": false,
13
- "codValue": null,
14
- "codValueCurrency": null,
15
- "vs": null,
16
- "companyName": "Webwings s.r.o.",
17
- "firstName": null,
18
- "lastName": null,
19
- "addressLine1": "Marešova 14",
20
- "addressLine2": "2nd floor",
21
- "addressLine3": null,
22
- "city": "Brno",
23
- "zip": "602 00",
24
- "country": "CZ",
25
- "state": null,
26
- "phone": "+420808875329",
27
- "email": "developers@webwings.cz",
28
- "printDeliveryNote": true,
29
- "orderTags": [
30
- "tag1",
31
- "tag2"
32
- ],
33
- "orderNumber": null,
34
- "items": [
35
- {
36
- "productId": 12,
37
- "amount": 2
38
- },
39
- {
40
- "productId": 3,
41
- "amount": 5
42
- },
43
- {
44
- "productId": 17,
45
- "amount": 5
46
- },
47
- {
48
- "productId": 5,
49
- "amount": 4
50
- },
51
- {
52
- "productId": 21,
53
- "amount": 1
54
- },
55
- {
56
- "productId": 4,
57
- "amount": 1
58
- }
59
- ],
60
- "trackingNumbers": [],
61
- "trackingUrls": []
62
- }
63
- }
@@ -1,64 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "addressLine1": "Marešova 14",
7
- "addressLine2": "2nd floor",
8
- "addressLine3": null,
9
- "branchId": null,
10
- "carrierId": 8,
11
- "city": "Brno",
12
- "cod": false,
13
- "codValue": null,
14
- "codValueCurrency": null,
15
- "companyName": "Webwings s.r.o.",
16
- "country": "CZ",
17
- "email": "developers@webwings.cz",
18
- "externalId": "external-ddw",
19
- "firstName": null,
20
- "id": 1,
21
- "items": [
22
- {
23
- "amount": 2,
24
- "productId": 12
25
- },
26
- {
27
- "amount": 5,
28
- "productId": 3
29
- },
30
- {
31
- "amount": 5,
32
- "productId": 17
33
- },
34
- {
35
- "amount": 4,
36
- "productId": 5
37
- },
38
- {
39
- "amount": 1,
40
- "productId": 21
41
- },
42
- {
43
- "amount": 1,
44
- "productId": 4
45
- }
46
- ],
47
- "lastName": null,
48
- "orderNumber": null,
49
- "orderTags": [
50
- "tag1",
51
- "tag2"
52
- ],
53
- "phone": "+420808875329",
54
- "price": "110.00",
55
- "priceCurrency": "EUR",
56
- "printDeliveryNote": true,
57
- "state": null,
58
- "status": "preparation",
59
- "trackingNumbers": [],
60
- "trackingUrls": [],
61
- "vs": null,
62
- "zip": "602 00"
63
- }
64
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }
@@ -1,12 +0,0 @@
1
- {
2
- "http": "GET https://app.authentica.cz/api/applinth/order-statuses",
3
- "code": 200,
4
- "body": {
5
- "data": [
6
- {
7
- "id": "string",
8
- "title": "string"
9
- }
10
- ]
11
- }
12
- }
@@ -1,11 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": [
6
- {
7
- "id": "string",
8
- "title": "string"
9
- }
10
- ]
11
- }
@@ -1,8 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 123
7
- }
8
- }
@@ -1,54 +0,0 @@
1
- {
2
- "http": "GET https://app.authentica.cz/api/shop/TestUser/receipt/123",
3
- "code": 200,
4
- "body": {
5
- "id": 1,
6
- "status": "waiting_for_receipt",
7
- "externalId": "receipt-1",
8
- "incomingDate": 1709178916,
9
- "customerNote": null,
10
- "customerType": null,
11
- "supplier": {
12
- "firstName": null,
13
- "lastName": null,
14
- "companyName": "Webwings s.r.o.",
15
- "addressLine1": "Marešova 305/14",
16
- "addressLine2": "2nd floor",
17
- "addressLine3": null,
18
- "city": "Brno",
19
- "zip": "602 00",
20
- "country": "CZ",
21
- "state": null
22
- },
23
- "items": [
24
- {
25
- "productId": 1,
26
- "receivedAmount": 0,
27
- "expectedAmount": 5,
28
- "expectedLot": null,
29
- "expectedExpirationDate": null
30
- },
31
- {
32
- "productId": 2,
33
- "receivedAmount": 0,
34
- "expectedAmount": 3,
35
- "expectedLot": "LOT-1",
36
- "expectedExpirationDate": null
37
- },
38
- {
39
- "productId": 3,
40
- "receivedAmount": 0,
41
- "expectedAmount": 1,
42
- "expectedLot": "LOT-1",
43
- "expectedExpirationDate": 1719178916
44
- }
45
- ],
46
- "trackingNumbers": [
47
- "123456789"
48
- ],
49
- "shipments": [
50
- 1,
51
- 2
52
- ]
53
- }
54
- }
@@ -1,55 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {
6
- "id": 1,
7
- "status": "waiting_for_receipt",
8
- "externalId": "receipt-1",
9
- "incomingDate": 1709178916,
10
- "customerNote": null,
11
- "customerType": null,
12
- "supplier": {
13
- "firstName": null,
14
- "lastName": null,
15
- "companyName": "Webwings s.r.o.",
16
- "addressLine1": "Marešova 305/14",
17
- "addressLine2": "2nd floor",
18
- "addressLine3": null,
19
- "city": "Brno",
20
- "zip": "602 00",
21
- "country": "CZ",
22
- "state": null
23
- },
24
- "items": [
25
- {
26
- "productId": 1,
27
- "receivedAmount": 0,
28
- "expectedAmount": 5,
29
- "expectedLot": null,
30
- "expectedExpirationDate": null
31
- },
32
- {
33
- "productId": 2,
34
- "receivedAmount": 0,
35
- "expectedAmount": 3,
36
- "expectedLot": "LOT-1",
37
- "expectedExpirationDate": null
38
- },
39
- {
40
- "productId": 3,
41
- "receivedAmount": 0,
42
- "expectedAmount": 1,
43
- "expectedLot": "LOT-1",
44
- "expectedExpirationDate": 1719178916
45
- }
46
- ],
47
- "trackingNumbers": [
48
- "123456789"
49
- ],
50
- "shipments": [
51
- 1,
52
- 2
53
- ]
54
- }
55
- }
@@ -1,6 +0,0 @@
1
- {
2
- "headers": {
3
- "user": "TestUser"
4
- },
5
- "data": {}
6
- }