@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.
Files changed (66) hide show
  1. package/dist/CatalogueAPI.d.ts +200 -156
  2. package/dist/CatalogueAPI.js +23 -10
  3. package/dist/CfgMeasure.d.ts +3 -3
  4. package/dist/CfgProduct.d.ts +31 -21
  5. package/dist/CfgProduct.js +77 -46
  6. package/dist/CfgReferencePathHelper.d.ts +14 -0
  7. package/dist/CfgReferencePathHelper.js +13 -0
  8. package/dist/ConfigurationConverter.d.ts +5 -0
  9. package/dist/ConfigurationConverter.js +72 -0
  10. package/dist/index.d.ts +3 -0
  11. package/dist/index.js +3 -0
  12. package/dist/io/CfgHistoryManager.d.ts +51 -0
  13. package/dist/io/CfgHistoryManager.js +82 -0
  14. package/dist/io/CfgHistoryToProdConfConnector.d.ts +21 -0
  15. package/dist/io/CfgHistoryToProdConfConnector.js +56 -0
  16. package/dist/io/CfgIOManager.d.ts +49 -0
  17. package/dist/io/CfgIOManager.js +115 -0
  18. package/dist/io/CfgIOProdConfConnector.d.ts +53 -0
  19. package/dist/io/CfgIOProdConfConnector.js +141 -0
  20. package/dist/io/CfgObservableStateManager.d.ts +22 -0
  21. package/dist/io/CfgObservableStateManager.js +65 -0
  22. package/dist/io/CfgObservableStateToProdConfConnector.d.ts +15 -0
  23. package/dist/io/CfgObservableStateToProdConfConnector.js +16 -0
  24. package/dist/io/CfgWindowEventManager.d.ts +22 -0
  25. package/dist/io/CfgWindowEventManager.js +38 -0
  26. package/dist/io/CfgWindowMessageManager.d.ts +41 -0
  27. package/dist/io/CfgWindowMessageManager.js +84 -0
  28. package/dist/io/CfgWindowMessageToProdConfConnector.d.ts +17 -0
  29. package/dist/io/CfgWindowMessageToProdConfConnector.js +18 -0
  30. package/dist/io/index.d.ts +9 -0
  31. package/dist/io/index.js +8 -0
  32. package/dist/material/CfgMtrlApplication.d.ts +2 -2
  33. package/dist/productConfiguration/CfgFeature.d.ts +11 -12
  34. package/dist/productConfiguration/CfgFeature.js +37 -28
  35. package/dist/productConfiguration/CfgOption.d.ts +9 -8
  36. package/dist/productConfiguration/CfgOption.js +20 -30
  37. package/dist/productConfiguration/CfgProductConfiguration.d.ts +17 -20
  38. package/dist/productConfiguration/CfgProductConfiguration.js +14 -16
  39. package/dist/productConfiguration/filters.d.ts +4 -4
  40. package/dist/productConfiguration/productParamsGenerator.d.ts +4 -4
  41. package/dist/productConfiguration/productParamsGenerator.js +5 -5
  42. package/dist/productConfiguration/utilitiesProductConfiguration.d.ts +3 -3
  43. package/dist/productLoader.d.ts +3 -3
  44. package/dist/syncGroups/SyncGroupsHandler.js +3 -2
  45. package/dist/syncGroups/SyncGroupsTransaction.js +1 -1
  46. package/dist/tasks/TaskHandler.d.ts +7 -8
  47. package/dist/tasks/TaskHandler.js +4 -5
  48. package/dist/tasks/formats.d.ts +4 -4
  49. package/dist/tasks/formats.js +3 -3
  50. package/dist/tests/testData/dummyProductForTest.d.ts +2 -2
  51. package/dist/tests/testData/dummyProductForTest.js +3 -7
  52. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.d.ts +2 -2
  53. package/dist/tests/testData/testDataAdditionalProductInAdditionalProductInProductForTest.js +1 -1
  54. package/dist/tests/testData/testDataCachedGetProduct.d.ts +2 -2
  55. package/dist/tests/testData/testDataCachedGetProduct.js +1 -1
  56. package/dist/tests/testData/testDataCachedPostValidate.js +1 -1
  57. package/dist/tests/testData/testDataOptions.d.ts +4 -4
  58. package/dist/tests/testData/testDataProductAggregatedPrice.d.ts +3 -3
  59. package/dist/tests/testData/testDataProductAggregatedPrice.js +1 -1
  60. package/dist/tests/testData/testDataUpcharge.js +1 -1
  61. package/dist/utilitiesCatalogueData.d.ts +25 -23
  62. package/dist/utilitiesCatalogueData.js +10 -8
  63. package/dist/utilitiesCataloguePermission.d.ts +8 -13
  64. package/dist/utilitiesCataloguePermission.js +7 -11
  65. package/dist/utilitiesNumericValues.d.ts +3 -3
  66. package/package.json +3 -3
@@ -1,46 +1,54 @@
1
1
  /** AdditionalProductConfiguration */
2
- export interface AdditionalProductConfiguration {
2
+ export interface DtoAdditionalProductConfiguration {
3
3
  refKey?: string;
4
4
  selected?: boolean;
5
- selOptions: Array<SelectedOption>;
6
- additionalProducts?: Array<AdditionalProductConfiguration>;
5
+ selOptions: Array<DtoSelectedOption>;
6
+ additionalProducts?: Array<DtoAdditionalProductConfiguration>;
7
7
  }
8
8
  /** AdditionalProductRef */
9
- export interface AdditionalProductRef {
9
+ export interface DtoAdditionalProductRef {
10
10
  refKey: string;
11
- catId: CatalogueParams;
11
+ catId: DtoCatalogueParams;
12
12
  partNumber: string;
13
13
  refDescription?: string;
14
- anchor?: MeasureParam;
15
- transform?: Transform;
14
+ anchor?: DtoMeasureParam;
15
+ transform?: DtoTransform;
16
16
  optional?: boolean;
17
17
  }
18
18
  /** ApplicationArea */
19
- export interface ApplicationArea {
19
+ export interface DtoApplicationArea {
20
20
  areas?: Array<string>;
21
21
  cid?: number;
22
22
  material?: string;
23
23
  preview?: string;
24
24
  }
25
- /** ApplicationAreasResponse */
26
- export interface ApplicationAreasResponse {
27
- applicationAreas: Array<ApplicationArea>;
25
+ /** DtoApplicationAreasResponse */
26
+ export interface DtoApplicationAreasResponse {
27
+ applicationAreas: Array<DtoApplicationArea>;
28
28
  uuid: string;
29
29
  }
30
30
  /** AuthorizeResponse */
31
- export interface AuthorizeResponse {
31
+ export interface DtoAuthorizeResponse {
32
32
  endpoint: string;
33
33
  secretToken: string;
34
- apiSession: CatalogueAPISession;
34
+ apiSession: DtoCatalogueAPISession;
35
35
  }
36
36
  /** CatalogueAPISession */
37
- export interface CatalogueAPISession {
37
+ export interface DtoCatalogueAPISession {
38
38
  expires: string;
39
39
  features?: Array<string>;
40
- permissions?: Array<CataloguePermission>;
40
+ permissions?: Array<DtoCataloguePermission>;
41
41
  }
42
42
  /** CatalogueParams */
43
- export interface 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 {
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 CataloguePermission {
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 CategoryMap {
68
+ export interface DtoCategoryMap {
61
69
  [index: string]: string;
62
70
  }
63
71
  /** CodeRange */
64
- export interface CodeRange {
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 ErrorResponse {
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 ExportFormat = "glb" | "gltf" | "fbx" | "dwg" | "cmdrw" | "cmfav" | "cmsym";
77
- export declare const exportFormatNames: ExportFormat[];
109
+ export declare type DtoExportFormat = "glb" | "gltf" | "fbx" | "dwg" | "cmdrw" | "cmfav" | "cmsym";
110
+ export declare const dtoExportFormatNames: DtoExportFormat[];
78
111
  /** ExportRequest */
79
- export interface ExportRequest {
80
- format: ExportFormat;
81
- selOptions: Array<SelectedOption>;
82
- additionalProducts?: Array<AdditionalProductConfiguration>;
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 ExportResponse {
87
- exportStatus: ExportStatus;
119
+ export interface DtoExportResponse {
120
+ exportStatus: DtoExportStatus;
88
121
  }
89
122
  /** ExportStatus */
90
- export interface ExportStatus {
123
+ export interface DtoExportStatus {
91
124
  created: string;
92
125
  modified: string;
93
- status: ExportStatusStatus;
126
+ status: DtoExportStatusStatus;
94
127
  url?: string;
95
128
  uuid: string;
96
129
  }
97
130
  /** ExportStatusStatus - WIP */
98
- export declare type ExportStatusStatus = "pending" | "running" | "finished" | "failed";
99
- export declare const exportStatusStatusNames: ExportStatusStatus[];
131
+ export declare type DtoExportStatusStatus = "pending" | "running" | "finished" | "failed";
132
+ export declare const dtoExportStatusStatusNames: DtoExportStatusStatus[];
100
133
  /** Feature */
101
- export interface Feature {
134
+ export interface DtoFeature {
102
135
  code: string;
103
136
  description: string;
104
137
  functional?: boolean;
105
138
  groupCode?: string;
106
- mtrlApplications?: Array<MtrlApplication>;
139
+ mtrlApplications?: Array<DtoMtrlApplication>;
107
140
  multiple?: boolean;
108
141
  numericOrder: boolean;
109
142
  optional?: boolean;
110
- options: Array<Option>;
143
+ options: Array<DtoOption>;
111
144
  hideIfMainProduct?: boolean;
112
145
  hideIfAdditionalProduct?: boolean;
113
- measureParams?: Array<MeasureParam>;
114
- syncGroup?: SyncGroup;
146
+ measureParams?: Array<DtoMeasureParam>;
147
+ syncGroup?: DtoSyncGroup;
115
148
  unit?: string;
116
149
  }
117
150
  /** FeatureRef */
118
- export interface FeatureRef {
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 GetApplicationAreasParams {
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 GetExportByIdParams {
167
+ export interface DtoGetExportByIdParams {
135
168
  uuid: string;
136
169
  }
137
170
  /** GetPriceListsParams represents the URL parameters of getPriceLists */
138
- export interface GetPriceListsParams {
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
- /** GetProductParams represents the URL parameters of getProduct */
147
- export interface GetProductParams {
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 GetRenderByIdParams {
190
+ export interface DtoGetRenderByIdParams {
158
191
  uuid: string;
159
192
  }
160
193
  /** GetTocFlatParams represents the URL parameters of getTocFlat */
161
- export interface GetTocFlatParams {
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 GetTocTreeParams {
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 Level {
212
+ export interface DtoLevel {
180
213
  code: string;
181
214
  description: string;
182
- lvls?: Array<Level>;
183
- prdRefs?: Array<LevelProductRef>;
215
+ lvls?: Array<DtoLevel>;
216
+ prdRefs?: Array<DtoLevelProductRef>;
184
217
  }
185
218
  /** LevelProductRef */
186
- export interface LevelProductRef {
219
+ export interface DtoLevelProductRef {
187
220
  prdRef: string;
188
221
  }
189
222
  /** Measurement */
190
- export interface Measurement {
223
+ export interface DtoMeasurement {
191
224
  code: string;
192
- numericValue?: ValueWithUnit;
193
- measureParam?: MeasureParam;
225
+ numericValue?: DtoValueWithUnit;
226
+ measureParam?: DtoMeasureParam;
194
227
  }
195
228
  /** MeasureParam */
196
- export interface MeasureParam {
229
+ export interface DtoMeasureParam {
197
230
  code: string;
198
231
  anchorPoint?: string;
199
- measurePriority?: Array<MeasurePriority>;
232
+ measurePriority?: Array<DtoMeasurePriority>;
200
233
  }
201
234
  /** MeasurePriority */
202
- export interface MeasurePriority {
235
+ export interface DtoMeasurePriority {
203
236
  url: string;
204
237
  }
205
238
  /** Model */
206
- export interface Model {
239
+ export interface DtoModel {
207
240
  cid: number;
208
- anchor?: MeasureParam;
209
- t?: Transform;
241
+ anchor?: DtoMeasureParam;
242
+ t?: DtoTransform;
210
243
  uri: string;
211
244
  }
212
245
  /** MtrlApplication */
213
- export interface MtrlApplication {
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 Option {
221
- additionalProductRefs?: Array<AdditionalProductRef>;
253
+ export interface DtoOption {
254
+ additionalProductRefs?: Array<DtoAdditionalProductRef>;
222
255
  code: string;
223
256
  description: string;
224
- featureRefs?: Array<FeatureRef>;
257
+ featureRefs?: Array<DtoFeatureRef>;
225
258
  material?: string;
226
- mtrlApplications?: Array<MtrlApplication>;
227
- codeRanges?: Array<CodeRange>;
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 Orientation {
265
+ export interface DtoOrientation {
233
266
  yaw: number;
234
267
  pitch: number;
235
268
  roll: number;
236
269
  }
237
270
  /** PartsData */
238
- export interface PartsData {
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<PartsSelectedOption>;
277
+ selOptions: Array<DtoPartsSelectedOption>;
245
278
  styleNr: string;
246
- prices?: Prices;
279
+ prices?: DtoPrices;
247
280
  }
248
281
  /** PartsSelectedOption */
249
- export interface PartsSelectedOption {
282
+ export interface DtoPartsSelectedOption {
250
283
  code: string;
251
- numericValue?: ValueWithUnit;
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]: PartsSelectedOption;
290
+ [index: string]: DtoPartsSelectedOption;
258
291
  };
259
292
  }
260
293
  /** Point */
261
- export interface Point {
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 PostExportParams {
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 PostPublicAccessTokenAuthorizeParams {
310
+ export interface DtoPostPublicAccessTokenAuthorizeParams {
278
311
  accessTokenId: string;
279
312
  }
280
313
  /** PostRenderParams represents the URL parameters of postRender */
281
- export interface PostRenderParams {
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 PostValidateParams {
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 PriceList {
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 PriceListsResponse {
310
- priceLists: Array<PriceList>;
342
+ export interface DtoPriceListsResponse {
343
+ priceLists: Array<DtoPriceList>;
311
344
  uuid: string;
312
345
  }
313
346
  /** Prices */
314
- export interface Prices {
347
+ export interface DtoPrices {
315
348
  values: {
316
349
  [index: string]: number;
317
350
  };
318
- parent?: Prices;
351
+ parent?: DtoPrices;
319
352
  }
320
353
  /** ProductCatalogueInfo */
321
- export interface ProductCatalogueInfo {
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 ProductData {
363
+ export interface DtoProductData {
331
364
  area?: string;
332
- categories?: Array<CategoryMap>;
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<MtrlApplication>;
340
- additionalProductRefs?: Array<AdditionalProductRef>;
372
+ mtrlApplications?: Array<DtoMtrlApplication>;
373
+ additionalProductRefs?: Array<DtoAdditionalProductRef>;
341
374
  navImage?: string;
342
375
  sku: string;
343
- measurements?: Array<Measurement>;
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<Model>;
351
- partsData: 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 ProductRef {
395
+ export interface DtoProductRef {
355
396
  basePrice: number;
356
- categories?: Array<CategoryMap>;
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 ProductResponse {
366
- rootFeatureRefs: Array<FeatureRef>;
367
- features: Array<Feature>;
368
- productData: 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 RefreshSessionTokenResponse {
374
- apiSession: CatalogueAPISession;
414
+ export interface DtoRefreshSessionTokenResponse {
415
+ apiSession: DtoCatalogueAPISession;
375
416
  }
376
417
  /** RenderFormat */
377
- export declare type RenderFormat = "jpg" | "png";
378
- export declare const renderFormatNames: RenderFormat[];
418
+ export declare type DtoRenderFormat = "jpg" | "png";
419
+ export declare const dtoRenderFormatNames: DtoRenderFormat[];
379
420
  /** RenderRequest */
380
- export interface RenderRequest {
421
+ export interface DtoRenderRequest {
381
422
  width: number;
382
423
  height: number;
383
- format?: RenderFormat;
384
- targetCameraArgs?: TargetCameraArgs;
385
- selOptions: Array<SelectedOption>;
386
- additionalProducts?: Array<AdditionalProductConfiguration>;
424
+ format?: DtoRenderFormat;
425
+ targetCameraArgs?: DtoTargetCameraArgs;
426
+ selOptions: Array<DtoSelectedOption>;
427
+ additionalProducts?: Array<DtoAdditionalProductConfiguration>;
387
428
  }
388
429
  /** RenderResponse */
389
- export interface RenderResponse {
390
- renderStatus: RenderStatus;
430
+ export interface DtoRenderResponse {
431
+ renderStatus: DtoRenderStatus;
391
432
  }
392
433
  /** RenderStatus */
393
- export interface RenderStatus {
434
+ export interface DtoRenderStatus {
394
435
  created: string;
395
436
  modified: string;
396
- status: RenderStatusStatus;
437
+ status: DtoRenderStatusStatus;
397
438
  url?: string;
398
439
  uuid: string;
399
440
  }
400
441
  /** RenderStatusStatus - WIP */
401
- export declare type RenderStatusStatus = "pending" | "running" | "finished" | "failed";
402
- export declare const renderStatusStatusNames: RenderStatusStatus[];
442
+ export declare type DtoRenderStatusStatus = "pending" | "running" | "finished" | "failed";
443
+ export declare const dtoRenderStatusStatusNames: DtoRenderStatusStatus[];
403
444
  /** SelectedOption */
404
- export interface SelectedOption {
445
+ export interface DtoSelectedOption {
405
446
  code: string;
406
- numericValue?: ValueWithUnit;
447
+ numericValue?: DtoValueWithUnit;
407
448
  next?: {
408
- [index: string]: SelectedOption;
449
+ [index: string]: DtoSelectedOption;
409
450
  };
410
451
  }
411
452
  /** SuccessResponse */
412
- export interface SuccessResponse {
453
+ export interface DtoSuccessResponse {
413
454
  uuid: string;
414
455
  success: boolean;
415
456
  }
416
457
  /** SyncGroup */
417
- export interface SyncGroup {
458
+ export interface DtoSyncGroup {
418
459
  syncGroupCode: string;
419
- syncMethod: SyncGroupMethods;
460
+ syncMethod: DtoSyncGroupMethods;
420
461
  }
421
462
  /** SyncGroupMethods */
422
- export declare type SyncGroupMethods = "pull" | "push" | "twoWay";
423
- export declare const syncGroupMethodsNames: SyncGroupMethods[];
463
+ export declare type DtoSyncGroupMethods = "pull" | "push" | "twoWay";
464
+ export declare const dtoSyncGroupMethodsNames: DtoSyncGroupMethods[];
424
465
  /** TargetCameraArgs */
425
- export interface TargetCameraArgs {
426
- location?: Point;
427
- target?: Point;
428
- direction?: Vector;
429
- normal?: Vector;
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 TOCResponse {
479
+ export interface DtoTOCResponse {
439
480
  uuid: string;
440
- prdRefs?: Array<ProductRef>;
441
- prdCatInfo: ProductCatalogueInfo;
442
- lvls?: Array<Level>;
481
+ prdRefs?: Array<DtoProductRef>;
482
+ prdCatInfo: DtoProductCatalogueInfo;
483
+ lvls?: Array<DtoLevel>;
443
484
  }
444
485
  /** Transform */
445
- export interface Transform {
446
- pos: Vector;
447
- scale: Vector;
448
- rot: Orientation;
486
+ export interface DtoTransform {
487
+ pos: DtoVector;
488
+ scale: DtoVector;
489
+ rot: DtoOrientation;
449
490
  }
450
491
  /** ValidateRequest */
451
- export interface ValidateRequest {
452
- selOptions: Array<SelectedOption>;
492
+ export interface DtoValidateRequest {
493
+ selOptions: Array<DtoSelectedOption>;
453
494
  }
454
495
  /** ValidateResponse */
455
- export interface ValidateResponse {
456
- productData: ProductData;
496
+ export interface DtoValidateResponse {
497
+ productData: DtoProductData;
457
498
  uuid: string;
458
499
  validated: boolean;
459
- rootFeatureRefs?: Array<FeatureRef>;
500
+ rootFeatureRefs?: Array<DtoFeatureRef>;
460
501
  }
461
502
  /** ValueWithUnit */
462
- export interface ValueWithUnit {
503
+ export interface DtoValueWithUnit {
463
504
  value: number;
464
505
  unit?: string;
465
506
  }
466
507
  /** Vector */
467
- export interface Vector {
508
+ export interface DtoVector {
468
509
  x: number;
469
510
  y: number;
470
511
  z: number;
471
512
  }
472
- export declare type RequestOptions = {
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 APIError<T> extends Error {
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: AuthorizeResponse | undefined;
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: RequestOptions): Promise<T>;
494
- postPublicAccessTokenAuthorize(params: PostPublicAccessTokenAuthorizeParams, endpoint: string): Promise<AuthorizeResponse>;
495
- getApplicationAreas(params: GetApplicationAreasParams): Promise<ApplicationAreasResponse>;
496
- postExport(params: PostExportParams, body: ExportRequest): Promise<ExportResponse>;
497
- getPriceLists(params: GetPriceListsParams): Promise<PriceListsResponse>;
498
- getProduct(params: GetProductParams): Promise<ProductResponse>;
499
- postRender(params: PostRenderParams, body: RenderRequest): Promise<RenderResponse>;
500
- postValidate(params: PostValidateParams, body: ValidateRequest): Promise<ValidateResponse>;
501
- getTocTree(params: GetTocTreeParams): Promise<TOCResponse>;
502
- getTocFlat(params: GetTocFlatParams): Promise<TOCResponse>;
503
- getExportById(params: GetExportByIdParams): Promise<ExportResponse>;
504
- getRenderById(params: GetRenderByIdParams): Promise<RenderResponse>;
505
- postSessionTokenRefresh(): Promise<RefreshSessionTokenResponse>;
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