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