@colijnit/articleapi 262.1.4 → 262.1.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/build/articles-auth.d.ts +2 -0
- package/build/articles-auth.js +22 -0
- package/build/articles-public.d.ts +2 -0
- package/build/articles-public.js +13 -0
- package/build/articles.d.ts +2 -0
- package/build/articles.js +8 -0
- package/build/articles.unit.test.js +13 -3
- package/build/enum/master-data-object-name.enum.d.ts +2 -0
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +1 -0
- package/build/enum/public-service-method.js +1 -0
- package/build/interface/external-source-article-add.interface.d.ts +2 -2
- package/build/interface/external-source-article-click.interface.d.ts +2 -2
- package/build/ione-api-articles.d.ts +2 -0
- package/build/model/external-catalog-startup-info.d.ts +3 -3
- package/build/model/external-catalog-startup-info.js +1 -1
- package/build/model/external-source-info.bo.d.ts +18 -0
- package/build/model/external-source-info.bo.js +25 -0
- package/package.json +4 -2
package/build/articles-auth.d.ts
CHANGED
|
@@ -48,6 +48,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
48
48
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
49
49
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
50
50
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
52
|
getArticleFullObject(id: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
52
53
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
53
54
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
@@ -108,6 +109,7 @@ export declare class ArticlesAuth extends IoneApiArticles {
|
|
|
108
109
|
cancelFileUpload(uploadId: string, uploadType: string): Promise<DataServiceResponseData>;
|
|
109
110
|
getConversionUnitsForDefaultArticleUnitByGoodIdAndTransactionKind(goodId: number, transactionKind: string): Promise<DataServiceResponseData>;
|
|
110
111
|
convertAmountByUnitCodeToDefaultUnitOfArticle(request: ConvertQuantityToDefaultUnitRequest): Promise<DataServiceResponseData>;
|
|
112
|
+
getUnit(unitCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
111
113
|
private _getDomainCollection;
|
|
112
114
|
private _getMultipleDomainCollection;
|
|
113
115
|
private _callGetSingleImage;
|
package/build/articles-auth.js
CHANGED
|
@@ -283,6 +283,17 @@ export class ArticlesAuth extends IoneApiArticles {
|
|
|
283
283
|
return this._call(DataServiceMethod.SelectSingleObject, data, BackendServiceName.DataService, showLoader);
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
+
getExternalSourceInfo(externalSourceId_1) {
|
|
287
|
+
return __awaiter(this, arguments, void 0, function* (externalSourceId, showLoader = true) {
|
|
288
|
+
const data = {
|
|
289
|
+
moduleName: ModuleName.MasterData,
|
|
290
|
+
objectName: MasterDataObjectName.ExternalSourceInfo,
|
|
291
|
+
refCursorAsArray: true,
|
|
292
|
+
objectId: externalSourceId
|
|
293
|
+
};
|
|
294
|
+
return this._call(DataServiceMethod.SelectSingleObject, data, BackendServiceName.DataService, showLoader);
|
|
295
|
+
});
|
|
296
|
+
}
|
|
286
297
|
getArticleFullObject(id, showLoader = true) {
|
|
287
298
|
const data = {
|
|
288
299
|
moduleName: ModuleName.Articles,
|
|
@@ -933,6 +944,17 @@ export class ArticlesAuth extends IoneApiArticles {
|
|
|
933
944
|
};
|
|
934
945
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
935
946
|
}
|
|
947
|
+
getUnit(unitCode_1) {
|
|
948
|
+
return __awaiter(this, arguments, void 0, function* (unitCode, showLoader = false) {
|
|
949
|
+
const data = {
|
|
950
|
+
moduleName: ModuleName.MasterData,
|
|
951
|
+
objectName: MasterDataObjectName.Unit,
|
|
952
|
+
refCursorAsArray: true,
|
|
953
|
+
objectId: unitCode
|
|
954
|
+
};
|
|
955
|
+
return this._call(DataServiceMethod.SelectSingleObject, data, BackendServiceName.DataService, showLoader);
|
|
956
|
+
});
|
|
957
|
+
}
|
|
936
958
|
_getDomainCollection(languageCode, domainName) {
|
|
937
959
|
const params = {
|
|
938
960
|
domainName: domainName,
|
|
@@ -48,6 +48,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
48
48
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
49
49
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
50
50
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
51
52
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
52
53
|
getArticleFullObject(goodId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
53
54
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
@@ -108,6 +109,7 @@ export declare class ArticlesPublic extends IoneApiArticles {
|
|
|
108
109
|
getCategoryDesigns(): Promise<DataServiceResponseData>;
|
|
109
110
|
getConversionUnitsForDefaultArticleUnitByGoodIdAndTransactionKind(goodId: number, transactionKind: string): Promise<DataServiceResponseData>;
|
|
110
111
|
convertAmountByUnitCodeToDefaultUnitOfArticle(request: ConvertQuantityToDefaultUnitRequest): Promise<DataServiceResponseData>;
|
|
112
|
+
getUnit(unitCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
111
113
|
private createServiceRequestData;
|
|
112
114
|
private _getDomainCollection;
|
|
113
115
|
private _getMultipleDomainCollection;
|
package/build/articles-public.js
CHANGED
|
@@ -132,6 +132,13 @@ export class ArticlesPublic extends IoneApiArticles {
|
|
|
132
132
|
return this._call(PublicServiceMethod.GetExternalSource, data, showLoader);
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
+
getExternalSourceInfo(externalSourceId_1) {
|
|
136
|
+
return __awaiter(this, arguments, void 0, function* (externalSourceId, showLoader = true) {
|
|
137
|
+
const params = { id: externalSourceId };
|
|
138
|
+
const data = Object.assign(Object.assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
139
|
+
return this._call(PublicServiceMethod.GetExternalSourceInfo, data, showLoader);
|
|
140
|
+
});
|
|
141
|
+
}
|
|
135
142
|
getGoodIdFromArticleNr(sku) {
|
|
136
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
144
|
const params = { artikelnr: sku };
|
|
@@ -456,6 +463,12 @@ export class ArticlesPublic extends IoneApiArticles {
|
|
|
456
463
|
console.warn('convertAmountByUnitCodeToDefaultUnitOfArticle not implemented');
|
|
457
464
|
return Promise.resolve(new DataServiceResponseData());
|
|
458
465
|
}
|
|
466
|
+
getUnit(unitCode_1) {
|
|
467
|
+
return __awaiter(this, arguments, void 0, function* (unitCode, showLoader = false) {
|
|
468
|
+
console.warn('getMeasurementUnits not implemented');
|
|
469
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
470
|
+
});
|
|
471
|
+
}
|
|
459
472
|
createServiceRequestData() {
|
|
460
473
|
const data = { languageCode: this.languageCode };
|
|
461
474
|
return data;
|
package/build/articles.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ export declare class Articles {
|
|
|
69
69
|
getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
70
70
|
getCatalogDefinitions(showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
71
71
|
getExternalSource(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
72
|
+
getExternalSourceInfo(externalSourceId: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
72
73
|
getArticleFullObject(id: number, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
73
74
|
getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
74
75
|
getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
@@ -132,6 +133,7 @@ export declare class Articles {
|
|
|
132
133
|
getConversionUnitsForDefaultArticleUnitByGoodIdAndTransactionKind(goodId: number, transactionKind: string): Promise<DataServiceResponseData>;
|
|
133
134
|
private _getJSONFromArticleObject;
|
|
134
135
|
convertAmountByUnitCodeToDefaultUnitOfArticle(request: ConvertQuantityToDefaultUnitRequest): Promise<DataServiceResponseData>;
|
|
136
|
+
getUnit(unitCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
135
137
|
private _getFrozenArticle;
|
|
136
138
|
private _getArticleFlatTree;
|
|
137
139
|
private _getGeneratedArtDirectly;
|
package/build/articles.js
CHANGED
|
@@ -133,6 +133,9 @@ export class Articles {
|
|
|
133
133
|
getExternalSource(externalSourceId, showLoader = true) {
|
|
134
134
|
return this.articles.getExternalSource(externalSourceId, showLoader);
|
|
135
135
|
}
|
|
136
|
+
getExternalSourceInfo(externalSourceId, showLoader = true) {
|
|
137
|
+
return this.articles.getExternalSourceInfo(externalSourceId, showLoader);
|
|
138
|
+
}
|
|
136
139
|
getArticleFullObject(id, showLoader = true) {
|
|
137
140
|
return this.articles.getArticleFullObject(id, showLoader);
|
|
138
141
|
}
|
|
@@ -398,6 +401,11 @@ export class Articles {
|
|
|
398
401
|
convertAmountByUnitCodeToDefaultUnitOfArticle(request) {
|
|
399
402
|
return this.articles.convertAmountByUnitCodeToDefaultUnitOfArticle(request);
|
|
400
403
|
}
|
|
404
|
+
getUnit(unitCode_1) {
|
|
405
|
+
return __awaiter(this, arguments, void 0, function* (unitCode, showLoader = false) {
|
|
406
|
+
return this.articles.getUnit(unitCode, showLoader);
|
|
407
|
+
});
|
|
408
|
+
}
|
|
401
409
|
_getFrozenArticle(instanceId, configuratorStatistics, showLoader) {
|
|
402
410
|
return __awaiter(this, void 0, void 0, function* () {
|
|
403
411
|
const frozenArticleResponse = yield this.articles.getFrozenArticle(configuratorStatistics, showLoader, instanceId);
|
|
@@ -21,10 +21,10 @@ import { ArticleFlat } from "./model/article-flat.bo";
|
|
|
21
21
|
const localOptions = {
|
|
22
22
|
url: "https://develop.colijn-it.nl/",
|
|
23
23
|
schema: "815",
|
|
24
|
-
version: "
|
|
24
|
+
version: "300",
|
|
25
25
|
useLoginEncryption: true,
|
|
26
|
-
username: "
|
|
27
|
-
password: "
|
|
26
|
+
username: "patrick",
|
|
27
|
+
password: "vankeulen1234567890!"
|
|
28
28
|
};
|
|
29
29
|
const remoteOptions = {
|
|
30
30
|
url: "http://130.62.7.55:8888/ione",
|
|
@@ -240,6 +240,11 @@ describe("ArticlesAPI", () => {
|
|
|
240
240
|
const result = yield articles.getExternalSource(94);
|
|
241
241
|
expect(result).toBeDefined();
|
|
242
242
|
}));
|
|
243
|
+
it('getExternalSourceInfo', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
244
|
+
yield articles.connect();
|
|
245
|
+
const result = yield articles.getExternalSourceInfo(148);
|
|
246
|
+
expect(result).toBeDefined();
|
|
247
|
+
}));
|
|
243
248
|
it('getTurnoverGroupImages', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
244
249
|
const result = yield articles.getTurnoverGroups();
|
|
245
250
|
expect(result).toBeDefined();
|
|
@@ -282,4 +287,9 @@ describe("ArticlesAPI", () => {
|
|
|
282
287
|
const result = yield articles.storeCatFarmCompositionArticle(45, tree);
|
|
283
288
|
expect(result).toBeDefined();
|
|
284
289
|
}));
|
|
290
|
+
it('getUnit', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
291
|
+
yield articles.connect();
|
|
292
|
+
const result = yield articles.getUnit('000002');
|
|
293
|
+
expect(result).toBeDefined();
|
|
294
|
+
}));
|
|
285
295
|
});
|
|
@@ -10,9 +10,11 @@ export declare enum MasterDataObjectName {
|
|
|
10
10
|
DeliveryMethod = "DeliveryMethod",
|
|
11
11
|
DeliveryOption = "DeliveryOption",
|
|
12
12
|
ExternalSource = "ExternalSource",
|
|
13
|
+
ExternalSourceInfo = "ExternalSourceInfo",
|
|
13
14
|
MarketingCode = "MarketingCode",
|
|
14
15
|
PrivacySettingDTO = "PrivacySettingDTO",
|
|
15
16
|
SuperArticle = "SuperArticle",
|
|
17
|
+
Unit = "Unit",
|
|
16
18
|
WareHouse = "WareHouse",
|
|
17
19
|
CategoryType = "catType",
|
|
18
20
|
CategoryDesign = "catDesign"
|
|
@@ -11,9 +11,11 @@ export var MasterDataObjectName;
|
|
|
11
11
|
MasterDataObjectName["DeliveryMethod"] = "DeliveryMethod";
|
|
12
12
|
MasterDataObjectName["DeliveryOption"] = "DeliveryOption";
|
|
13
13
|
MasterDataObjectName["ExternalSource"] = "ExternalSource";
|
|
14
|
+
MasterDataObjectName["ExternalSourceInfo"] = "ExternalSourceInfo";
|
|
14
15
|
MasterDataObjectName["MarketingCode"] = "MarketingCode";
|
|
15
16
|
MasterDataObjectName["PrivacySettingDTO"] = "PrivacySettingDTO";
|
|
16
17
|
MasterDataObjectName["SuperArticle"] = "SuperArticle";
|
|
18
|
+
MasterDataObjectName["Unit"] = "Unit";
|
|
17
19
|
MasterDataObjectName["WareHouse"] = "WareHouse";
|
|
18
20
|
MasterDataObjectName["CategoryType"] = "catType";
|
|
19
21
|
MasterDataObjectName["CategoryDesign"] = "catDesign";
|
|
@@ -87,6 +87,7 @@ export declare enum PublicServiceMethod {
|
|
|
87
87
|
getBrandsUsedInArticles = "getBrandsUsedInArticles",
|
|
88
88
|
GetCatalogDefinitions = "getCatalogDefinitions",
|
|
89
89
|
GetExternalSource = "getExternalSource",
|
|
90
|
+
GetExternalSourceInfo = "getExternalSourceInfo",
|
|
90
91
|
getGeneratedArtDirectly = "getGeneratedArtDirectly",
|
|
91
92
|
StorePreset = "storePreset"
|
|
92
93
|
}
|
|
@@ -88,6 +88,7 @@ export var PublicServiceMethod;
|
|
|
88
88
|
PublicServiceMethod["getBrandsUsedInArticles"] = "getBrandsUsedInArticles";
|
|
89
89
|
PublicServiceMethod["GetCatalogDefinitions"] = "getCatalogDefinitions";
|
|
90
90
|
PublicServiceMethod["GetExternalSource"] = "getExternalSource";
|
|
91
|
+
PublicServiceMethod["GetExternalSourceInfo"] = "getExternalSourceInfo";
|
|
91
92
|
PublicServiceMethod["getGeneratedArtDirectly"] = "getGeneratedArtDirectly";
|
|
92
93
|
PublicServiceMethod["StorePreset"] = "storePreset";
|
|
93
94
|
})(PublicServiceMethod || (PublicServiceMethod = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
2
|
-
import { ExternalSource } from '../model/external-source.bo';
|
|
3
2
|
import { ArticleFullObject } from '../model/article-full-object';
|
|
3
|
+
import { ExternalSourceInfo } from '../model/external-source-info.bo';
|
|
4
4
|
export interface ExternalSourceArticleAddInterface {
|
|
5
5
|
quantity: number;
|
|
6
6
|
article: string | ArticleFullObject;
|
|
7
7
|
catalogDefinition: CatalogDefinition;
|
|
8
|
-
externalSource:
|
|
8
|
+
externalSource: ExternalSourceInfo;
|
|
9
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ArticleListObjectExtended } from '../model/article-list-object-extended.bo';
|
|
2
2
|
import { CatalogDefinition } from '../model/catalog-definition.bo';
|
|
3
|
-
import { ExternalSource } from '../model/external-source.bo';
|
|
4
3
|
import { ExternalSettingsInterface } from './external-settings.interface';
|
|
4
|
+
import { ExternalSourceInfo } from '../model/external-source-info.bo';
|
|
5
5
|
export interface ExternalSourceArticleClickInterface {
|
|
6
6
|
article: string | ArticleListObjectExtended;
|
|
7
7
|
settings: ExternalSettingsInterface;
|
|
8
8
|
catalogDefinition: CatalogDefinition;
|
|
9
|
-
externalSource:
|
|
9
|
+
externalSource: ExternalSourceInfo;
|
|
10
10
|
}
|
|
@@ -54,6 +54,7 @@ export declare abstract class IoneApiArticles {
|
|
|
54
54
|
abstract getBrandsFilter(request: ArticleExtendedRequest): Promise<DataServiceResponseData>;
|
|
55
55
|
abstract getCatalogDefinitions(showLoader: boolean): Promise<DataServiceResponseData>;
|
|
56
56
|
abstract getExternalSource(externalSourceId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
|
+
abstract getExternalSourceInfo(externalSourceId: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
57
58
|
abstract getArticleFullObject(id: number, showLoader: boolean): Promise<DataServiceResponseData>;
|
|
58
59
|
abstract getArticleFlat(sku: string): Promise<DataServiceResponseData>;
|
|
59
60
|
abstract getWarehouses(goodId: number): Promise<DataServiceResponseData>;
|
|
@@ -114,5 +115,6 @@ export declare abstract class IoneApiArticles {
|
|
|
114
115
|
abstract storePreset(instanceId: string): Promise<DataServiceResponseData>;
|
|
115
116
|
abstract getConversionUnitsForDefaultArticleUnitByGoodIdAndTransactionKind(goodId: number, transactionKind: string): Promise<DataServiceResponseData>;
|
|
116
117
|
abstract convertAmountByUnitCodeToDefaultUnitOfArticle(request: ConvertQuantityToDefaultUnitRequest): Promise<DataServiceResponseData>;
|
|
118
|
+
abstract getUnit(unitCode: string, showLoader?: boolean): Promise<DataServiceResponseData>;
|
|
117
119
|
protected endPoint: string;
|
|
118
120
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import {
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ExternalSourceInfo } from './external-source-info.bo';
|
|
3
3
|
export declare class ExternalCatalogStartupInfo extends BusinessObject {
|
|
4
|
-
externalSource:
|
|
4
|
+
externalSource: ExternalSourceInfo;
|
|
5
5
|
username: string;
|
|
6
6
|
password: string;
|
|
7
7
|
token: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
2
|
+
import { ExternalSourceParameter } from './external-source-parameter.bo';
|
|
3
|
+
export declare class ExternalSourceInfo extends BusinessObject {
|
|
4
|
+
sourceId: number;
|
|
5
|
+
type: string;
|
|
6
|
+
branchNr: string;
|
|
7
|
+
description: string;
|
|
8
|
+
url: string;
|
|
9
|
+
domain: string;
|
|
10
|
+
schema: string;
|
|
11
|
+
language: string;
|
|
12
|
+
retailFormulas: string[];
|
|
13
|
+
parameters: ExternalSourceParameter[];
|
|
14
|
+
supplierNr: number;
|
|
15
|
+
constructor();
|
|
16
|
+
getId(): number;
|
|
17
|
+
setId(value: number): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { BusinessObject } from '@colijnit/ioneconnector/build/model/business-object';
|
|
8
|
+
import { ComplexArray } from '@colijnit/ioneconnector/build/factory/decorators/complex-array.decorator';
|
|
9
|
+
import { ExternalSourceParameter } from './external-source-parameter.bo';
|
|
10
|
+
export class ExternalSourceInfo extends BusinessObject {
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
this.retailFormulas = [];
|
|
14
|
+
this.parameters = [];
|
|
15
|
+
}
|
|
16
|
+
getId() {
|
|
17
|
+
return this.sourceId;
|
|
18
|
+
}
|
|
19
|
+
setId(value) {
|
|
20
|
+
this.sourceId = value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
ComplexArray(ExternalSourceParameter)
|
|
25
|
+
], ExternalSourceInfo.prototype, "parameters", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/articleapi",
|
|
3
|
-
"version": "262.1.
|
|
3
|
+
"version": "262.1.6",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"grunt-contrib-uglify-es": "git+https://github.com/gruntjs/grunt-contrib-uglify.git#harmony",
|
|
38
38
|
"gulp": "^3.9.1",
|
|
39
39
|
"jest": "^30.3.0",
|
|
40
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
40
41
|
"ts-jest": "^29.4.9",
|
|
41
42
|
"typescript": "5.8.3"
|
|
42
43
|
},
|
|
@@ -47,11 +48,12 @@
|
|
|
47
48
|
"types": "build/connector.d.ts",
|
|
48
49
|
"jest": {
|
|
49
50
|
"verbose": true,
|
|
51
|
+
"testEnvironment": "jsdom",
|
|
50
52
|
"roots": [
|
|
51
53
|
"<rootDir>/src"
|
|
52
54
|
],
|
|
53
55
|
"transform": {
|
|
54
|
-
"^.+\\.tsx?$": "ts-jest"
|
|
56
|
+
"^.+\\.tsx?$": ["ts-jest", { "tsconfig": "tsconfig.test.json" }]
|
|
55
57
|
},
|
|
56
58
|
"transformIgnorePatterns": [
|
|
57
59
|
"node_modules\\/(?!(@colijnit\\/ioneconnector)\\/)"
|