@orchesty/connector-flexi-bee 1.0.5 → 1.0.6

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.
@@ -0,0 +1,31 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_CLENENI_DPH_BATCH = "flexi-bee-cleneni-dph-batch";
3
+ export default class FlexiBeeCleneniDphBatch extends FlexiBeeSimpleIterator<FlexiBeeCleneniDph> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeCleneniDph {
9
+ 'id': string;
10
+ 'lastUpdate': string;
11
+ 'kod': string;
12
+ 'nazev': string;
13
+ 'nazevA': string;
14
+ 'nazevB': string;
15
+ 'nazevC': string;
16
+ 'poznam': string;
17
+ 'popis': string;
18
+ 'platiOd': string;
19
+ 'platiDo': string;
20
+ 'typPlneniK': string;
21
+ 'typPlneniK@showAs': string;
22
+ 'typObchoduK': string;
23
+ 'kodPlneniK': string;
24
+ 'jeDph': string;
25
+ 'poradi': string;
26
+ 'kodPlneniSH': string;
27
+ 'typPlneniEetK': string;
28
+ 'stat': string;
29
+ 'stat@ref': string;
30
+ 'stat@showAs': string;
31
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_CLENENI_DPH_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_CLENENI_DPH_BATCH = 'flexi-bee-cleneni-dph-batch';
6
+ class FlexiBeeCleneniDphBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'cleneni-dph';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_CLENENI_DPH_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeCleneniDphBatch;
@@ -0,0 +1,28 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_CLENENI_KONTROLNI_HLASENI_BATCH = "flexi-bee-cleneni-kontrolni-hlaseni-batch";
3
+ export default class FlexiBeeCleneniKontrolniHlaseniBatch extends FlexiBeeSimpleIterator<FlexiBeeCleneniKontrolniHlaseni> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeCleneniKontrolniHlaseni {
9
+ 'id': string;
10
+ 'lastUpdate': string;
11
+ 'kod': string;
12
+ 'nazev': string;
13
+ 'nazevA': string;
14
+ 'nazevB': string;
15
+ 'nazevC': string;
16
+ 'poznam': string;
17
+ 'popis': string;
18
+ 'platiOd': string;
19
+ 'platiDo': string;
20
+ 'vyplnCisKod': string;
21
+ 'vyplnDruh': string;
22
+ 'kodTransakce': string;
23
+ 'typPohybuK': string;
24
+ 'uuid': string;
25
+ 'stat': string;
26
+ 'stat@ref': string;
27
+ 'stat@showAs': string;
28
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_CLENENI_KONTROLNI_HLASENI_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_CLENENI_KONTROLNI_HLASENI_BATCH = 'flexi-bee-cleneni-kontrolni-hlaseni-batch';
6
+ class FlexiBeeCleneniKontrolniHlaseniBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'cleneni-kontrolni-hlaseni';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_CLENENI_KONTROLNI_HLASENI_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeCleneniKontrolniHlaseniBatch;
@@ -0,0 +1,38 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_PREDPIS_ZAUCTOVANI_BATCH = "flexi-bee-predpis-zauctovani-batch";
3
+ export default class FlexiBeePredpisZauctovaniBatch extends FlexiBeeSimpleIterator<FlexiBeePredpisZauctovani> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeePredpisZauctovani {
9
+ id: string;
10
+ lastUpdate: string;
11
+ kod: string;
12
+ nazev: string;
13
+ nazevA: string;
14
+ nazevB: string;
15
+ nazevC: string;
16
+ poznam: string;
17
+ popis: string;
18
+ ucetObdobiOd: string;
19
+ ucetObdobiDo: string;
20
+ modulFav: string;
21
+ modulFap: string;
22
+ modulPhl: string;
23
+ modulZav: string;
24
+ modulTxz: string;
25
+ modulBanP: string;
26
+ modulBanV: string;
27
+ modulPokP: string;
28
+ modulPokV: string;
29
+ modulSklP: string;
30
+ modulSklV: string;
31
+ modulInt: string;
32
+ kodPlneniK: string;
33
+ protiUcetPrijem: string;
34
+ protiUcetVydej: string;
35
+ dphSnizUcet: string;
36
+ dphSniz2Ucet: string;
37
+ dphZaklUcet: string;
38
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_PREDPIS_ZAUCTOVANI_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_PREDPIS_ZAUCTOVANI_BATCH = 'flexi-bee-predpis-zauctovani-batch';
6
+ class FlexiBeePredpisZauctovaniBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'predpis-zauctovani';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_PREDPIS_ZAUCTOVANI_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeePredpisZauctovaniBatch;
@@ -3,6 +3,7 @@ import BatchProcessDto from '@orchesty/nodejs-sdk/dist/lib/Utils/BatchProcessDto
3
3
  export declare abstract class FlexiBeeSimpleIterator<T> extends ABatchNode {
4
4
  protected abstract endpoint: string;
5
5
  protected iterateOnly: boolean;
6
+ protected batchOutput: boolean;
6
7
  protected pageSize: number;
7
8
  protected relations: string[];
8
9
  processAction(dto: BatchProcessDto): Promise<BatchProcessDto>;
@@ -8,6 +8,7 @@ const ABatchNode_1 = __importDefault(require("@orchesty/nodejs-sdk/dist/lib/Batc
8
8
  const HttpMethods_1 = require("@orchesty/nodejs-sdk/dist/lib/Transport/HttpMethods");
9
9
  class FlexiBeeSimpleIterator extends ABatchNode_1.default {
10
10
  iterateOnly = false;
11
+ batchOutput = false;
11
12
  pageSize = 100;
12
13
  relations = [];
13
14
  async processAction(dto) {
@@ -36,6 +37,9 @@ class FlexiBeeSimpleIterator extends ABatchNode_1.default {
36
37
  else {
37
38
  dto.removeBatchCursor();
38
39
  }
40
+ if (this.batchOutput && items.length > 0) {
41
+ return dto.addItem(items);
42
+ }
39
43
  return dto.setItemList(items, this.iterateOnly);
40
44
  }
41
45
  async processItems(_dto, _items) {
@@ -0,0 +1,36 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_STREDISKO_BATCH = "flexi-bee-stredisko-batch";
3
+ export default class FlexiBeeStrediskoBatch extends FlexiBeeSimpleIterator<FlexiBeeStredisko> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeStredisko {
9
+ id: string;
10
+ lastUpdate: string;
11
+ kod: string;
12
+ nazev: string;
13
+ nazevA: string;
14
+ nazevB: string;
15
+ nazevC: string;
16
+ poznam: string;
17
+ popis: string;
18
+ platiOd: string;
19
+ platiDo: string;
20
+ ulice: string;
21
+ mesto: string;
22
+ psc: string;
23
+ tel: string;
24
+ mobil: string;
25
+ fax: string;
26
+ email: string;
27
+ www: string;
28
+ stat: string;
29
+ region: string;
30
+ tisknout: string;
31
+ nazev2: string;
32
+ nazev2A: string;
33
+ nazev2B: string;
34
+ nazev2C: string;
35
+ stitky: string;
36
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_STREDISKO_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_STREDISKO_BATCH = 'flexi-bee-stredisko-batch';
6
+ class FlexiBeeStrediskoBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'stredisko';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_STREDISKO_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeStrediskoBatch;
@@ -0,0 +1,81 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_TYP_FAKTURY_PRIJATE_BATCH = "flexi-bee-typ-faktury-prijate-batch";
3
+ export default class FlexiBeeTypFakturyPrijateBatch extends FlexiBeeSimpleIterator<FlexiBeeTypFakturyPrijate> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeTypFakturyPrijate {
9
+ 'id': string;
10
+ 'lastUpdate': string;
11
+ 'kod': string;
12
+ 'nazev': string;
13
+ 'nazevA': string;
14
+ 'nazevB': string;
15
+ 'nazevC': string;
16
+ 'poznam': string;
17
+ 'popis': string;
18
+ 'ucetObdobiOd': string;
19
+ 'ucetObdobiDo': string;
20
+ 'platiOd': string;
21
+ 'platiDo': string;
22
+ 'modul': string;
23
+ 'ucetni': string;
24
+ 'typDoklK': string;
25
+ 'typDoklK@showAs': string;
26
+ 'splatDny': string;
27
+ 'formaUhradyCis': string;
28
+ 'doprava': string;
29
+ 'popisDoklad': string;
30
+ 'radaVydej': string;
31
+ 'radaVydej@ref': string;
32
+ 'radaVydej@showAs': string;
33
+ 'stredisko': string;
34
+ 'stredisko@ref': string;
35
+ 'stredisko@showAs': string;
36
+ 'cinnost': string;
37
+ 'bspBan': string;
38
+ 'bspBan@ref': string;
39
+ 'bspBan@showAs': string;
40
+ 'typProtiDokladuPrijem': string;
41
+ 'typProtiDokladuPrijem@ref': string;
42
+ 'typProtiDokladuPrijem@showAs': string;
43
+ 'typProtiDokladuVydej': string;
44
+ 'primUcet': string;
45
+ 'primUcet@ref': string;
46
+ 'primUcet@showAs': string;
47
+ 'typUcOpVydej': string;
48
+ 'typUcOpVydej@ref': string;
49
+ 'typUcOpVydej@showAs': string;
50
+ 'mena': string;
51
+ 'mena@ref': string;
52
+ 'mena@showAs': string;
53
+ 'statDph': string;
54
+ 'statDph@ref': string;
55
+ 'statDph@showAs': string;
56
+ 'tiskAutomat': string;
57
+ 'workFlow': string;
58
+ 'statOdesl': string;
59
+ 'statUrc': string;
60
+ 'statPuvod': string;
61
+ 'dodPodm': string;
62
+ 'zvlPoh': string;
63
+ 'obchTrans': string;
64
+ 'druhDopr': string;
65
+ 'krajUrc': string;
66
+ 'generovatSkl': string;
67
+ 'razeniProTiskK': string;
68
+ 'primarni': string;
69
+ 'uhrAuto': string;
70
+ 'zapAuto': string;
71
+ 'formaDopravy': string;
72
+ 'emailTxt': string;
73
+ 'ekokomK': string;
74
+ 'vsCisObj': string;
75
+ 'eanAkceNahrat': string;
76
+ 'eanAkcePopis': string;
77
+ 'clenKonVykDph': string;
78
+ 'sablonaMail': string;
79
+ 'generovatRecyklacniPoplatky': string;
80
+ 'autoTisky': unknown[];
81
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_TYP_FAKTURY_PRIJATE_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_TYP_FAKTURY_PRIJATE_BATCH = 'flexi-bee-typ-faktury-prijate-batch';
6
+ class FlexiBeeTypFakturyPrijateBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'typ-faktury-prijate';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_TYP_FAKTURY_PRIJATE_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeTypFakturyPrijateBatch;
@@ -0,0 +1,34 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_UCET_BATCH = "flexi-bee-ucet-batch";
3
+ export default class FlexiBeeUcetBatch extends FlexiBeeSimpleIterator<FlexiBeeUcet> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeUcet {
9
+ 'id': string;
10
+ 'lastUpdate': string;
11
+ 'kod': string;
12
+ 'nazev': string;
13
+ 'nazevA': string;
14
+ 'nazevB': string;
15
+ 'nazevC': string;
16
+ 'poznam': string;
17
+ 'popis': string;
18
+ 'ucetObdobiOd': string;
19
+ 'ucetObdobiOd@ref': string;
20
+ 'ucetObdobiOd@showAs': string;
21
+ 'ucetObdobiDo': string;
22
+ 'danovy': string;
23
+ 'saldo': string;
24
+ 'typUctuK': string;
25
+ 'typUctuK@showAs': string;
26
+ 'druhUctuK': string;
27
+ 'mena': string;
28
+ 'mena@ref': string;
29
+ 'mena@showAs': string;
30
+ 'stdUcet': string;
31
+ 'typOrganizace': string;
32
+ 'typOrganizace@ref': string;
33
+ 'typOrganizace@showAs': string;
34
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_UCET_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_UCET_BATCH = 'flexi-bee-ucet-batch';
6
+ class FlexiBeeUcetBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'ucet';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_UCET_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeUcetBatch;
@@ -0,0 +1,50 @@
1
+ import { FlexiBeeSimpleIterator } from './FlexiBeeSimpleIterator';
2
+ export declare const FLEXI_BEE_ZAKAZKA_BATCH = "flexi-bee-zakazka-batch";
3
+ export default class FlexiBeeZakazkaBatch extends FlexiBeeSimpleIterator<FlexiBeeZakazka> {
4
+ protected endpoint: string;
5
+ protected batchOutput: boolean;
6
+ getName(): string;
7
+ }
8
+ export interface FlexiBeeZakazka {
9
+ id: string;
10
+ lastUpdate: string;
11
+ kod: string;
12
+ nazev: string;
13
+ nazevA: string;
14
+ nazevB: string;
15
+ nazevC: string;
16
+ poznam: string;
17
+ popis: string;
18
+ platiOd: string;
19
+ platiDo: string;
20
+ datZahaj: string;
21
+ datKonec: string;
22
+ procVyh: string;
23
+ termin: string;
24
+ splatDny: string;
25
+ rozsah: string;
26
+ nakladyPredpoklad: string;
27
+ ziskPredpoklad: string;
28
+ pocetPriloh: string;
29
+ varSym: string;
30
+ stitky: string;
31
+ cisObj: string;
32
+ cisSml: string;
33
+ datZahajPlan: string;
34
+ datPredaniPlan: string;
35
+ datPredani: string;
36
+ zaruka: string;
37
+ datZaruky: string;
38
+ createdDate: string;
39
+ firma: string;
40
+ mistUrc: string;
41
+ stredisko: string;
42
+ stavZakazky: string;
43
+ typZakazky: string;
44
+ zodpPrac: string;
45
+ vyhZakazky: string;
46
+ kontaktOsoba: string;
47
+ mena: string;
48
+ updatedBy: string;
49
+ createdBy: string;
50
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FLEXI_BEE_ZAKAZKA_BATCH = void 0;
4
+ const FlexiBeeSimpleIterator_1 = require("./FlexiBeeSimpleIterator");
5
+ exports.FLEXI_BEE_ZAKAZKA_BATCH = 'flexi-bee-zakazka-batch';
6
+ class FlexiBeeZakazkaBatch extends FlexiBeeSimpleIterator_1.FlexiBeeSimpleIterator {
7
+ endpoint = 'zakazka';
8
+ batchOutput = true;
9
+ getName() {
10
+ return exports.FLEXI_BEE_ZAKAZKA_BATCH;
11
+ }
12
+ }
13
+ exports.default = FlexiBeeZakazkaBatch;
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchesty/connector-flexi-bee",
3
3
  "description": "",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
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",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orchesty/connector-flexi-bee",
3
3
  "description": "",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
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",