d5-api-initializer 1.0.0 → 1.0.1
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/package.json
CHANGED
|
@@ -25,8 +25,18 @@ var __publicField = (obj, key, value) => {
|
|
|
25
25
|
// src/lib-index.ts
|
|
26
26
|
var lib_index_exports = {};
|
|
27
27
|
__export(lib_index_exports, {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
ApiCore: () => ApiCore,
|
|
29
|
+
ApiHttpRequest: () => ApiHttpRequest,
|
|
30
|
+
ApiHttpResponse: () => ApiHttpResponse,
|
|
31
|
+
ApiInvoker: () => ApiInvoker,
|
|
32
|
+
ApiJoinInvoker: () => ApiJoinInvoker,
|
|
33
|
+
ApiObjectCollectionIterator: () => ApiObjectCollectionIterator,
|
|
34
|
+
ApiRequest: () => ApiRequest,
|
|
35
|
+
ApiResponse: () => ApiResponse,
|
|
36
|
+
EngineInitializer: () => EngineInitializer,
|
|
37
|
+
LanguageCode: () => LanguageCode,
|
|
38
|
+
UserMessages: () => UserMessages_default,
|
|
39
|
+
default: () => lib_index_default
|
|
30
40
|
});
|
|
31
41
|
module.exports = __toCommonJS(lib_index_exports);
|
|
32
42
|
|
|
@@ -297,6 +307,14 @@ var ApiInvoker = class {
|
|
|
297
307
|
}
|
|
298
308
|
};
|
|
299
309
|
|
|
310
|
+
// src/api-interfaces.ts
|
|
311
|
+
var LanguageCode = /* @__PURE__ */ ((LanguageCode2) => {
|
|
312
|
+
LanguageCode2["ua"] = "ua";
|
|
313
|
+
LanguageCode2["ru"] = "ru";
|
|
314
|
+
LanguageCode2["en"] = "eng";
|
|
315
|
+
return LanguageCode2;
|
|
316
|
+
})(LanguageCode || {});
|
|
317
|
+
|
|
300
318
|
// src/classes/UserMessages.ts
|
|
301
319
|
function formatMessage(text, args = []) {
|
|
302
320
|
let str = text;
|
|
@@ -820,8 +838,29 @@ var EngineInitializer = class {
|
|
|
820
838
|
);
|
|
821
839
|
}
|
|
822
840
|
};
|
|
841
|
+
|
|
842
|
+
// src/classes/ApiJoinInvoker.ts
|
|
843
|
+
var ApiJoinInvoker = class {
|
|
844
|
+
constructor(jsWapiJoinInvoker) {
|
|
845
|
+
__publicField(this, "_jsWapiJoinInvoker");
|
|
846
|
+
this._jsWapiJoinInvoker = jsWapiJoinInvoker;
|
|
847
|
+
}
|
|
848
|
+
//TODO: implement methods.
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
// src/lib-index.ts
|
|
852
|
+
var lib_index_default = ApiObjectInitializer;
|
|
823
853
|
// Annotate the CommonJS export names for ESM import in node:
|
|
824
854
|
0 && (module.exports = {
|
|
825
|
-
|
|
826
|
-
|
|
855
|
+
ApiCore,
|
|
856
|
+
ApiHttpRequest,
|
|
857
|
+
ApiHttpResponse,
|
|
858
|
+
ApiInvoker,
|
|
859
|
+
ApiJoinInvoker,
|
|
860
|
+
ApiObjectCollectionIterator,
|
|
861
|
+
ApiRequest,
|
|
862
|
+
ApiResponse,
|
|
863
|
+
EngineInitializer,
|
|
864
|
+
LanguageCode,
|
|
865
|
+
UserMessages
|
|
827
866
|
});
|
|
@@ -418,4 +418,18 @@ declare class EngineInitializer<MetaParams = Record<string, any>> {
|
|
|
418
418
|
}): void;
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
|
|
421
|
+
declare class ApiJoinInvoker {
|
|
422
|
+
readonly _jsWapiJoinInvoker: any;
|
|
423
|
+
constructor(jsWapiJoinInvoker: any);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
declare class UserMessages {
|
|
427
|
+
private _messages;
|
|
428
|
+
private _lang;
|
|
429
|
+
appendDictionary(newDictionary: Record<LanguageCode, Record<string, string>>): void;
|
|
430
|
+
format(msgKey: string, params?: string[]): string;
|
|
431
|
+
set lang(value: LanguageCode);
|
|
432
|
+
}
|
|
433
|
+
declare const _default: UserMessages;
|
|
434
|
+
|
|
435
|
+
export { ApiCore, ApiHttpRequest, ApiHttpResponse, ApiInvoker, ApiJoinInvoker, ApiObjectCollectionIterator, ApiRequest, ApiResponse, EngineInitializer, IApiOperations, IFilter, IFilterValue, IFiltersCollection, IHttpCallback, IMappedCollection, LanguageCode, _default as UserMessages, ApiObjectInitializer as default };
|
|
@@ -272,6 +272,14 @@ var ApiInvoker = class {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
+
// src/api-interfaces.ts
|
|
276
|
+
var LanguageCode = /* @__PURE__ */ ((LanguageCode2) => {
|
|
277
|
+
LanguageCode2["ua"] = "ua";
|
|
278
|
+
LanguageCode2["ru"] = "ru";
|
|
279
|
+
LanguageCode2["en"] = "eng";
|
|
280
|
+
return LanguageCode2;
|
|
281
|
+
})(LanguageCode || {});
|
|
282
|
+
|
|
275
283
|
// src/classes/UserMessages.ts
|
|
276
284
|
function formatMessage(text, args = []) {
|
|
277
285
|
let str = text;
|
|
@@ -795,7 +803,29 @@ var EngineInitializer = class {
|
|
|
795
803
|
);
|
|
796
804
|
}
|
|
797
805
|
};
|
|
806
|
+
|
|
807
|
+
// src/classes/ApiJoinInvoker.ts
|
|
808
|
+
var ApiJoinInvoker = class {
|
|
809
|
+
constructor(jsWapiJoinInvoker) {
|
|
810
|
+
__publicField(this, "_jsWapiJoinInvoker");
|
|
811
|
+
this._jsWapiJoinInvoker = jsWapiJoinInvoker;
|
|
812
|
+
}
|
|
813
|
+
//TODO: implement methods.
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
// src/lib-index.ts
|
|
817
|
+
var lib_index_default = ApiObjectInitializer;
|
|
798
818
|
export {
|
|
799
|
-
|
|
800
|
-
|
|
819
|
+
ApiCore,
|
|
820
|
+
ApiHttpRequest,
|
|
821
|
+
ApiHttpResponse,
|
|
822
|
+
ApiInvoker,
|
|
823
|
+
ApiJoinInvoker,
|
|
824
|
+
ApiObjectCollectionIterator,
|
|
825
|
+
ApiRequest,
|
|
826
|
+
ApiResponse,
|
|
827
|
+
EngineInitializer,
|
|
828
|
+
LanguageCode,
|
|
829
|
+
UserMessages_default as UserMessages,
|
|
830
|
+
lib_index_default as default
|
|
801
831
|
};
|
|
@@ -272,6 +272,14 @@ var ApiInvoker = class {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
+
// src/api-interfaces.ts
|
|
276
|
+
var LanguageCode = /* @__PURE__ */ ((LanguageCode2) => {
|
|
277
|
+
LanguageCode2["ua"] = "ua";
|
|
278
|
+
LanguageCode2["ru"] = "ru";
|
|
279
|
+
LanguageCode2["en"] = "eng";
|
|
280
|
+
return LanguageCode2;
|
|
281
|
+
})(LanguageCode || {});
|
|
282
|
+
|
|
275
283
|
// src/classes/UserMessages.ts
|
|
276
284
|
function formatMessage(text, args = []) {
|
|
277
285
|
let str = text;
|
|
@@ -795,7 +803,29 @@ var EngineInitializer = class {
|
|
|
795
803
|
);
|
|
796
804
|
}
|
|
797
805
|
};
|
|
806
|
+
|
|
807
|
+
// src/classes/ApiJoinInvoker.ts
|
|
808
|
+
var ApiJoinInvoker = class {
|
|
809
|
+
constructor(jsWapiJoinInvoker) {
|
|
810
|
+
__publicField(this, "_jsWapiJoinInvoker");
|
|
811
|
+
this._jsWapiJoinInvoker = jsWapiJoinInvoker;
|
|
812
|
+
}
|
|
813
|
+
//TODO: implement methods.
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
// src/lib-index.ts
|
|
817
|
+
var lib_index_default = ApiObjectInitializer;
|
|
798
818
|
export {
|
|
799
|
-
|
|
800
|
-
|
|
819
|
+
ApiCore,
|
|
820
|
+
ApiHttpRequest,
|
|
821
|
+
ApiHttpResponse,
|
|
822
|
+
ApiInvoker,
|
|
823
|
+
ApiJoinInvoker,
|
|
824
|
+
ApiObjectCollectionIterator,
|
|
825
|
+
ApiRequest,
|
|
826
|
+
ApiResponse,
|
|
827
|
+
EngineInitializer,
|
|
828
|
+
LanguageCode,
|
|
829
|
+
UserMessages_default as UserMessages,
|
|
830
|
+
lib_index_default as default
|
|
801
831
|
};
|