@silexpert/core 0.4.281 → 0.4.282

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,7 +1,4 @@
1
1
  export declare class QueryGetPaymentExpectation {
2
2
  idPrestation: number;
3
- label: string;
4
- amount: number;
5
- idReason: number;
6
3
  }
7
4
  //# sourceMappingURL=QueryPaymentExpectation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":"AAAA,qBAAa,0BAA0B;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"QueryPaymentExpectation.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":"AAEA,qBAAa,0BAA0B;IAErC,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -1,3 +1,17 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { ApiProperty } from '../../../../utils';
1
11
  export class QueryGetPaymentExpectation {
2
12
  }
13
+ __decorate([
14
+ ApiProperty(),
15
+ __metadata("design:type", Number)
16
+ ], QueryGetPaymentExpectation.prototype, "idPrestation", void 0);
3
17
  //# sourceMappingURL=QueryPaymentExpectation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaymentExpectation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,0BAA0B;CAKtC","sourcesContent":["export class QueryGetPaymentExpectation {\n idPrestation: number;\n label: string;\n amount: number;\n idReason: number;\n}"]}
1
+ {"version":3,"file":"QueryPaymentExpectation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,0BAA0B;CAGtC;AADC;IADC,WAAW,EAAE;;gEACO","sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryGetPaymentExpectation {\n @ApiProperty()\n idPrestation: number;\n}"]}
@@ -1,6 +1,6 @@
1
1
  export declare class CreatePrestation {
2
2
  orderStatus: number;
3
3
  amountTtc: number;
4
- idOperationLegalNotice: number;
4
+ label?: string;
5
5
  }
6
6
  //# sourceMappingURL=CreatePrestation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreatePrestation.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAG3B,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAIlB,sBAAsB,EAAE,MAAM,CAAC;CAChC"}
1
+ {"version":3,"file":"CreatePrestation.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;IAG3B,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -8,7 +8,7 @@ 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 { IsNumber } from 'class-validator';
11
- import { ApiProperty } from '../../../..';
11
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
12
12
  export class CreatePrestation {
13
13
  }
14
14
  __decorate([
@@ -22,8 +22,7 @@ __decorate([
22
22
  __metadata("design:type", Number)
23
23
  ], CreatePrestation.prototype, "amountTtc", void 0);
24
24
  __decorate([
25
- ApiProperty(),
26
- IsNumber(),
27
- __metadata("design:type", Number)
28
- ], CreatePrestation.prototype, "idOperationLegalNotice", void 0);
25
+ ApiPropertyOptional(),
26
+ __metadata("design:type", String)
27
+ ], CreatePrestation.prototype, "label", void 0);
29
28
  //# sourceMappingURL=CreatePrestation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreatePrestation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,OAAO,gBAAgB;CAY5B;AATC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACS;AAIpB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACO;AAIlB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;gEACoB","sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiProperty()\n @IsNumber()\n idOperationLegalNotice: number;\n}\n"]}
1
+ {"version":3,"file":"CreatePrestation.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE/D,MAAM,OAAO,gBAAgB;CAW5B;AARC;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;qDACS;AAIpB;IAFC,WAAW,EAAE;IACb,QAAQ,EAAE;;mDACO;AAGlB;IADC,mBAAmB,EAAE;;+CACP","sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiPropertyOptional()\n label?: string;\n}\n"]}
@@ -3,8 +3,25 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.QueryGetPaymentExpectation = undefined;
7
+
8
+ var _utils = require("../../../../utils");
9
+
10
+ var __decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
11
+ var c = arguments.length,
12
+ r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
13
+ d;
14
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16
+ };
17
+
18
+ var __metadata = undefined && undefined.__metadata || function (k, v) {
19
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20
+ };
6
21
 
7
22
  class QueryGetPaymentExpectation {}
8
23
 
9
24
  exports.QueryGetPaymentExpectation = QueryGetPaymentExpectation;
25
+
26
+ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], QueryGetPaymentExpectation.prototype, "idPrestation", void 0);
10
27
  //# sourceMappingURL=QueryPaymentExpectation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryPaymentExpectation.js","mappings":";;;;;;AAAM,MAAOA,0BAAP,CAAiC;;QAA1BA,0B,GAAAA,0B","names":["QueryGetPaymentExpectation"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"sourcesContent":["export class QueryGetPaymentExpectation {\n idPrestation: number;\n label: string;\n amount: number;\n idReason: number;\n}"]}
1
+ {"version":3,"file":"QueryPaymentExpectation.js","mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAOA,0BAAP,CAAiC;;QAA1BA,0B,GAAAA,0B;;AAEXC,YADC,yBACD","names":["QueryGetPaymentExpectation","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/paymentExpectation/QueryPaymentExpectation.ts"],"sourcesContent":["import { ApiProperty } from '../../../../utils';\n\nexport class QueryGetPaymentExpectation {\n @ApiProperty()\n idPrestation: number;\n}"]}
@@ -29,5 +29,5 @@ __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsNumber)(), __metadata("d
29
29
 
30
30
  __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], CreatePrestation.prototype, "amountTtc", void 0);
31
31
 
32
- __decorate([(0, _.ApiProperty)(), (0, _classValidator.IsNumber)(), __metadata("design:type", Number)], CreatePrestation.prototype, "idOperationLegalNotice", void 0);
32
+ __decorate([(0, _.ApiPropertyOptional)(), __metadata("design:type", String)], CreatePrestation.prototype, "label", void 0);
33
33
  //# sourceMappingURL=CreatePrestation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreatePrestation.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXC,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,+BACD","names":["CreatePrestation","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiProperty()\n @IsNumber()\n idOperationLegalNotice: number;\n}\n"]}
1
+ {"version":3,"file":"CreatePrestation.js","mappings":";;;;;;;AAAA;;AACA;;;;;;;;;;;;;;AAEM,MAAOA,gBAAP,CAAuB;;QAAhBA,gB,GAAAA,gB;;AAGXC,YAFC,oBAED,EADC,+BACD;;AAIAA,YAFC,oBAED,EADC,+BACD;;AAGAA,YADC,4BACD","names":["CreatePrestation","__decorate"],"sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/CreatePrestation.ts"],"sourcesContent":["import { IsNumber } from 'class-validator';\nimport { ApiProperty, ApiPropertyOptional } from '../../../..';\n\nexport class CreatePrestation {\n @ApiProperty()\n @IsNumber()\n orderStatus: number;\n\n @ApiProperty()\n @IsNumber()\n amountTtc: number;\n\n @ApiPropertyOptional()\n label?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.281",
3
+ "version": "0.4.282",
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-api",
6
6
  "main": "js/index.js",
@@ -1,6 +1,6 @@
1
+ import { ApiProperty } from '../../../../utils';
2
+
1
3
  export class QueryGetPaymentExpectation {
4
+ @ApiProperty()
2
5
  idPrestation: number;
3
- label: string;
4
- amount: number;
5
- idReason: number;
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { IsNumber } from 'class-validator';
2
- import { ApiProperty } from '../../../..';
2
+ import { ApiProperty, ApiPropertyOptional } from '../../../..';
3
3
 
4
4
  export class CreatePrestation {
5
5
  @ApiProperty()
@@ -10,7 +10,6 @@ export class CreatePrestation {
10
10
  @IsNumber()
11
11
  amountTtc: number;
12
12
 
13
- @ApiProperty()
14
- @IsNumber()
15
- idOperationLegalNotice: number;
13
+ @ApiPropertyOptional()
14
+ label?: string;
16
15
  }