@orchesty/connector-flexi-bee 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 (164) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/LICENSE +190 -0
  3. package/coverage/clover.xml +389 -0
  4. package/coverage/coverage-final.json +19 -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/FlexiBeeFormaDopravyBatch.ts.html +145 -0
  14. package/coverage/lcov-report/src/Batch/FlexiBeeFormaUhradyBatch.ts.html +148 -0
  15. package/coverage/lcov-report/src/Batch/FlexiBeeGetSkladovyPohybBatch.ts.html +139 -0
  16. package/coverage/lcov-report/src/Batch/FlexiBeeObjednavkaPrijataBatch.ts.html +145 -0
  17. package/coverage/lcov-report/src/Batch/FlexiBeeObjednavkaVydanaBatch.ts.html +145 -0
  18. package/coverage/lcov-report/src/Batch/FlexiBeeSimpleIterator.ts.html +295 -0
  19. package/coverage/lcov-report/src/Batch/FlexiBeeSkladoveKartyBatch.ts.html +298 -0
  20. package/coverage/lcov-report/src/Batch/FlexiBeeStitkyBatch.ts.html +145 -0
  21. package/coverage/lcov-report/src/Batch/index.html +221 -0
  22. package/coverage/lcov-report/src/Connector/FlexiBeeCreateObjednavkaVydanaConnector.ts.html +322 -0
  23. package/coverage/lcov-report/src/Connector/FlexiBeeCreateSkladovyPohybConnector.ts.html +346 -0
  24. package/coverage/lcov-report/src/Connector/FlexiBeeGetCenikKartyConnector.ts.html +829 -0
  25. package/coverage/lcov-report/src/Connector/FlexiBeeGetObjednavkaVydanaConnector.ts.html +316 -0
  26. package/coverage/lcov-report/src/Connector/FlexiBeeGetSarzeExpiraceKartyConnector.ts.html +304 -0
  27. package/coverage/lcov-report/src/Connector/FlexiBeeUpdateObjednavkaPrijataConnector.ts.html +322 -0
  28. package/coverage/lcov-report/src/Connector/FlexiBeeUpdateSkladovyPohybConnector.ts.html +361 -0
  29. package/coverage/lcov-report/src/Connector/index.html +206 -0
  30. package/coverage/lcov-report/src/FexiBeeApplication.ts.html +694 -0
  31. package/coverage/lcov-report/src/FlexiBee.utils.ts.html +142 -0
  32. package/coverage/lcov-report/src/index.html +131 -0
  33. package/coverage/lcov-report/test/dataProvider.ts.html +496 -0
  34. package/coverage/lcov-report/test/index.html +116 -0
  35. package/coverage/lcov.info +633 -0
  36. package/dist/Batch/FlexiBeeFormaDopravyBatch.d.ts +12 -0
  37. package/dist/Batch/FlexiBeeFormaDopravyBatch.js +12 -0
  38. package/dist/Batch/FlexiBeeFormaUhradyBatch.d.ts +13 -0
  39. package/dist/Batch/FlexiBeeFormaUhradyBatch.js +12 -0
  40. package/dist/Batch/FlexiBeeGetSkladovyPohybBatch.d.ts +9 -0
  41. package/dist/Batch/FlexiBeeGetSkladovyPohybBatch.js +12 -0
  42. package/dist/Batch/FlexiBeeObjednavkaPrijataBatch.d.ts +10 -0
  43. package/dist/Batch/FlexiBeeObjednavkaPrijataBatch.js +13 -0
  44. package/dist/Batch/FlexiBeeObjednavkaVydanaBatch.d.ts +10 -0
  45. package/dist/Batch/FlexiBeeObjednavkaVydanaBatch.js +13 -0
  46. package/dist/Batch/FlexiBeeSimpleIterator.d.ts +10 -0
  47. package/dist/Batch/FlexiBeeSimpleIterator.js +44 -0
  48. package/dist/Batch/FlexiBeeSkladoveKartyBatch.d.ts +60 -0
  49. package/dist/Batch/FlexiBeeSkladoveKartyBatch.js +12 -0
  50. package/dist/Batch/FlexiBeeStitkyBatch.d.ts +12 -0
  51. package/dist/Batch/FlexiBeeStitkyBatch.js +12 -0
  52. package/dist/Connector/FlexiBeeCreateNewContactConnector.d.ts +7 -0
  53. package/dist/Connector/FlexiBeeCreateNewContactConnector.js +84 -0
  54. package/dist/Connector/FlexiBeeCreateObjednavkaVydanaConnector.d.ts +20 -0
  55. package/dist/Connector/FlexiBeeCreateObjednavkaVydanaConnector.js +45 -0
  56. package/dist/Connector/FlexiBeeCreateSkladovyPohybConnector.d.ts +28 -0
  57. package/dist/Connector/FlexiBeeCreateSkladovyPohybConnector.js +45 -0
  58. package/dist/Connector/FlexiBeeGetCenikKartyConnector.d.ts +209 -0
  59. package/dist/Connector/FlexiBeeGetCenikKartyConnector.js +25 -0
  60. package/dist/Connector/FlexiBeeGetContactsArrayConnector.d.ts +6 -0
  61. package/dist/Connector/FlexiBeeGetContactsArrayConnector.js +21 -0
  62. package/dist/Connector/FlexiBeeGetObjednavkaVydanaConnector.d.ts +23 -0
  63. package/dist/Connector/FlexiBeeGetObjednavkaVydanaConnector.js +47 -0
  64. package/dist/Connector/FlexiBeeGetSarzeExpiraceKartyConnector.d.ts +32 -0
  65. package/dist/Connector/FlexiBeeGetSarzeExpiraceKartyConnector.js +27 -0
  66. package/dist/Connector/FlexiBeeUpdateObjednavkaPrijataConnector.d.ts +20 -0
  67. package/dist/Connector/FlexiBeeUpdateObjednavkaPrijataConnector.js +45 -0
  68. package/dist/Connector/FlexiBeeUpdateSkladovyPohybConnector.d.ts +30 -0
  69. package/dist/Connector/FlexiBeeUpdateSkladovyPohybConnector.js +45 -0
  70. package/dist/FexiBeeApplication.d.ts +28 -0
  71. package/dist/FexiBeeApplication.js +179 -0
  72. package/dist/FlexiBee.utils.d.ts +2 -0
  73. package/dist/FlexiBee.utils.js +12 -0
  74. package/dist/package.json +22 -0
  75. package/dist/types/FlexiBeeObjednavkaPrijata.d.ts +152 -0
  76. package/dist/types/FlexiBeeObjednavkaPrijata.js +2 -0
  77. package/dist/types/FlexiBeeObjednavkaVydana.d.ts +186 -0
  78. package/dist/types/FlexiBeeObjednavkaVydana.js +2 -0
  79. package/dist/types/FlexiBeeSkladovyPohyb.d.ts +96 -0
  80. package/dist/types/FlexiBeeSkladovyPohyb.js +2 -0
  81. package/jest.config.js +13 -0
  82. package/package.json +22 -0
  83. package/src/Batch/FlexiBeeFormaDopravyBatch.ts +20 -0
  84. package/src/Batch/FlexiBeeFormaUhradyBatch.ts +21 -0
  85. package/src/Batch/FlexiBeeGetSkladovyPohybBatch.ts +18 -0
  86. package/src/Batch/FlexiBeeObjednavkaPrijataBatch.ts +20 -0
  87. package/src/Batch/FlexiBeeObjednavkaVydanaBatch.ts +20 -0
  88. package/src/Batch/FlexiBeeSimpleIterator.ts +70 -0
  89. package/src/Batch/FlexiBeeSkladoveKartyBatch.ts +71 -0
  90. package/src/Batch/FlexiBeeStitkyBatch.ts +20 -0
  91. package/src/Batch/__tests__/Data/FlexiBeeFormaDopravyBatch/input.json +6 -0
  92. package/src/Batch/__tests__/Data/FlexiBeeFormaDopravyBatch/mock.json +18 -0
  93. package/src/Batch/__tests__/Data/FlexiBeeFormaDopravyBatch/output.json +11 -0
  94. package/src/Batch/__tests__/Data/FlexiBeeFormaUhradyBatch/input.json +6 -0
  95. package/src/Batch/__tests__/Data/FlexiBeeFormaUhradyBatch/mock.json +19 -0
  96. package/src/Batch/__tests__/Data/FlexiBeeFormaUhradyBatch/output.json +11 -0
  97. package/src/Batch/__tests__/Data/FlexiBeeGetSkladovyPohybBatch/input.json +8 -0
  98. package/src/Batch/__tests__/Data/FlexiBeeGetSkladovyPohybBatch/mock.json +107 -0
  99. package/src/Batch/__tests__/Data/FlexiBeeGetSkladovyPohybBatch/output.json +11 -0
  100. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaPrijataBatch/input.json +6 -0
  101. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaPrijataBatch/mock.json +162 -0
  102. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaPrijataBatch/output.json +11 -0
  103. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaVydanaBatch/input.json +6 -0
  104. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaVydanaBatch/mock.json +200 -0
  105. package/src/Batch/__tests__/Data/FlexiBeeObjednavkaVydanaBatch/output.json +11 -0
  106. package/src/Batch/__tests__/Data/FlexiBeeSkladoveKartyBatch/input.json +6 -0
  107. package/src/Batch/__tests__/Data/FlexiBeeSkladoveKartyBatch/mock.json +66 -0
  108. package/src/Batch/__tests__/Data/FlexiBeeSkladoveKartyBatch/output.json +11 -0
  109. package/src/Batch/__tests__/Data/FlexiBeeStitkyBatch/input.json +6 -0
  110. package/src/Batch/__tests__/Data/FlexiBeeStitkyBatch/mock.json +18 -0
  111. package/src/Batch/__tests__/Data/FlexiBeeStitkyBatch/output.json +11 -0
  112. package/src/Batch/__tests__/FlexiBeeFormaDopravyBatch.ts +17 -0
  113. package/src/Batch/__tests__/FlexiBeeFormaUhradyBatch.ts +17 -0
  114. package/src/Batch/__tests__/FlexiBeeGetSkladovyPohybBatch.ts +17 -0
  115. package/src/Batch/__tests__/FlexiBeeObjednavkaPrijataBatch.ts +17 -0
  116. package/src/Batch/__tests__/FlexiBeeObjednavkaVydanaBatch.ts +17 -0
  117. package/src/Batch/__tests__/FlexiBeeSkladoveKartyBatch.ts +17 -0
  118. package/src/Batch/__tests__/FlexiBeeStitkyBatch.ts +17 -0
  119. package/src/Connector/FlexiBeeCreateNewContactConnector.ts +98 -0
  120. package/src/Connector/FlexiBeeCreateObjednavkaVydanaConnector.ts +79 -0
  121. package/src/Connector/FlexiBeeCreateSkladovyPohybConnector.ts +87 -0
  122. package/src/Connector/FlexiBeeGetCenikKartyConnector.ts +248 -0
  123. package/src/Connector/FlexiBeeGetContactsArrayConnector.ts +28 -0
  124. package/src/Connector/FlexiBeeGetObjednavkaVydanaConnector.ts +77 -0
  125. package/src/Connector/FlexiBeeGetSarzeExpiraceKartyConnector.ts +73 -0
  126. package/src/Connector/FlexiBeeUpdateObjednavkaPrijataConnector.ts +79 -0
  127. package/src/Connector/FlexiBeeUpdateSkladovyPohybConnector.ts +92 -0
  128. package/src/Connector/__tests__/Data/FlexiBeeCreateObjednavkaVydanaConnector/input.json +8 -0
  129. package/src/Connector/__tests__/Data/FlexiBeeCreateObjednavkaVydanaConnector/mock.json +24 -0
  130. package/src/Connector/__tests__/Data/FlexiBeeCreateObjednavkaVydanaConnector/output.json +12 -0
  131. package/src/Connector/__tests__/Data/FlexiBeeCreateSkladovyPohybConnector/input.json +8 -0
  132. package/src/Connector/__tests__/Data/FlexiBeeCreateSkladovyPohybConnector/mock.json +24 -0
  133. package/src/Connector/__tests__/Data/FlexiBeeCreateSkladovyPohybConnector/output.json +12 -0
  134. package/src/Connector/__tests__/Data/FlexiBeeGetCenikKartyConnector/input.json +59 -0
  135. package/src/Connector/__tests__/Data/FlexiBeeGetCenikKartyConnector/mock.json +211 -0
  136. package/src/Connector/__tests__/Data/FlexiBeeGetCenikKartyConnector/output.json +261 -0
  137. package/src/Connector/__tests__/Data/FlexiBeeGetObjednavkaVydanaConnector/input.json +8 -0
  138. package/src/Connector/__tests__/Data/FlexiBeeGetObjednavkaVydanaConnector/mock.json +193 -0
  139. package/src/Connector/__tests__/Data/FlexiBeeGetObjednavkaVydanaConnector/output.json +187 -0
  140. package/src/Connector/__tests__/Data/FlexiBeeGetSarzeExpiraceKartyConnector/input.json +261 -0
  141. package/src/Connector/__tests__/Data/FlexiBeeGetSarzeExpiraceKartyConnector/mock.json +49 -0
  142. package/src/Connector/__tests__/Data/FlexiBeeGetSarzeExpiraceKartyConnector/output.json +301 -0
  143. package/src/Connector/__tests__/Data/FlexiBeeUpdateObjednavkaPrijataConnector/input.json +8 -0
  144. package/src/Connector/__tests__/Data/FlexiBeeUpdateObjednavkaPrijataConnector/mock.json +24 -0
  145. package/src/Connector/__tests__/Data/FlexiBeeUpdateObjednavkaPrijataConnector/output.json +12 -0
  146. package/src/Connector/__tests__/Data/FlexiBeeUpdateSkladovyPohybConnector/input.json +9 -0
  147. package/src/Connector/__tests__/Data/FlexiBeeUpdateSkladovyPohybConnector/mock.json +24 -0
  148. package/src/Connector/__tests__/Data/FlexiBeeUpdateSkladovyPohybConnector/output.json +12 -0
  149. package/src/Connector/__tests__/FlexiBeeCreateObjednavkaVydanaConnector.ts +17 -0
  150. package/src/Connector/__tests__/FlexiBeeCreateSkladovyPohybConnector.ts +17 -0
  151. package/src/Connector/__tests__/FlexiBeeGetCenikKartyConnector.ts +17 -0
  152. package/src/Connector/__tests__/FlexiBeeGetObjednavkaVydanaConnector.ts +17 -0
  153. package/src/Connector/__tests__/FlexiBeeGetSarzeExpiraceKartyConnector.ts +17 -0
  154. package/src/Connector/__tests__/FlexiBeeUpdateObjednavkaPrijataConnector.ts +17 -0
  155. package/src/Connector/__tests__/FlexiBeeUpdateSkladovyPohybConnector.ts +17 -0
  156. package/src/FexiBeeApplication.ts +203 -0
  157. package/src/FlexiBee.utils.ts +19 -0
  158. package/src/types/FlexiBeeObjednavkaPrijata.ts +153 -0
  159. package/src/types/FlexiBeeObjednavkaVydana.ts +188 -0
  160. package/src/types/FlexiBeeSkladovyPohyb.ts +97 -0
  161. package/test/dataProvider.ts +137 -0
  162. package/tsconfig.json +8 -0
  163. package/tsconfig.prod.json +13 -0
  164. package/tsconfig.prod.tsbuildinfo +1 -0
@@ -0,0 +1,92 @@
1
+ import AConnector from '@orchesty/nodejs-sdk/dist/lib/Connector/AConnector';
2
+ import { HttpMethods } from '@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods';
3
+ import ProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/ProcessDto';
4
+ import FlexiBeeApplication from '../FexiBeeApplication';
5
+ import { FlexiBeeCreateSkladovyPohybOutput } from './FlexiBeeCreateSkladovyPohybConnector';
6
+
7
+ export const FLEXI_BEE_UPDATE_SKLADOVY_POHYB = 'flexi-bee-update-skladovy-pohyb';
8
+
9
+ export default class FlexiBeeUpdateSkladovyPohybConnector extends AConnector {
10
+
11
+ public constructor(
12
+ protected dataKey: string | null = null,
13
+ ) {
14
+ super();
15
+ }
16
+
17
+ public getName(): string {
18
+ return FLEXI_BEE_UPDATE_SKLADOVY_POHYB;
19
+ }
20
+
21
+ public async processAction(
22
+ dto: ProcessDto<FlexiBeeUpdateSkladovyPohybInput>,
23
+ ): Promise<ProcessDto<FlexiBeeCreateSkladovyPohybOutput>> {
24
+ const applicationInstall = await this.getApplicationInstallFromProcess(dto);
25
+
26
+ let pohyb = dto.getJsonData();
27
+ if (this.dataKey) {
28
+ // eslint-disable-next-line
29
+ pohyb = (pohyb as any)[this.dataKey];
30
+ }
31
+
32
+ const application = this.getApplication<FlexiBeeApplication>();
33
+ const request = await application.getRequestDto(
34
+ dto,
35
+ applicationInstall,
36
+ HttpMethods.PUT,
37
+ application.getUrl(applicationInstall, 'skladovy-pohyb'),
38
+ JSON.stringify({
39
+ winstrom: {
40
+ // eslint-disable-next-line
41
+ 'skladovy-pohyb': [
42
+ pohyb,
43
+ ],
44
+ },
45
+ }),
46
+ );
47
+ const resp = (await this.getSender().send<Response>(request)).getJsonBody().winstrom.results;
48
+
49
+ if (this.dataKey) {
50
+ // eslint-disable-next-line
51
+ const data = dto.getJsonData() as any;
52
+ data[this.dataKey] = resp;
53
+ dto.setNewJsonData(data);
54
+ } else {
55
+ dto.setNewJsonData(resp);
56
+ }
57
+
58
+ return dto as unknown as ProcessDto<FlexiBeeCreateSkladovyPohybOutput>;
59
+ }
60
+
61
+ }
62
+
63
+ /* eslint-disable */
64
+
65
+
66
+ interface ResponseResult {
67
+ results: {
68
+ id: string;
69
+ ref: string;
70
+ };
71
+ }
72
+
73
+ interface Response {
74
+ winstrom: {
75
+ results: ResponseResult[];
76
+ };
77
+ }
78
+
79
+ export interface FlexiBeeUpdateSkladovyPohybInput {
80
+ id: string;
81
+ kod: string;
82
+ typPohybuK: string;
83
+ typDokl: string;
84
+ sklad: string;
85
+ skladovePolozky: {
86
+ cenik: string;
87
+ sklad: string;
88
+ mnozMj: string;
89
+ }[];
90
+ }
91
+
92
+ export type FlexiBeeUpdateSkladovyPohybOutput = ResponseResult[];
@@ -0,0 +1,8 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "kod": "1"
7
+ }
8
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "http": "POST https://demo.flexibee.eu/c/demo/objednavka-vydana",
3
+ "code": 200,
4
+ "body": {
5
+ "winstrom": {
6
+ "@version": "1.0",
7
+ "success": "true",
8
+ "stats": {
9
+ "created": "0",
10
+ "updated": "1",
11
+ "deleted": "0",
12
+ "skipped": "0",
13
+ "failed": "0"
14
+ },
15
+ "results": [
16
+ {
17
+ "id": "1",
18
+ "request-id": "1",
19
+ "ref": "/c/olaola_s_r_o_/objednava-vydana/1"
20
+ }
21
+ ]
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "id": "1",
8
+ "ref": "/c/olaola_s_r_o_/objednava-vydana/1",
9
+ "request-id": "1"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "kod": "1"
7
+ }
8
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "http": "POST https://demo.flexibee.eu/c/demo/skladovy-pohyb",
3
+ "code": 200,
4
+ "body": {
5
+ "winstrom": {
6
+ "@version": "1.0",
7
+ "success": "true",
8
+ "stats": {
9
+ "created": "0",
10
+ "updated": "1",
11
+ "deleted": "0",
12
+ "skipped": "0",
13
+ "failed": "0"
14
+ },
15
+ "results": [
16
+ {
17
+ "id": "1",
18
+ "request-id": "1",
19
+ "ref": "/c/olaola_s_r_o_/skladovy-pohyb/1"
20
+ }
21
+ ]
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": [
6
+ {
7
+ "id": "1",
8
+ "ref": "/c/olaola_s_r_o_/skladovy-pohyb/1",
9
+ "request-id": "1"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "headers": {
3
+ "user": "TestUser"
4
+ },
5
+ "data": {
6
+ "id": "1",
7
+ "lastUpdate": "2023-06-06T13:54:08.663+02:00",
8
+ "prumCenaTuz": "0.0",
9
+ "prumCenaMen": "0.0",
10
+ "stavMJ": "20.0",
11
+ "stavTuz": "0.0",
12
+ "stavMen": "0.0",
13
+ "datPosl": "2020-11-01+01:00",
14
+ "pocatMJ": "0.0",
15
+ "pocatTuz": "0.0",
16
+ "pocatMen": "0.0",
17
+ "minMJ": "0.0",
18
+ "maxMJ": "0.0",
19
+ "rezervMJ": "0.0",
20
+ "datStavMJ": "0.0",
21
+ "datStavTuz": "0.0",
22
+ "datStavMen": "0.0",
23
+ "poslCenaTuz": "0.0",
24
+ "poslCenaMen": "0.0",
25
+ "vydExpir": "false",
26
+ "popis": "",
27
+ "popisA": "",
28
+ "popisB": "",
29
+ "popisC": "",
30
+ "poznamVelka": "",
31
+ "nazev": "Baterie sprch. pod omitku Focus E 2",
32
+ "nazevA": "",
33
+ "nazevB": "",
34
+ "nazevC": "",
35
+ "cenPopis": "popis1",
36
+ "cenPopisA": "",
37
+ "cenPopisB": "",
38
+ "cenPopisC": "",
39
+ "cenPoznam": "poznamka",
40
+ "pozadavkyMj": "0.0",
41
+ "stavMjSPozadavky": "48.0",
42
+ "dostupMj": "48.0",
43
+ "ucetObdobi": "code:2020",
44
+ "ucetObdobi@ref": "/c/demo/ucetni-obdobi/1.json",
45
+ "ucetObdobi@showAs": "2020",
46
+ "cenik": "code:31967000",
47
+ "cenik@ref": "/c/demo/cenik/2.json",
48
+ "cenik@showAs": "31967000: Baterie sprch. pod omitku Focus E 2",
49
+ "sklad": "code:LIBEREC",
50
+ "sklad@ref": "/c/demo/sklad/5.json",
51
+ "sklad@showAs": "LIBEREC: Liberecký sklad",
52
+ "typDokl": "code:LIBEREC",
53
+ "typDokl@ref": "/c/demo/sklad/5.json",
54
+ "typDokl@showAs": "LIBEREC: Liberecký sklad",
55
+ "mistnost": "",
56
+ "regal": "",
57
+ "police": ""
58
+ }
59
+ }
@@ -0,0 +1,211 @@
1
+ {
2
+ "http": "GET https://demo.flexibee.eu/c/demo/cenik/2.json",
3
+ "code": 200,
4
+ "body": {
5
+ "winstrom": {
6
+ "@version": "1.0",
7
+ "cenik": [
8
+ {
9
+ "id": "2",
10
+ "lastUpdate": "2024-08-03T17:23:12.268+02:00",
11
+ "kod": "31967000",
12
+ "nazev": "Baterie sprch. pod omitku Focus E 2",
13
+ "nazevA": "",
14
+ "nazevB": "",
15
+ "nazevC": "",
16
+ "poznam": "poznamka",
17
+ "popis": "popis1",
18
+ "platiOd": "0",
19
+ "platiDo": "9999",
20
+ "eanKod": "4897555431533",
21
+ "kodPlu": "",
22
+ "typCenyDphK": "typCeny.bezDph",
23
+ "typCenyDphK@showAs": "bez DPH",
24
+ "procZakl": "0.0",
25
+ "individCena": "false",
26
+ "limMnoz2": "0.0",
27
+ "limMnoz3": "0.0",
28
+ "limMnoz4": "0.0",
29
+ "limMnoz5": "0.0",
30
+ "procento2": "0.0",
31
+ "procento3": "0.0",
32
+ "procento4": "0.0",
33
+ "procento5": "0.0",
34
+ "cena2": "0.0",
35
+ "cena3": "0.0",
36
+ "cena4": "0.0",
37
+ "cena5": "0.0",
38
+ "zaokrJakK": "zaokrJak.matem",
39
+ "zaokrJakK@showAs": "matematicky",
40
+ "zaokrNaK": "zaokrNa.setiny",
41
+ "zaokrNaK@showAs": "0.01",
42
+ "typSzbDphK": "typSzbDph.dphZakl",
43
+ "typSzbDphK@showAs": "základní",
44
+ "desetinMj": "6",
45
+ "nakupCena": "227.283582",
46
+ "cenJednotka": "1.0",
47
+ "typCenyVychoziK": "typCenyVychozi.nakCena",
48
+ "typCenyVychoziK@showAs": "nákupní cena",
49
+ "typVypCenyK": "typVypCeny.marze",
50
+ "typVypCenyK@showAs": "marže",
51
+ "typCenyVychozi25K": "typCenyVychozi.nakCena",
52
+ "typCenyVychozi25K@showAs": "nákupní cena",
53
+ "typVypCeny25K": "typVypCeny.marze",
54
+ "typVypCeny25K@showAs": "marže",
55
+ "evidVyrCis": "false",
56
+ "unikVyrCis": "false",
57
+ "zaruka": "24",
58
+ "mjZarukyK": "",
59
+ "mjKoef2": "100.0",
60
+ "mjKoef3": "10000.0",
61
+ "prodejMj": "0.0",
62
+ "hmotMj": "5.0",
63
+ "hmotObal": "0.0",
64
+ "objem": "10.0",
65
+ "zatrid": "",
66
+ "skladove": "true",
67
+ "typZasobyK": "typZasoby.zbozi",
68
+ "typZasobyK@showAs": "Zboží",
69
+ "baleniNazev1": "",
70
+ "baleniNazev2": "",
71
+ "baleniNazev3": "",
72
+ "baleniNazev4": "",
73
+ "baleniNazev5": "",
74
+ "baleniMj1": "0.0",
75
+ "baleniMj2": "0.0",
76
+ "baleniMj3": "0.0",
77
+ "baleniMj4": "0.0",
78
+ "baleniMj5": "0.0",
79
+ "baleniEan1": "",
80
+ "baleniEan2": "",
81
+ "baleniEan3": "",
82
+ "baleniEan4": "",
83
+ "baleniEan5": "",
84
+ "inEvid": "false",
85
+ "inKoefMj": "0.0",
86
+ "inKoefStat": "0.0",
87
+ "inKodSled": "",
88
+ "popisA": "",
89
+ "popisB": "",
90
+ "popisC": "",
91
+ "cenaBezna": "0.0",
92
+ "stitky": "DULEZITE",
93
+ "stavy": "",
94
+ "pocetPriloh": "4",
95
+ "exportNaEshop": "false",
96
+ "minMarzeCenik": "false",
97
+ "minMarze": "0.0",
98
+ "evidSarze": "false",
99
+ "evidExpir": "false",
100
+ "sada": "false",
101
+ "dnyTrvanPoExpir": "0",
102
+ "neseskupovatObj": "false",
103
+ "kratkyPopis": "popis eshop",
104
+ "klicSlova": "klicove slovo eshop",
105
+ "techParam": "tech. parametry",
106
+ "dodaciLhuta": "2.0",
107
+ "prodejKasa": "true",
108
+ "skupZboz": "code:KOUPELNY",
109
+ "skupZboz@ref": "/c/demo/skupina-zbozi/4.json",
110
+ "skupZboz@showAs": "KOUPELNY: Koupelničky",
111
+ "mj1": "code:KS",
112
+ "mj1@ref": "/c/demo/merna-jednotka/3.json",
113
+ "mj1@showAs": "KS: kus",
114
+ "mj2": "code:KG",
115
+ "mj2@ref": "/c/demo/merna-jednotka/1.json",
116
+ "mj2@showAs": "KG: kilogram",
117
+ "mj3": "code:T",
118
+ "mj3@ref": "/c/demo/merna-jednotka/5.json",
119
+ "mj3@showAs": "T: t",
120
+ "mjHmot": "code:KG",
121
+ "mjHmot@ref": "/c/demo/merna-jednotka/1.json",
122
+ "mjHmot@showAs": "KG: kilogram",
123
+ "mjObj": "code:M3",
124
+ "mjObj@ref": "/c/demo/merna-jednotka/7.json",
125
+ "mjObj@showAs": "M3: KUBÍK",
126
+ "stat": "",
127
+ "nomen": "",
128
+ "dodavatel": "code:DATIVERY",
129
+ "dodavatel@ref": "/c/demo/adresar/899.json",
130
+ "dodavatel@showAs": "DATIVERY: Dativery s.r.o.",
131
+ "vyrobce": "code:AARON",
132
+ "vyrobce@ref": "/c/demo/adresar/2271.json",
133
+ "vyrobce@showAs": "AARON: Aaron X",
134
+ "dphPren": "",
135
+ "mjDodaciLhuta": "code:KS",
136
+ "mjDodaciLhuta@ref": "/c/demo/merna-jednotka/3.json",
137
+ "mjDodaciLhuta@showAs": "KS: kus",
138
+ "sumStavMj": "134.0",
139
+ "sumRezerMj": "0.0",
140
+ "sumPozadavkyMj": "0.0",
141
+ "sumDostupMj": "134.0",
142
+ "cenaZaklBezDph": "470.0",
143
+ "cenaZaklVcDph": "568.7",
144
+ "cenaZakl": "470.0",
145
+ "sady-a-komplety": [],
146
+ "poplatky": [],
147
+ "dodavatele": [
148
+ {
149
+ "id": "56",
150
+ "lastUpdate": "2008-01-01T00:00:00+01:00",
151
+ "kodIndi": "",
152
+ "nakupCena": "0.0",
153
+ "poznam": "",
154
+ "primarni": "true",
155
+ "stavMJ": "",
156
+ "dodaciLhuta": "",
157
+ "stitky": "",
158
+ "limMnoz2": "0.0",
159
+ "limMnoz3": "0.0",
160
+ "limMnoz4": "0.0",
161
+ "limMnoz5": "0.0",
162
+ "nakupCena2": "0.0",
163
+ "nakupCena3": "0.0",
164
+ "nakupCena4": "0.0",
165
+ "nakupCena5": "0.0",
166
+ "cenik": "code:31967000",
167
+ "cenik@ref": "/c/demo/cenik/2.json",
168
+ "cenik@showAs": "31967000: Baterie sprch. pod omitku Focus E 2",
169
+ "firma": "code:DATIVERY",
170
+ "firma@ref": "/c/demo/adresar/899.json",
171
+ "firma@showAs": "DATIVERY: Dativery s.r.o.",
172
+ "mjDodaciLhuta": "",
173
+ "mena": ""
174
+ }
175
+ ],
176
+ "odberatele": [
177
+ {
178
+ "id": "20",
179
+ "lastUpdate": "2022-01-22T16:15:11.004+01:00",
180
+ "kodIndi": "MOJ ODBERATELSKY KOD",
181
+ "prodejCena": "123.0",
182
+ "poznam": "",
183
+ "platiOdData": "",
184
+ "platiDoData": "",
185
+ "rucneVybrat": "false",
186
+ "limMnoz2": "0.0",
187
+ "limMnoz3": "0.0",
188
+ "limMnoz4": "0.0",
189
+ "limMnoz5": "0.0",
190
+ "prodejCena2": "0.0",
191
+ "prodejCena3": "0.0",
192
+ "prodejCena4": "0.0",
193
+ "prodejCena5": "0.0",
194
+ "cenik": "code:31967000",
195
+ "cenik@ref": "/c/demo/cenik/2.json",
196
+ "cenik@showAs": "31967000: Baterie sprch. pod omitku Focus E 2",
197
+ "firma": "code:ABEL",
198
+ "firma@ref": "/c/demo/adresar/9247.json",
199
+ "firma@showAs": "ABEL: Abacus Electric, s.r.o.",
200
+ "skupCen": "",
201
+ "stredisko": "",
202
+ "mena": ""
203
+ }
204
+ ],
205
+ "typy-sazeb-dph": [],
206
+ "szbDph": "21.0"
207
+ }
208
+ ]
209
+ }
210
+ }
211
+ }