@silexpert/core 0.4.3 → 0.4.4
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/es/api/resources/Simulation.d.ts +2 -2
- package/es/api/resources/Simulation.d.ts.map +1 -1
- package/es/api/resources/Simulation.js.map +1 -1
- package/es/types/Interface/api/simulationColors/ReadSimulationColors.d.ts +2 -1
- package/es/types/Interface/api/simulationColors/ReadSimulationColors.d.ts.map +1 -1
- package/es/types/Interface/api/simulationColors/ReadSimulationColors.js +7 -3
- package/es/types/Interface/api/simulationColors/ReadSimulationColors.js.map +1 -1
- package/js/api/resources/Simulation.js.map +1 -1
- package/js/types/Interface/api/simulationColors/ReadSimulationColors.js +7 -5
- package/js/types/Interface/api/simulationColors/ReadSimulationColors.js.map +1 -1
- package/package.json +1 -1
- package/ts/api/resources/Simulation.ts +2 -2
- package/ts/types/Interface/api/simulationColors/ReadSimulationColors.ts +4 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Resource } from '../Resource';
|
|
2
|
-
import { BasePaginate, ISimulation, ISociety, QueryPaginate,
|
|
2
|
+
import { BasePaginate, ISimulation, ISociety, QueryPaginate, ReadSimulationColor } from '../../types';
|
|
3
3
|
export declare class Simulation extends Resource {
|
|
4
4
|
getBySociety(params: {
|
|
5
5
|
idSociety: number;
|
|
@@ -7,6 +7,6 @@ export declare class Simulation extends Resource {
|
|
|
7
7
|
hideSimulationBetaMessage(params: {
|
|
8
8
|
idSociety: number;
|
|
9
9
|
}): Promise<ISociety>;
|
|
10
|
-
getColors(): Promise<
|
|
10
|
+
getColors(): Promise<ReadSimulationColor[]>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=Simulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Simulation.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,WAAW,EAAE,QAAQ,EACrB,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"Simulation.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,YAAY,EACZ,WAAW,EAAE,QAAQ,EACrB,aAAa,EAAE,mBAAmB,EACnC,MAAM,aAAa,CAAC;AAErB,qBAAa,UAAW,SAAQ,QAAQ;IACtC,YAAY,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAM/F,yBAAyB,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI3E,SAAS,IAAI,OAAO,CAAC,mBAAmB,EAAE,CAAC;CAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Simulation.js","sourceRoot":"","sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,YAAY,CAAC,MAA6C;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,cAAc,EAAE;YACjE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,yBAAyB,CAAC,MAA6B;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,MAAM,CAAC,SAAS,4BAA4B,CAAC,CAAC;IACpF,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ISimulation, ISociety,\n QueryPaginate,
|
|
1
|
+
{"version":3,"file":"Simulation.js","sourceRoot":"","sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAOvC,MAAM,OAAO,UAAW,SAAQ,QAAQ;IACtC,YAAY,CAAC,MAA6C;QACxD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,SAAS,cAAc,EAAE;YACjE,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAED,yBAAyB,CAAC,MAA6B;QACrD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,MAAM,CAAC,SAAS,4BAA4B,CAAC,CAAC;IACpF,CAAC;IAED,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IAC/C,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ISimulation, ISociety,\n QueryPaginate, ReadSimulationColor,\n} from '../../types';\n\nexport class Simulation extends Resource {\n getBySociety(params: { idSociety: number } & QueryPaginate): Promise<BasePaginate<ISimulation>> {\n return this.axios.$get(`/society/${params.idSociety}/simulations`, {\n params,\n });\n }\n\n hideSimulationBetaMessage(params: { idSociety: number }): Promise<ISociety> {\n return this.axios.$post(`/society/${params.idSociety}/hideSimulationBetaMessage`);\n }\n\n getColors(): Promise<ReadSimulationColor[]> {\n return this.axios.$get('/simulation/colors');\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadSimulationColors.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":"AAEA,qBAAa,
|
|
1
|
+
{"version":3,"file":"ReadSimulationColors.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":"AAEA,qBAAa,mBAAmB;IAE9B,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -8,14 +8,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { ApiProperty } from '../../../../utils';
|
|
11
|
-
export class
|
|
11
|
+
export class ReadSimulationColor {
|
|
12
12
|
}
|
|
13
13
|
__decorate([
|
|
14
14
|
ApiProperty(),
|
|
15
15
|
__metadata("design:type", Number)
|
|
16
|
-
],
|
|
16
|
+
], ReadSimulationColor.prototype, "id", void 0);
|
|
17
17
|
__decorate([
|
|
18
18
|
ApiProperty(),
|
|
19
19
|
__metadata("design:type", String)
|
|
20
|
-
],
|
|
20
|
+
], ReadSimulationColor.prototype, "name", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
ApiProperty(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], ReadSimulationColor.prototype, "value", void 0);
|
|
21
25
|
//# sourceMappingURL=ReadSimulationColors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReadSimulationColors.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"ReadSimulationColors.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,mBAAmB;CAS/B;AAPC;IADC,WAAW,EAAE;;+CACH;AAGX;IADC,WAAW,EAAE;;iDACD;AAGb;IADC,WAAW,EAAE;;kDACA","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class ReadSimulationColor {\n @ApiProperty()\n id: number;\n\n @ApiProperty()\n name: string;\n\n @ApiProperty()\n value: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAOM,MAAO,UAAP,SAA0B,kBAA1B,CAAkC;AACtC,EAAA,YAAY,CAAC,MAAD,EAA8C;AACxD,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,YAAY,MAAM,CAAC,SAAS,cAA5C,EAA4D;AACjE,MAAA;AADiE,KAA5D,CAAP;AAGD;;AAED,EAAA,yBAAyB,CAAC,MAAD,EAA8B;AACrD,WAAO,KAAK,KAAL,CAAW,KAAX,CAAiB,YAAY,MAAM,CAAC,SAAS,4BAA7C,CAAP;AACD;;AAED,EAAA,SAAS,GAAA;AACP,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,oBAAhB,CAAP;AACD;;AAbqC;;QAA3B,U,GAAA,U","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ISimulation, ISociety,\n QueryPaginate,
|
|
1
|
+
{"version":3,"sources":["../../../ts/api/resources/Simulation.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAOM,MAAO,UAAP,SAA0B,kBAA1B,CAAkC;AACtC,EAAA,YAAY,CAAC,MAAD,EAA8C;AACxD,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,YAAY,MAAM,CAAC,SAAS,cAA5C,EAA4D;AACjE,MAAA;AADiE,KAA5D,CAAP;AAGD;;AAED,EAAA,yBAAyB,CAAC,MAAD,EAA8B;AACrD,WAAO,KAAK,KAAL,CAAW,KAAX,CAAiB,YAAY,MAAM,CAAC,SAAS,4BAA7C,CAAP;AACD;;AAED,EAAA,SAAS,GAAA;AACP,WAAO,KAAK,KAAL,CAAW,IAAX,CAAgB,oBAAhB,CAAP;AACD;;AAbqC;;QAA3B,U,GAAA,U","sourcesContent":["import { Resource } from '../Resource';\nimport {\n BasePaginate,\n ISimulation, ISociety,\n QueryPaginate, ReadSimulationColor,\n} from '../../types';\n\nexport class Simulation extends Resource {\n getBySociety(params: { idSociety: number } & QueryPaginate): Promise<BasePaginate<ISimulation>> {\n return this.axios.$get(`/society/${params.idSociety}/simulations`, {\n params,\n });\n }\n\n hideSimulationBetaMessage(params: { idSociety: number }): Promise<ISociety> {\n return this.axios.$post(`/society/${params.idSociety}/hideSimulationBetaMessage`);\n }\n\n getColors(): Promise<ReadSimulationColor[]> {\n return this.axios.$get('/simulation/colors');\n }\n}\n"],"sourceRoot":"","file":"Simulation.js"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.ReadSimulationColor = undefined;
|
|
7
7
|
|
|
8
8
|
var _utils = require("../../../../utils");
|
|
9
9
|
|
|
@@ -19,11 +19,13 @@ var __metadata = undefined && undefined.__metadata || function (k, v) {
|
|
|
19
19
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class ReadSimulationColor {}
|
|
23
23
|
|
|
24
|
-
exports.
|
|
24
|
+
exports.ReadSimulationColor = ReadSimulationColor;
|
|
25
25
|
|
|
26
|
-
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)],
|
|
26
|
+
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], ReadSimulationColor.prototype, "id", void 0);
|
|
27
27
|
|
|
28
|
-
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", String)],
|
|
28
|
+
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", String)], ReadSimulationColor.prototype, "name", void 0);
|
|
29
|
+
|
|
30
|
+
__decorate([(0, _utils.ApiProperty)(), __metadata("design:type", String)], ReadSimulationColor.prototype, "value", void 0);
|
|
29
31
|
//# sourceMappingURL=ReadSimulationColors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,
|
|
1
|
+
{"version":3,"sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,mBAAP,CAA0B;;QAAnB,mB,GAAA,mB;;AAEX,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,6BAAA,E,IAAA,E,KAAW,CAAX,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,6BAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,6BAAA,E,OAAA,E,KAAc,CAAd,CAAA","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class ReadSimulationColor {\n @ApiProperty()\n id: number;\n\n @ApiProperty()\n name: string;\n\n @ApiProperty()\n value: string;\n}\n"],"sourceRoot":"","file":"ReadSimulationColors.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexpert/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "Silex Core perform HTTP Request and object binding. Silex core helps developers to retrieve and return formatted object",
|
|
5
5
|
"homepage": "https://gitlab.compta-clementine.fr/dev/silex-core",
|
|
6
6
|
"main": "js/index.js",
|
|
@@ -2,7 +2,7 @@ import { Resource } from '../Resource';
|
|
|
2
2
|
import {
|
|
3
3
|
BasePaginate,
|
|
4
4
|
ISimulation, ISociety,
|
|
5
|
-
QueryPaginate,
|
|
5
|
+
QueryPaginate, ReadSimulationColor,
|
|
6
6
|
} from '../../types';
|
|
7
7
|
|
|
8
8
|
export class Simulation extends Resource {
|
|
@@ -16,7 +16,7 @@ export class Simulation extends Resource {
|
|
|
16
16
|
return this.axios.$post(`/society/${params.idSociety}/hideSimulationBetaMessage`);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
getColors(): Promise<
|
|
19
|
+
getColors(): Promise<ReadSimulationColor[]> {
|
|
20
20
|
return this.axios.$get('/simulation/colors');
|
|
21
21
|
}
|
|
22
22
|
}
|