abra-flexi 0.5.4 → 0.5.5
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 +7 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.mjs +7 -6
- 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,
|
|
@@ -66915,14 +66915,15 @@ var AFApiClient = class {
|
|
|
66915
66915
|
if (!this.company || !this.company.length) throw new AFError(AFErrorCode.MISSING_ABRA_COMPANY, `Can't query AFApiClient without providing company path component first.`);
|
|
66916
66916
|
const id = entity?.id;
|
|
66917
66917
|
if (!id && typeof id !== "number") throw new AFError(AFErrorCode.MISSING_ID, `Can't delete entity without knowing it's id.`);
|
|
66918
|
-
|
|
66918
|
+
const entityPath = entity.constructor.EntityPath;
|
|
66919
|
+
let url = this._url + "/c/" + this.company + "/" + entityPath + ".json";
|
|
66919
66920
|
try {
|
|
66920
66921
|
const raw$1 = await this._fetch(url, {
|
|
66921
66922
|
signal: options.abortController?.signal,
|
|
66922
66923
|
method: "PUT",
|
|
66923
66924
|
body: JSON.stringify({ winstrom: [{
|
|
66924
|
-
[
|
|
66925
|
-
[
|
|
66925
|
+
[entityPath]: { id },
|
|
66926
|
+
[entityPath + "@action"]: "delete"
|
|
66926
66927
|
}] })
|
|
66927
66928
|
});
|
|
66928
66929
|
if (raw$1.status >= 400 && raw$1.status < 600) throw new AFError(AFErrorCode.ABRA_FLEXI_ERROR, `${raw$1.status} ${raw$1.statusText}`);
|
|
@@ -67506,7 +67507,7 @@ exports.AFUmisteniVeSkladuRegal = AFUmisteniVeSkladuRegal;
|
|
|
67506
67507
|
exports.AFUplatneniDaneZavazku = AFUplatneniDaneZavazku;
|
|
67507
67508
|
exports.AFUplatneniDaneZavazkuPolozka = AFUplatneniDaneZavazkuPolozka;
|
|
67508
67509
|
exports.AFUzivatel = AFUzivatel;
|
|
67509
|
-
exports.AFUzivatelskaVazba = AFUzivatelskaVazba
|
|
67510
|
+
exports.AFUzivatelskaVazba = AFUzivatelskaVazba;
|
|
67510
67511
|
exports.AFUzivatelskyDotaz = AFUzivatelskyDotaz;
|
|
67511
67512
|
exports.AFUzivatelskyDotazParametr = AFUzivatelskyDotazParametr;
|
|
67512
67513
|
exports.AFUzivatelskyDotazVlastnost = AFUzivatelskyDotazVlastnost;
|