@orchesty/connector-upgates 1.0.0 → 2.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 (103) hide show
  1. package/README.md +95 -0
  2. package/dist/Batch/UpgatesCreateWebhooks.js +1 -0
  3. package/dist/Connector/UpgatesDeleteWebhooks.js +5 -1
  4. package/dist/package.json +5 -2
  5. package/package.json +5 -2
  6. package/CHANGELOG.md +0 -7
  7. package/coverage/clover.xml +0 -302
  8. package/coverage/coverage-final.json +0 -11
  9. package/coverage/lcov-report/base.css +0 -224
  10. package/coverage/lcov-report/block-navigation.js +0 -87
  11. package/coverage/lcov-report/favicon.png +0 -0
  12. package/coverage/lcov-report/index.html +0 -161
  13. package/coverage/lcov-report/prettify.css +0 -1
  14. package/coverage/lcov-report/prettify.js +0 -2
  15. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  16. package/coverage/lcov-report/sorter.js +0 -210
  17. package/coverage/lcov-report/src/Batch/UpgatesCreateWebhooks.ts.html +0 -358
  18. package/coverage/lcov-report/src/Batch/UpgatesGetOrders.ts.html +0 -727
  19. package/coverage/lcov-report/src/Batch/UpgatesGetProducts.ts.html +0 -733
  20. package/coverage/lcov-report/src/Batch/index.html +0 -146
  21. package/coverage/lcov-report/src/Connector/UpgatesDeleteWebhooks.ts.html +0 -370
  22. package/coverage/lcov-report/src/Connector/UpgatesGetOrderStates.ts.html +0 -190
  23. package/coverage/lcov-report/src/Connector/UpgatesGetPayments.ts.html +0 -268
  24. package/coverage/lcov-report/src/Connector/UpgatesGetProductParameters.ts.html +0 -316
  25. package/coverage/lcov-report/src/Connector/UpgatesGetShipments.ts.html +0 -274
  26. package/coverage/lcov-report/src/Connector/index.html +0 -176
  27. package/coverage/lcov-report/src/UpgatesApplication.ts.html +0 -379
  28. package/coverage/lcov-report/src/index.html +0 -116
  29. package/coverage/lcov-report/test/dataProvider.ts.html +0 -223
  30. package/coverage/lcov-report/test/index.html +0 -116
  31. package/coverage/lcov.info +0 -485
  32. package/jest.config.js +0 -13
  33. package/src/Batch/UpgatesCreateWebhooks.ts +0 -91
  34. package/src/Batch/UpgatesGetOrders.ts +0 -214
  35. package/src/Batch/UpgatesGetProducts.ts +0 -216
  36. package/src/Batch/__tests__/Data/UpgatesCreateWebhooks/input.json +0 -6
  37. package/src/Batch/__tests__/Data/UpgatesCreateWebhooks/mock.json +0 -14
  38. package/src/Batch/__tests__/Data/UpgatesCreateWebhooks/output.json +0 -6
  39. package/src/Batch/__tests__/Data/UpgatesGetOrders/input.json +0 -6
  40. package/src/Batch/__tests__/Data/UpgatesGetOrders/lastRun-input.json +0 -6
  41. package/src/Batch/__tests__/Data/UpgatesGetOrders/lastRun-mock.json +0 -191
  42. package/src/Batch/__tests__/Data/UpgatesGetOrders/lastRun-output.json +0 -11
  43. package/src/Batch/__tests__/Data/UpgatesGetOrders/mock.json +0 -191
  44. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumber-input.json +0 -8
  45. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumber-mock.json +0 -191
  46. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumber-output.json +0 -11
  47. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumbers-input.json +0 -8
  48. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumbers-mock.json +0 -191
  49. package/src/Batch/__tests__/Data/UpgatesGetOrders/orderNumbers-output.json +0 -11
  50. package/src/Batch/__tests__/Data/UpgatesGetOrders/output.json +0 -11
  51. package/src/Batch/__tests__/Data/UpgatesGetProducts/input.json +0 -6
  52. package/src/Batch/__tests__/Data/UpgatesGetProducts/lastRun-input.json +0 -6
  53. package/src/Batch/__tests__/Data/UpgatesGetProducts/lastRun-mock.json +0 -147
  54. package/src/Batch/__tests__/Data/UpgatesGetProducts/lastRun-output.json +0 -11
  55. package/src/Batch/__tests__/Data/UpgatesGetProducts/mock.json +0 -146
  56. package/src/Batch/__tests__/Data/UpgatesGetProducts/output.json +0 -11
  57. package/src/Batch/__tests__/Data/UpgatesGetProducts/productId-input.json +0 -8
  58. package/src/Batch/__tests__/Data/UpgatesGetProducts/productId-mock.json +0 -146
  59. package/src/Batch/__tests__/Data/UpgatesGetProducts/productId-output.json +0 -11
  60. package/src/Batch/__tests__/Data/UpgatesGetProducts/productIds-input.json +0 -8
  61. package/src/Batch/__tests__/Data/UpgatesGetProducts/productIds-mock.json +0 -146
  62. package/src/Batch/__tests__/Data/UpgatesGetProducts/productIds-output.json +0 -11
  63. package/src/Batch/__tests__/UpgatesCreateWebhooks.ts +0 -17
  64. package/src/Batch/__tests__/UpgatesGetOrders.ts +0 -33
  65. package/src/Batch/__tests__/UpgatesGetProducts.ts +0 -33
  66. package/src/Connector/UpgatesDeleteWebhooks.ts +0 -95
  67. package/src/Connector/UpgatesGetOrderStates.ts +0 -35
  68. package/src/Connector/UpgatesGetPayments.ts +0 -61
  69. package/src/Connector/UpgatesGetProductParameters.ts +0 -77
  70. package/src/Connector/UpgatesGetShipments.ts +0 -63
  71. package/src/Connector/UpgatesUpdateOrder.ts +0 -73
  72. package/src/Connector/UpgatesUpdateStock.ts +0 -59
  73. package/src/Connector/__tests__/Data/UpgatesDeleteWebhooks/input.json +0 -6
  74. package/src/Connector/__tests__/Data/UpgatesDeleteWebhooks/mock.json +0 -16
  75. package/src/Connector/__tests__/Data/UpgatesDeleteWebhooks/output.json +0 -6
  76. package/src/Connector/__tests__/Data/UpgatesGetOrderStates/input.json +0 -6
  77. package/src/Connector/__tests__/Data/UpgatesGetOrderStates/mock.json +0 -14
  78. package/src/Connector/__tests__/Data/UpgatesGetOrderStates/output.json +0 -15
  79. package/src/Connector/__tests__/Data/UpgatesGetPayments/input.json +0 -6
  80. package/src/Connector/__tests__/Data/UpgatesGetPayments/mock.json +0 -42
  81. package/src/Connector/__tests__/Data/UpgatesGetPayments/output.json +0 -43
  82. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/both-input.json +0 -9
  83. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/both-mock.json +0 -108
  84. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/both-output.json +0 -109
  85. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/input.json +0 -8
  86. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/mock.json +0 -108
  87. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/none-input.json +0 -6
  88. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/none-mock.json +0 -5
  89. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/none-output.json +0 -6
  90. package/src/Connector/__tests__/Data/UpgatesGetProductParameters/output.json +0 -109
  91. package/src/Connector/__tests__/Data/UpgatesGetShipments/input.json +0 -6
  92. package/src/Connector/__tests__/Data/UpgatesGetShipments/mock.json +0 -58
  93. package/src/Connector/__tests__/Data/UpgatesGetShipments/output.json +0 -59
  94. package/src/Connector/__tests__/UpgatesDeleteWebhooks.ts +0 -61
  95. package/src/Connector/__tests__/UpgatesGetOrderStates.ts +0 -18
  96. package/src/Connector/__tests__/UpgatesGetPayments.ts +0 -18
  97. package/src/Connector/__tests__/UpgatesGetProductParameters.ts +0 -28
  98. package/src/Connector/__tests__/UpgatesGetShipments.ts +0 -18
  99. package/src/UpgatesApplication.ts +0 -98
  100. package/test/dataProvider.ts +0 -46
  101. package/tsconfig.json +0 -8
  102. package/tsconfig.prod.json +0 -13
  103. package/tsconfig.prod.tsbuildinfo +0 -1
package/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # Upgates Connector
2
+
3
+ [![npm](https://img.shields.io/npm/v/@orchesty/connector-upgates?color=15ba68)](https://www.npmjs.com/package/@orchesty/connector-upgates)
4
+ [![License](https://img.shields.io/badge/license-Apache--2.0-15ba68)](https://github.com/Orchesty/orchesty-nodejs-connectors/blob/master/LICENSE)
5
+
6
+ An [Orchesty](https://orchesty.io) connector for Upgates, a Czech e-commerce platform for creating and managing online stores.
7
+
8
+ ## Application Type
9
+
10
+ **Basic**
11
+
12
+ This connector authenticates using HTTP Basic auth (Login + API Key, Base64-encoded). The store URL is configurable per instance.
13
+
14
+ | Field | Description |
15
+ |---|---|
16
+ | `user` | Your Upgates login username |
17
+ | `password` | Your Upgates API key |
18
+ | `upgatesUrl` | Your Upgates store URL (e.g. `https://my-store.upgates.com`) |
19
+
20
+ ## Components
21
+
22
+ | Class | Type | Description |
23
+ |---|---|---|
24
+ | `UpgatesGetOrderStates` | Connector | Retrieves available order states via `GET /api/v2/orders/states` |
25
+ | `UpgatesGetPayments` | Connector | Retrieves payment methods via `GET /api/v2/payments` |
26
+ | `UpgatesGetProductParameters` | Connector | Fetches product parameters via `GET /api/v2/products/parameters/` |
27
+ | `UpgatesGetShipments` | Connector | Retrieves shipment methods via `GET /api/v2/shipments` |
28
+ | `UpgatesUpdateOrder` | Connector | Updates one or more orders via `PUT /api/v2/orders` |
29
+ | `UpgatesUpdateStock` | Connector | Updates stock quantities for products via `PUT /api/v2/products` |
30
+ | `UpgatesDeleteWebhooks` | Connector | Deletes all registered webhooks via `DELETE /api/v2/webhooks?ids={ids}` |
31
+ | `UpgatesCreateWebhooks` | Batch | Registers webhook subscriptions via `POST /api/v2/webhooks` |
32
+ | `UpgatesGetOrders` | Batch | Paginates through orders via `GET /api/v2/orders`; supports date-cursor filtering |
33
+ | `UpgatesGetProducts` | Batch | Paginates through products via `GET /api/v2/products`; supports date-cursor filtering |
34
+
35
+ ## Setup
36
+
37
+ ### Credentials
38
+
39
+ 1. Log in to your [Upgates](https://www.upgates.com/) admin panel.
40
+ 2. Navigate to **Settings → API** and note your **API key**.
41
+ 3. In Orchesty, open the Upgates application settings and fill in your login username, API key, and store URL.
42
+
43
+ ### API Documentation
44
+
45
+ Upgates API: [https://api.upgates.com/](https://api.upgates.com/)
46
+
47
+ ## Installation & Usage
48
+
49
+ Install the package:
50
+
51
+ ```bash
52
+ npm install @orchesty/connector-upgates @orchesty/nodejs-sdk
53
+ # or
54
+ pnpm add @orchesty/connector-upgates @orchesty/nodejs-sdk
55
+ ```
56
+
57
+ Register the application and nodes in your Orchesty DI container:
58
+
59
+ ```typescript
60
+ import { container } from '@orchesty/nodejs-sdk';
61
+ import UpgatesApplication from '@orchesty/connector-upgates/dist/UpgatesApplication';
62
+ import UpgatesGetOrderStates from '@orchesty/connector-upgates/dist/Connector/UpgatesGetOrderStates';
63
+ import UpgatesUpdateOrder from '@orchesty/connector-upgates/dist/Connector/UpgatesUpdateOrder';
64
+ import UpgatesUpdateStock from '@orchesty/connector-upgates/dist/Connector/UpgatesUpdateStock';
65
+ import UpgatesDeleteWebhooks from '@orchesty/connector-upgates/dist/Connector/UpgatesDeleteWebhooks';
66
+ import UpgatesCreateWebhooks from '@orchesty/connector-upgates/dist/Batch/UpgatesCreateWebhooks';
67
+ import UpgatesGetOrders from '@orchesty/connector-upgates/dist/Batch/UpgatesGetOrders';
68
+ import UpgatesGetProducts from '@orchesty/connector-upgates/dist/Batch/UpgatesGetProducts';
69
+
70
+ const app = new UpgatesApplication();
71
+ container.setApplication(app);
72
+ container.setNode(new UpgatesGetOrderStates(), app);
73
+ container.setNode(new UpgatesUpdateOrder(), app);
74
+ container.setNode(new UpgatesUpdateStock(), app);
75
+ container.setNode(new UpgatesDeleteWebhooks(), app);
76
+ container.setNode(new UpgatesCreateWebhooks(), app);
77
+ container.setNode(new UpgatesGetOrders(), app);
78
+ container.setNode(new UpgatesGetProducts(), app);
79
+ // ... register remaining connectors similarly
80
+ ```
81
+
82
+ ## License
83
+
84
+ This connector is released under the **Apache License 2.0**. See the [LICENSE](https://github.com/Orchesty/orchesty-nodejs-connectors/blob/master/LICENSE) file for the full license text.
85
+
86
+ ## Contributing
87
+
88
+ Contributions are welcome! This connector is part of the open-source [Orchesty Node.js Connectors](https://github.com/Orchesty/orchesty-nodejs-connectors) monorepo.
89
+
90
+ For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the **[Contributing to Connectors](https://orchesty.io/community/contributing-to-connectors)** guide.
91
+
92
+ All contributions should include:
93
+ - Source code in `src/` following the existing connector structure
94
+ - Tests in `src/**/__tests__/` with `input.json`, `mock.json`, and `output.json` fixtures
95
+ - An updated `CHANGELOG.md` entry
@@ -37,6 +37,7 @@ class UpgatesCreateWebhooks extends ABatchNode_1.default {
37
37
  await repo.insert(new Webhook_1.default()
38
38
  .setWebhookId(respBody.webhook.id.toString())
39
39
  .setUser(appInstall.getUser())
40
+ .setSdk(appInstall.getSdk())
40
41
  .setNode(webhooks[webhookIndex].getNode())
41
42
  .setToken(token)
42
43
  .setApplication(app.getName())
@@ -25,7 +25,11 @@ class UpgatesDeleteWebhooks extends AConnector_1.default {
25
25
  appInstall = await this.getApplicationInstallFromProcess(dto, null, false);
26
26
  }
27
27
  const repo = this.getDbClient().getRepository(Webhook_1.default);
28
- const webhooks = (await repo.findMany({ users: [appInstall.getUser()], apps: [app.getName()] }))
28
+ const webhooks = (await repo.findMany({
29
+ users: [appInstall.getUser()],
30
+ apps: [app.getName()],
31
+ sdks: [appInstall.getSdk()],
32
+ }))
29
33
  .filter((item) => !item.getUnsubscribeFailed());
30
34
  const webhooksIds = [];
31
35
  webhooks.forEach((webhook) => {
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchesty/connector-upgates",
3
3
  "description": "",
4
- "version": "0.0.0",
4
+ "version": "1.0.1",
5
5
  "license": "Apache-2.0",
6
6
  "url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
7
7
  "repository": "https://github.com/Orchesty/orchesty-nodejs-connectors",
@@ -11,10 +11,13 @@
11
11
  "lint": "eslint src test --fix",
12
12
  "lint-ci": "eslint src test"
13
13
  },
14
+ "files": [
15
+ "dist"
16
+ ],
14
17
  "keywords": [],
15
18
  "author": "info@hanaboso.com",
16
19
  "dependencies": {
17
- "@orchesty/nodejs-sdk": "^4.3.6",
20
+ "@orchesty/nodejs-sdk": "^5.0.8",
18
21
  "http-status-codes": "^2.3.0",
19
22
  "luxon": "^3.7.2"
20
23
  },
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@orchesty/connector-upgates",
3
3
  "description": "",
4
- "version": "1.0.0",
4
+ "version": "2.0.0",
5
5
  "license": "Apache-2.0",
6
6
  "url": "https://github.com/Orchesty/orchesty-nodejs-connectors",
7
7
  "repository": "https://github.com/Orchesty/orchesty-nodejs-connectors",
8
+ "files": [
9
+ "dist"
10
+ ],
8
11
  "keywords": [],
9
12
  "author": "info@hanaboso.com",
10
13
  "dependencies": {
11
- "@orchesty/nodejs-sdk": "^4.3.6",
14
+ "@orchesty/nodejs-sdk": "^5.0.8",
12
15
  "http-status-codes": "^2.3.0",
13
16
  "luxon": "^3.7.2"
14
17
  },
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # @orchesty/connector-upgates
2
-
3
- ## 1.0.0
4
-
5
- ### Major Changes
6
-
7
- - initial release
@@ -1,302 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1768470332289" clover="3.2.0">
3
- <project timestamp="1768470332289" name="All files">
4
- <metrics statements="254" coveredstatements="221" conditionals="69" coveredconditionals="49" methods="36" coveredmethods="29" elements="359" coveredelements="299" complexity="0" loc="254" ncloc="254" packages="4" files="10" classes="10"/>
5
- <package name="src">
6
- <metrics statements="35" coveredstatements="27" conditionals="13" coveredconditionals="6" methods="10" coveredmethods="5"/>
7
- <file name="UpgatesApplication.ts" path="/var/www/lib/Upgates/src/UpgatesApplication.ts">
8
- <metrics statements="35" coveredstatements="27" conditionals="13" coveredconditionals="6" methods="10" coveredmethods="5"/>
9
- <line num="1" count="8" type="stmt"/>
10
- <line num="3" count="8" type="stmt"/>
11
- <line num="4" count="8" type="stmt"/>
12
- <line num="5" count="8" type="stmt"/>
13
- <line num="6" count="8" type="stmt"/>
14
- <line num="8" count="8" type="stmt"/>
15
- <line num="13" count="8" type="stmt"/>
16
- <line num="14" count="8" type="stmt"/>
17
- <line num="16" count="8" type="stmt"/>
18
- <line num="17" count="8" type="stmt"/>
19
- <line num="19" count="8" type="stmt"/>
20
- <line num="21" count="8" type="stmt"/>
21
- <line num="23" count="8" type="stmt"/>
22
- <line num="26" count="0" type="stmt"/>
23
- <line num="30" count="23" type="stmt"/>
24
- <line num="34" count="0" type="stmt"/>
25
- <line num="38" count="0" type="stmt"/>
26
- <line num="48" count="14" type="stmt"/>
27
- <line num="49" count="14" type="stmt"/>
28
- <line num="52" count="14" type="stmt"/>
29
- <line num="58" count="14" type="cond" truecount="1" falsecount="1"/>
30
- <line num="59" count="14" type="cond" truecount="1" falsecount="1"/>
31
- <line num="60" count="14" type="stmt"/>
32
- <line num="63" count="14" type="stmt"/>
33
- <line num="67" count="14" type="cond" truecount="1" falsecount="1"/>
34
- <line num="68" count="14" type="stmt"/>
35
- <line num="69" count="14" type="cond" truecount="1" falsecount="1"/>
36
- <line num="70" count="0" type="stmt"/>
37
- <line num="73" count="14" type="stmt"/>
38
- <line num="77" count="0" type="stmt"/>
39
- <line num="82" count="0" type="stmt"/>
40
- <line num="86" count="0" type="stmt"/>
41
- <line num="87" count="0" type="cond" truecount="0" falsecount="3"/>
42
- <line num="91" count="4" type="cond" truecount="2" falsecount="0"/>
43
- <line num="95" count="1" type="stmt"/>
44
- </file>
45
- </package>
46
- <package name="src.Batch">
47
- <metrics statements="108" coveredstatements="92" conditionals="34" coveredconditionals="27" methods="9" coveredmethods="8"/>
48
- <file name="UpgatesCreateWebhooks.ts" path="/var/www/lib/Upgates/src/Batch/UpgatesCreateWebhooks.ts">
49
- <metrics statements="30" coveredstatements="16" conditionals="6" coveredconditionals="1" methods="3" coveredmethods="2"/>
50
- <line num="1" count="8" type="stmt"/>
51
- <line num="2" count="8" type="stmt"/>
52
- <line num="3" count="8" type="stmt"/>
53
- <line num="4" count="8" type="stmt"/>
54
- <line num="5" count="8" type="stmt"/>
55
- <line num="7" count="8" type="stmt"/>
56
- <line num="8" count="8" type="stmt"/>
57
- <line num="11" count="8" type="stmt"/>
58
- <line num="12" count="8" type="stmt"/>
59
- <line num="14" count="8" type="stmt"/>
60
- <line num="17" count="8" type="stmt"/>
61
- <line num="21" count="1" type="stmt"/>
62
- <line num="23" count="1" type="stmt"/>
63
- <line num="24" count="1" type="stmt"/>
64
- <line num="26" count="1" type="cond" truecount="1" falsecount="1"/>
65
- <line num="27" count="0" type="stmt"/>
66
- <line num="28" count="0" type="stmt"/>
67
- <line num="30" count="0" type="stmt"/>
68
- <line num="31" count="0" type="stmt"/>
69
- <line num="48" count="0" type="stmt"/>
70
- <line num="49" count="0" type="stmt"/>
71
- <line num="50" count="0" type="stmt"/>
72
- <line num="52" count="0" type="stmt"/>
73
- <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
74
- <line num="62" count="0" type="stmt"/>
75
- <line num="66" count="0" type="stmt"/>
76
- <line num="67" count="0" type="stmt"/>
77
- <line num="69" count="0" type="cond" truecount="0" falsecount="2"/>
78
- <line num="73" count="1" type="stmt"/>
79
- <line num="77" count="0" type="stmt"/>
80
- </file>
81
- <file name="UpgatesGetOrders.ts" path="/var/www/lib/Upgates/src/Batch/UpgatesGetOrders.ts">
82
- <metrics statements="31" coveredstatements="30" conditionals="12" coveredconditionals="11" methods="2" coveredmethods="2"/>
83
- <line num="1" count="8" type="stmt"/>
84
- <line num="2" count="8" type="stmt"/>
85
- <line num="4" count="8" type="stmt"/>
86
- <line num="5" count="8" type="stmt"/>
87
- <line num="7" count="8" type="stmt"/>
88
- <line num="9" count="8" type="stmt"/>
89
- <line num="11" count="8" type="stmt"/>
90
- <line num="14" count="8" type="stmt"/>
91
- <line num="18" count="4" type="stmt"/>
92
- <line num="19" count="4" type="stmt"/>
93
- <line num="21" count="4" type="stmt"/>
94
- <line num="22" count="4" type="stmt"/>
95
- <line num="26" count="4" type="cond" truecount="2" falsecount="0"/>
96
- <line num="27" count="1" type="stmt"/>
97
- <line num="28" count="3" type="cond" truecount="2" falsecount="0"/>
98
- <line num="29" count="1" type="stmt"/>
99
- <line num="31" count="2" type="stmt"/>
100
- <line num="33" count="2" type="cond" truecount="2" falsecount="0"/>
101
- <line num="34" count="2" type="cond" truecount="2" falsecount="0"/>
102
- <line num="35" count="1" type="stmt"/>
103
- <line num="39" count="4" type="stmt"/>
104
- <line num="40" count="4" type="stmt"/>
105
- <line num="46" count="4" type="stmt"/>
106
- <line num="48" count="4" type="cond" truecount="1" falsecount="1"/>
107
- <line num="49" count="0" type="stmt"/>
108
- <line num="50" count="4" type="cond" truecount="2" falsecount="0"/>
109
- <line num="51" count="3" type="stmt"/>
110
- <line num="52" count="3" type="stmt"/>
111
- <line num="53" count="3" type="stmt"/>
112
- <line num="55" count="4" type="stmt"/>
113
- <line num="57" count="4" type="stmt"/>
114
- </file>
115
- <file name="UpgatesGetProducts.ts" path="/var/www/lib/Upgates/src/Batch/UpgatesGetProducts.ts">
116
- <metrics statements="47" coveredstatements="46" conditionals="16" coveredconditionals="15" methods="4" coveredmethods="4"/>
117
- <line num="1" count="8" type="stmt"/>
118
- <line num="2" count="8" type="stmt"/>
119
- <line num="4" count="8" type="stmt"/>
120
- <line num="7" count="8" type="stmt"/>
121
- <line num="9" count="8" type="stmt"/>
122
- <line num="11" count="8" type="stmt"/>
123
- <line num="14" count="8" type="stmt"/>
124
- <line num="18" count="4" type="stmt"/>
125
- <line num="19" count="4" type="stmt"/>
126
- <line num="21" count="4" type="stmt"/>
127
- <line num="22" count="4" type="stmt"/>
128
- <line num="24" count="4" type="stmt"/>
129
- <line num="26" count="4" type="cond" truecount="2" falsecount="0"/>
130
- <line num="27" count="1" type="stmt"/>
131
- <line num="28" count="3" type="cond" truecount="2" falsecount="0"/>
132
- <line num="29" count="1" type="stmt"/>
133
- <line num="31" count="2" type="stmt"/>
134
- <line num="33" count="2" type="cond" truecount="2" falsecount="0"/>
135
- <line num="34" count="2" type="cond" truecount="2" falsecount="0"/>
136
- <line num="35" count="1" type="stmt"/>
137
- <line num="38" count="4" type="stmt"/>
138
- <line num="40" count="4" type="stmt"/>
139
- <line num="41" count="4" type="stmt"/>
140
- <line num="43" count="4" type="cond" truecount="1" falsecount="1"/>
141
- <line num="44" count="0" type="stmt"/>
142
- <line num="45" count="4" type="cond" truecount="2" falsecount="0"/>
143
- <line num="46" count="3" type="stmt"/>
144
- <line num="47" count="3" type="stmt"/>
145
- <line num="48" count="3" type="stmt"/>
146
- <line num="51" count="4" type="stmt"/>
147
- <line num="53" count="4" type="stmt"/>
148
- <line num="198" count="8" type="cond" truecount="2" falsecount="0"/>
149
- <line num="199" count="8" type="stmt"/>
150
- <line num="200" count="8" type="stmt"/>
151
- <line num="201" count="8" type="stmt"/>
152
- <line num="202" count="8" type="stmt"/>
153
- <line num="205" count="8" type="cond" truecount="2" falsecount="0"/>
154
- <line num="206" count="8" type="stmt"/>
155
- <line num="207" count="8" type="stmt"/>
156
- <line num="208" count="8" type="stmt"/>
157
- <line num="209" count="8" type="stmt"/>
158
- <line num="210" count="8" type="stmt"/>
159
- <line num="211" count="8" type="stmt"/>
160
- <line num="212" count="8" type="stmt"/>
161
- <line num="213" count="8" type="stmt"/>
162
- <line num="214" count="8" type="stmt"/>
163
- <line num="215" count="8" type="stmt"/>
164
- </file>
165
- </package>
166
- <package name="src.Connector">
167
- <metrics statements="85" coveredstatements="76" conditionals="22" coveredconditionals="16" methods="15" coveredmethods="14"/>
168
- <file name="UpgatesDeleteWebhooks.ts" path="/var/www/lib/Upgates/src/Connector/UpgatesDeleteWebhooks.ts">
169
- <metrics statements="40" coveredstatements="31" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
170
- <line num="2" count="8" type="stmt"/>
171
- <line num="4" count="8" type="stmt"/>
172
- <line num="5" count="8" type="stmt"/>
173
- <line num="6" count="8" type="stmt"/>
174
- <line num="8" count="8" type="stmt"/>
175
- <line num="11" count="8" type="stmt"/>
176
- <line num="12" count="8" type="stmt"/>
177
- <line num="14" count="8" type="stmt"/>
178
- <line num="17" count="8" type="stmt"/>
179
- <line num="21" count="1" type="stmt"/>
180
- <line num="24" count="1" type="stmt"/>
181
- <line num="25" count="1" type="stmt"/>
182
- <line num="28" count="0" type="stmt"/>
183
- <line num="31" count="1" type="stmt"/>
184
- <line num="32" count="1" type="stmt"/>
185
- <line num="33" count="2" type="stmt"/>
186
- <line num="35" count="1" type="stmt"/>
187
- <line num="37" count="1" type="stmt"/>
188
- <line num="38" count="1" type="stmt"/>
189
- <line num="41" count="1" type="cond" truecount="3" falsecount="1"/>
190
- <line num="42" count="1" type="stmt"/>
191
- <line num="48" count="1" type="stmt"/>
192
- <line num="49" count="1" type="cond" truecount="2" falsecount="2"/>
193
- <line num="50" count="0" type="stmt"/>
194
- <line num="52" count="0" type="stmt"/>
195
- <line num="53" count="0" type="stmt"/>
196
- <line num="56" count="0" type="stmt"/>
197
- <line num="59" count="1" type="stmt"/>
198
- <line num="60" count="1" type="stmt"/>
199
- <line num="61" count="1" type="stmt"/>
200
- <line num="63" count="1" type="stmt"/>
201
- <line num="64" count="1" type="stmt"/>
202
- <line num="66" count="1" type="cond" truecount="1" falsecount="1"/>
203
- <line num="67" count="1" type="stmt"/>
204
- <line num="70" count="0" type="stmt"/>
205
- <line num="71" count="0" type="stmt"/>
206
- <line num="72" count="0" type="stmt"/>
207
- <line num="76" count="1" type="cond" truecount="1" falsecount="1"/>
208
- <line num="77" count="0" type="stmt"/>
209
- <line num="81" count="1" type="stmt"/>
210
- </file>
211
- <file name="UpgatesGetOrderStates.ts" path="/var/www/lib/Upgates/src/Connector/UpgatesGetOrderStates.ts">
212
- <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
213
- <line num="1" count="8" type="stmt"/>
214
- <line num="2" count="8" type="stmt"/>
215
- <line num="5" count="8" type="stmt"/>
216
- <line num="6" count="8" type="stmt"/>
217
- <line num="8" count="8" type="stmt"/>
218
- <line num="11" count="8" type="stmt"/>
219
- <line num="15" count="1" type="stmt"/>
220
- <line num="21" count="1" type="stmt"/>
221
- <line num="23" count="1" type="stmt"/>
222
- </file>
223
- <file name="UpgatesGetPayments.ts" path="/var/www/lib/Upgates/src/Connector/UpgatesGetPayments.ts">
224
- <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
225
- <line num="1" count="8" type="stmt"/>
226
- <line num="2" count="8" type="stmt"/>
227
- <line num="5" count="8" type="stmt"/>
228
- <line num="6" count="8" type="stmt"/>
229
- <line num="8" count="8" type="stmt"/>
230
- <line num="11" count="8" type="stmt"/>
231
- <line num="15" count="1" type="stmt"/>
232
- <line num="21" count="1" type="stmt"/>
233
- <line num="23" count="1" type="stmt"/>
234
- </file>
235
- <file name="UpgatesGetProductParameters.ts" path="/var/www/lib/Upgates/src/Connector/UpgatesGetProductParameters.ts">
236
- <metrics statements="18" coveredstatements="18" conditionals="10" coveredconditionals="9" methods="2" coveredmethods="2"/>
237
- <line num="1" count="8" type="stmt"/>
238
- <line num="2" count="8" type="stmt"/>
239
- <line num="5" count="8" type="stmt"/>
240
- <line num="6" count="8" type="stmt"/>
241
- <line num="8" count="8" type="stmt"/>
242
- <line num="11" count="8" type="stmt"/>
243
- <line num="15" count="3" type="stmt"/>
244
- <line num="17" count="3" type="cond" truecount="4" falsecount="0"/>
245
- <line num="18" count="1" type="stmt"/>
246
- <line num="21" count="2" type="stmt"/>
247
- <line num="22" count="2" type="cond" truecount="2" falsecount="0"/>
248
- <line num="23" count="1" type="stmt"/>
249
- <line num="26" count="2" type="cond" truecount="1" falsecount="1"/>
250
- <line num="27" count="2" type="cond" truecount="2" falsecount="0"/>
251
- <line num="28" count="2" type="stmt"/>
252
- <line num="31" count="2" type="stmt"/>
253
- <line num="37" count="2" type="stmt"/>
254
- <line num="39" count="2" type="stmt"/>
255
- </file>
256
- <file name="UpgatesGetShipments.ts" path="/var/www/lib/Upgates/src/Connector/UpgatesGetShipments.ts">
257
- <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
258
- <line num="1" count="8" type="stmt"/>
259
- <line num="2" count="8" type="stmt"/>
260
- <line num="5" count="8" type="stmt"/>
261
- <line num="6" count="8" type="stmt"/>
262
- <line num="8" count="8" type="stmt"/>
263
- <line num="11" count="8" type="stmt"/>
264
- <line num="15" count="1" type="stmt"/>
265
- <line num="21" count="1" type="stmt"/>
266
- <line num="23" count="1" type="stmt"/>
267
- </file>
268
- </package>
269
- <package name="test">
270
- <metrics statements="26" coveredstatements="26" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
271
- <file name="dataProvider.ts" path="/var/www/lib/Upgates/test/dataProvider.ts">
272
- <metrics statements="26" coveredstatements="26" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
273
- <line num="1" count="8" type="stmt"/>
274
- <line num="2" count="8" type="stmt"/>
275
- <line num="3" count="8" type="stmt"/>
276
- <line num="8" count="8" type="stmt"/>
277
- <line num="9" count="8" type="stmt"/>
278
- <line num="10" count="8" type="stmt"/>
279
- <line num="11" count="8" type="stmt"/>
280
- <line num="12" count="8" type="stmt"/>
281
- <line num="13" count="8" type="stmt"/>
282
- <line num="14" count="8" type="stmt"/>
283
- <line num="15" count="8" type="stmt"/>
284
- <line num="16" count="8" type="stmt"/>
285
- <line num="17" count="8" type="stmt"/>
286
- <line num="19" count="8" type="stmt"/>
287
- <line num="20" count="15" type="stmt"/>
288
- <line num="34" count="8" type="stmt"/>
289
- <line num="35" count="8" type="stmt"/>
290
- <line num="36" count="8" type="stmt"/>
291
- <line num="38" count="8" type="stmt"/>
292
- <line num="39" count="8" type="stmt"/>
293
- <line num="40" count="8" type="stmt"/>
294
- <line num="41" count="8" type="stmt"/>
295
- <line num="42" count="8" type="stmt"/>
296
- <line num="43" count="8" type="stmt"/>
297
- <line num="44" count="8" type="stmt"/>
298
- <line num="45" count="8" type="stmt"/>
299
- </file>
300
- </package>
301
- </project>
302
- </coverage>