@contrail/flexplm 1.1.66 → 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.
@@ -146,7 +146,7 @@ describe('BaseEntityProcessor', () => {
146
146
  expect(getTransformedDataSpy).toBeCalledWith(flexResponse.data.payload[0]);
147
147
  expect(getUpdatesForEntitySpy).toBeCalledTimes(1);
148
148
  });
149
- it('should handle when data is null or undefined', async () => {
149
+ it('should skip setting flexPLMObjectClass when data is null or undefined', async () => {
150
150
  const btep = new TestBaseEntityProcessor(config, dc, mapFileUtil, 'test');
151
151
  const event = { newData: { id: '123' } };
152
152
  const flexResponse = {
@@ -2,6 +2,8 @@ export declare 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",
@@ -6,6 +6,8 @@ var EventShortMessageStatus;
6
6
  EventShortMessageStatus["SUCCESS"] = "Success";
7
7
  EventShortMessageStatus["FAILURE"] = "Failure";
8
8
  EventShortMessageStatus["CREATED"] = "Created";
9
+ EventShortMessageStatus["ITEM_FAMILY_ID_MISSING"] = "Item_family_id_missing";
10
+ EventShortMessageStatus["PROJECT_ITEM_NOT_FOUND"] = "Project_item_not_found";
9
11
  EventShortMessageStatus["MISSING_IDENTIFIER_PROPERTIES"] = "Missing_identifier_properties";
10
12
  EventShortMessageStatus["MISSING_INPUT"] = "Missing_input";
11
13
  EventShortMessageStatus["NOT_CREATABLE"] = "Not_creatable";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/flexplm",
3
- "version": "1.1.66",
3
+ "version": "1.1.67-alpha.0",
4
4
  "description": "Library used for integration with flexplm.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -160,7 +160,7 @@ describe('BaseEntityProcessor', () =>{
160
160
  expect(getUpdatesForEntitySpy).toBeCalledTimes(1);
161
161
  });
162
162
 
163
- it('should handle when data is null or undefined', async () =>{
163
+ it('should skip setting flexPLMObjectClass when data is null or undefined', async () =>{
164
164
  const btep = new TestBaseEntityProcessor(config, dc, mapFileUtil, 'test');
165
165
  const event = { newData: { id: '123' } };
166
166
  const flexResponse = {
@@ -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',