@contrail/flexplm 1.1.65 → 1.1.67-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/lib/entity-processor/base-entity-processor.js +3 -0
- package/lib/entity-processor/base-entity-processor.spec.js +79 -0
- package/lib/publish/base-process-publish-assortment.d.ts +9 -10
- package/lib/publish/base-process-publish-assortment.js +17 -30
- package/lib/publish/base-process-publish-assortment.spec.js +9 -81
- package/lib/publish/mockData.d.ts +0 -68
- package/lib/publish/mockData.js +1 -257
- package/lib/util/event-short-message-status.d.ts +2 -0
- package/lib/util/event-short-message-status.js +2 -0
- package/package.json +2 -3
- package/src/entity-processor/base-entity-processor.spec.ts +338 -249
- package/src/entity-processor/base-entity-processor.ts +486 -483
- package/src/publish/base-process-publish-assortment.spec.ts +35 -131
- package/src/publish/base-process-publish-assortment.ts +29 -48
- package/src/publish/mockData.ts +0 -257
- package/src/util/event-short-message-status.ts +2 -0
package/src/publish/mockData.ts
CHANGED
|
@@ -255,263 +255,6 @@ export const plan1_history = [
|
|
|
255
255
|
}
|
|
256
256
|
];
|
|
257
257
|
|
|
258
|
-
export const plan1_history_descending = [
|
|
259
|
-
{
|
|
260
|
-
summary: {
|
|
261
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
262
|
-
count: 13,
|
|
263
|
-
aggregates: {
|
|
264
|
-
flexCurrency: {
|
|
265
|
-
average: 444,
|
|
266
|
-
total: 444,
|
|
267
|
-
min: 444,
|
|
268
|
-
max: 444
|
|
269
|
-
},
|
|
270
|
-
totalMargin: {}
|
|
271
|
-
},
|
|
272
|
-
updatedOn: '2023-01-18T16:56:46.078Z',
|
|
273
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
274
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
275
|
-
createdOn: '2023-01-18T16:56:46.078Z',
|
|
276
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
277
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
278
|
-
},
|
|
279
|
-
deletes: 0,
|
|
280
|
-
versionComments: 'This sets up Jan 18 items for drop issue. That dropping the item family & only option produces only a delete entry for the option. Dropping an option of a family that has multiple options, also only produces a delete entry for the option.\n\nAnd dropping the only item option, from a family produces a delete entry for the option and an add for the item family',
|
|
281
|
-
unchanged: 9,
|
|
282
|
-
updatedOn: '2023-01-18T16:56:45.800Z',
|
|
283
|
-
versionName: 'Setup for demo of drop issue',
|
|
284
|
-
updates: 0,
|
|
285
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
286
|
-
createdOn: '2023-01-18T16:56:45.800Z',
|
|
287
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
288
|
-
familyItemsRemoved: 0,
|
|
289
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
290
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
291
|
-
id: 'sJbGx1Fpq1v2MmcI',
|
|
292
|
-
errors: 0,
|
|
293
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
294
|
-
adds: 4
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
summary: {
|
|
298
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
299
|
-
count: 9,
|
|
300
|
-
aggregates: {
|
|
301
|
-
totalMargin: {}
|
|
302
|
-
},
|
|
303
|
-
updatedOn: '2023-01-17T22:40:07.539Z',
|
|
304
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
305
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
306
|
-
createdOn: '2023-01-17T22:40:07.539Z',
|
|
307
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
308
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
309
|
-
},
|
|
310
|
-
deletes: 1,
|
|
311
|
-
versionComments: '',
|
|
312
|
-
unchanged: 8,
|
|
313
|
-
updatedOn: '2023-01-17T22:40:07.288Z',
|
|
314
|
-
versionName: 'remove only option on family but leave family in plan',
|
|
315
|
-
updates: 0,
|
|
316
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
317
|
-
createdOn: '2023-01-17T22:40:07.288Z',
|
|
318
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
319
|
-
familyItemsRemoved: 0,
|
|
320
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
321
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
322
|
-
id: 'V0iQE449Ckw1UB7a',
|
|
323
|
-
errors: 0,
|
|
324
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
325
|
-
adds: 1
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
summary: {
|
|
329
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
330
|
-
count: 9,
|
|
331
|
-
aggregates: {
|
|
332
|
-
totalMargin: {}
|
|
333
|
-
},
|
|
334
|
-
updatedOn: '2023-01-17T22:36:39.434Z',
|
|
335
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
336
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
337
|
-
createdOn: '2023-01-17T22:36:39.434Z',
|
|
338
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
339
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
340
|
-
},
|
|
341
|
-
deletes: 1,
|
|
342
|
-
versionComments: '',
|
|
343
|
-
unchanged: 9,
|
|
344
|
-
updatedOn: '2023-01-17T22:36:39.185Z',
|
|
345
|
-
versionName: 'drop 1 option (of 2)',
|
|
346
|
-
updates: 0,
|
|
347
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
348
|
-
createdOn: '2023-01-17T22:36:39.185Z',
|
|
349
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
350
|
-
familyItemsRemoved: 0,
|
|
351
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
352
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
353
|
-
id: '4JM83QNiIO0IBkck',
|
|
354
|
-
errors: 0,
|
|
355
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
356
|
-
adds: 0
|
|
357
|
-
},
|
|
358
|
-
{
|
|
359
|
-
summary: {
|
|
360
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
361
|
-
count: 10,
|
|
362
|
-
aggregates: {
|
|
363
|
-
totalMargin: {}
|
|
364
|
-
},
|
|
365
|
-
updatedOn: '2023-01-17T22:35:20.750Z',
|
|
366
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
367
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
368
|
-
createdOn: '2023-01-17T22:35:20.750Z',
|
|
369
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
370
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
371
|
-
},
|
|
372
|
-
deletes: 2,
|
|
373
|
-
versionComments: '',
|
|
374
|
-
unchanged: 6,
|
|
375
|
-
updatedOn: '2023-01-17T22:35:20.517Z',
|
|
376
|
-
versionName: 'adds & 2 drops',
|
|
377
|
-
updates: 0,
|
|
378
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
379
|
-
createdOn: '2023-01-17T22:35:20.517Z',
|
|
380
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
381
|
-
familyItemsRemoved: 0,
|
|
382
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
383
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
384
|
-
id: 'GiT9CZXZGVljoYMR',
|
|
385
|
-
errors: 0,
|
|
386
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
387
|
-
adds: 4
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
summary: {
|
|
391
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
392
|
-
count: 8,
|
|
393
|
-
aggregates: {
|
|
394
|
-
totalMargin: {}
|
|
395
|
-
},
|
|
396
|
-
updatedOn: '2023-01-16T21:50:43.045Z',
|
|
397
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
398
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
399
|
-
createdOn: '2023-01-16T21:50:43.045Z',
|
|
400
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
401
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
402
|
-
},
|
|
403
|
-
deletes: 0,
|
|
404
|
-
versionComments: '',
|
|
405
|
-
unchanged: 6,
|
|
406
|
-
updatedOn: '2023-01-16T21:50:42.742Z',
|
|
407
|
-
versionName: 'Add 2 Familys/Options',
|
|
408
|
-
updates: 0,
|
|
409
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
410
|
-
createdOn: '2023-01-16T21:50:42.742Z',
|
|
411
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
412
|
-
familyItemsRemoved: 0,
|
|
413
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
414
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
415
|
-
id: '_mj--7nlyp7mmDrK',
|
|
416
|
-
errors: 0,
|
|
417
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
418
|
-
adds: 2
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
summary: {
|
|
422
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
423
|
-
count: 6,
|
|
424
|
-
aggregates: {
|
|
425
|
-
totalMargin: {}
|
|
426
|
-
},
|
|
427
|
-
updatedOn: '2023-01-16T19:25:53.351Z',
|
|
428
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
429
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
430
|
-
createdOn: '2023-01-16T19:25:53.351Z',
|
|
431
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
432
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
433
|
-
},
|
|
434
|
-
deletes: 0,
|
|
435
|
-
versionComments: '',
|
|
436
|
-
unchanged: 4,
|
|
437
|
-
updatedOn: '2023-01-16T19:25:53.036Z',
|
|
438
|
-
versionName: 'add 1 family/option',
|
|
439
|
-
updates: 0,
|
|
440
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
441
|
-
createdOn: '2023-01-16T19:25:53.036Z',
|
|
442
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
443
|
-
familyItemsRemoved: 0,
|
|
444
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
445
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
446
|
-
id: '1MEzdQKVTjVtES8u',
|
|
447
|
-
errors: 0,
|
|
448
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
449
|
-
adds: 2
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
summary: {
|
|
453
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
454
|
-
count: 4,
|
|
455
|
-
aggregates: {
|
|
456
|
-
totalMargin: {}
|
|
457
|
-
},
|
|
458
|
-
updatedOn: '2023-01-16T19:16:06.502Z',
|
|
459
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
460
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
461
|
-
createdOn: '2023-01-16T19:16:06.502Z',
|
|
462
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
463
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
464
|
-
},
|
|
465
|
-
deletes: 0,
|
|
466
|
-
versionComments: '',
|
|
467
|
-
unchanged: 2,
|
|
468
|
-
updatedOn: '2023-01-16T19:16:06.233Z',
|
|
469
|
-
versionName: 'add 1 family/option & 1 family',
|
|
470
|
-
updates: 0,
|
|
471
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
472
|
-
createdOn: '2023-01-16T19:16:06.233Z',
|
|
473
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
474
|
-
familyItemsRemoved: 0,
|
|
475
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
476
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
477
|
-
id: 'LS2rVixKh2ojv56w',
|
|
478
|
-
errors: 0,
|
|
479
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
480
|
-
adds: 2
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
summary: {
|
|
484
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
485
|
-
count: 2,
|
|
486
|
-
aggregates: {
|
|
487
|
-
totalMargin: {}
|
|
488
|
-
},
|
|
489
|
-
updatedOn: '2023-01-16T19:13:59.080Z',
|
|
490
|
-
id: 'oqIFX3ELRy8sFRd0',
|
|
491
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
492
|
-
createdOn: '2023-01-16T19:13:59.080Z',
|
|
493
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
494
|
-
orgId: 'cMkHW5GAD8ViOZj-'
|
|
495
|
-
},
|
|
496
|
-
deletes: 0,
|
|
497
|
-
versionComments: '',
|
|
498
|
-
unchanged: 0,
|
|
499
|
-
updatedOn: '2023-01-15T19:13:58.902Z',
|
|
500
|
-
versionName: 'Add family/option & just family',
|
|
501
|
-
updates: 0,
|
|
502
|
-
updatedById: 'Eey3ZOi8znUA85i7',
|
|
503
|
-
createdOn: '2023-01-15T19:13:58.902Z',
|
|
504
|
-
orgId: 'cMkHW5GAD8ViOZj-',
|
|
505
|
-
familyItemsRemoved: 0,
|
|
506
|
-
createdBy: 'Eey3ZOi8znUA85i7',
|
|
507
|
-
assortmentId: 'oqIFX3ELRy8sFRd0',
|
|
508
|
-
id: 'v9BKkHo-tpL0wUZN',
|
|
509
|
-
errors: 0,
|
|
510
|
-
createdById: 'Eey3ZOi8znUA85i7',
|
|
511
|
-
adds: 2
|
|
512
|
-
}
|
|
513
|
-
];
|
|
514
|
-
|
|
515
258
|
export const plan1_across_month_DST =
|
|
516
259
|
[
|
|
517
260
|
{
|
|
@@ -2,6 +2,8 @@ export enum EventShortMessageStatus {
|
|
|
2
2
|
SUCCESS = 'Success',
|
|
3
3
|
FAILURE = 'Failure',
|
|
4
4
|
CREATED = 'Created',
|
|
5
|
+
ITEM_FAMILY_ID_MISSING = "Item_family_id_missing",
|
|
6
|
+
PROJECT_ITEM_NOT_FOUND = "Project_item_not_found",
|
|
5
7
|
MISSING_IDENTIFIER_PROPERTIES = 'Missing_identifier_properties',
|
|
6
8
|
MISSING_INPUT = 'Missing_input',
|
|
7
9
|
NOT_CREATABLE = 'Not_creatable',
|