@rosoftlab/statemachine 1.0.4-alpha-12 → 1.0.21-alpha-1

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.
@@ -53,10 +53,10 @@ class SmActionService extends BaseService {
53
53
  const url = `${this.datastore.buildUrl(SmAction)}/executeaction`;
54
54
  return this.postCustom({ objectId, objectType, actionId, logMessage }, null, null, url);
55
55
  }
56
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: SmActionService, deps: [{ token: i1.DatastoreCore }], target: i0.ɵɵFactoryTarget.Injectable }); }
57
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: SmActionService, providedIn: 'root' }); }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SmActionService, deps: [{ token: i1.DatastoreCore }], target: i0.ɵɵFactoryTarget.Injectable }); }
57
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SmActionService, providedIn: 'root' }); }
58
58
  }
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: SmActionService, decorators: [{
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SmActionService, decorators: [{
60
60
  type: Injectable,
61
61
  args: [{
62
62
  providedIn: 'root'
@@ -68,10 +68,10 @@ class StateService extends BaseService {
68
68
  super(datastore);
69
69
  this.setModelType(State);
70
70
  }
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: StateService, deps: [{ token: i1.DatastoreCore }], target: i0.ɵɵFactoryTarget.Injectable }); }
72
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: StateService, providedIn: 'root' }); }
71
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: StateService, deps: [{ token: i1.DatastoreCore }], target: i0.ɵɵFactoryTarget.Injectable }); }
72
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: StateService, providedIn: 'root' }); }
73
73
  }
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.8", ngImport: i0, type: StateService, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: StateService, decorators: [{
75
75
  type: Injectable,
76
76
  args: [{
77
77
  providedIn: 'root'
@@ -1 +1 @@
1
- {"version":3,"file":"rosoftlab-statemachine.mjs","sources":["../../../../projects/rosoftlab/statemachine/src/lib/models/sm-action.ts","../../../../projects/rosoftlab/statemachine/src/lib/models/state.ts","../../../../projects/rosoftlab/statemachine/src/lib/services/sm-action.service.ts","../../../../projects/rosoftlab/statemachine/src/lib/services/state.service.ts","../../../../projects/rosoftlab/statemachine/src/public-api.ts","../../../../projects/rosoftlab/statemachine/src/rosoftlab-statemachine.ts"],"sourcesContent":["\r\nimport { BaseModel, BaseModelConfig } from \"@rosoftlab/core\";\r\n\r\n@BaseModelConfig({\r\n type: 'statemachine',\r\n})\r\nexport class SmAction extends BaseModel {\r\n public actionID: number\r\n public buttonName: string\r\n public buttonTranslationKey: string\r\n public isAutomatedTransition: boolean\r\n public props?: string\r\n}\r\n","import { Attribute, BaseModel, BaseModelConfig } from \"@rosoftlab/core\";\r\n@BaseModelConfig({\r\n type: 'state',\r\n})\r\nexport class State extends BaseModel {\r\n @Attribute({ serializedName: 'id' })\r\n\r\n override id: number | undefined;\r\n\r\n @Attribute({ serializedName: 'stateMachineId' })\r\n stateMachineId!: number;\r\n\r\n @Attribute({ serializedName: 'name' })\r\n name!: string;\r\n\r\n @Attribute({ serializedName: 'code' })\r\n code!: string;\r\n\r\n @Attribute({ serializedName: 'translationKey' })\r\n translationKey: string;\r\n\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { BaseService, DatastoreCore } from '@rosoftlab/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SmAction } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SmActionService extends BaseService<SmAction> {\r\n constructor(datastore: DatastoreCore) {\r\n super(datastore);\r\n this.setModelType(SmAction);\r\n }\r\n public getActions(objectId: string, objectType: string): Observable<SmAction[]> {\r\n const url = `${this.datastore.buildUrl(SmAction)}/actions`\r\n return this.getCustom<SmAction[]>({ objectId, objectType, bypassCache: true }, null, url);\r\n }\r\n\r\n public executeAction(objectId: string, objectType: string, actionId: number, logMessage: string): Observable<any> {\r\n const url = `${this.datastore.buildUrl(SmAction)}/executeaction`\r\n return this.postCustom({ objectId, objectType, actionId, logMessage }, null, null, url);\r\n }\r\n\r\n\r\n}","import { Injectable } from '@angular/core';\r\nimport { BaseService, DatastoreCore } from '@rosoftlab/core';\r\nimport { State } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StateService extends BaseService<State> {\r\n\r\n constructor(datastore: DatastoreCore) {\r\n super(datastore);\r\n this.setModelType(State);\r\n }\r\n}","/*\r\n * Public API Surface of ionic\r\n */\r\n\r\nexport * from './lib/models';\r\nexport * from './lib/services';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAMO,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,SAAS,CAAA;;AAA1B,QAAQ,GAAA,UAAA,CAAA;AAHpB,IAAA,eAAe,CAAC;AACf,QAAA,IAAI,EAAE,cAAc;KACrB;AACY,CAAA,EAAA,QAAQ,CAMpB;;ACRM,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS,CAAA;;AAGvB,UAAA,CAAA;A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CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,cAFX,MAAM,EAAA,CAAA,CAAA;;2FAEP,YAAY,EAAA,UAAA,EAAA,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"rosoftlab-statemachine.mjs","sources":["../../../../projects/rosoftlab/statemachine/src/lib/models/sm-action.ts","../../../../projects/rosoftlab/statemachine/src/lib/models/state.ts","../../../../projects/rosoftlab/statemachine/src/lib/services/sm-action.service.ts","../../../../projects/rosoftlab/statemachine/src/lib/services/state.service.ts","../../../../projects/rosoftlab/statemachine/src/public-api.ts","../../../../projects/rosoftlab/statemachine/src/rosoftlab-statemachine.ts"],"sourcesContent":["\r\nimport { BaseModel, BaseModelConfig } from \"@rosoftlab/core\";\r\n\r\n@BaseModelConfig({\r\n type: 'statemachine',\r\n})\r\nexport class SmAction extends BaseModel {\r\n public actionID: number\r\n public buttonName: string\r\n public buttonTranslationKey: string\r\n public isAutomatedTransition: boolean\r\n public props?: string\r\n}\r\n","import { Attribute, BaseModel, BaseModelConfig } from \"@rosoftlab/core\";\r\n@BaseModelConfig({\r\n type: 'state',\r\n})\r\nexport class State extends BaseModel {\r\n @Attribute({ serializedName: 'id' })\r\n\r\n override id: number | undefined;\r\n\r\n @Attribute({ serializedName: 'stateMachineId' })\r\n stateMachineId!: number;\r\n\r\n @Attribute({ serializedName: 'name' })\r\n name!: string;\r\n\r\n @Attribute({ serializedName: 'code' })\r\n code!: string;\r\n\r\n @Attribute({ serializedName: 'translationKey' })\r\n translationKey: string;\r\n\r\n}\r\n\r\n","import { Injectable } from '@angular/core';\r\nimport { BaseService, DatastoreCore } from '@rosoftlab/core';\r\nimport { Observable } from 'rxjs';\r\nimport { SmAction } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SmActionService extends BaseService<SmAction> {\r\n constructor(datastore: DatastoreCore) {\r\n super(datastore);\r\n this.setModelType(SmAction);\r\n }\r\n public getActions(objectId: string, objectType: string): Observable<SmAction[]> {\r\n const url = `${this.datastore.buildUrl(SmAction)}/actions`\r\n return this.getCustom<SmAction[]>({ objectId, objectType, bypassCache: true }, null, url);\r\n }\r\n\r\n public executeAction(objectId: string, objectType: string, actionId: number, logMessage: string): Observable<any> {\r\n const url = `${this.datastore.buildUrl(SmAction)}/executeaction`\r\n return this.postCustom({ objectId, objectType, actionId, logMessage }, null, null, url);\r\n }\r\n\r\n\r\n}","import { Injectable } from '@angular/core';\r\nimport { BaseService, DatastoreCore } from '@rosoftlab/core';\r\nimport { State } from '../models';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class StateService extends BaseService<State> {\r\n\r\n constructor(datastore: DatastoreCore) {\r\n super(datastore);\r\n this.setModelType(State);\r\n }\r\n}","/*\r\n * Public API Surface of ionic\r\n */\r\n\r\nexport * from './lib/models';\r\nexport * from './lib/services';\r\n\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAMO,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,SAAS,CAAA;;AAA1B,QAAQ,GAAA,UAAA,CAAA;AAHpB,IAAA,eAAe,CAAC;AACf,QAAA,IAAI,EAAE,cAAc;KACrB;AACY,CAAA,EAAA,QAAQ,CAMpB;;ACRM,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS,CAAA;;AAGvB,UAAA,CAAA;AAFR,IAAA,SAAS,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC;;AAEJ,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,IAAA,EAAA,KAAA,CAAA,CAAA;AAGhC,UAAA,CAAA;AADC,IAAA,SAAS,CAAC,EAAE,cAAc,EAA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A,CAAA;kBAHxB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACND;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@rosoftlab/statemachine",
3
- "version": "1.0.4-alpha-12",
3
+ "version": "1.0.21-alpha-1",
4
4
  "peerDependencies": {
5
- "@angular/common": "^19.2.8",
6
- "@angular/core": "^19.2.8",
7
- "@rosoftlab/core": "1.0.4-alpha-12"
5
+ "@angular/common": "^21.0.6",
6
+ "@angular/core": "^21.0.6",
7
+ "@rosoftlab/core": "1.0.21-alpha-1"
8
8
  },
9
9
  "dependencies": {
10
10
  "tslib": "^2.6.2"
@@ -13,13 +13,13 @@
13
13
  "author": "rosoftlab",
14
14
  "license": "ISC",
15
15
  "module": "fesm2022/rosoftlab-statemachine.mjs",
16
- "typings": "index.d.ts",
16
+ "typings": "types/rosoftlab-statemachine.d.ts",
17
17
  "exports": {
18
18
  "./package.json": {
19
19
  "default": "./package.json"
20
20
  },
21
21
  ".": {
22
- "types": "./index.d.ts",
22
+ "types": "./types/rosoftlab-statemachine.d.ts",
23
23
  "default": "./fesm2022/rosoftlab-statemachine.mjs"
24
24
  }
25
25
  }
@@ -0,0 +1,35 @@
1
+ import { BaseModel, BaseService, DatastoreCore } from '@rosoftlab/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from '@angular/core';
4
+
5
+ declare class SmAction extends BaseModel {
6
+ actionID: number;
7
+ buttonName: string;
8
+ buttonTranslationKey: string;
9
+ isAutomatedTransition: boolean;
10
+ props?: string;
11
+ }
12
+
13
+ declare class State extends BaseModel {
14
+ id: number | undefined;
15
+ stateMachineId: number;
16
+ name: string;
17
+ code: string;
18
+ translationKey: string;
19
+ }
20
+
21
+ declare class SmActionService extends BaseService<SmAction> {
22
+ constructor(datastore: DatastoreCore);
23
+ getActions(objectId: string, objectType: string): Observable<SmAction[]>;
24
+ executeAction(objectId: string, objectType: string, actionId: number, logMessage: string): Observable<any>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmActionService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<SmActionService>;
27
+ }
28
+
29
+ declare class StateService extends BaseService<State> {
30
+ constructor(datastore: DatastoreCore);
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<StateService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
33
+ }
34
+
35
+ export { SmAction, SmActionService, State, StateService };
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@rosoftlab/statemachine" />
5
- export * from './public-api';
@@ -1,2 +0,0 @@
1
- export * from './sm-action';
2
- export * from './state';
@@ -1,8 +0,0 @@
1
- import { BaseModel } from "@rosoftlab/core";
2
- export declare class SmAction extends BaseModel {
3
- actionID: number;
4
- buttonName: string;
5
- buttonTranslationKey: string;
6
- isAutomatedTransition: boolean;
7
- props?: string;
8
- }
@@ -1,8 +0,0 @@
1
- import { BaseModel } from "@rosoftlab/core";
2
- export declare class State extends BaseModel {
3
- id: number | undefined;
4
- stateMachineId: number;
5
- name: string;
6
- code: string;
7
- translationKey: string;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './sm-action.service';
2
- export * from './state.service';
@@ -1,11 +0,0 @@
1
- import { BaseService, DatastoreCore } from '@rosoftlab/core';
2
- import { Observable } from 'rxjs';
3
- import { SmAction } from '../models';
4
- import * as i0 from "@angular/core";
5
- export declare class SmActionService extends BaseService<SmAction> {
6
- constructor(datastore: DatastoreCore);
7
- getActions(objectId: string, objectType: string): Observable<SmAction[]>;
8
- executeAction(objectId: string, objectType: string, actionId: number, logMessage: string): Observable<any>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SmActionService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<SmActionService>;
11
- }
@@ -1,8 +0,0 @@
1
- import { BaseService, DatastoreCore } from '@rosoftlab/core';
2
- import { State } from '../models';
3
- import * as i0 from "@angular/core";
4
- export declare class StateService extends BaseService<State> {
5
- constructor(datastore: DatastoreCore);
6
- static ɵfac: i0.ɵɵFactoryDeclaration<StateService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<StateService>;
8
- }
package/public-api.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './lib/models';
2
- export * from './lib/services';