@contrail/flexplm 1.0.11 → 1.0.13

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.
@@ -0,0 +1,91 @@
1
+ export interface FCConfig {
2
+ apiKey?: string;
3
+ orgSlug?: string;
4
+ action?: string;
5
+ configFile?: string;
6
+ eventObjectClassParam?: string;
7
+ eventFlexTypePathParam?: string;
8
+ taskId?: string;
9
+ apiHost: string;
10
+ userName(): string;
11
+ password(): string;
12
+ plmEnviornment?: string;
13
+ urlContext: string;
14
+ vibeEventEndpoint: string;
15
+ csrfEndpoint: string;
16
+ itemPreDevelopmentLifecycleStages: string[];
17
+ identifierAtts?: {
18
+ [key: string]: string[];
19
+ };
20
+ propertyMapping?: object;
21
+ }
22
+ export interface ProductFederation {
23
+ entityReference: string;
24
+ objectClass: 'LCSProduct';
25
+ federatedId?: string;
26
+ vibeIQIdentifier?: string;
27
+ }
28
+ export interface ProductData extends ProductFederation {
29
+ data: object;
30
+ productSeason: {
31
+ data: object;
32
+ };
33
+ }
34
+ export interface SeasonFederation {
35
+ entityReference: string;
36
+ objectClass: 'LCSSeason';
37
+ flexPLMSeasonName?: string;
38
+ federationId?: string;
39
+ }
40
+ export interface SkuFederation {
41
+ entityReference: string;
42
+ objectClass: 'LCSSKU';
43
+ LCSProduct?: ProductFederation;
44
+ federatedId?: string;
45
+ vibeIQIdentifier?: string;
46
+ }
47
+ export interface SkuData extends SkuFederation {
48
+ data: object;
49
+ }
50
+ export interface PayloadType {
51
+ eventType: string;
52
+ objectClass: string;
53
+ }
54
+ export interface AsyncPayloadType extends PayloadType {
55
+ taskId: string;
56
+ }
57
+ export interface AsyncEventsPayloadType extends AsyncPayloadType {
58
+ events?: PayloadType[];
59
+ eventsFileId?: string;
60
+ eventsDownloadLink?: string;
61
+ }
62
+ export interface EntityPayloadType extends PayloadType {
63
+ entityReference: string;
64
+ federatedId?: string;
65
+ flexPLMTypePath?: string;
66
+ data: object;
67
+ }
68
+ export interface ItemPayloadType extends EntityPayloadType {
69
+ LCSProduct?: ProductFederation;
70
+ }
71
+ export interface SeasonalPayload extends EntityPayloadType {
72
+ eventType: 'UPSERT_ON_SEASON' | 'REMOVE_FROM_SEASON';
73
+ objectClass: 'LCSProductSeasonLink' | 'LCSSKUSeasonLink';
74
+ LCSSeason: SeasonFederation;
75
+ LCSProduct?: ProductFederation;
76
+ LCSSKU?: SkuFederation;
77
+ }
78
+ export interface ExportPayloadType extends AsyncPayloadType {
79
+ flexPLMTypePath: string;
80
+ }
81
+ export interface FederationRecord {
82
+ reference: string;
83
+ mappedReference: string;
84
+ appIdentifier: string;
85
+ federationSchema: string;
86
+ }
87
+ export interface FlexPLMResponseData {
88
+ status: number;
89
+ data?: object;
90
+ error?: string;
91
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare function setLoggerConfig(appConfig: any): Promise<void>;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setLoggerConfig = void 0;
4
+ const app_framework_1 = require("@contrail/app-framework");
5
+ async function setLoggerConfig(appConfig) {
6
+ let logLevel = app_framework_1.LogLevel.INFO;
7
+ if (!appConfig.logLevel) {
8
+ }
9
+ else if (appConfig.logLevel === 'error') {
10
+ logLevel = app_framework_1.LogLevel.ERROR;
11
+ }
12
+ else if (appConfig.logLevel === 'warn') {
13
+ logLevel = app_framework_1.LogLevel.WARN;
14
+ }
15
+ else if (appConfig.logLevel === 'info') {
16
+ logLevel = app_framework_1.LogLevel.INFO;
17
+ }
18
+ else if (appConfig.logLevel === 'debug') {
19
+ logLevel = app_framework_1.LogLevel.DEBUG;
20
+ }
21
+ else {
22
+ console.log('could not parse log level:', appConfig);
23
+ }
24
+ app_framework_1.Logger.setConfig({ logLevel: logLevel });
25
+ }
26
+ exports.setLoggerConfig = setLoggerConfig;
@@ -0,0 +1,3 @@
1
+ export declare class MapUtil {
2
+ static applyTransformMap(transformMapFile: any, mapFileUtil: any, data: any, type: string, direction: string): Promise<any>;
3
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MapUtil = void 0;
4
+ const transform_data_1 = require("@contrail/transform-data");
5
+ class MapUtil {
6
+ static async applyTransformMap(transformMapFile, mapFileUtil, data, type, direction) {
7
+ if (transformMapFile) {
8
+ const mapping = await mapFileUtil.getMappingSection(transformMapFile, type, direction);
9
+ if (mapping) {
10
+ const tasks = transform_data_1.MapFileUtil.getTransformTasks(mapping);
11
+ if (tasks.length > 0) {
12
+ const convertedArray = transform_data_1.TransformProcessor.transformData([data], tasks);
13
+ data = convertedArray[0];
14
+ }
15
+ }
16
+ }
17
+ return data;
18
+ }
19
+ }
20
+ exports.MapUtil = MapUtil;
@@ -0,0 +1,39 @@
1
+ export declare const empty_custom_sizes: any[];
2
+ export declare const four_custom_sizes: {
3
+ size: number;
4
+ id: string;
5
+ slug: string;
6
+ }[];
7
+ export declare const thumbnail_content_entity: {
8
+ fileName: string;
9
+ primaryFileId: string;
10
+ primaryFileUrl: string;
11
+ tinyViewableId: string;
12
+ tinyViewableUrl: string;
13
+ smallViewableId: string;
14
+ smallViewableUrl: string;
15
+ mediumViewableId: string;
16
+ mediumViewableUrl: string;
17
+ largeViewableId: string;
18
+ largeViewableUrl: string;
19
+ CS_300Id: string;
20
+ CS_300Url: string;
21
+ CS_500Id: string;
22
+ CS_500Url: string;
23
+ CS_800Id: string;
24
+ CS_800Url: string;
25
+ CS_1000Id: string;
26
+ CS_1000Url: string;
27
+ createdOn: string;
28
+ orgId: string;
29
+ id: string;
30
+ contentType: string;
31
+ createdById: string;
32
+ updatedById: string;
33
+ fileSize: number;
34
+ };
35
+ export declare const cuRficeyoStwTF_f_fileEntities: {
36
+ fileName: string;
37
+ id: string;
38
+ size: number;
39
+ }[];
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cuRficeyoStwTF_f_fileEntities = exports.thumbnail_content_entity = exports.four_custom_sizes = exports.empty_custom_sizes = void 0;
4
+ exports.empty_custom_sizes = [];
5
+ exports.four_custom_sizes = [
6
+ {
7
+ size: 1000,
8
+ id: '-QwFOWnCs0Gb5jkA',
9
+ slug: 'CS_1000'
10
+ },
11
+ {
12
+ size: 300,
13
+ id: 'AKXOowvhJRnkerG8',
14
+ slug: 'CS_300'
15
+ },
16
+ {
17
+ size: 500,
18
+ id: '9asQ65N188RIYgnh',
19
+ slug: 'CS_500'
20
+ },
21
+ {
22
+ size: 800,
23
+ id: 'xkzhwE4nJ6iRwfvP',
24
+ slug: 'CS_800'
25
+ }
26
+ ];
27
+ exports.thumbnail_content_entity = {
28
+ fileName: 'JACKET 300_SOLDIER OLIVE.png',
29
+ primaryFileId: 'yn2d5oHD4rXHRzyB',
30
+ primaryFileUrl: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2Ff646d3cd-e23a-4689-bd16-0301d2036720.png',
31
+ tinyViewableId: '6HWzJrQ-Jx1iefmj',
32
+ tinyViewableUrl: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2Fb68f8652-f33f-452f-ae34-25397b4521eb.png',
33
+ smallViewableId: 'D3WRW4iRmjLzp5VX',
34
+ smallViewableUrl: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2F541c53f8-fd85-418e-ae28-ad7410658b90.png',
35
+ mediumViewableId: 'AsRvJenpeqxksUNW',
36
+ mediumViewableUrl: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2Fe803c2d3-3e1b-4d9c-9bb9-2c488f1f295b.png',
37
+ largeViewableId: 'vo4N4mCd-tFrw101',
38
+ largeViewableUrl: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2Fb1b7a55c-b8ba-4857-be4e-e1c3f11d8e9a.png',
39
+ CS_300Id: '6A5AG33nVu3Z6ogO',
40
+ CS_300Url: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2F3f2ea306-a77f-4cc3-a49a-75fb5d8b113c.png',
41
+ CS_500Id: 'rBaHc1J2xdOWdbhI',
42
+ CS_500Url: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2F979c8c65-b63f-4220-aa2e-11520f2f68bf.png',
43
+ CS_800Id: 'ZPAeYI3JiqjQ7unY',
44
+ CS_800Url: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2Fc58eeffa-2592-4698-a058-19281cda447c.png',
45
+ CS_1000Id: 'Hg_CthwsD4ozopCb',
46
+ CS_1000Url: 'https://api.vibeiq.com/prod/api/files/downloadUrl/5LZnKVTNxvwMqufy%2Fcontent:cuRficeyoStwTF-f%2F2c827c7b-361b-4e05-b77d-4280294f9d9c.png',
47
+ createdOn: '2023-07-05T15:02:13.950Z',
48
+ orgId: '5LZnKVTNxvwMqufy',
49
+ id: 'cuRficeyoStwTF-f',
50
+ contentType: 'image/png',
51
+ createdById: 'SWIFPZeZzkBvrSLD',
52
+ updatedById: 'SWIFPZeZzkBvrSLD',
53
+ fileSize: 1757973
54
+ };
55
+ exports.cuRficeyoStwTF_f_fileEntities = [
56
+ {
57
+ fileName: 'JACKET 300_SOLDIER OLIVE.png',
58
+ id: 'yn2d5oHD4rXHRzyB',
59
+ size: 1757973
60
+ },
61
+ {
62
+ fileName: 'JACKET 300_SOLDIER OLIVE_tiny.png',
63
+ id: '6HWzJrQ-Jx1iefmj',
64
+ size: 1784
65
+ },
66
+ {
67
+ fileName: 'JACKET 300_SOLDIER OLIVE_small.png',
68
+ id: 'D3WRW4iRmjLzp5VX',
69
+ size: 8699
70
+ },
71
+ {
72
+ fileName: 'JACKET 300_SOLDIER OLIVE_medium.png',
73
+ id: 'AsRvJenpeqxksUNW',
74
+ size: 77558
75
+ },
76
+ {
77
+ fileName: 'JACKET 300_SOLDIER OLIVE_large.png',
78
+ id: 'vo4N4mCd-tFrw101',
79
+ size: 1781538
80
+ },
81
+ {
82
+ fileName: 'JACKET 300_SOLDIER OLIVE_CS_300.png',
83
+ id: '6A5AG33nVu3Z6ogO',
84
+ size: 141153
85
+ },
86
+ {
87
+ fileName: 'JACKET 300_SOLDIER OLIVE_CS_500.png',
88
+ id: 'rBaHc1J2xdOWdbhI',
89
+ size: 382057
90
+ },
91
+ {
92
+ fileName: 'JACKET 300_SOLDIER OLIVE_CS_800.png',
93
+ id: 'ZPAeYI3JiqjQ7unY',
94
+ size: 1008702
95
+ }, {
96
+ fileName: 'JACKET 300_SOLDIER OLIVE_CS_1000.png',
97
+ id: 'Hg_CthwsD4ozopCb',
98
+ size: 1605889
99
+ }
100
+ ];
@@ -0,0 +1,15 @@
1
+ import { FCConfig } from './interfaces';
2
+ export declare class ThumbnailUtil {
3
+ private config;
4
+ private max_thumbnail_size;
5
+ private entities;
6
+ static NEW_THUMBNAIL_ID: string;
7
+ static EXISTING_THUMBNAIL_ID: string;
8
+ static REMOVE_THUMBNAIL: string;
9
+ constructor(config: FCConfig);
10
+ setOutboundThumbnail(data: any, event: any): Promise<any>;
11
+ getFileId(primaryViewableId: string): Promise<string>;
12
+ getCustomSizes(): Promise<any[]>;
13
+ getContentEntity(primaryViewableId: any): Promise<any>;
14
+ getFileEntities(fileEntityIds: any[]): Promise<any>;
15
+ }
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ThumbnailUtil = void 0;
4
+ const app_framework_1 = require("@contrail/app-framework");
5
+ const sdk_1 = require("@contrail/sdk");
6
+ class ThumbnailUtil {
7
+ constructor(config) {
8
+ this.config = config;
9
+ this.max_thumbnail_size = 5 * 1024 * 1024;
10
+ this.entities = new sdk_1.Entities();
11
+ if (this.config['max_thumbnail_size']) {
12
+ this.max_thumbnail_size = this.config['max_thumbnail_size'];
13
+ }
14
+ }
15
+ async setOutboundThumbnail(data, event) {
16
+ if (event?.newData?.primaryViewableId && event?.newData?.largeViewableDownloadUrl) {
17
+ const primaryViewableId = event.newData.primaryViewableId;
18
+ const fileId = await this.getFileId(primaryViewableId);
19
+ if (fileId) {
20
+ const key = (event?.propertyDiffs?.largeViewableDownloadUrl)
21
+ ? ThumbnailUtil.NEW_THUMBNAIL_ID
22
+ : ThumbnailUtil.EXISTING_THUMBNAIL_ID;
23
+ data[key] = fileId;
24
+ }
25
+ }
26
+ else if (event?.propertyDiffs?.largeViewableDownloadUrl?.oldValue && !event?.propertyDiffs?.largeViewableDownloadUrl?.newValue) {
27
+ data[ThumbnailUtil.NEW_THUMBNAIL_ID] = ThumbnailUtil.REMOVE_THUMBNAIL;
28
+ }
29
+ return data;
30
+ }
31
+ async getFileId(primaryViewableId) {
32
+ console.info('getFileId()-' + primaryViewableId);
33
+ const sizes = await this.getCustomSizes();
34
+ const OOBSizes = [{ slug: 'largeViewable' }, { slug: 'mediumViewable' }, { slug: 'smallViewable' }, { slug: 'tinyViewable' }];
35
+ sizes.push(...OOBSizes);
36
+ console.info('sizes: ' + JSON.stringify(sizes));
37
+ const content = await this.getContentEntity(primaryViewableId);
38
+ if (app_framework_1.Logger.isDebugOn()) {
39
+ console.debug('content: ' + JSON.stringify(content));
40
+ }
41
+ if (!content) {
42
+ return undefined;
43
+ }
44
+ const contentKeys = Object.getOwnPropertyNames(content);
45
+ const fileEntityIds = [];
46
+ for (const size of sizes) {
47
+ const key = size.slug + 'Id';
48
+ if (contentKeys.includes(key) && !fileEntityIds.includes(content[key])) {
49
+ fileEntityIds.push(content[key]);
50
+ size['fileId'] = content[key];
51
+ }
52
+ }
53
+ const fileResults = await this.getFileEntities(fileEntityIds);
54
+ if (app_framework_1.Logger.isDebugOn()) {
55
+ console.debug('fileResults: ' + JSON.stringify(fileResults));
56
+ }
57
+ let fileId = undefined;
58
+ let tempFileSize = 0;
59
+ const isDebugOn = app_framework_1.Logger.isDebugOn();
60
+ for (const sizeObj of sizes) {
61
+ if (isDebugOn) {
62
+ console.debug('size: ' + JSON.stringify(sizeObj));
63
+ }
64
+ if (sizeObj['fileId']) {
65
+ const file = fileResults.find(f => f['id'] === sizeObj['fileId']);
66
+ if (file['size'] > tempFileSize && file['size'] < this.max_thumbnail_size) {
67
+ tempFileSize = file['size'];
68
+ fileId = file['id'];
69
+ if (isDebugOn) {
70
+ console.debug('fileId: ' + fileId);
71
+ }
72
+ }
73
+ }
74
+ }
75
+ console.info('getFileId(): returning-' + fileId);
76
+ return fileId;
77
+ }
78
+ async getCustomSizes() {
79
+ const customSizes = await this.entities.get({
80
+ entityName: 'content-custom-size'
81
+ });
82
+ const sizes = [];
83
+ sizes.push(...customSizes);
84
+ return sizes;
85
+ }
86
+ async getContentEntity(primaryViewableId) {
87
+ const criteria = {
88
+ id: primaryViewableId
89
+ };
90
+ const contentResults = await this.entities.get({
91
+ entityName: 'content',
92
+ criteria
93
+ });
94
+ console.info('contentResults: ' + JSON.stringify(contentResults));
95
+ const content = (contentResults && contentResults[0]) ? contentResults[0] : undefined;
96
+ return content;
97
+ }
98
+ async getFileEntities(fileEntityIds) {
99
+ const criteria = {
100
+ ids: fileEntityIds
101
+ };
102
+ const fileResults = await this.entities.get({
103
+ entityName: 'file',
104
+ criteria
105
+ });
106
+ return fileResults;
107
+ }
108
+ }
109
+ exports.ThumbnailUtil = ThumbnailUtil;
110
+ ThumbnailUtil.NEW_THUMBNAIL_ID = 'NEW_THUMBNAIL_ID';
111
+ ThumbnailUtil.EXISTING_THUMBNAIL_ID = 'EXISTING_THUMBNAIL_ID';
112
+ ThumbnailUtil.REMOVE_THUMBNAIL = 'REMOVE_THUMBNAIL';
@@ -0,0 +1,12 @@
1
+ import { TypeClientOptions } from '@contrail/sdk';
2
+ import { TypeProperty } from '@contrail/types';
3
+ export declare class TypeUtils {
4
+ private typesObj;
5
+ constructor();
6
+ getTypeById(id: any): Promise<import("@contrail/types").Type>;
7
+ getByRootAndPath(options: TypeClientOptions): Promise<import("@contrail/types").Type>;
8
+ static getFlexPLMTypePath(entity: any): any;
9
+ getEventObjectClass(entityType: string, newData: any): string;
10
+ getEntityTypeClientOptions(objectClass: string, data: any): TypeClientOptions;
11
+ filterTypeProperties(type: any, newData: any): TypeProperty[];
12
+ }
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TypeUtils = void 0;
4
+ const app_framework_1 = require("@contrail/app-framework");
5
+ const sdk_1 = require("@contrail/sdk");
6
+ class TypeUtils {
7
+ constructor() {
8
+ this.typesObj = new sdk_1.Types();
9
+ }
10
+ async getTypeById(id) {
11
+ const type = await this.typesObj.getType({
12
+ id,
13
+ relations: ['typeProperties', 'typeInterfaces']
14
+ });
15
+ return type;
16
+ }
17
+ async getByRootAndPath(options) {
18
+ const type = await this.typesObj.getByRootAndPath(options);
19
+ return type;
20
+ }
21
+ static getFlexPLMTypePath(entity) {
22
+ return entity['flexPLMTypePath'] || entity['flexTypePath'] || '';
23
+ }
24
+ getEventObjectClass(entityType, newData) {
25
+ let objectClass = '';
26
+ if ('item' === entityType) {
27
+ if (newData.roles.includes('family')) {
28
+ objectClass = 'LCSProduct';
29
+ }
30
+ else if (newData.roles.includes('color')) {
31
+ objectClass = 'LCSSKU';
32
+ }
33
+ }
34
+ else if ('project-item' === entityType) {
35
+ if (newData.roles.includes('family')) {
36
+ objectClass = 'LCSProductSeasonLink';
37
+ }
38
+ else if (newData.roles.includes('color')) {
39
+ objectClass = 'LCSSKUSeasonLink';
40
+ }
41
+ }
42
+ else if ('color' === entityType) {
43
+ objectClass = 'LCSColor';
44
+ }
45
+ else if ('custom-entity' === entityType) {
46
+ objectClass = 'LCSRevisableEntity';
47
+ }
48
+ return objectClass;
49
+ }
50
+ getEntityTypeClientOptions(objectClass, data) {
51
+ let tco;
52
+ if (['LCSProduct', 'LCSSKU'].includes(objectClass)) {
53
+ tco = {
54
+ root: 'item'
55
+ };
56
+ }
57
+ else if ('LCSSeason' === objectClass) {
58
+ tco = {
59
+ root: 'assortment'
60
+ };
61
+ }
62
+ else if ('LCSColor' === objectClass) {
63
+ tco = {
64
+ root: 'color'
65
+ };
66
+ }
67
+ else if (['LCSBusinessObject', 'LCSRevisableEntity', 'LCSLast'].includes(objectClass)) {
68
+ tco = {
69
+ root: 'custom-entity'
70
+ };
71
+ console.log('data: ' + data);
72
+ }
73
+ return tco;
74
+ }
75
+ filterTypeProperties(type, newData) {
76
+ let filteredProps = type['typeProperties'];
77
+ const typePath = type['typePath'];
78
+ if (typePath && (typePath.startsWith('item') || typePath.startsWith('project-item'))) {
79
+ if (app_framework_1.Logger.isDebugOn()) {
80
+ console.debug('typePath: ' + typePath);
81
+ console.debug('newData: ' + JSON.stringify(newData));
82
+ }
83
+ const roles = newData['roles'];
84
+ if (roles) {
85
+ const isFamily = roles.includes('family');
86
+ console.debug('isFamily: ' + isFamily);
87
+ filteredProps = filteredProps.filter(prop => {
88
+ const propertyLevel = prop.propertyLevel;
89
+ const applies = (isFamily && 'option' != propertyLevel) ||
90
+ (!isFamily && 'family' != propertyLevel);
91
+ return applies;
92
+ });
93
+ }
94
+ else {
95
+ console.error('filterTypeProperties():Entity missing role-id: ' + newData['id']);
96
+ }
97
+ }
98
+ return filteredProps;
99
+ }
100
+ }
101
+ exports.TypeUtils = TypeUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
package/lib/package.json DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "name": "@contrail/flexplm",
3
- "version": "1.0.10",
4
- "description": "Library used for integration with flexplm.",
5
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
10
- "lint": "tslint -p tsconfig.json",
11
- "test": "jest"
12
- },
13
- "keywords": [],
14
- "author": "",
15
- "license": "ISC",
16
- "devDependencies": {
17
- "@types/jest": "^29.5.2",
18
- "jest": "^29.5.0",
19
- "prettier": "^1.19.1",
20
- "ts-jest": "^29.1.1",
21
- "tslint": "^5.11.0",
22
- "tslint-config-prettier": "^1.18.0",
23
- "typescript": "^4.0.0"
24
- },
25
- "jest": {
26
- "moduleFileExtensions": [
27
- "js",
28
- "json",
29
- "ts"
30
- ],
31
- "rootDir": "src",
32
- "testRegex": ".spec.ts$",
33
- "transform": {
34
- "^.+\\.(t|j)s$": "ts-jest"
35
- },
36
- "coverageDirectory": "../coverage",
37
- "testEnvironment": "node"
38
- },
39
- "dependencies": {
40
- "@contrail/app-framework": "^1.2.0",
41
- "@contrail/sdk": "^1.2.11",
42
- "@contrail/transform-data": "^1.0.8",
43
- "axios": "^1.4.0",
44
- "p-limit": "^3.1.0"
45
- }
46
- }