d5-api-initializer 1.5.2 → 1.5.3
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
|
@@ -588,10 +588,10 @@ var ApiCore = class {
|
|
|
588
588
|
* Валидирует xml по переданому xsd.
|
|
589
589
|
* Если валидация происходит с ошибками, то бросается исключение.
|
|
590
590
|
*/
|
|
591
|
-
validateXml(xml, xsd) {
|
|
591
|
+
validateXml(xml, xsd, options) {
|
|
592
592
|
if (!this.httpSender.validateXml)
|
|
593
593
|
throw this.newApiException("validateXml() is not allowed");
|
|
594
|
-
return this.httpSender.validateXml(xsd, xml);
|
|
594
|
+
return this.httpSender.validateXml(xsd, xml, options);
|
|
595
595
|
}
|
|
596
596
|
/*
|
|
597
597
|
* Will be implemented later
|
|
@@ -517,7 +517,9 @@ declare class ApiFileInvoker implements IInvoker {
|
|
|
517
517
|
type HTTPSender = {
|
|
518
518
|
newJSWapiHttp(url: string): jsWapi.JSWapiHttp;
|
|
519
519
|
/** Если не валидируется, то будет exception. */
|
|
520
|
-
validateXml?(xsd: string, xml: string
|
|
520
|
+
validateXml?(xsd: string, xml: string, options?: {
|
|
521
|
+
macroses: Record<string, any>;
|
|
522
|
+
}): boolean;
|
|
521
523
|
};
|
|
522
524
|
declare class ApiCore {
|
|
523
525
|
private readonly httpSender;
|
|
@@ -549,7 +551,9 @@ declare class ApiCore {
|
|
|
549
551
|
* Валидирует xml по переданому xsd.
|
|
550
552
|
* Если валидация происходит с ошибками, то бросается исключение.
|
|
551
553
|
*/
|
|
552
|
-
validateXml(xml: string, xsd: string
|
|
554
|
+
validateXml(xml: string, xsd: string, options?: {
|
|
555
|
+
macroses: Record<string, any>;
|
|
556
|
+
}): boolean;
|
|
553
557
|
}
|
|
554
558
|
|
|
555
559
|
declare class ApiHttpResponse {
|
|
@@ -549,10 +549,10 @@ var ApiCore = class {
|
|
|
549
549
|
* Валидирует xml по переданому xsd.
|
|
550
550
|
* Если валидация происходит с ошибками, то бросается исключение.
|
|
551
551
|
*/
|
|
552
|
-
validateXml(xml, xsd) {
|
|
552
|
+
validateXml(xml, xsd, options) {
|
|
553
553
|
if (!this.httpSender.validateXml)
|
|
554
554
|
throw this.newApiException("validateXml() is not allowed");
|
|
555
|
-
return this.httpSender.validateXml(xsd, xml);
|
|
555
|
+
return this.httpSender.validateXml(xsd, xml, options);
|
|
556
556
|
}
|
|
557
557
|
/*
|
|
558
558
|
* Will be implemented later
|
|
@@ -549,10 +549,10 @@ var ApiCore = class {
|
|
|
549
549
|
* Валидирует xml по переданому xsd.
|
|
550
550
|
* Если валидация происходит с ошибками, то бросается исключение.
|
|
551
551
|
*/
|
|
552
|
-
validateXml(xml, xsd) {
|
|
552
|
+
validateXml(xml, xsd, options) {
|
|
553
553
|
if (!this.httpSender.validateXml)
|
|
554
554
|
throw this.newApiException("validateXml() is not allowed");
|
|
555
|
-
return this.httpSender.validateXml(xsd, xml);
|
|
555
|
+
return this.httpSender.validateXml(xsd, xml, options);
|
|
556
556
|
}
|
|
557
557
|
/*
|
|
558
558
|
* Will be implemented later
|