@configura/web-api 2.0.0-alpha.0 → 2.0.0-alpha.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/.eslintrc.json +18 -18
- package/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/CatalogueAPI.d.ts +551 -551
- package/dist/CatalogueAPI.js +293 -293
- package/dist/CfgMeasure.d.ts +32 -32
- package/dist/CfgMeasure.js +30 -30
- package/dist/CfgProduct.d.ts +268 -268
- package/dist/CfgProduct.js +778 -778
- package/dist/CfgReferencePathHelper.d.ts +13 -13
- package/dist/CfgReferencePathHelper.js +13 -13
- package/dist/ConfigurationConverter.d.ts +4 -4
- package/dist/ConfigurationConverter.js +72 -72
- package/dist/index.d.ts +23 -23
- package/dist/index.js +23 -23
- package/dist/io/CfgHistoryManager.d.ts +50 -50
- package/dist/io/CfgHistoryManager.js +82 -82
- package/dist/io/CfgHistoryToProdConfConnector.d.ts +20 -20
- package/dist/io/CfgHistoryToProdConfConnector.js +56 -56
- package/dist/io/CfgIOManager.d.ts +48 -48
- package/dist/io/CfgIOManager.js +115 -115
- package/dist/io/CfgIOProdConfConnector.d.ts +52 -52
- package/dist/io/CfgIOProdConfConnector.js +141 -141
- package/dist/io/CfgObservableStateManager.d.ts +21 -21
- package/dist/io/CfgObservableStateManager.js +65 -65
- package/dist/io/CfgObservableStateToProdConfConnector.d.ts +14 -14
- package/dist/io/CfgObservableStateToProdConfConnector.js +16 -16
- package/dist/io/CfgWindowEventManager.d.ts +21 -21
- package/dist/io/CfgWindowEventManager.js +38 -38
- package/dist/io/CfgWindowMessageManager.d.ts +40 -40
- package/dist/io/CfgWindowMessageManager.js +84 -84
- package/dist/io/CfgWindowMessageToProdConfConnector.d.ts +16 -16
- package/dist/io/CfgWindowMessageToProdConfConnector.js +18 -18
- package/dist/io/index.d.ts +8 -8
- package/dist/io/index.js +8 -8
- package/dist/material/CfgMaterialMapping.d.ts +7 -7
- package/dist/material/CfgMaterialMapping.js +181 -181
- package/dist/material/CfgMtrlApplication.d.ts +18 -18
- package/dist/material/CfgMtrlApplication.js +43 -43
- package/dist/material/CfgMtrlApplicationSource.d.ts +7 -7
- package/dist/material/CfgMtrlApplicationSource.js +8 -8
- package/dist/material/CfgMtrlSource.d.ts +19 -19
- package/dist/material/CfgMtrlSource.js +40 -40
- package/dist/material/CfgMtrlSourceWithMetaData.d.ts +7 -7
- package/dist/material/CfgMtrlSourceWithMetaData.js +1 -1
- package/dist/productConfiguration/CfgFeature.d.ts +187 -187
- package/dist/productConfiguration/CfgFeature.js +645 -645
- package/dist/productConfiguration/CfgOption.d.ts +151 -151
- package/dist/productConfiguration/CfgOption.js +416 -416
- package/dist/productConfiguration/CfgProductConfiguration.d.ts +117 -117
- package/dist/productConfiguration/CfgProductConfiguration.js +307 -307
- package/dist/productConfiguration/filters.d.ts +15 -15
- package/dist/productConfiguration/filters.js +70 -70
- package/dist/productConfiguration/productParamsGenerator.d.ts +15 -15
- package/dist/productConfiguration/productParamsGenerator.js +51 -51
- package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +17 -17
- package/dist/productConfiguration/utilitiesProductConfiguration.js +80 -80
- package/dist/productLoader.d.ts +33 -33
- package/dist/productLoader.js +49 -49
- package/dist/syncGroups/SyncGroupsApplyMode.d.ts +20 -20
- package/dist/syncGroups/SyncGroupsApplyMode.js +21 -21
- package/dist/syncGroups/SyncGroupsHandler.d.ts +40 -40
- package/dist/syncGroups/SyncGroupsHandler.js +359 -359
- package/dist/syncGroups/SyncGroupsPathHelper.d.ts +26 -26
- package/dist/syncGroups/SyncGroupsPathHelper.js +90 -90
- package/dist/syncGroups/SyncGroupsState.d.ts +35 -35
- package/dist/syncGroups/SyncGroupsState.js +125 -125
- package/dist/syncGroups/SyncGroupsTransaction.d.ts +154 -154
- package/dist/syncGroups/SyncGroupsTransaction.js +576 -576
- package/dist/tasks/TaskHandler.d.ts +77 -77
- package/dist/tasks/TaskHandler.js +275 -275
- package/dist/tasks/formats.d.ts +4 -4
- package/dist/tasks/formats.js +7 -7
- package/dist/tests/testData/collectorForTest.d.ts +73 -73
- package/dist/tests/testData/collectorForTest.js +194 -194
- package/dist/tests/testData/dummyProductForTest.d.ts +4 -4
- package/dist/tests/testData/dummyProductForTest.js +32 -32
- package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +11 -11
- package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +277 -277
- package/dist/tests/testData/testDataCachedGetProduct.d.ts +5 -5
- package/dist/tests/testData/testDataCachedGetProduct.js +185 -185
- package/dist/tests/testData/testDataCachedPostValidate.d.ts +7 -7
- package/dist/tests/testData/testDataCachedPostValidate.js +183 -183
- package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.d.ts +3 -3
- package/dist/tests/testData/testDataNoAdditionalProductNoPropagateForTest.js +1099 -1099
- package/dist/tests/testData/testDataOptions.d.ts +12 -12
- package/dist/tests/testData/testDataOptions.js +60 -60
- package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +6 -6
- package/dist/tests/testData/testDataProductAggregatedPrice.js +187 -187
- package/dist/tests/testData/testDataUpcharge.d.ts +8 -8
- package/dist/tests/testData/testDataUpcharge.js +119 -119
- package/dist/utilitiesCatalogueData.d.ts +42 -33
- package/dist/utilitiesCatalogueData.js +173 -164
- package/dist/utilitiesCataloguePermission.d.ts +38 -32
- package/dist/utilitiesCataloguePermission.js +79 -76
- package/dist/utilitiesNumericValues.d.ts +24 -24
- package/dist/utilitiesNumericValues.js +109 -109
- package/package.json +3 -3
package/dist/CatalogueAPI.d.ts
CHANGED
|
@@ -1,552 +1,552 @@
|
|
|
1
|
-
/** AdditionalProductConfiguration */
|
|
2
|
-
export interface DtoAdditionalProductConfiguration {
|
|
3
|
-
refKey?: string;
|
|
4
|
-
selected?: boolean;
|
|
5
|
-
selOptions: Array<DtoSelectedOption>;
|
|
6
|
-
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
7
|
-
}
|
|
8
|
-
/** AdditionalProductRef */
|
|
9
|
-
export interface DtoAdditionalProductRef {
|
|
10
|
-
refKey: string;
|
|
11
|
-
catId: DtoCatalogueParams;
|
|
12
|
-
partNumber: string;
|
|
13
|
-
refDescription?: string;
|
|
14
|
-
anchor?: DtoMeasureParam;
|
|
15
|
-
transform?: DtoTransform;
|
|
16
|
-
optional?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** ApplicationArea */
|
|
19
|
-
export interface DtoApplicationArea {
|
|
20
|
-
areas?: Array<string>;
|
|
21
|
-
cid?: number;
|
|
22
|
-
material?: string;
|
|
23
|
-
preview?: string;
|
|
24
|
-
}
|
|
25
|
-
/** DtoApplicationAreasResponse */
|
|
26
|
-
export interface DtoApplicationAreasResponse {
|
|
27
|
-
applicationAreas: Array<DtoApplicationArea>;
|
|
28
|
-
uuid: string;
|
|
29
|
-
}
|
|
30
|
-
/** AuthorizeResponse */
|
|
31
|
-
export interface DtoAuthorizeResponse {
|
|
32
|
-
endpoint: string;
|
|
33
|
-
secretToken: string;
|
|
34
|
-
apiSession: DtoCatalogueAPISession;
|
|
35
|
-
}
|
|
36
|
-
/** CatalogueAPISession */
|
|
37
|
-
export interface DtoCatalogueAPISession {
|
|
38
|
-
expires: string;
|
|
39
|
-
features?: Array<string>;
|
|
40
|
-
permissions?: Array<DtoCataloguePermission>;
|
|
41
|
-
}
|
|
42
|
-
/** CatalogueParams */
|
|
43
|
-
export interface DtoCatalogueParams extends DtoCatalogueParamsWithoutCid {
|
|
44
|
-
cid: number;
|
|
45
|
-
}
|
|
46
|
-
/** CatalogueParamsWithLang */
|
|
47
|
-
export interface DtoCatalogueParamsWithLang extends DtoCatalogueParams {
|
|
48
|
-
lang: string;
|
|
49
|
-
}
|
|
50
|
-
/** CatalogueParamsWithoutCid */
|
|
51
|
-
export interface DtoCatalogueParamsWithoutCid {
|
|
52
|
-
enterprise: string;
|
|
53
|
-
prdCat: string;
|
|
54
|
-
prdCatVersion: string;
|
|
55
|
-
vendor: string;
|
|
56
|
-
priceList: string;
|
|
57
|
-
}
|
|
58
|
-
/** CataloguePermission */
|
|
59
|
-
export interface DtoCataloguePermission {
|
|
60
|
-
cid: number;
|
|
61
|
-
enterprise: string;
|
|
62
|
-
prdCat: string;
|
|
63
|
-
prdCatVersion: string;
|
|
64
|
-
priceLists?: Array<string>;
|
|
65
|
-
vendors?: Array<string>;
|
|
66
|
-
}
|
|
67
|
-
/** CategoryMap */
|
|
68
|
-
export interface DtoCategoryMap {
|
|
69
|
-
[index: string]: string;
|
|
70
|
-
}
|
|
71
|
-
/** CodeRange */
|
|
72
|
-
export interface DtoCodeRange {
|
|
73
|
-
minValue: number;
|
|
74
|
-
maxValue: number;
|
|
75
|
-
increment?: number;
|
|
76
|
-
}
|
|
77
|
-
/** ConfAddProd */
|
|
78
|
-
export interface DtoConfAddProd extends DtoConfProd {
|
|
79
|
-
refKey: string;
|
|
80
|
-
selected: boolean;
|
|
81
|
-
}
|
|
82
|
-
/** ConfFeature */
|
|
83
|
-
export interface DtoConfFeature {
|
|
84
|
-
code: string;
|
|
85
|
-
groupCode?: string;
|
|
86
|
-
unit?: string;
|
|
87
|
-
options?: Array<DtoConfOption>;
|
|
88
|
-
}
|
|
89
|
-
/** ConfOption */
|
|
90
|
-
export interface DtoConfOption {
|
|
91
|
-
code: string;
|
|
92
|
-
selected: boolean;
|
|
93
|
-
numericValue?: DtoValueWithUnit;
|
|
94
|
-
features?: Array<DtoConfFeature>;
|
|
95
|
-
}
|
|
96
|
-
/** ConfProd */
|
|
97
|
-
export interface DtoConfProd {
|
|
98
|
-
features?: Array<DtoConfFeature>;
|
|
99
|
-
additionalProducts?: Array<DtoConfAddProd>;
|
|
100
|
-
prodParams?: DtoProductParamsWithLang;
|
|
101
|
-
}
|
|
102
|
-
/** ErrorResponse */
|
|
103
|
-
export interface DtoErrorResponse {
|
|
104
|
-
error: string;
|
|
105
|
-
code: number;
|
|
106
|
-
eventId?: string;
|
|
107
|
-
}
|
|
108
|
-
/** ExportFormat - Format of the exported product, identical to the format's file extension. */
|
|
109
|
-
export declare type DtoExportFormat = "glb" | "gltf" | "fbx" | "dwg" | "cmdrw" | "cmfav" | "cmsym";
|
|
110
|
-
export declare const dtoExportFormatNames: DtoExportFormat[];
|
|
111
|
-
/** ExportRequest */
|
|
112
|
-
export interface DtoExportRequest {
|
|
113
|
-
format: DtoExportFormat;
|
|
114
|
-
selOptions: Array<DtoSelectedOption>;
|
|
115
|
-
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
116
|
-
preferUnzipped?: boolean;
|
|
117
|
-
}
|
|
118
|
-
/** ExportResponse */
|
|
119
|
-
export interface DtoExportResponse {
|
|
120
|
-
exportStatus: DtoExportStatus;
|
|
121
|
-
}
|
|
122
|
-
/** ExportStatus */
|
|
123
|
-
export interface DtoExportStatus {
|
|
124
|
-
created: string;
|
|
125
|
-
modified: string;
|
|
126
|
-
status: DtoExportStatusStatus;
|
|
127
|
-
url?: string;
|
|
128
|
-
uuid: string;
|
|
129
|
-
}
|
|
130
|
-
/** ExportStatusStatus - WIP */
|
|
131
|
-
export declare type DtoExportStatusStatus = "pending" | "running" | "finished" | "failed";
|
|
132
|
-
export declare const dtoExportStatusStatusNames: DtoExportStatusStatus[];
|
|
133
|
-
/** Feature */
|
|
134
|
-
export interface DtoFeature {
|
|
135
|
-
code: string;
|
|
136
|
-
description: string;
|
|
137
|
-
functional?: boolean;
|
|
138
|
-
groupCode?: string;
|
|
139
|
-
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
140
|
-
multiple?: boolean;
|
|
141
|
-
numericOrder: boolean;
|
|
142
|
-
optional?: boolean;
|
|
143
|
-
options: Array<DtoOption>;
|
|
144
|
-
hideIfMainProduct?: boolean;
|
|
145
|
-
hideIfAdditionalProduct?: boolean;
|
|
146
|
-
measureParams?: Array<DtoMeasureParam>;
|
|
147
|
-
syncGroup?: DtoSyncGroup;
|
|
148
|
-
unit?: string;
|
|
149
|
-
}
|
|
150
|
-
/** FeatureRef */
|
|
151
|
-
export interface DtoFeatureRef {
|
|
152
|
-
code: string;
|
|
153
|
-
defaultOptionRef?: string;
|
|
154
|
-
selectedOptionRef?: string;
|
|
155
|
-
excludedOptionRefs?: Array<string>;
|
|
156
|
-
}
|
|
157
|
-
/** GetApplicationAreasParams represents the URL parameters of getApplicationAreas */
|
|
158
|
-
export interface DtoGetApplicationAreasParams {
|
|
159
|
-
lang: string;
|
|
160
|
-
enterprise: string;
|
|
161
|
-
prdCat: string;
|
|
162
|
-
prdCatVersion: string;
|
|
163
|
-
vendor: string;
|
|
164
|
-
priceList: string;
|
|
165
|
-
}
|
|
166
|
-
/** GetExportByIdParams represents the URL parameters of getExportById */
|
|
167
|
-
export interface DtoGetExportByIdParams {
|
|
168
|
-
uuid: string;
|
|
169
|
-
}
|
|
170
|
-
/** GetPriceListsParams represents the URL parameters of getPriceLists */
|
|
171
|
-
export interface DtoGetPriceListsParams {
|
|
172
|
-
lang: string;
|
|
173
|
-
enterprise: string;
|
|
174
|
-
prdCat: string;
|
|
175
|
-
prdCatVersion: string;
|
|
176
|
-
vendor: string;
|
|
177
|
-
priceList: string;
|
|
178
|
-
}
|
|
179
|
-
/** DtoProductParamsWithLang represents the URL parameters of getProduct */
|
|
180
|
-
export interface DtoGetProductParams {
|
|
181
|
-
lang: string;
|
|
182
|
-
enterprise: string;
|
|
183
|
-
prdCat: string;
|
|
184
|
-
prdCatVersion: string;
|
|
185
|
-
vendor: string;
|
|
186
|
-
priceList: string;
|
|
187
|
-
partNumber: string;
|
|
188
|
-
}
|
|
189
|
-
/** GetRenderByIdParams represents the URL parameters of getRenderById */
|
|
190
|
-
export interface DtoGetRenderByIdParams {
|
|
191
|
-
uuid: string;
|
|
192
|
-
}
|
|
193
|
-
/** GetTocFlatParams represents the URL parameters of getTocFlat */
|
|
194
|
-
export interface DtoGetTocFlatParams {
|
|
195
|
-
lang: string;
|
|
196
|
-
enterprise: string;
|
|
197
|
-
prdCat: string;
|
|
198
|
-
prdCatVersion: string;
|
|
199
|
-
vendor: string;
|
|
200
|
-
priceList: string;
|
|
201
|
-
}
|
|
202
|
-
/** GetTocTreeParams represents the URL parameters of getTocTree */
|
|
203
|
-
export interface DtoGetTocTreeParams {
|
|
204
|
-
lang: string;
|
|
205
|
-
enterprise: string;
|
|
206
|
-
prdCat: string;
|
|
207
|
-
prdCatVersion: string;
|
|
208
|
-
vendor: string;
|
|
209
|
-
priceList: string;
|
|
210
|
-
}
|
|
211
|
-
/** Level */
|
|
212
|
-
export interface DtoLevel {
|
|
213
|
-
code: string;
|
|
214
|
-
description: string;
|
|
215
|
-
lvls?: Array<DtoLevel>;
|
|
216
|
-
prdRefs?: Array<DtoLevelProductRef>;
|
|
217
|
-
}
|
|
218
|
-
/** LevelProductRef */
|
|
219
|
-
export interface DtoLevelProductRef {
|
|
220
|
-
prdRef: string;
|
|
221
|
-
}
|
|
222
|
-
/** Measurement */
|
|
223
|
-
export interface DtoMeasurement {
|
|
224
|
-
code: string;
|
|
225
|
-
numericValue?: DtoValueWithUnit;
|
|
226
|
-
measureParam?: DtoMeasureParam;
|
|
227
|
-
}
|
|
228
|
-
/** MeasureParam */
|
|
229
|
-
export interface DtoMeasureParam {
|
|
230
|
-
code: string;
|
|
231
|
-
anchorPoint?: string;
|
|
232
|
-
measurePriority?: Array<DtoMeasurePriority>;
|
|
233
|
-
}
|
|
234
|
-
/** MeasurePriority */
|
|
235
|
-
export interface DtoMeasurePriority {
|
|
236
|
-
url: string;
|
|
237
|
-
}
|
|
238
|
-
/** Model */
|
|
239
|
-
export interface DtoModel {
|
|
240
|
-
cid: number;
|
|
241
|
-
anchor?: DtoMeasureParam;
|
|
242
|
-
t?: DtoTransform;
|
|
243
|
-
uri: string;
|
|
244
|
-
}
|
|
245
|
-
/** MtrlApplication */
|
|
246
|
-
export interface DtoMtrlApplication {
|
|
247
|
-
areas?: Array<string>;
|
|
248
|
-
material?: string;
|
|
249
|
-
preview?: string;
|
|
250
|
-
cid?: number;
|
|
251
|
-
}
|
|
252
|
-
/** Option */
|
|
253
|
-
export interface DtoOption {
|
|
254
|
-
additionalProductRefs?: Array<DtoAdditionalProductRef>;
|
|
255
|
-
code: string;
|
|
256
|
-
description: string;
|
|
257
|
-
featureRefs?: Array<DtoFeatureRef>;
|
|
258
|
-
material?: string;
|
|
259
|
-
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
260
|
-
codeRanges?: Array<DtoCodeRange>;
|
|
261
|
-
upcharge?: number;
|
|
262
|
-
priceCodes?: Array<string>;
|
|
263
|
-
}
|
|
264
|
-
/** Orientation */
|
|
265
|
-
export interface DtoOrientation {
|
|
266
|
-
yaw: number;
|
|
267
|
-
pitch: number;
|
|
268
|
-
roll: number;
|
|
269
|
-
}
|
|
270
|
-
/** PartsData */
|
|
271
|
-
export interface DtoPartsData {
|
|
272
|
-
basePrice: number;
|
|
273
|
-
currency: string;
|
|
274
|
-
rounding?: number;
|
|
275
|
-
listPrice: number;
|
|
276
|
-
pkgCount: number;
|
|
277
|
-
selOptions: Array<DtoPartsSelectedOption>;
|
|
278
|
-
styleNr: string;
|
|
279
|
-
prices?: DtoPrices;
|
|
280
|
-
}
|
|
281
|
-
/** PartsSelectedOption */
|
|
282
|
-
export interface DtoPartsSelectedOption {
|
|
283
|
-
code: string;
|
|
284
|
-
numericValue?: DtoValueWithUnit;
|
|
285
|
-
description?: string;
|
|
286
|
-
feature: string;
|
|
287
|
-
featDesc: string;
|
|
288
|
-
upcharge?: number;
|
|
289
|
-
next?: {
|
|
290
|
-
[index: string]: DtoPartsSelectedOption;
|
|
291
|
-
};
|
|
292
|
-
}
|
|
293
|
-
/** Point */
|
|
294
|
-
export interface DtoPoint {
|
|
295
|
-
x: number;
|
|
296
|
-
y: number;
|
|
297
|
-
z: number;
|
|
298
|
-
}
|
|
299
|
-
/** PostExportParams represents the URL parameters of postExport */
|
|
300
|
-
export interface DtoPostExportParams {
|
|
301
|
-
lang: string;
|
|
302
|
-
enterprise: string;
|
|
303
|
-
prdCat: string;
|
|
304
|
-
prdCatVersion: string;
|
|
305
|
-
vendor: string;
|
|
306
|
-
priceList: string;
|
|
307
|
-
partNumber: string;
|
|
308
|
-
}
|
|
309
|
-
/** PostPublicAccessTokenAuthorizeParams represents the URL parameters of postPublicAccessTokenAuthorize */
|
|
310
|
-
export interface DtoPostPublicAccessTokenAuthorizeParams {
|
|
311
|
-
accessTokenId: string;
|
|
312
|
-
}
|
|
313
|
-
/** PostRenderParams represents the URL parameters of postRender */
|
|
314
|
-
export interface DtoPostRenderParams {
|
|
315
|
-
lang: string;
|
|
316
|
-
enterprise: string;
|
|
317
|
-
prdCat: string;
|
|
318
|
-
prdCatVersion: string;
|
|
319
|
-
vendor: string;
|
|
320
|
-
priceList: string;
|
|
321
|
-
partNumber: string;
|
|
322
|
-
}
|
|
323
|
-
/** PostValidateParams represents the URL parameters of postValidate */
|
|
324
|
-
export interface DtoPostValidateParams {
|
|
325
|
-
lang: string;
|
|
326
|
-
enterprise: string;
|
|
327
|
-
prdCat: string;
|
|
328
|
-
prdCatVersion: string;
|
|
329
|
-
vendor: string;
|
|
330
|
-
priceList: string;
|
|
331
|
-
partNumber: string;
|
|
332
|
-
}
|
|
333
|
-
/** PriceList */
|
|
334
|
-
export interface DtoPriceList {
|
|
335
|
-
code: string;
|
|
336
|
-
currency: string;
|
|
337
|
-
desc: string;
|
|
338
|
-
rate: number;
|
|
339
|
-
rounding: number;
|
|
340
|
-
}
|
|
341
|
-
/** PriceListsResponse */
|
|
342
|
-
export interface DtoPriceListsResponse {
|
|
343
|
-
priceLists: Array<DtoPriceList>;
|
|
344
|
-
uuid: string;
|
|
345
|
-
}
|
|
346
|
-
/** Prices */
|
|
347
|
-
export interface DtoPrices {
|
|
348
|
-
values: {
|
|
349
|
-
[index: string]: number;
|
|
350
|
-
};
|
|
351
|
-
parent?: DtoPrices;
|
|
352
|
-
}
|
|
353
|
-
/** ProductCatalogueInfo */
|
|
354
|
-
export interface DtoProductCatalogueInfo {
|
|
355
|
-
catDesc: string;
|
|
356
|
-
catName: string;
|
|
357
|
-
currency: string;
|
|
358
|
-
currencyRound: number;
|
|
359
|
-
exchangeRate: number;
|
|
360
|
-
lastModified: string;
|
|
361
|
-
}
|
|
362
|
-
/** ProductData */
|
|
363
|
-
export interface DtoProductData {
|
|
364
|
-
area?: string;
|
|
365
|
-
categories?: Array<DtoCategoryMap>;
|
|
366
|
-
depth?: string;
|
|
367
|
-
description?: string;
|
|
368
|
-
height?: string;
|
|
369
|
-
hideIfMainProduct?: boolean;
|
|
370
|
-
hideIfAdditionalProduct?: boolean;
|
|
371
|
-
length?: string;
|
|
372
|
-
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
373
|
-
additionalProductRefs?: Array<DtoAdditionalProductRef>;
|
|
374
|
-
navImage?: string;
|
|
375
|
-
sku: string;
|
|
376
|
-
measurements?: Array<DtoMeasurement>;
|
|
377
|
-
tags?: Array<{
|
|
378
|
-
[index: string]: string;
|
|
379
|
-
}>;
|
|
380
|
-
volume?: string;
|
|
381
|
-
weight?: string;
|
|
382
|
-
width?: string;
|
|
383
|
-
models?: Array<DtoModel>;
|
|
384
|
-
partsData: DtoPartsData;
|
|
385
|
-
}
|
|
386
|
-
/** ProductParams */
|
|
387
|
-
export interface DtoProductParams extends DtoCatalogueParams {
|
|
388
|
-
partNumber: string;
|
|
389
|
-
}
|
|
390
|
-
/** ProductParamsWithLang */
|
|
391
|
-
export interface DtoProductParamsWithLang extends DtoProductParams {
|
|
392
|
-
lang: string;
|
|
393
|
-
}
|
|
394
|
-
/** ProductRef */
|
|
395
|
-
export interface DtoProductRef {
|
|
396
|
-
basePrice: number;
|
|
397
|
-
categories?: Array<DtoCategoryMap>;
|
|
398
|
-
descLong: string;
|
|
399
|
-
descShort: string;
|
|
400
|
-
navImage: string;
|
|
401
|
-
omitOnOrder: boolean;
|
|
402
|
-
partNr: string;
|
|
403
|
-
styleNr?: string;
|
|
404
|
-
}
|
|
405
|
-
/** ProductResponse */
|
|
406
|
-
export interface DtoProductResponse {
|
|
407
|
-
rootFeatureRefs: Array<DtoFeatureRef>;
|
|
408
|
-
features: Array<DtoFeature>;
|
|
409
|
-
productData: DtoProductData;
|
|
410
|
-
unit: string;
|
|
411
|
-
uuid: string;
|
|
412
|
-
}
|
|
413
|
-
/** RefreshSessionTokenResponse */
|
|
414
|
-
export interface DtoRefreshSessionTokenResponse {
|
|
415
|
-
apiSession: DtoCatalogueAPISession;
|
|
416
|
-
}
|
|
417
|
-
/** RenderFormat */
|
|
418
|
-
export declare type DtoRenderFormat = "jpg" | "png";
|
|
419
|
-
export declare const dtoRenderFormatNames: DtoRenderFormat[];
|
|
420
|
-
/** RenderRequest */
|
|
421
|
-
export interface DtoRenderRequest {
|
|
422
|
-
width: number;
|
|
423
|
-
height: number;
|
|
424
|
-
format?: DtoRenderFormat;
|
|
425
|
-
targetCameraArgs?: DtoTargetCameraArgs;
|
|
426
|
-
selOptions: Array<DtoSelectedOption>;
|
|
427
|
-
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
428
|
-
}
|
|
429
|
-
/** RenderResponse */
|
|
430
|
-
export interface DtoRenderResponse {
|
|
431
|
-
renderStatus: DtoRenderStatus;
|
|
432
|
-
}
|
|
433
|
-
/** RenderStatus */
|
|
434
|
-
export interface DtoRenderStatus {
|
|
435
|
-
created: string;
|
|
436
|
-
modified: string;
|
|
437
|
-
status: DtoRenderStatusStatus;
|
|
438
|
-
url?: string;
|
|
439
|
-
uuid: string;
|
|
440
|
-
}
|
|
441
|
-
/** RenderStatusStatus - WIP */
|
|
442
|
-
export declare type DtoRenderStatusStatus = "pending" | "running" | "finished" | "failed";
|
|
443
|
-
export declare const dtoRenderStatusStatusNames: DtoRenderStatusStatus[];
|
|
444
|
-
/** SelectedOption */
|
|
445
|
-
export interface DtoSelectedOption {
|
|
446
|
-
code: string;
|
|
447
|
-
numericValue?: DtoValueWithUnit;
|
|
448
|
-
next?: {
|
|
449
|
-
[index: string]: DtoSelectedOption;
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
/** SuccessResponse */
|
|
453
|
-
export interface DtoSuccessResponse {
|
|
454
|
-
uuid: string;
|
|
455
|
-
success: boolean;
|
|
456
|
-
}
|
|
457
|
-
/** SyncGroup */
|
|
458
|
-
export interface DtoSyncGroup {
|
|
459
|
-
syncGroupCode: string;
|
|
460
|
-
syncMethod: DtoSyncGroupMethods;
|
|
461
|
-
}
|
|
462
|
-
/** SyncGroupMethods */
|
|
463
|
-
export declare type DtoSyncGroupMethods = "pull" | "push" | "twoWay";
|
|
464
|
-
export declare const dtoSyncGroupMethodsNames: DtoSyncGroupMethods[];
|
|
465
|
-
/** TargetCameraArgs */
|
|
466
|
-
export interface DtoTargetCameraArgs {
|
|
467
|
-
location?: DtoPoint;
|
|
468
|
-
target?: DtoPoint;
|
|
469
|
-
direction?: DtoVector;
|
|
470
|
-
normal?: DtoVector;
|
|
471
|
-
yaw?: number;
|
|
472
|
-
pitch?: number;
|
|
473
|
-
roll?: number;
|
|
474
|
-
fov?: number;
|
|
475
|
-
nearClip?: number;
|
|
476
|
-
minHeight?: number;
|
|
477
|
-
}
|
|
478
|
-
/** TOCResponse - Table Of Contents */
|
|
479
|
-
export interface DtoTOCResponse {
|
|
480
|
-
uuid: string;
|
|
481
|
-
prdRefs?: Array<DtoProductRef>;
|
|
482
|
-
prdCatInfo: DtoProductCatalogueInfo;
|
|
483
|
-
lvls?: Array<DtoLevel>;
|
|
484
|
-
}
|
|
485
|
-
/** Transform */
|
|
486
|
-
export interface DtoTransform {
|
|
487
|
-
pos: DtoVector;
|
|
488
|
-
scale: DtoVector;
|
|
489
|
-
rot: DtoOrientation;
|
|
490
|
-
}
|
|
491
|
-
/** ValidateRequest */
|
|
492
|
-
export interface DtoValidateRequest {
|
|
493
|
-
selOptions: Array<DtoSelectedOption>;
|
|
494
|
-
}
|
|
495
|
-
/** ValidateResponse */
|
|
496
|
-
export interface DtoValidateResponse {
|
|
497
|
-
productData: DtoProductData;
|
|
498
|
-
uuid: string;
|
|
499
|
-
validated: boolean;
|
|
500
|
-
rootFeatureRefs?: Array<DtoFeatureRef>;
|
|
501
|
-
}
|
|
502
|
-
/** ValueWithUnit */
|
|
503
|
-
export interface DtoValueWithUnit {
|
|
504
|
-
value: number;
|
|
505
|
-
unit?: string;
|
|
506
|
-
}
|
|
507
|
-
/** Vector */
|
|
508
|
-
export interface DtoVector {
|
|
509
|
-
x: number;
|
|
510
|
-
y: number;
|
|
511
|
-
z: number;
|
|
512
|
-
}
|
|
513
|
-
export declare type DtoRequestOptions = {
|
|
514
|
-
method: "POST" | "GET" | "DELETE";
|
|
515
|
-
headers: {
|
|
516
|
-
[index: string]: string;
|
|
517
|
-
};
|
|
518
|
-
body?: string;
|
|
519
|
-
};
|
|
520
|
-
export declare class DtoAPIError<T> extends Error {
|
|
521
|
-
body?: string;
|
|
522
|
-
error?: Error;
|
|
523
|
-
parsed?: T;
|
|
524
|
-
status?: number;
|
|
525
|
-
}
|
|
526
|
-
declare type FetchFunc = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
527
|
-
export declare class CatalogueAPI {
|
|
528
|
-
private readonly _fetch;
|
|
529
|
-
auth: DtoAuthorizeResponse | undefined;
|
|
530
|
-
constructor(_fetch?: FetchFunc);
|
|
531
|
-
private _alternativeReferer;
|
|
532
|
-
_saveAlternativeReferer(): void;
|
|
533
|
-
hasFeature(feature: string): boolean;
|
|
534
|
-
fetch<T>(url: string, options: DtoRequestOptions): Promise<T>;
|
|
535
|
-
postPublicAccessTokenAuthorize(params: DtoPostPublicAccessTokenAuthorizeParams, endpoint: string): Promise<DtoAuthorizeResponse>;
|
|
536
|
-
getApplicationAreas(params: DtoGetApplicationAreasParams): Promise<DtoApplicationAreasResponse>;
|
|
537
|
-
postExport(params: DtoPostExportParams, body: DtoExportRequest): Promise<DtoExportResponse>;
|
|
538
|
-
getPriceLists(params: DtoGetPriceListsParams): Promise<DtoPriceListsResponse>;
|
|
539
|
-
getProduct(params: DtoGetProductParams): Promise<DtoProductResponse>;
|
|
540
|
-
postRender(params: DtoPostRenderParams, body: DtoRenderRequest): Promise<DtoRenderResponse>;
|
|
541
|
-
postValidate(params: DtoPostValidateParams, body: DtoValidateRequest): Promise<DtoValidateResponse>;
|
|
542
|
-
getTocTree(params: DtoGetTocTreeParams): Promise<DtoTOCResponse>;
|
|
543
|
-
getTocFlat(params: DtoGetTocFlatParams): Promise<DtoTOCResponse>;
|
|
544
|
-
getExportById(params: DtoGetExportByIdParams): Promise<DtoExportResponse>;
|
|
545
|
-
getRenderById(params: DtoGetRenderByIdParams): Promise<DtoRenderResponse>;
|
|
546
|
-
postSessionTokenRefresh(): Promise<DtoRefreshSessionTokenResponse>;
|
|
547
|
-
}
|
|
548
|
-
export declare const DTO_OPERATION_ID_TO_DEBIT_GROUP: {
|
|
549
|
-
[operation_id: string]: string;
|
|
550
|
-
};
|
|
551
|
-
export {};
|
|
1
|
+
/** AdditionalProductConfiguration */
|
|
2
|
+
export interface DtoAdditionalProductConfiguration {
|
|
3
|
+
refKey?: string;
|
|
4
|
+
selected?: boolean;
|
|
5
|
+
selOptions: Array<DtoSelectedOption>;
|
|
6
|
+
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
7
|
+
}
|
|
8
|
+
/** AdditionalProductRef */
|
|
9
|
+
export interface DtoAdditionalProductRef {
|
|
10
|
+
refKey: string;
|
|
11
|
+
catId: DtoCatalogueParams;
|
|
12
|
+
partNumber: string;
|
|
13
|
+
refDescription?: string;
|
|
14
|
+
anchor?: DtoMeasureParam;
|
|
15
|
+
transform?: DtoTransform;
|
|
16
|
+
optional?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/** ApplicationArea */
|
|
19
|
+
export interface DtoApplicationArea {
|
|
20
|
+
areas?: Array<string>;
|
|
21
|
+
cid?: number;
|
|
22
|
+
material?: string;
|
|
23
|
+
preview?: string;
|
|
24
|
+
}
|
|
25
|
+
/** DtoApplicationAreasResponse */
|
|
26
|
+
export interface DtoApplicationAreasResponse {
|
|
27
|
+
applicationAreas: Array<DtoApplicationArea>;
|
|
28
|
+
uuid: string;
|
|
29
|
+
}
|
|
30
|
+
/** AuthorizeResponse */
|
|
31
|
+
export interface DtoAuthorizeResponse {
|
|
32
|
+
endpoint: string;
|
|
33
|
+
secretToken: string;
|
|
34
|
+
apiSession: DtoCatalogueAPISession;
|
|
35
|
+
}
|
|
36
|
+
/** CatalogueAPISession */
|
|
37
|
+
export interface DtoCatalogueAPISession {
|
|
38
|
+
expires: string;
|
|
39
|
+
features?: Array<string>;
|
|
40
|
+
permissions?: Array<DtoCataloguePermission>;
|
|
41
|
+
}
|
|
42
|
+
/** CatalogueParams */
|
|
43
|
+
export interface DtoCatalogueParams extends DtoCatalogueParamsWithoutCid {
|
|
44
|
+
cid: number;
|
|
45
|
+
}
|
|
46
|
+
/** CatalogueParamsWithLang */
|
|
47
|
+
export interface DtoCatalogueParamsWithLang extends DtoCatalogueParams {
|
|
48
|
+
lang: string;
|
|
49
|
+
}
|
|
50
|
+
/** CatalogueParamsWithoutCid */
|
|
51
|
+
export interface DtoCatalogueParamsWithoutCid {
|
|
52
|
+
enterprise: string;
|
|
53
|
+
prdCat: string;
|
|
54
|
+
prdCatVersion: string;
|
|
55
|
+
vendor: string;
|
|
56
|
+
priceList: string;
|
|
57
|
+
}
|
|
58
|
+
/** CataloguePermission */
|
|
59
|
+
export interface DtoCataloguePermission {
|
|
60
|
+
cid: number;
|
|
61
|
+
enterprise: string;
|
|
62
|
+
prdCat: string;
|
|
63
|
+
prdCatVersion: string;
|
|
64
|
+
priceLists?: Array<string>;
|
|
65
|
+
vendors?: Array<string>;
|
|
66
|
+
}
|
|
67
|
+
/** CategoryMap */
|
|
68
|
+
export interface DtoCategoryMap {
|
|
69
|
+
[index: string]: string;
|
|
70
|
+
}
|
|
71
|
+
/** CodeRange */
|
|
72
|
+
export interface DtoCodeRange {
|
|
73
|
+
minValue: number;
|
|
74
|
+
maxValue: number;
|
|
75
|
+
increment?: number;
|
|
76
|
+
}
|
|
77
|
+
/** ConfAddProd */
|
|
78
|
+
export interface DtoConfAddProd extends DtoConfProd {
|
|
79
|
+
refKey: string;
|
|
80
|
+
selected: boolean;
|
|
81
|
+
}
|
|
82
|
+
/** ConfFeature */
|
|
83
|
+
export interface DtoConfFeature {
|
|
84
|
+
code: string;
|
|
85
|
+
groupCode?: string;
|
|
86
|
+
unit?: string;
|
|
87
|
+
options?: Array<DtoConfOption>;
|
|
88
|
+
}
|
|
89
|
+
/** ConfOption */
|
|
90
|
+
export interface DtoConfOption {
|
|
91
|
+
code: string;
|
|
92
|
+
selected: boolean;
|
|
93
|
+
numericValue?: DtoValueWithUnit;
|
|
94
|
+
features?: Array<DtoConfFeature>;
|
|
95
|
+
}
|
|
96
|
+
/** ConfProd */
|
|
97
|
+
export interface DtoConfProd {
|
|
98
|
+
features?: Array<DtoConfFeature>;
|
|
99
|
+
additionalProducts?: Array<DtoConfAddProd>;
|
|
100
|
+
prodParams?: DtoProductParamsWithLang;
|
|
101
|
+
}
|
|
102
|
+
/** ErrorResponse */
|
|
103
|
+
export interface DtoErrorResponse {
|
|
104
|
+
error: string;
|
|
105
|
+
code: number;
|
|
106
|
+
eventId?: string;
|
|
107
|
+
}
|
|
108
|
+
/** ExportFormat - Format of the exported product, identical to the format's file extension. */
|
|
109
|
+
export declare type DtoExportFormat = "glb" | "gltf" | "fbx" | "dwg" | "cmdrw" | "cmfav" | "cmsym";
|
|
110
|
+
export declare const dtoExportFormatNames: DtoExportFormat[];
|
|
111
|
+
/** ExportRequest */
|
|
112
|
+
export interface DtoExportRequest {
|
|
113
|
+
format: DtoExportFormat;
|
|
114
|
+
selOptions: Array<DtoSelectedOption>;
|
|
115
|
+
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
116
|
+
preferUnzipped?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/** ExportResponse */
|
|
119
|
+
export interface DtoExportResponse {
|
|
120
|
+
exportStatus: DtoExportStatus;
|
|
121
|
+
}
|
|
122
|
+
/** ExportStatus */
|
|
123
|
+
export interface DtoExportStatus {
|
|
124
|
+
created: string;
|
|
125
|
+
modified: string;
|
|
126
|
+
status: DtoExportStatusStatus;
|
|
127
|
+
url?: string;
|
|
128
|
+
uuid: string;
|
|
129
|
+
}
|
|
130
|
+
/** ExportStatusStatus - WIP */
|
|
131
|
+
export declare type DtoExportStatusStatus = "pending" | "running" | "finished" | "failed";
|
|
132
|
+
export declare const dtoExportStatusStatusNames: DtoExportStatusStatus[];
|
|
133
|
+
/** Feature */
|
|
134
|
+
export interface DtoFeature {
|
|
135
|
+
code: string;
|
|
136
|
+
description: string;
|
|
137
|
+
functional?: boolean;
|
|
138
|
+
groupCode?: string;
|
|
139
|
+
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
140
|
+
multiple?: boolean;
|
|
141
|
+
numericOrder: boolean;
|
|
142
|
+
optional?: boolean;
|
|
143
|
+
options: Array<DtoOption>;
|
|
144
|
+
hideIfMainProduct?: boolean;
|
|
145
|
+
hideIfAdditionalProduct?: boolean;
|
|
146
|
+
measureParams?: Array<DtoMeasureParam>;
|
|
147
|
+
syncGroup?: DtoSyncGroup;
|
|
148
|
+
unit?: string;
|
|
149
|
+
}
|
|
150
|
+
/** FeatureRef */
|
|
151
|
+
export interface DtoFeatureRef {
|
|
152
|
+
code: string;
|
|
153
|
+
defaultOptionRef?: string;
|
|
154
|
+
selectedOptionRef?: string;
|
|
155
|
+
excludedOptionRefs?: Array<string>;
|
|
156
|
+
}
|
|
157
|
+
/** GetApplicationAreasParams represents the URL parameters of getApplicationAreas */
|
|
158
|
+
export interface DtoGetApplicationAreasParams {
|
|
159
|
+
lang: string;
|
|
160
|
+
enterprise: string;
|
|
161
|
+
prdCat: string;
|
|
162
|
+
prdCatVersion: string;
|
|
163
|
+
vendor: string;
|
|
164
|
+
priceList: string;
|
|
165
|
+
}
|
|
166
|
+
/** GetExportByIdParams represents the URL parameters of getExportById */
|
|
167
|
+
export interface DtoGetExportByIdParams {
|
|
168
|
+
uuid: string;
|
|
169
|
+
}
|
|
170
|
+
/** GetPriceListsParams represents the URL parameters of getPriceLists */
|
|
171
|
+
export interface DtoGetPriceListsParams {
|
|
172
|
+
lang: string;
|
|
173
|
+
enterprise: string;
|
|
174
|
+
prdCat: string;
|
|
175
|
+
prdCatVersion: string;
|
|
176
|
+
vendor: string;
|
|
177
|
+
priceList: string;
|
|
178
|
+
}
|
|
179
|
+
/** DtoProductParamsWithLang represents the URL parameters of getProduct */
|
|
180
|
+
export interface DtoGetProductParams {
|
|
181
|
+
lang: string;
|
|
182
|
+
enterprise: string;
|
|
183
|
+
prdCat: string;
|
|
184
|
+
prdCatVersion: string;
|
|
185
|
+
vendor: string;
|
|
186
|
+
priceList: string;
|
|
187
|
+
partNumber: string;
|
|
188
|
+
}
|
|
189
|
+
/** GetRenderByIdParams represents the URL parameters of getRenderById */
|
|
190
|
+
export interface DtoGetRenderByIdParams {
|
|
191
|
+
uuid: string;
|
|
192
|
+
}
|
|
193
|
+
/** GetTocFlatParams represents the URL parameters of getTocFlat */
|
|
194
|
+
export interface DtoGetTocFlatParams {
|
|
195
|
+
lang: string;
|
|
196
|
+
enterprise: string;
|
|
197
|
+
prdCat: string;
|
|
198
|
+
prdCatVersion: string;
|
|
199
|
+
vendor: string;
|
|
200
|
+
priceList: string;
|
|
201
|
+
}
|
|
202
|
+
/** GetTocTreeParams represents the URL parameters of getTocTree */
|
|
203
|
+
export interface DtoGetTocTreeParams {
|
|
204
|
+
lang: string;
|
|
205
|
+
enterprise: string;
|
|
206
|
+
prdCat: string;
|
|
207
|
+
prdCatVersion: string;
|
|
208
|
+
vendor: string;
|
|
209
|
+
priceList: string;
|
|
210
|
+
}
|
|
211
|
+
/** Level */
|
|
212
|
+
export interface DtoLevel {
|
|
213
|
+
code: string;
|
|
214
|
+
description: string;
|
|
215
|
+
lvls?: Array<DtoLevel>;
|
|
216
|
+
prdRefs?: Array<DtoLevelProductRef>;
|
|
217
|
+
}
|
|
218
|
+
/** LevelProductRef */
|
|
219
|
+
export interface DtoLevelProductRef {
|
|
220
|
+
prdRef: string;
|
|
221
|
+
}
|
|
222
|
+
/** Measurement */
|
|
223
|
+
export interface DtoMeasurement {
|
|
224
|
+
code: string;
|
|
225
|
+
numericValue?: DtoValueWithUnit;
|
|
226
|
+
measureParam?: DtoMeasureParam;
|
|
227
|
+
}
|
|
228
|
+
/** MeasureParam */
|
|
229
|
+
export interface DtoMeasureParam {
|
|
230
|
+
code: string;
|
|
231
|
+
anchorPoint?: string;
|
|
232
|
+
measurePriority?: Array<DtoMeasurePriority>;
|
|
233
|
+
}
|
|
234
|
+
/** MeasurePriority */
|
|
235
|
+
export interface DtoMeasurePriority {
|
|
236
|
+
url: string;
|
|
237
|
+
}
|
|
238
|
+
/** Model */
|
|
239
|
+
export interface DtoModel {
|
|
240
|
+
cid: number;
|
|
241
|
+
anchor?: DtoMeasureParam;
|
|
242
|
+
t?: DtoTransform;
|
|
243
|
+
uri: string;
|
|
244
|
+
}
|
|
245
|
+
/** MtrlApplication */
|
|
246
|
+
export interface DtoMtrlApplication {
|
|
247
|
+
areas?: Array<string>;
|
|
248
|
+
material?: string;
|
|
249
|
+
preview?: string;
|
|
250
|
+
cid?: number;
|
|
251
|
+
}
|
|
252
|
+
/** Option */
|
|
253
|
+
export interface DtoOption {
|
|
254
|
+
additionalProductRefs?: Array<DtoAdditionalProductRef>;
|
|
255
|
+
code: string;
|
|
256
|
+
description: string;
|
|
257
|
+
featureRefs?: Array<DtoFeatureRef>;
|
|
258
|
+
material?: string;
|
|
259
|
+
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
260
|
+
codeRanges?: Array<DtoCodeRange>;
|
|
261
|
+
upcharge?: number;
|
|
262
|
+
priceCodes?: Array<string>;
|
|
263
|
+
}
|
|
264
|
+
/** Orientation */
|
|
265
|
+
export interface DtoOrientation {
|
|
266
|
+
yaw: number;
|
|
267
|
+
pitch: number;
|
|
268
|
+
roll: number;
|
|
269
|
+
}
|
|
270
|
+
/** PartsData */
|
|
271
|
+
export interface DtoPartsData {
|
|
272
|
+
basePrice: number;
|
|
273
|
+
currency: string;
|
|
274
|
+
rounding?: number;
|
|
275
|
+
listPrice: number;
|
|
276
|
+
pkgCount: number;
|
|
277
|
+
selOptions: Array<DtoPartsSelectedOption>;
|
|
278
|
+
styleNr: string;
|
|
279
|
+
prices?: DtoPrices;
|
|
280
|
+
}
|
|
281
|
+
/** PartsSelectedOption */
|
|
282
|
+
export interface DtoPartsSelectedOption {
|
|
283
|
+
code: string;
|
|
284
|
+
numericValue?: DtoValueWithUnit;
|
|
285
|
+
description?: string;
|
|
286
|
+
feature: string;
|
|
287
|
+
featDesc: string;
|
|
288
|
+
upcharge?: number;
|
|
289
|
+
next?: {
|
|
290
|
+
[index: string]: DtoPartsSelectedOption;
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
/** Point */
|
|
294
|
+
export interface DtoPoint {
|
|
295
|
+
x: number;
|
|
296
|
+
y: number;
|
|
297
|
+
z: number;
|
|
298
|
+
}
|
|
299
|
+
/** PostExportParams represents the URL parameters of postExport */
|
|
300
|
+
export interface DtoPostExportParams {
|
|
301
|
+
lang: string;
|
|
302
|
+
enterprise: string;
|
|
303
|
+
prdCat: string;
|
|
304
|
+
prdCatVersion: string;
|
|
305
|
+
vendor: string;
|
|
306
|
+
priceList: string;
|
|
307
|
+
partNumber: string;
|
|
308
|
+
}
|
|
309
|
+
/** PostPublicAccessTokenAuthorizeParams represents the URL parameters of postPublicAccessTokenAuthorize */
|
|
310
|
+
export interface DtoPostPublicAccessTokenAuthorizeParams {
|
|
311
|
+
accessTokenId: string;
|
|
312
|
+
}
|
|
313
|
+
/** PostRenderParams represents the URL parameters of postRender */
|
|
314
|
+
export interface DtoPostRenderParams {
|
|
315
|
+
lang: string;
|
|
316
|
+
enterprise: string;
|
|
317
|
+
prdCat: string;
|
|
318
|
+
prdCatVersion: string;
|
|
319
|
+
vendor: string;
|
|
320
|
+
priceList: string;
|
|
321
|
+
partNumber: string;
|
|
322
|
+
}
|
|
323
|
+
/** PostValidateParams represents the URL parameters of postValidate */
|
|
324
|
+
export interface DtoPostValidateParams {
|
|
325
|
+
lang: string;
|
|
326
|
+
enterprise: string;
|
|
327
|
+
prdCat: string;
|
|
328
|
+
prdCatVersion: string;
|
|
329
|
+
vendor: string;
|
|
330
|
+
priceList: string;
|
|
331
|
+
partNumber: string;
|
|
332
|
+
}
|
|
333
|
+
/** PriceList */
|
|
334
|
+
export interface DtoPriceList {
|
|
335
|
+
code: string;
|
|
336
|
+
currency: string;
|
|
337
|
+
desc: string;
|
|
338
|
+
rate: number;
|
|
339
|
+
rounding: number;
|
|
340
|
+
}
|
|
341
|
+
/** PriceListsResponse */
|
|
342
|
+
export interface DtoPriceListsResponse {
|
|
343
|
+
priceLists: Array<DtoPriceList>;
|
|
344
|
+
uuid: string;
|
|
345
|
+
}
|
|
346
|
+
/** Prices */
|
|
347
|
+
export interface DtoPrices {
|
|
348
|
+
values: {
|
|
349
|
+
[index: string]: number;
|
|
350
|
+
};
|
|
351
|
+
parent?: DtoPrices;
|
|
352
|
+
}
|
|
353
|
+
/** ProductCatalogueInfo */
|
|
354
|
+
export interface DtoProductCatalogueInfo {
|
|
355
|
+
catDesc: string;
|
|
356
|
+
catName: string;
|
|
357
|
+
currency: string;
|
|
358
|
+
currencyRound: number;
|
|
359
|
+
exchangeRate: number;
|
|
360
|
+
lastModified: string;
|
|
361
|
+
}
|
|
362
|
+
/** ProductData */
|
|
363
|
+
export interface DtoProductData {
|
|
364
|
+
area?: string;
|
|
365
|
+
categories?: Array<DtoCategoryMap>;
|
|
366
|
+
depth?: string;
|
|
367
|
+
description?: string;
|
|
368
|
+
height?: string;
|
|
369
|
+
hideIfMainProduct?: boolean;
|
|
370
|
+
hideIfAdditionalProduct?: boolean;
|
|
371
|
+
length?: string;
|
|
372
|
+
mtrlApplications?: Array<DtoMtrlApplication>;
|
|
373
|
+
additionalProductRefs?: Array<DtoAdditionalProductRef>;
|
|
374
|
+
navImage?: string;
|
|
375
|
+
sku: string;
|
|
376
|
+
measurements?: Array<DtoMeasurement>;
|
|
377
|
+
tags?: Array<{
|
|
378
|
+
[index: string]: string;
|
|
379
|
+
}>;
|
|
380
|
+
volume?: string;
|
|
381
|
+
weight?: string;
|
|
382
|
+
width?: string;
|
|
383
|
+
models?: Array<DtoModel>;
|
|
384
|
+
partsData: DtoPartsData;
|
|
385
|
+
}
|
|
386
|
+
/** ProductParams */
|
|
387
|
+
export interface DtoProductParams extends DtoCatalogueParams {
|
|
388
|
+
partNumber: string;
|
|
389
|
+
}
|
|
390
|
+
/** ProductParamsWithLang */
|
|
391
|
+
export interface DtoProductParamsWithLang extends DtoProductParams {
|
|
392
|
+
lang: string;
|
|
393
|
+
}
|
|
394
|
+
/** ProductRef */
|
|
395
|
+
export interface DtoProductRef {
|
|
396
|
+
basePrice: number;
|
|
397
|
+
categories?: Array<DtoCategoryMap>;
|
|
398
|
+
descLong: string;
|
|
399
|
+
descShort: string;
|
|
400
|
+
navImage: string;
|
|
401
|
+
omitOnOrder: boolean;
|
|
402
|
+
partNr: string;
|
|
403
|
+
styleNr?: string;
|
|
404
|
+
}
|
|
405
|
+
/** ProductResponse */
|
|
406
|
+
export interface DtoProductResponse {
|
|
407
|
+
rootFeatureRefs: Array<DtoFeatureRef>;
|
|
408
|
+
features: Array<DtoFeature>;
|
|
409
|
+
productData: DtoProductData;
|
|
410
|
+
unit: string;
|
|
411
|
+
uuid: string;
|
|
412
|
+
}
|
|
413
|
+
/** RefreshSessionTokenResponse */
|
|
414
|
+
export interface DtoRefreshSessionTokenResponse {
|
|
415
|
+
apiSession: DtoCatalogueAPISession;
|
|
416
|
+
}
|
|
417
|
+
/** RenderFormat */
|
|
418
|
+
export declare type DtoRenderFormat = "jpg" | "png";
|
|
419
|
+
export declare const dtoRenderFormatNames: DtoRenderFormat[];
|
|
420
|
+
/** RenderRequest */
|
|
421
|
+
export interface DtoRenderRequest {
|
|
422
|
+
width: number;
|
|
423
|
+
height: number;
|
|
424
|
+
format?: DtoRenderFormat;
|
|
425
|
+
targetCameraArgs?: DtoTargetCameraArgs;
|
|
426
|
+
selOptions: Array<DtoSelectedOption>;
|
|
427
|
+
additionalProducts?: Array<DtoAdditionalProductConfiguration>;
|
|
428
|
+
}
|
|
429
|
+
/** RenderResponse */
|
|
430
|
+
export interface DtoRenderResponse {
|
|
431
|
+
renderStatus: DtoRenderStatus;
|
|
432
|
+
}
|
|
433
|
+
/** RenderStatus */
|
|
434
|
+
export interface DtoRenderStatus {
|
|
435
|
+
created: string;
|
|
436
|
+
modified: string;
|
|
437
|
+
status: DtoRenderStatusStatus;
|
|
438
|
+
url?: string;
|
|
439
|
+
uuid: string;
|
|
440
|
+
}
|
|
441
|
+
/** RenderStatusStatus - WIP */
|
|
442
|
+
export declare type DtoRenderStatusStatus = "pending" | "running" | "finished" | "failed";
|
|
443
|
+
export declare const dtoRenderStatusStatusNames: DtoRenderStatusStatus[];
|
|
444
|
+
/** SelectedOption */
|
|
445
|
+
export interface DtoSelectedOption {
|
|
446
|
+
code: string;
|
|
447
|
+
numericValue?: DtoValueWithUnit;
|
|
448
|
+
next?: {
|
|
449
|
+
[index: string]: DtoSelectedOption;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
/** SuccessResponse */
|
|
453
|
+
export interface DtoSuccessResponse {
|
|
454
|
+
uuid: string;
|
|
455
|
+
success: boolean;
|
|
456
|
+
}
|
|
457
|
+
/** SyncGroup */
|
|
458
|
+
export interface DtoSyncGroup {
|
|
459
|
+
syncGroupCode: string;
|
|
460
|
+
syncMethod: DtoSyncGroupMethods;
|
|
461
|
+
}
|
|
462
|
+
/** SyncGroupMethods */
|
|
463
|
+
export declare type DtoSyncGroupMethods = "pull" | "push" | "twoWay";
|
|
464
|
+
export declare const dtoSyncGroupMethodsNames: DtoSyncGroupMethods[];
|
|
465
|
+
/** TargetCameraArgs */
|
|
466
|
+
export interface DtoTargetCameraArgs {
|
|
467
|
+
location?: DtoPoint;
|
|
468
|
+
target?: DtoPoint;
|
|
469
|
+
direction?: DtoVector;
|
|
470
|
+
normal?: DtoVector;
|
|
471
|
+
yaw?: number;
|
|
472
|
+
pitch?: number;
|
|
473
|
+
roll?: number;
|
|
474
|
+
fov?: number;
|
|
475
|
+
nearClip?: number;
|
|
476
|
+
minHeight?: number;
|
|
477
|
+
}
|
|
478
|
+
/** TOCResponse - Table Of Contents */
|
|
479
|
+
export interface DtoTOCResponse {
|
|
480
|
+
uuid: string;
|
|
481
|
+
prdRefs?: Array<DtoProductRef>;
|
|
482
|
+
prdCatInfo: DtoProductCatalogueInfo;
|
|
483
|
+
lvls?: Array<DtoLevel>;
|
|
484
|
+
}
|
|
485
|
+
/** Transform */
|
|
486
|
+
export interface DtoTransform {
|
|
487
|
+
pos: DtoVector;
|
|
488
|
+
scale: DtoVector;
|
|
489
|
+
rot: DtoOrientation;
|
|
490
|
+
}
|
|
491
|
+
/** ValidateRequest */
|
|
492
|
+
export interface DtoValidateRequest {
|
|
493
|
+
selOptions: Array<DtoSelectedOption>;
|
|
494
|
+
}
|
|
495
|
+
/** ValidateResponse */
|
|
496
|
+
export interface DtoValidateResponse {
|
|
497
|
+
productData: DtoProductData;
|
|
498
|
+
uuid: string;
|
|
499
|
+
validated: boolean;
|
|
500
|
+
rootFeatureRefs?: Array<DtoFeatureRef>;
|
|
501
|
+
}
|
|
502
|
+
/** ValueWithUnit */
|
|
503
|
+
export interface DtoValueWithUnit {
|
|
504
|
+
value: number;
|
|
505
|
+
unit?: string;
|
|
506
|
+
}
|
|
507
|
+
/** Vector */
|
|
508
|
+
export interface DtoVector {
|
|
509
|
+
x: number;
|
|
510
|
+
y: number;
|
|
511
|
+
z: number;
|
|
512
|
+
}
|
|
513
|
+
export declare type DtoRequestOptions = {
|
|
514
|
+
method: "POST" | "GET" | "DELETE";
|
|
515
|
+
headers: {
|
|
516
|
+
[index: string]: string;
|
|
517
|
+
};
|
|
518
|
+
body?: string;
|
|
519
|
+
};
|
|
520
|
+
export declare class DtoAPIError<T> extends Error {
|
|
521
|
+
body?: string;
|
|
522
|
+
error?: Error;
|
|
523
|
+
parsed?: T;
|
|
524
|
+
status?: number;
|
|
525
|
+
}
|
|
526
|
+
declare type FetchFunc = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
527
|
+
export declare class CatalogueAPI {
|
|
528
|
+
private readonly _fetch;
|
|
529
|
+
auth: DtoAuthorizeResponse | undefined;
|
|
530
|
+
constructor(_fetch?: FetchFunc);
|
|
531
|
+
private _alternativeReferer;
|
|
532
|
+
_saveAlternativeReferer(): void;
|
|
533
|
+
hasFeature(feature: string): boolean;
|
|
534
|
+
fetch<T>(url: string, options: DtoRequestOptions): Promise<T>;
|
|
535
|
+
postPublicAccessTokenAuthorize(params: DtoPostPublicAccessTokenAuthorizeParams, endpoint: string): Promise<DtoAuthorizeResponse>;
|
|
536
|
+
getApplicationAreas(params: DtoGetApplicationAreasParams): Promise<DtoApplicationAreasResponse>;
|
|
537
|
+
postExport(params: DtoPostExportParams, body: DtoExportRequest): Promise<DtoExportResponse>;
|
|
538
|
+
getPriceLists(params: DtoGetPriceListsParams): Promise<DtoPriceListsResponse>;
|
|
539
|
+
getProduct(params: DtoGetProductParams): Promise<DtoProductResponse>;
|
|
540
|
+
postRender(params: DtoPostRenderParams, body: DtoRenderRequest): Promise<DtoRenderResponse>;
|
|
541
|
+
postValidate(params: DtoPostValidateParams, body: DtoValidateRequest): Promise<DtoValidateResponse>;
|
|
542
|
+
getTocTree(params: DtoGetTocTreeParams): Promise<DtoTOCResponse>;
|
|
543
|
+
getTocFlat(params: DtoGetTocFlatParams): Promise<DtoTOCResponse>;
|
|
544
|
+
getExportById(params: DtoGetExportByIdParams): Promise<DtoExportResponse>;
|
|
545
|
+
getRenderById(params: DtoGetRenderByIdParams): Promise<DtoRenderResponse>;
|
|
546
|
+
postSessionTokenRefresh(): Promise<DtoRefreshSessionTokenResponse>;
|
|
547
|
+
}
|
|
548
|
+
export declare const DTO_OPERATION_ID_TO_DEBIT_GROUP: {
|
|
549
|
+
[operation_id: string]: string;
|
|
550
|
+
};
|
|
551
|
+
export {};
|
|
552
552
|
//# sourceMappingURL=CatalogueAPI.d.ts.map
|