@contrail/flexplm 1.0.17 → 1.0.19
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/lib/entity-processor/base-entity-processor.d.ts +30 -30
- package/lib/entity-processor/base-entity-processor.js +143 -143
- package/lib/flexplm-request.d.ts +3 -3
- package/lib/flexplm-request.js +34 -34
- package/lib/flexplm-utils.d.ts +5 -5
- package/lib/flexplm-utils.js +33 -33
- package/lib/index.d.ts +19 -17
- package/lib/index.js +35 -33
- package/lib/interfaces/interfaces.d.ts +91 -91
- package/lib/interfaces/interfaces.js +2 -2
- package/lib/interfaces/item-family-changes.d.ts +19 -19
- package/lib/interfaces/item-family-changes.js +49 -49
- package/lib/interfaces/publish-change-data.d.ts +17 -17
- package/lib/interfaces/publish-change-data.js +30 -30
- package/lib/publish/base-process-publish-assortment-callback.d.ts +8 -8
- package/lib/publish/base-process-publish-assortment-callback.js +19 -19
- package/lib/publish/base-process-publish-assortment.d.ts +57 -57
- package/lib/publish/base-process-publish-assortment.js +570 -563
- package/lib/publish/mockData.d.ts +774 -774
- package/lib/publish/mockData.js +3033 -3033
- package/lib/util/config-defaults.d.ts +6 -6
- package/lib/util/config-defaults.js +71 -71
- package/lib/util/data-converter.d.ts +22 -22
- package/lib/util/data-converter.js +318 -318
- package/lib/util/federation.d.ts +15 -15
- package/lib/util/federation.js +149 -149
- package/lib/util/flexplm-connect.d.ts +16 -16
- package/lib/util/flexplm-connect.js +130 -130
- package/lib/util/logger-config.d.ts +1 -1
- package/lib/util/logger-config.js +26 -26
- package/lib/util/map-util-spec-mockData.d.ts +0 -0
- package/lib/util/map-util-spec-mockData.js +203 -0
- package/lib/util/map-utils.d.ts +4 -3
- package/lib/util/map-utils.js +28 -20
- package/lib/util/mockData.d.ts +39 -39
- package/lib/util/mockData.js +100 -100
- package/lib/util/thumbnail-util.d.ts +15 -15
- package/lib/util/thumbnail-util.js +112 -112
- package/lib/util/type-conversion-utils-spec-mockData.d.ts +0 -0
- package/lib/util/type-conversion-utils-spec-mockData.js +205 -0
- package/lib/util/type-conversion-utils.d.ts +10 -0
- package/lib/util/type-conversion-utils.js +100 -0
- package/lib/util/type-defaults.d.ts +9 -0
- package/lib/util/type-defaults.js +117 -0
- package/lib/util/type-utils.d.ts +12 -12
- package/lib/util/type-utils.js +101 -101
- package/package.json +47 -46
|
@@ -1,26 +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;
|
|
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;
|
|
File without changes
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
exports.mapping = {
|
|
4
|
+
typeConversion: {
|
|
5
|
+
vibe2flex: {
|
|
6
|
+
'custom-entity': {
|
|
7
|
+
getMapKey: (entity) => {
|
|
8
|
+
const typePath = entity['typePath'];
|
|
9
|
+
let mapKey = '';
|
|
10
|
+
switch (typePath) {
|
|
11
|
+
case 'custom-entity:pack':
|
|
12
|
+
mapKey = 'packaging';
|
|
13
|
+
break;
|
|
14
|
+
case 'custom-entity:prefix':
|
|
15
|
+
mapKey = 'prefix';
|
|
16
|
+
break;
|
|
17
|
+
case 'custom-entity:catName':
|
|
18
|
+
mapKey = 'catName';
|
|
19
|
+
break;
|
|
20
|
+
case 'custom-entity:partnerOrg':
|
|
21
|
+
mapKey = 'partnerOrg';
|
|
22
|
+
break;
|
|
23
|
+
case 'custom-entity:catFamily':
|
|
24
|
+
mapKey = 'catFamily';
|
|
25
|
+
break;
|
|
26
|
+
case 'custom-entity:formName':
|
|
27
|
+
mapKey = 'formName';
|
|
28
|
+
break;
|
|
29
|
+
}
|
|
30
|
+
return mapKey;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
LCSProduct: {
|
|
36
|
+
vibeOwningKeys: ['itemNumber', 'lifecycleStage'],
|
|
37
|
+
vibe2flex: {
|
|
38
|
+
getClass: () => 'LCSProduct',
|
|
39
|
+
getSoftType: (entity) => {
|
|
40
|
+
const prodType = entity['prodType'];
|
|
41
|
+
let val = '';
|
|
42
|
+
switch (prodType) {
|
|
43
|
+
case 'acc':
|
|
44
|
+
val = 'Product\\Accesories';
|
|
45
|
+
break;
|
|
46
|
+
case 'app':
|
|
47
|
+
val = 'Product\\Apparel';
|
|
48
|
+
break;
|
|
49
|
+
case 'eqp':
|
|
50
|
+
val = 'Product\\Equipment';
|
|
51
|
+
break;
|
|
52
|
+
case 'foot':
|
|
53
|
+
val = 'Product\\Footwear';
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
return val;
|
|
57
|
+
},
|
|
58
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }, { processor: 'VALUE_TRANSFORM', functionTransformersKey: 'valueTransform' }],
|
|
59
|
+
rekey: {
|
|
60
|
+
productName: 'name',
|
|
61
|
+
vibeIQIdentifier: 'itemNumber'
|
|
62
|
+
},
|
|
63
|
+
valueTransform: {
|
|
64
|
+
transformEx: (row) => {
|
|
65
|
+
return row['otherProp'] + 'xxx';
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
flex2vibe: {
|
|
70
|
+
getClass: () => 'item',
|
|
71
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
72
|
+
rekey: {
|
|
73
|
+
itemNumber: 'vibeIQIdentifier',
|
|
74
|
+
name: 'productName',
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
LCSSKU: {
|
|
79
|
+
vibeOwningKeys: ['itemNumber', 'lifecycleStage'],
|
|
80
|
+
vibe2flex: {
|
|
81
|
+
getClass: () => 'LCSSKU',
|
|
82
|
+
getSoftType: (entity) => {
|
|
83
|
+
const prodType = entity['prodType'];
|
|
84
|
+
let val = '';
|
|
85
|
+
switch (prodType) {
|
|
86
|
+
case 'acc':
|
|
87
|
+
val = 'Product\\Accesories';
|
|
88
|
+
break;
|
|
89
|
+
case 'app':
|
|
90
|
+
val = 'Product\\Apparel';
|
|
91
|
+
break;
|
|
92
|
+
case 'eqp':
|
|
93
|
+
val = 'Product\\Equipment';
|
|
94
|
+
break;
|
|
95
|
+
case 'foot':
|
|
96
|
+
val = 'Product\\Footwear';
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
return val;
|
|
100
|
+
},
|
|
101
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
102
|
+
rekey: {
|
|
103
|
+
skuName: 'optionName',
|
|
104
|
+
vibeIQIdentifier: 'itemNumber'
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
flex2vibe: {
|
|
108
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
109
|
+
rekey: {
|
|
110
|
+
itemNumber: 'vibeIQIdentifier',
|
|
111
|
+
optionName: 'skuName',
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
packaging: {
|
|
116
|
+
vibe2flex: {
|
|
117
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
118
|
+
rekey: {
|
|
119
|
+
retailPackType: 'packType',
|
|
120
|
+
retailIntroDate: 'introDate'
|
|
121
|
+
},
|
|
122
|
+
getSoftType: () => 'Revisable Entity\\packaging',
|
|
123
|
+
getClass: () => 'LCSRevisableEntity'
|
|
124
|
+
},
|
|
125
|
+
flex2vibe: {
|
|
126
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
127
|
+
rekey: {
|
|
128
|
+
packType: 'retailPackType',
|
|
129
|
+
introDate: 'retailIntroDate'
|
|
130
|
+
},
|
|
131
|
+
getClass: () => 'custom-entity',
|
|
132
|
+
getSoftType: () => 'custom-entity:pack',
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
prefix: {
|
|
136
|
+
vibe2flex: {
|
|
137
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
138
|
+
rekey: {
|
|
139
|
+
retailOwner: 'owner',
|
|
140
|
+
retailIntroDate: 'introDate'
|
|
141
|
+
},
|
|
142
|
+
getSoftType: () => 'Revisable Entity\\prefix',
|
|
143
|
+
getClass: () => 'LCSRevisableEntity'
|
|
144
|
+
},
|
|
145
|
+
flex2vibe: {
|
|
146
|
+
transformOrder: [{ processor: 'REKEY', rekeyDelete: true, rekeyTransformersKey: 'rekey' }],
|
|
147
|
+
rekey: {
|
|
148
|
+
owner: 'retailOwner',
|
|
149
|
+
introDate: 'retailIntroDate'
|
|
150
|
+
},
|
|
151
|
+
getClass: () => 'custom-entity',
|
|
152
|
+
getSoftType: () => 'custom-entity:prefix',
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
catName: {
|
|
156
|
+
vibe2flex: {
|
|
157
|
+
transformOrder: [],
|
|
158
|
+
getSoftType: () => 'Revisable Entity\\catName',
|
|
159
|
+
getClass: () => 'LCSLast'
|
|
160
|
+
},
|
|
161
|
+
flex2vibe: {
|
|
162
|
+
transformOrder: [],
|
|
163
|
+
getClass: () => 'custom-entity',
|
|
164
|
+
getSoftType: () => 'custom-entity:catName',
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
partnerOrg: {
|
|
168
|
+
vibe2flex: {
|
|
169
|
+
transformOrder: [],
|
|
170
|
+
getSoftType: () => 'Business Object\\partnerOrg',
|
|
171
|
+
getClass: () => 'LCSLifecycleManaged'
|
|
172
|
+
},
|
|
173
|
+
flex2vibe: {
|
|
174
|
+
transformOrder: [],
|
|
175
|
+
getClass: () => 'custom-entity',
|
|
176
|
+
getSoftType: () => 'custom-entity:partnerOrg',
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
catFamily: {
|
|
180
|
+
vibe2flex: {
|
|
181
|
+
transformOrder: [],
|
|
182
|
+
getSoftType: () => 'Revisable Entity\\catFamily',
|
|
183
|
+
getClass: () => 'LCSRevisableEntity'
|
|
184
|
+
},
|
|
185
|
+
flex2vibe: {
|
|
186
|
+
transformOrder: [],
|
|
187
|
+
getClass: () => 'custom-entity',
|
|
188
|
+
getSoftType: () => 'custom-entity:catFamily',
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
formName: {
|
|
192
|
+
vibe2flex: {
|
|
193
|
+
transformOrder: [],
|
|
194
|
+
getSoftType: () => 'Material\\form',
|
|
195
|
+
getClass: () => 'LCSMaterial'
|
|
196
|
+
},
|
|
197
|
+
flex2vibe: {
|
|
198
|
+
transformOrder: [],
|
|
199
|
+
getClass: () => 'custom-entity',
|
|
200
|
+
getSoftType: () => 'custom-entity:formName',
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
};
|
package/lib/util/map-utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export declare class MapUtil {
|
|
2
|
-
static applyTransformMap(transformMapFile: any, mapFileUtil: any, data: any, type: string, direction: string): Promise<any>;
|
|
3
|
-
|
|
1
|
+
export declare class MapUtil {
|
|
2
|
+
static applyTransformMap(transformMapFile: any, mapFileUtil: any, data: any, type: string, direction: string): Promise<any>;
|
|
3
|
+
static getMapKey(transformMapFile: any, mapFileUtil: any, data: any, type: string, direction: string): Promise<string>;
|
|
4
|
+
}
|
package/lib/util/map-utils.js
CHANGED
|
@@ -1,20 +1,28 @@
|
|
|
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
|
-
|
|
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
|
+
static async getMapKey(transformMapFile, mapFileUtil, data, type, direction) {
|
|
20
|
+
const mappingData = await mapFileUtil.getMappingSection(transformMapFile, 'typeConversion', direction);
|
|
21
|
+
if (mappingData && mappingData[type] && mappingData[type]['getMapKey']) {
|
|
22
|
+
const mapKey = await mappingData[type]['getMapKey'](data);
|
|
23
|
+
return mapKey;
|
|
24
|
+
}
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.MapUtil = MapUtil;
|
package/lib/util/mockData.d.ts
CHANGED
|
@@ -1,39 +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
|
-
}[];
|
|
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
|
+
}[];
|
package/lib/util/mockData.js
CHANGED
|
@@ -1,100 +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
|
-
];
|
|
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
|
+
];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { FCConfig } from '../interfaces/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
|
-
}
|
|
1
|
+
import { FCConfig } from '../interfaces/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
|
+
}
|