@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.
- package/lib/entity-processor/base-entity-processor.spec.js +1 -1
- package/lib/util/event-short-message-status.d.ts +2 -0
- package/lib/util/event-short-message-status.js +2 -0
- package/package.json +1 -1
- package/src/entity-processor/base-entity-processor.spec.ts +1 -1
- package/src/util/event-short-message-status.ts +2 -0
|
@@ -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
|
|
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
|
@@ -160,7 +160,7 @@ describe('BaseEntityProcessor', () =>{
|
|
|
160
160
|
expect(getUpdatesForEntitySpy).toBeCalledTimes(1);
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
it('should
|
|
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',
|