@ercioko/meblotex-api 0.2.15 → 0.2.17
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.
- package/dist/app_types.d.ts +19 -17
- package/dist/app_types.js +4 -8
- package/dist/db_types.d.ts +2 -2
- package/dist/lib/typDokumentuNazwa.d.ts +3 -0
- package/dist/lib/typDokumentuNazwa.js +15 -2
- package/dist/src/app_types.js +3 -7
- package/dist/src/lib/typDokumentuNazwa.js +3 -1
- package/package.json +1 -1
package/dist/app_types.d.ts
CHANGED
|
@@ -512,23 +512,31 @@ export declare enum TypDokumentu {
|
|
|
512
512
|
FakturaDetal = "DE",
|
|
513
513
|
FakturaEksport = "EX",
|
|
514
514
|
KorektaFaktury = "KF",
|
|
515
|
-
Paragon = "PA"
|
|
515
|
+
Paragon = "PA",
|
|
516
|
+
PrzychodWewnetrzny = "PW",
|
|
517
|
+
WydanieWewnetrzne = "WW",
|
|
518
|
+
WydanieZewnetrzne = "WZ"
|
|
516
519
|
}
|
|
517
520
|
export type ZaliczkaZamowienieDokument = Pick<WplataAttributes, 'id_wplata' | 'data_wplaty' | 'id_klient' | 'rozliczono' | 'kwota_wplaty'> & {
|
|
518
521
|
id_zaliczka_rozliczenie: number;
|
|
519
522
|
kwota_rozliczenia: number;
|
|
520
523
|
};
|
|
521
|
-
export
|
|
522
|
-
|
|
524
|
+
export interface ZamowienieNowyDokumentElement {
|
|
525
|
+
cena_jednostka: string;
|
|
526
|
+
cena_jednostka_netto: string;
|
|
527
|
+
czas_dodanie: string;
|
|
528
|
+
czas_edycja: string | null;
|
|
529
|
+
id_uzytkownik_dodanie: number;
|
|
530
|
+
id_zamowienie_dokument: number;
|
|
531
|
+
id_zamowienie_dokument_element: number;
|
|
532
|
+
ilosc: string;
|
|
523
533
|
jednostka: Jednostka;
|
|
524
|
-
cena_jednostka: number;
|
|
525
|
-
cena_jednostka_netto: number;
|
|
526
|
-
podatek: number;
|
|
527
|
-
ilosc: number;
|
|
528
|
-
wartosc: number;
|
|
529
|
-
netto: number;
|
|
530
534
|
korekta: boolean;
|
|
531
|
-
|
|
535
|
+
nazwa: string;
|
|
536
|
+
netto: string;
|
|
537
|
+
podatek: number;
|
|
538
|
+
wartosc: string;
|
|
539
|
+
}
|
|
532
540
|
export interface ZamowienieNowyDokumentElementRequest {
|
|
533
541
|
nazwa: string;
|
|
534
542
|
jednostka: Jednostka;
|
|
@@ -560,12 +568,6 @@ export interface ZamowienieNowyDokumentResponse {
|
|
|
560
568
|
wz_numer: number;
|
|
561
569
|
wz_numer_idx: number;
|
|
562
570
|
}
|
|
563
|
-
export declare enum DokumentTyp {
|
|
564
|
-
Faktura = "FA",
|
|
565
|
-
WydanieZewnetrzne = "WZ",
|
|
566
|
-
WydanieWewnetrzne = "WW",
|
|
567
|
-
PrzychodWewnetrzny = "PW"
|
|
568
|
-
}
|
|
569
571
|
export type DokumentTypDowolny = null;
|
|
570
572
|
export type UseData<DataType> = (defValue: DataType[]) => [DataType[], (rows: DataType[]) => void];
|
|
571
573
|
export type ZamowienieDokumentMagazyn = ZamowienieDokumentMagazynAttributes & PrefixKeys<ZamowienieDokument, 'zamowienie_dokument'> & {
|
|
@@ -617,7 +619,7 @@ export type KlientZamowienieDokumentResponse = ZamowienieDokument & {
|
|
|
617
619
|
wplata: number;
|
|
618
620
|
liczba_korekt: number;
|
|
619
621
|
parent_data_sprzedazy: Date;
|
|
620
|
-
parent_typ_dokumentu:
|
|
622
|
+
parent_typ_dokumentu: TypDokumentu;
|
|
621
623
|
parent_numer: number;
|
|
622
624
|
sortorder: number;
|
|
623
625
|
id_zamowienie_dokument_magazyn: number;
|
package/dist/app_types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TypDokumentu = exports.FormaPlatnosci = exports.TypWplaty = exports.RownanieTyp = exports.CechaTyp = exports.CechaKontrolka = exports.BuforStatus = exports.RabatSufix = exports.RabatPrefix = exports.Jednostka = exports.Zrodlo = void 0;
|
|
4
4
|
var Zrodlo;
|
|
5
5
|
(function (Zrodlo) {
|
|
6
6
|
Zrodlo["Web"] = "M";
|
|
@@ -67,11 +67,7 @@ var TypDokumentu;
|
|
|
67
67
|
TypDokumentu["FakturaEksport"] = "EX";
|
|
68
68
|
TypDokumentu["KorektaFaktury"] = "KF";
|
|
69
69
|
TypDokumentu["Paragon"] = "PA";
|
|
70
|
+
TypDokumentu["PrzychodWewnetrzny"] = "PW";
|
|
71
|
+
TypDokumentu["WydanieWewnetrzne"] = "WW";
|
|
72
|
+
TypDokumentu["WydanieZewnetrzne"] = "WZ";
|
|
70
73
|
})(TypDokumentu || (exports.TypDokumentu = TypDokumentu = {}));
|
|
71
|
-
var DokumentTyp;
|
|
72
|
-
(function (DokumentTyp) {
|
|
73
|
-
DokumentTyp["Faktura"] = "FA";
|
|
74
|
-
DokumentTyp["WydanieZewnetrzne"] = "WZ";
|
|
75
|
-
DokumentTyp["WydanieWewnetrzne"] = "WW";
|
|
76
|
-
DokumentTyp["PrzychodWewnetrzny"] = "PW";
|
|
77
|
-
})(DokumentTyp || (exports.DokumentTyp = DokumentTyp = {}));
|
package/dist/db_types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DokumentTypDowolny, FormaPlatnosci, TypDokumentu, TypWplaty } from './app_types';
|
|
2
2
|
export interface BufferAttributes {
|
|
3
3
|
id: number;
|
|
4
4
|
date_buffer: Date;
|
|
@@ -192,7 +192,7 @@ export interface ZamowienieDokumentElementAttributes {
|
|
|
192
192
|
export interface ZamowienieDokumentMagazynAttributes {
|
|
193
193
|
id_zamowienie_dokument_magazyn: number;
|
|
194
194
|
data_wystawienia: Date;
|
|
195
|
-
dokument_typ:
|
|
195
|
+
dokument_typ: TypDokumentu | DokumentTypDowolny;
|
|
196
196
|
numer: number;
|
|
197
197
|
numer_idx: number;
|
|
198
198
|
id_zamowienie?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
2
|
+
var _a, _b;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.typDokumentuNazwa = void 0;
|
|
4
|
+
exports.typDokumentuNazwaDopelniacz = exports.typDokumentuNazwa = void 0;
|
|
5
5
|
var app_types_1 = require("../app_types");
|
|
6
6
|
exports.typDokumentuNazwa = (_a = {},
|
|
7
7
|
_a[app_types_1.TypDokumentu.KorektaFaktury] = 'Korekta',
|
|
@@ -9,4 +9,17 @@ exports.typDokumentuNazwa = (_a = {},
|
|
|
9
9
|
_a[app_types_1.TypDokumentu.FakturaDetal] = 'Faktura FADET',
|
|
10
10
|
_a[app_types_1.TypDokumentu.FakturaEksport] = 'Faktura Eksportowa',
|
|
11
11
|
_a[app_types_1.TypDokumentu.Paragon] = 'Paragon',
|
|
12
|
+
_a[app_types_1.TypDokumentu.PrzychodWewnetrzny] = 'Przychód Wewnętrzny',
|
|
13
|
+
_a[app_types_1.TypDokumentu.WydanieWewnetrzne] = 'Wydanie Wewnętrzne',
|
|
14
|
+
_a[app_types_1.TypDokumentu.WydanieZewnetrzne] = 'Wydanie Zewnętrzne',
|
|
12
15
|
_a);
|
|
16
|
+
exports.typDokumentuNazwaDopelniacz = (_b = {},
|
|
17
|
+
_b[app_types_1.TypDokumentu.KorektaFaktury] = 'korekty',
|
|
18
|
+
_b[app_types_1.TypDokumentu.Faktura] = 'faktury VAT',
|
|
19
|
+
_b[app_types_1.TypDokumentu.FakturaDetal] = 'faktury FADET',
|
|
20
|
+
_b[app_types_1.TypDokumentu.FakturaEksport] = 'faktury eksportowej',
|
|
21
|
+
_b[app_types_1.TypDokumentu.Paragon] = 'paragonu',
|
|
22
|
+
_b[app_types_1.TypDokumentu.PrzychodWewnetrzny] = 'przychodu wewnętrznego',
|
|
23
|
+
_b[app_types_1.TypDokumentu.WydanieWewnetrzne] = 'wydania wewnętrznego',
|
|
24
|
+
_b[app_types_1.TypDokumentu.WydanieZewnetrzne] = 'wydania zewnętrznego',
|
|
25
|
+
_b);
|
package/dist/src/app_types.js
CHANGED
|
@@ -63,12 +63,8 @@ export var TypDokumentu = /*#__PURE__*/ function(TypDokumentu) {
|
|
|
63
63
|
TypDokumentu["FakturaEksport"] = "EX";
|
|
64
64
|
TypDokumentu["KorektaFaktury"] = "KF";
|
|
65
65
|
TypDokumentu["Paragon"] = "PA";
|
|
66
|
+
TypDokumentu["PrzychodWewnetrzny"] = "PW";
|
|
67
|
+
TypDokumentu["WydanieWewnetrzne"] = "WW";
|
|
68
|
+
TypDokumentu["WydanieZewnetrzne"] = "WZ";
|
|
66
69
|
return TypDokumentu;
|
|
67
70
|
}({});
|
|
68
|
-
export var DokumentTyp = /*#__PURE__*/ function(DokumentTyp) {
|
|
69
|
-
DokumentTyp["Faktura"] = "FA";
|
|
70
|
-
DokumentTyp["WydanieZewnetrzne"] = "WZ";
|
|
71
|
-
DokumentTyp["WydanieWewnetrzne"] = "WW";
|
|
72
|
-
DokumentTyp["PrzychodWewnetrzny"] = "PW";
|
|
73
|
-
return DokumentTyp;
|
|
74
|
-
}({});
|
|
@@ -13,4 +13,6 @@ function _define_property(obj, key, value) {
|
|
|
13
13
|
}
|
|
14
14
|
import { TypDokumentu } from '../app_types';
|
|
15
15
|
var _obj;
|
|
16
|
-
export var typDokumentuNazwa = (_obj = {}, _define_property(_obj, TypDokumentu.KorektaFaktury, 'Korekta'), _define_property(_obj, TypDokumentu.Faktura, 'Faktura VAT'), _define_property(_obj, TypDokumentu.FakturaDetal, 'Faktura FADET'), _define_property(_obj, TypDokumentu.FakturaEksport, 'Faktura Eksportowa'), _define_property(_obj, TypDokumentu.Paragon, 'Paragon'), _obj);
|
|
16
|
+
export var typDokumentuNazwa = (_obj = {}, _define_property(_obj, TypDokumentu.KorektaFaktury, 'Korekta'), _define_property(_obj, TypDokumentu.Faktura, 'Faktura VAT'), _define_property(_obj, TypDokumentu.FakturaDetal, 'Faktura FADET'), _define_property(_obj, TypDokumentu.FakturaEksport, 'Faktura Eksportowa'), _define_property(_obj, TypDokumentu.Paragon, 'Paragon'), _define_property(_obj, TypDokumentu.PrzychodWewnetrzny, 'Przychód Wewnętrzny'), _define_property(_obj, TypDokumentu.WydanieWewnetrzne, 'Wydanie Wewnętrzne'), _define_property(_obj, TypDokumentu.WydanieZewnetrzne, 'Wydanie Zewnętrzne'), _obj);
|
|
17
|
+
var _obj1;
|
|
18
|
+
export var typDokumentuNazwaDopelniacz = (_obj1 = {}, _define_property(_obj1, TypDokumentu.KorektaFaktury, 'korekty'), _define_property(_obj1, TypDokumentu.Faktura, 'faktury VAT'), _define_property(_obj1, TypDokumentu.FakturaDetal, 'faktury FADET'), _define_property(_obj1, TypDokumentu.FakturaEksport, 'faktury eksportowej'), _define_property(_obj1, TypDokumentu.Paragon, 'paragonu'), _define_property(_obj1, TypDokumentu.PrzychodWewnetrzny, 'przychodu wewnętrznego'), _define_property(_obj1, TypDokumentu.WydanieWewnetrzne, 'wydania wewnętrznego'), _define_property(_obj1, TypDokumentu.WydanieZewnetrzne, 'wydania zewnętrznego'), _obj1);
|