@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.
@@ -1,5 +1,5 @@
1
1
  import { Resource } from '../Resource';
2
- import { BasePaginate, ISimulation, ISociety, QueryPaginate, ReadSimulationColors } from '../../types';
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<ReadSimulationColors[]>;
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,oBAAoB,EACpC,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,oBAAoB,EAAE,CAAC;CAG7C"}
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, ReadSimulationColors,\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<ReadSimulationColors[]> {\n return this.axios.$get('/simulation/colors');\n }\n}\n"]}
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,5 +1,6 @@
1
- export declare class ReadSimulationColors {
1
+ export declare class ReadSimulationColor {
2
2
  id: number;
3
3
  name: string;
4
+ value: string;
4
5
  }
5
6
  //# sourceMappingURL=ReadSimulationColors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReadSimulationColors.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/simulationColors/ReadSimulationColors.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;IAE/B,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;CACd"}
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 ReadSimulationColors {
11
+ export class ReadSimulationColor {
12
12
  }
13
13
  __decorate([
14
14
  ApiProperty(),
15
15
  __metadata("design:type", Number)
16
- ], ReadSimulationColors.prototype, "id", void 0);
16
+ ], ReadSimulationColor.prototype, "id", void 0);
17
17
  __decorate([
18
18
  ApiProperty(),
19
19
  __metadata("design:type", String)
20
- ], ReadSimulationColors.prototype, "name", void 0);
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,oBAAoB;CAMhC;AAJC;IADC,WAAW,EAAE;;gDACH;AAGX;IADC,WAAW,EAAE;;kDACD","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class ReadSimulationColors {\n @ApiProperty()\n id: number;\n\n @ApiProperty()\n name: string;\n}\n"]}
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, ReadSimulationColors,\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<ReadSimulationColors[]> {\n return this.axios.$get('/simulation/colors');\n }\n}\n"],"sourceRoot":"","file":"Simulation.js"}
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.ReadSimulationColors = undefined;
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 ReadSimulationColors {}
22
+ class ReadSimulationColor {}
23
23
 
24
- exports.ReadSimulationColors = ReadSimulationColors;
24
+ exports.ReadSimulationColor = ReadSimulationColor;
25
25
 
26
- __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], ReadSimulationColors.prototype, "id", void 0);
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)], ReadSimulationColors.prototype, "name", void 0);
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,oBAAP,CAA2B;;QAApB,oB,GAAA,oB;;AAEX,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,8BAAA,E,IAAA,E,KAAW,CAAX,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,8BAAA,E,MAAA,E,KAAa,CAAb,CAAA","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class ReadSimulationColors {\n @ApiProperty()\n id: number;\n\n @ApiProperty()\n name: string;\n}\n"],"sourceRoot":"","file":"ReadSimulationColors.js"}
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",
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, ReadSimulationColors,
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<ReadSimulationColors[]> {
19
+ getColors(): Promise<ReadSimulationColor[]> {
20
20
  return this.axios.$get('/simulation/colors');
21
21
  }
22
22
  }
@@ -1,9 +1,12 @@
1
1
  import { ApiProperty } from '../../../../utils';
2
2
 
3
- export class ReadSimulationColors {
3
+ export class ReadSimulationColor {
4
4
  @ApiProperty()
5
5
  id: number;
6
6
 
7
7
  @ApiProperty()
8
8
  name: string;
9
+
10
+ @ApiProperty()
11
+ value: string;
9
12
  }