abra-flexi 0.5.4 → 0.5.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.
- package/dist/index.cjs +12 -7
- package/dist/index.d.cts +448 -444
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +448 -444
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +12 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -40647,7 +40647,7 @@ var AFTypUzivatelskeVazby = class extends AFEntity {
|
|
|
40647
40647
|
|
|
40648
40648
|
//#endregion
|
|
40649
40649
|
//#region src/generated/entities/AFUzivatelskaVazba.ts
|
|
40650
|
-
var AFUzivatelskaVazba
|
|
40650
|
+
var AFUzivatelskaVazba = class extends AFEntity {
|
|
40651
40651
|
static {
|
|
40652
40652
|
this.EntityPath = "uzivatelska-vazba";
|
|
40653
40653
|
}
|
|
@@ -66332,7 +66332,7 @@ const AFEntityRegistry = {
|
|
|
66332
66332
|
AFFormaDopravy,
|
|
66333
66333
|
AFCisloBaliku,
|
|
66334
66334
|
AFTypUzivatelskeVazby,
|
|
66335
|
-
AFUzivatelskaVazba
|
|
66335
|
+
AFUzivatelskaVazba,
|
|
66336
66336
|
AFVztah,
|
|
66337
66337
|
AFIntrastatKrajUrceni,
|
|
66338
66338
|
AFIntrastatZvlastniPohyb,
|
|
@@ -66669,7 +66669,7 @@ var AFApiClient = class {
|
|
|
66669
66669
|
const detail = options.detail || AFQueryDetail.SUMMARY;
|
|
66670
66670
|
let furl = options.filter?.toUrlComponent();
|
|
66671
66671
|
if (furl && !furl.length) furl = void 0;
|
|
66672
|
-
let url = this._url + "/c/" + this.company + "/" + entityPath;
|
|
66672
|
+
let url = this._url + "/c/" + this.company + "/" + (options.entityPathPrefix ?? "") + entityPath;
|
|
66673
66673
|
url += furl ? "/" + furl : "";
|
|
66674
66674
|
url += "." + ABRA_API_FORMAT;
|
|
66675
66675
|
url = addParamToUrl(url, "detail", composeDetail(detail));
|
|
@@ -66688,6 +66688,8 @@ var AFApiClient = class {
|
|
|
66688
66688
|
url = addParamToUrl(url, "ucetniObdobi", options.ucetniObdobi);
|
|
66689
66689
|
url = addParamToUrl(url, "koncovyMesicRok", options.koncovyMesicRok);
|
|
66690
66690
|
url = addParamToUrl(url, "pocetMesicu", options.pocetMesicu);
|
|
66691
|
+
url = addParamToUrl(url, "date", options.date);
|
|
66692
|
+
url = addParamToUrl(url, "currency", options.currency);
|
|
66691
66693
|
console.log(url);
|
|
66692
66694
|
try {
|
|
66693
66695
|
const raw$1 = await this._fetch(url, { signal: options.abortController?.signal });
|
|
@@ -66839,6 +66841,7 @@ var AFApiClient = class {
|
|
|
66839
66841
|
let url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
|
|
66840
66842
|
console.log(url);
|
|
66841
66843
|
console.log(data);
|
|
66844
|
+
if (options.removeStitky) data["stitky@removeAll"] = "true";
|
|
66842
66845
|
try {
|
|
66843
66846
|
const raw$1 = await this._fetch(url, {
|
|
66844
66847
|
signal: options.abortController?.signal,
|
|
@@ -66915,14 +66918,15 @@ var AFApiClient = class {
|
|
|
66915
66918
|
if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
|
|
66916
66919
|
const id = entity?.id;
|
|
66917
66920
|
if (!id && typeof id !== "number") throw new AFError(AFErrorCode.MISSING_ID, `Can't delete entity without knowing it's id.`);
|
|
66918
|
-
|
|
66921
|
+
const entityPath = entity.constructor.EntityPath;
|
|
66922
|
+
let url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
|
|
66919
66923
|
try {
|
|
66920
66924
|
const raw$1 = await this._fetch(url, {
|
|
66921
66925
|
signal: options.abortController?.signal,
|
|
66922
66926
|
method: "PUT",
|
|
66923
66927
|
body: JSON.stringify({ winstrom: [{
|
|
66924
|
-
[
|
|
66925
|
-
[
|
|
66928
|
+
[entityPath]: { id },
|
|
66929
|
+
[entityPath + "@action"]: "delete"
|
|
66926
66930
|
}] })
|
|
66927
66931
|
});
|
|
66928
66932
|
if (raw$1.status >= 400 && raw$1.status < 600) throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
|
|
@@ -67011,6 +67015,7 @@ var AFApiClient = class {
|
|
|
67011
67015
|
}
|
|
67012
67016
|
if (!obj) return;
|
|
67013
67017
|
obj[key] = serializePropertyValue(annot.type, annot, val);
|
|
67018
|
+
if (entity instanceof AFPriloha && key === "content") obj["content@encoding"] = "base64";
|
|
67014
67019
|
}
|
|
67015
67020
|
};
|
|
67016
67021
|
|
|
@@ -67506,7 +67511,7 @@ exports.AFUmisteniVeSkladuRegal = AFUmisteniVeSkladuRegal;
|
|
|
67506
67511
|
exports.AFUplatneniDaneZavazku = AFUplatneniDaneZavazku;
|
|
67507
67512
|
exports.AFUplatneniDaneZavazkuPolozka = AFUplatneniDaneZavazkuPolozka;
|
|
67508
67513
|
exports.AFUzivatel = AFUzivatel;
|
|
67509
|
-
exports.AFUzivatelskaVazba = AFUzivatelskaVazba
|
|
67514
|
+
exports.AFUzivatelskaVazba = AFUzivatelskaVazba;
|
|
67510
67515
|
exports.AFUzivatelskyDotaz = AFUzivatelskyDotaz;
|
|
67511
67516
|
exports.AFUzivatelskyDotazParametr = AFUzivatelskyDotazParametr;
|
|
67512
67517
|
exports.AFUzivatelskyDotazVlastnost = AFUzivatelskyDotazVlastnost;
|