@bitrix24/b24jssdk 0.2.1 → 0.2.2
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/commonjs/index.cjs +62 -3
- package/dist/commonjs/index.cjs.map +1 -1
- package/dist/commonjs/index.d.cts +264 -3
- package/dist/commonjs/index.d.mts +264 -3
- package/dist/commonjs/index.d.ts +264 -3
- package/dist/esm/index.d.mts +264 -3
- package/dist/esm/index.d.ts +264 -3
- package/dist/esm/index.mjs +58 -4
- package/dist/esm/index.mjs.map +1 -1
- package/dist/umd/index.js +62 -3
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.min.js +16 -16
- package/dist/umd/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/commonjs/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @version @bitrix24/b24jssdk v0.2.
|
|
2
|
+
* @version @bitrix24/b24jssdk v0.2.2
|
|
3
3
|
* @copyright (c) 2025 Bitrix24
|
|
4
4
|
* @licence MIT
|
|
5
5
|
* @links https://github.com/bitrix24/b24jssdk - GitHub
|
|
@@ -930,6 +930,7 @@ var EnumCrmEntityType = /* @__PURE__ */ ((EnumCrmEntityType2) => {
|
|
|
930
930
|
EnumCrmEntityType2["invoice"] = "CRM_SMART_INVOICE";
|
|
931
931
|
EnumCrmEntityType2["quote"] = "CRM_QUOTE";
|
|
932
932
|
EnumCrmEntityType2["requisite"] = "CRM_REQUISITE";
|
|
933
|
+
EnumCrmEntityType2["order"] = "ORDER";
|
|
933
934
|
return EnumCrmEntityType2;
|
|
934
935
|
})(EnumCrmEntityType || {});
|
|
935
936
|
var EnumCrmEntityTypeId = /* @__PURE__ */ ((EnumCrmEntityTypeId2) => {
|
|
@@ -942,8 +943,54 @@ var EnumCrmEntityTypeId = /* @__PURE__ */ ((EnumCrmEntityTypeId2) => {
|
|
|
942
943
|
EnumCrmEntityTypeId2[EnumCrmEntityTypeId2["invoice"] = 31] = "invoice";
|
|
943
944
|
EnumCrmEntityTypeId2[EnumCrmEntityTypeId2["quote"] = 7] = "quote";
|
|
944
945
|
EnumCrmEntityTypeId2[EnumCrmEntityTypeId2["requisite"] = 8] = "requisite";
|
|
946
|
+
EnumCrmEntityTypeId2[EnumCrmEntityTypeId2["order"] = 14] = "order";
|
|
945
947
|
return EnumCrmEntityTypeId2;
|
|
946
948
|
})(EnumCrmEntityTypeId || {});
|
|
949
|
+
var EnumCrmEntityTypeShort = /* @__PURE__ */ ((EnumCrmEntityTypeShort2) => {
|
|
950
|
+
EnumCrmEntityTypeShort2["undefined"] = "?";
|
|
951
|
+
EnumCrmEntityTypeShort2["lead"] = "L";
|
|
952
|
+
EnumCrmEntityTypeShort2["deal"] = "D";
|
|
953
|
+
EnumCrmEntityTypeShort2["contact"] = "C";
|
|
954
|
+
EnumCrmEntityTypeShort2["company"] = "CO";
|
|
955
|
+
EnumCrmEntityTypeShort2["oldInvoice"] = "I";
|
|
956
|
+
EnumCrmEntityTypeShort2["invoice"] = "SI";
|
|
957
|
+
EnumCrmEntityTypeShort2["quote"] = "Q";
|
|
958
|
+
EnumCrmEntityTypeShort2["requisite"] = "RQ";
|
|
959
|
+
EnumCrmEntityTypeShort2["order"] = "O";
|
|
960
|
+
return EnumCrmEntityTypeShort2;
|
|
961
|
+
})(EnumCrmEntityTypeShort || {});
|
|
962
|
+
|
|
963
|
+
var ProductRowDiscountTypeId = /* @__PURE__ */ ((ProductRowDiscountTypeId2) => {
|
|
964
|
+
ProductRowDiscountTypeId2[ProductRowDiscountTypeId2["undefined"] = 0] = "undefined";
|
|
965
|
+
ProductRowDiscountTypeId2[ProductRowDiscountTypeId2["absolute"] = 1] = "absolute";
|
|
966
|
+
ProductRowDiscountTypeId2[ProductRowDiscountTypeId2["percentage"] = 2] = "percentage";
|
|
967
|
+
return ProductRowDiscountTypeId2;
|
|
968
|
+
})(ProductRowDiscountTypeId || {});
|
|
969
|
+
|
|
970
|
+
var CatalogProductType = /* @__PURE__ */ ((CatalogProductType2) => {
|
|
971
|
+
CatalogProductType2[CatalogProductType2["undefined"] = 0] = "undefined";
|
|
972
|
+
CatalogProductType2[CatalogProductType2["product"] = 1] = "product";
|
|
973
|
+
CatalogProductType2[CatalogProductType2["service"] = 7] = "service";
|
|
974
|
+
CatalogProductType2[CatalogProductType2["sku"] = 3] = "sku";
|
|
975
|
+
CatalogProductType2[CatalogProductType2["skuEmpty"] = 6] = "skuEmpty";
|
|
976
|
+
CatalogProductType2[CatalogProductType2["offer"] = 4] = "offer";
|
|
977
|
+
CatalogProductType2[CatalogProductType2["offerEmpty"] = 5] = "offerEmpty";
|
|
978
|
+
return CatalogProductType2;
|
|
979
|
+
})(CatalogProductType || {});
|
|
980
|
+
var CatalogProductImageType = /* @__PURE__ */ ((CatalogProductImageType2) => {
|
|
981
|
+
CatalogProductImageType2["undefined"] = "UNDEFINED";
|
|
982
|
+
CatalogProductImageType2["detail"] = "DETAIL_PICTURE";
|
|
983
|
+
CatalogProductImageType2["preview"] = "PREVIEW_PICTURE";
|
|
984
|
+
CatalogProductImageType2["morePhoto"] = "MORE_PHOTO";
|
|
985
|
+
return CatalogProductImageType2;
|
|
986
|
+
})(CatalogProductImageType || {});
|
|
987
|
+
var CatalogRoundingRuleType = /* @__PURE__ */ ((CatalogRoundingRuleType2) => {
|
|
988
|
+
CatalogRoundingRuleType2[CatalogRoundingRuleType2["undefined"] = 0] = "undefined";
|
|
989
|
+
CatalogRoundingRuleType2[CatalogRoundingRuleType2["mathematical"] = 1] = "mathematical";
|
|
990
|
+
CatalogRoundingRuleType2[CatalogRoundingRuleType2["roundingUp"] = 2] = "roundingUp";
|
|
991
|
+
CatalogRoundingRuleType2[CatalogRoundingRuleType2["roundingDown"] = 4] = "roundingDown";
|
|
992
|
+
return CatalogRoundingRuleType2;
|
|
993
|
+
})(CatalogRoundingRuleType || {});
|
|
947
994
|
|
|
948
995
|
var LoadDataType = /* @__PURE__ */ ((LoadDataType2) => {
|
|
949
996
|
LoadDataType2["App"] = "app";
|
|
@@ -1496,9 +1543,16 @@ class Http {
|
|
|
1496
1543
|
#isClientSideWarning = false;
|
|
1497
1544
|
#clientSideWarningMessage = "";
|
|
1498
1545
|
constructor(baseURL, authActions, options) {
|
|
1546
|
+
const defaultHeaders = {
|
|
1547
|
+
// 'X-Sdk': 'b24-js-sdk-v-0.2.2'
|
|
1548
|
+
};
|
|
1499
1549
|
this.#clientAxios = axios.create({
|
|
1500
1550
|
baseURL,
|
|
1501
|
-
|
|
1551
|
+
headers: {
|
|
1552
|
+
...defaultHeaders,
|
|
1553
|
+
...options ? options.headers : {}
|
|
1554
|
+
},
|
|
1555
|
+
...options && { ...options, headers: void 0 }
|
|
1502
1556
|
});
|
|
1503
1557
|
this.#authActions = authActions;
|
|
1504
1558
|
this.#restrictionManager = new RestrictionManager();
|
|
@@ -1900,7 +1954,7 @@ class Http {
|
|
|
1900
1954
|
result.logTag = this.#logTag;
|
|
1901
1955
|
}
|
|
1902
1956
|
result[this.#requestIdGenerator.getQueryStringParameterName()] = this.#requestIdGenerator.getRequestId();
|
|
1903
|
-
result[this.#requestIdGenerator.getQueryStringSdkParameterName()] = "0.2.
|
|
1957
|
+
result[this.#requestIdGenerator.getQueryStringSdkParameterName()] = "0.2.2";
|
|
1904
1958
|
if (!!result.data && !!result.data.start) {
|
|
1905
1959
|
delete result.data.start;
|
|
1906
1960
|
}
|
|
@@ -13575,6 +13629,9 @@ exports.B24Hook = B24Hook;
|
|
|
13575
13629
|
exports.B24LangList = B24LangList;
|
|
13576
13630
|
exports.B24PullClientManager = PullClient;
|
|
13577
13631
|
exports.Browser = Browser;
|
|
13632
|
+
exports.CatalogProductImageType = CatalogProductImageType;
|
|
13633
|
+
exports.CatalogProductType = CatalogProductType;
|
|
13634
|
+
exports.CatalogRoundingRuleType = CatalogRoundingRuleType;
|
|
13578
13635
|
exports.CloseReasons = CloseReasons;
|
|
13579
13636
|
exports.ConnectionType = ConnectionType;
|
|
13580
13637
|
exports.DataType = DataType;
|
|
@@ -13582,6 +13639,7 @@ exports.DialogManager = DialogManager;
|
|
|
13582
13639
|
exports.EnumAppStatus = EnumAppStatus;
|
|
13583
13640
|
exports.EnumCrmEntityType = EnumCrmEntityType;
|
|
13584
13641
|
exports.EnumCrmEntityTypeId = EnumCrmEntityTypeId;
|
|
13642
|
+
exports.EnumCrmEntityTypeShort = EnumCrmEntityTypeShort;
|
|
13585
13643
|
exports.ListRpcError = ListRpcError;
|
|
13586
13644
|
exports.LoadDataType = LoadDataType;
|
|
13587
13645
|
exports.LoggerBrowser = LoggerBrowser;
|
|
@@ -13592,6 +13650,7 @@ exports.MessageManager = MessageManager;
|
|
|
13592
13650
|
exports.OptionsManager = OptionsManager$1;
|
|
13593
13651
|
exports.ParentManager = ParentManager;
|
|
13594
13652
|
exports.PlacementManager = PlacementManager;
|
|
13653
|
+
exports.ProductRowDiscountTypeId = ProductRowDiscountTypeId;
|
|
13595
13654
|
exports.PullStatus = PullStatus;
|
|
13596
13655
|
exports.RestrictionManagerParamsBase = RestrictionManagerParamsBase;
|
|
13597
13656
|
exports.RestrictionManagerParamsForEnterprise = RestrictionManagerParamsForEnterprise;
|