ngx-t-workflow-typings 1.0.0 → 1.0.2

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.
@@ -12,8 +12,7 @@ export interface SimilarityResult {
12
12
  view: boolean;
13
13
  relation: 'ancestor' | 'descendant' | 'sibling' | 'similar';
14
14
  }
15
- export interface WorkFlowDocumentInterface {
16
- _id: string;
15
+ export interface leanWorkFlowDocumentInterface {
17
16
  processTree: DocumentWorkflowStep[];
18
17
  archive: boolean;
19
18
  ownerId: string;
@@ -26,8 +25,6 @@ export interface WorkFlowDocumentInterface {
26
25
  reference: string;
27
26
  departmentId: string;
28
27
  organisationId: string;
29
- createdAt: Date;
30
- updatedAt: Date;
31
28
  adj_microFlow_review?: boolean;
32
29
  microFlowSubmissions?: WorkFlowDocumentInterface[];
33
30
  currentStepID: string;
@@ -47,6 +44,11 @@ export interface WorkFlowDocumentInterface {
47
44
  busy?: boolean;
48
45
  SYSTEM_TAGS: ITransactionTag[];
49
46
  }
47
+ export interface WorkFlowDocumentInterface extends leanWorkFlowDocumentInterface {
48
+ _id: string;
49
+ createdAt: Date;
50
+ updatedAt: Date;
51
+ }
50
52
  export interface IRecentlyViewed {
51
53
  _id: string;
52
54
  reference: string;
@@ -1,2 +1,2 @@
1
- export type { RecentlyViewedParams, SimilarityResult, WorkFlowDocumentInterface, IRecentlyViewed, IRecentlyViewedCookie, } from './WorkFlowDocument.interface';
1
+ export type { RecentlyViewedParams, SimilarityResult, WorkFlowDocumentInterface, IRecentlyViewed, IRecentlyViewedCookie, leanWorkFlowDocumentInterface } from './WorkFlowDocument.interface';
2
2
  export { RecentlyViewedStatus } from './WorkFlowDocument.interface';
@@ -4,12 +4,15 @@ export interface WorkflowModel {
4
4
  processTree: ProcessStep[];
5
5
  departmentId: string;
6
6
  superAdmin: string;
7
- _id: string;
8
- createdAt: Date;
9
- updatedAt: Date;
10
7
  name: string;
11
8
  isDocument: boolean;
12
9
  documentConfig?: DocumentSectionConfigurationsInterface;
13
10
  checkInAndOutWorkflow?: boolean;
14
11
  checkInAndOutWorkflowId?: string;
15
12
  }
13
+ export interface DbWorkflowModel extends WorkflowModel {
14
+ __v: number;
15
+ _id: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ }
@@ -1,3 +1,3 @@
1
- export type { WorkflowModel } from './WorkflowModel.interface';
1
+ export type { WorkflowModel, DbWorkflowModel } from './WorkflowModel.interface';
2
2
  export type { WorkflowNodeData, WorkflowConnection, Workflow, } from './WorkflowNodeData.interface';
3
3
  export type { WorkflowPointingRuleInterface } from './WorkflowPointingRule.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-t-workflow-typings",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Typings and interfaces for the ngx-t-workflows library.",
5
5
  "keywords": [
6
6
  "typings",
@@ -22,7 +22,7 @@
22
22
  "test": "echo \"Error: no test specified\" && exit 1"
23
23
  },
24
24
  "peerDependencies": {
25
- "ngx-t-forms-types": "^0.0.16",
25
+ "ngx-t-forms-types": "^0.0.19",
26
26
  "rxjs": "^7.8.2"
27
27
  },
28
28
  "dependencies": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/joi": "^17.2.2",
33
- "ngx-t-forms-types": "^0.0.16",
33
+ "ngx-t-forms-types": "^0.0.19",
34
34
  "rimraf": "^6.1.3",
35
35
  "typescript": "^5.9.3"
36
36
  }