@silexpert/core 0.4.7-0 → 0.4.7

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.
@@ -7,14 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
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
- import { ApiPropertyOptional, Type } from '../../../../utils';
10
+ import { ApiPropertyOptional } from '../../../../utils';
11
11
  export class FormEntry {
12
12
  }
13
13
  export class UpdateAccountingTransaction {
14
14
  }
15
15
  __decorate([
16
16
  ApiPropertyOptional(),
17
- Type(() => FormEntry),
18
17
  __metadata("design:type", Array)
19
18
  ], UpdateAccountingTransaction.prototype, "entries", void 0);
20
19
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAI9D,MAAM,OAAO,SAAS;CAYrB;AAKD,MAAM,OAAO,2BAA2B;CAQvC;AALC;IAFC,mBAAmB,EAAE;IACrB,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;;4DACA;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;6DACC","sourcesContent":["import { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional, Type } from '../../../../utils';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n exported?: Date | null;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}"]}
1
+ {"version":3,"file":"AnnotateAccountingTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAIxD,MAAM,OAAO,SAAS;CAYrB;AAKD,MAAM,OAAO,2BAA2B;CAQvC;AALC;IAFC,mBAAmB,EAAE;;4DAEA;AAEtB;IADC,mBAAmB,EAAE;;4DACL;AAEjB;IADC,mBAAmB,EAAE;;6DACC","sourcesContent":["import { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n exported?: Date | null;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}\n"]}
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
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
- import { ApiProperty, ApiPropertyOptional, Type } from '../../../../utils';
10
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
11
11
  export class QueryTransaction {
12
12
  }
13
13
  __decorate([
@@ -20,7 +20,6 @@ __decorate([
20
20
  ], QueryTransaction.prototype, "limit", void 0);
21
21
  __decorate([
22
22
  ApiProperty(),
23
- Type(() => Number),
24
23
  __metadata("design:type", Array)
25
24
  ], QueryTransaction.prototype, "idAccountingJournal", void 0);
26
25
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"QueryTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE3E,MAAM,OAAO,gBAAgB;CA0C5B;AAtCC;IADC,WAAW,EAAE;;8CACD;AAGb;IADC,WAAW,EAAE;;+CACA;AAId;IAFC,WAAW,EAAE;IACb,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6DACW;AAG9B;IADC,mBAAmB,EAAE;;uDACG;AAGzB;IADC,mBAAmB,EAAE;;uDACC;AAGvB;IADC,mBAAmB,EAAE;;iDACL;AAGjB;IADC,mBAAmB,EAAE;;gDACN;AAGhB;IADC,mBAAmB,EAAE;;oDACD;AAGrB;IADC,mBAAmB,EAAE;;oDACD;AAGrB;IADC,mBAAmB,EAAE;;mDACH;AAGnB;IADC,mBAAmB,EAAE;;iDACL;AAGjB;IADC,mBAAmB,EAAE;;wDACG;AAGzB;IADC,mBAAmB,EAAE;;0DACK","sourcesContent":["import { ApiProperty, ApiPropertyOptional, Type } from '../../../../utils';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n}\n"]}
1
+ {"version":3,"file":"QueryTransaction.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAErE,MAAM,OAAO,gBAAgB;CA0C5B;AAtCC;IADC,WAAW,EAAE;;8CACD;AAGb;IADC,WAAW,EAAE;;+CACA;AAId;IAFC,WAAW,EAAE;;6DAEgB;AAG9B;IADC,mBAAmB,EAAE;;uDACG;AAGzB;IADC,mBAAmB,EAAE;;uDACC;AAGvB;IADC,mBAAmB,EAAE;;iDACL;AAGjB;IADC,mBAAmB,EAAE;;gDACN;AAGhB;IADC,mBAAmB,EAAE;;oDACD;AAGrB;IADC,mBAAmB,EAAE;;oDACD;AAGrB;IADC,mBAAmB,EAAE;;mDACH;AAGnB;IADC,mBAAmB,EAAE;;iDACL;AAGjB;IADC,mBAAmB,EAAE;;wDACG;AAGzB;IADC,mBAAmB,EAAE;;0DACK","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n}\n"]}
@@ -1,10 +1,8 @@
1
1
  export declare const ApiPropertyOptional: any;
2
2
  export declare const ApiProperty: any;
3
- export declare const Type: any;
4
3
  declare const _default: {
5
4
  ApiPropertyOptional: any;
6
5
  ApiProperty: any;
7
- Type: any;
8
6
  };
9
7
  export default _default;
10
8
  //# sourceMappingURL=decorators.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,mBAAmB,KAA4D,CAAC;AAC7F,eAAO,MAAM,WAAW,KAAoD,CAAC;AAC7E,eAAO,MAAM,IAAI,KAAuD,CAAC;;;;;;AAEzE,wBAA0D"}
1
+ {"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,mBAAmB,KAA4D,CAAC;AAC7F,eAAO,MAAM,WAAW,KAAoD,CAAC;;;;;AAG7E,wBAAoD"}
@@ -21,6 +21,6 @@ const retrieveDecorator = (library, name) => {
21
21
  };
22
22
  export const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');
23
23
  export const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');
24
- export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
25
- export default { ApiPropertyOptional, ApiProperty, Type };
24
+ // export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
25
+ export default { ApiPropertyOptional, ApiProperty };
26
26
  //# sourceMappingURL=decorators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,IAAK,OAGJ;AAHD,WAAK,OAAO;IACV,4DAAiD,CAAA;IACjD,4EAAiE,CAAA;AACnE,CAAC,EAHI,OAAO,KAAP,OAAO,QAGX;AAED,0CAA0C;AAC1C,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAE,IAAoD,EAAE,EAAE;IACnG,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,GAAE,CAAC,CAAC;KACzC;IACD,IAAI;QACF,0CAA0C;QAC1C,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,oEAAoE;QACpE,OAAO,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KAC5D;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,GAAE,CAAC,CAAC;KACzC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;AAEzE,eAAe,EAAE,mBAAmB,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC","sourcesContent":["import { isNode } from 'browser-or-node';\n\nenum Library {\n SWAGGER = 'node_modules/@nestjs/swagger/index.js',\n CLASS_TRANSFORMER = 'node_modules/class-transformer/cjs/index.js',\n}\n\n// eslint-disable-next-line global-require\nconst retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiProperty' | 'Type') => {\n if (!isNode) {\n return (target: any, key: string) => {};\n }\n try {\n // eslint-disable-next-line global-require\n const path = require('path');\n // eslint-disable-next-line global-require,import/no-dynamic-require\n return require(path.resolve(process.cwd(), library))[name];\n } catch (e) {\n return (target: any, key: string) => {};\n }\n};\nexport const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');\nexport const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');\nexport const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');\n\nexport default { ApiPropertyOptional, ApiProperty, Type };\n"]}
1
+ {"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,IAAK,OAGJ;AAHD,WAAK,OAAO;IACV,4DAAiD,CAAA;IACjD,4EAAiE,CAAA;AACnE,CAAC,EAHI,OAAO,KAAP,OAAO,QAGX;AAED,0CAA0C;AAC1C,MAAM,iBAAiB,GAAG,CAAC,OAAgB,EAAE,IAAoD,EAAE,EAAE;IACnG,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,GAAE,CAAC,CAAC;KACzC;IACD,IAAI;QACF,0CAA0C;QAC1C,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,oEAAoE;QACpE,OAAO,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KAC5D;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,MAAW,EAAE,GAAW,EAAE,EAAE,GAAE,CAAC,CAAC;KACzC;AACH,CAAC,CAAC;AACF,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC7E,4EAA4E;AAE5E,eAAe,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAC","sourcesContent":["import { isNode } from 'browser-or-node';\n\nenum Library {\n SWAGGER = 'node_modules/@nestjs/swagger/index.js',\n CLASS_TRANSFORMER = 'node_modules/class-transformer/cjs/index.js',\n}\n\n// eslint-disable-next-line global-require\nconst retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiProperty' | 'Type') => {\n if (!isNode) {\n return (target: any, key: string) => {};\n }\n try {\n // eslint-disable-next-line global-require\n const path = require('path');\n // eslint-disable-next-line global-require,import/no-dynamic-require\n return require(path.resolve(process.cwd(), library))[name];\n } catch (e) {\n return (target: any, key: string) => {};\n }\n};\nexport const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');\nexport const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');\n// export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');\n\nexport default { ApiPropertyOptional, ApiProperty };\n"]}
@@ -27,7 +27,7 @@ class UpdateAccountingTransaction {}
27
27
 
28
28
  exports.UpdateAccountingTransaction = UpdateAccountingTransaction;
29
29
 
30
- __decorate([(0, _utils.ApiPropertyOptional)(), (0, _utils.Type)(() => FormEntry), __metadata("design:type", Array)], UpdateAccountingTransaction.prototype, "entries", void 0);
30
+ __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Array)], UpdateAccountingTransaction.prototype, "entries", void 0);
31
31
 
32
32
  __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", String)], UpdateAccountingTransaction.prototype, "comment", void 0);
33
33
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;AACA;;;;;;;;;;;;;;AAIM,MAAO,SAAP,CAAgB;;QAAT,S,GAAA,S;;AAiBP,MAAO,2BAAP,CAAkC;;QAA3B,2B,GAAA,2B;;AAGX,UAAA,CAAA,CAFC,iCAED,EADC,iBAAK,MAAM,SAAX,CACD,E,gCAAA,CAAA,E,qCAAA,E,SAAA,E,KAAsB,CAAtB,CAAA;;AAEA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,qCAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAEA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,qCAAA,E,UAAA,E,KAAuB,CAAvB,CAAA","sourcesContent":["import { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional, Type } from '../../../../utils';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n exported?: Date | null;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}"],"sourceRoot":"","file":"AnnotateAccountingTransaction.js"}
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/accountingEntry/AnnotateAccountingTransaction.ts"],"names":[],"mappings":";;;;;;;AACA;;;;;;;;;;;;;;AAIM,MAAO,SAAP,CAAgB;;QAAT,S,GAAA,S;;AAiBP,MAAO,2BAAP,CAAkC;;QAA3B,2B,GAAA,2B;;AAGX,UAAA,CAAA,CAFC,iCAED,E,gCAAA,CAAA,E,qCAAA,E,SAAA,E,KAAsB,CAAtB,CAAA;;AAEA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,qCAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAEA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,qCAAA,E,UAAA,E,KAAuB,CAAvB,CAAA","sourcesContent":["import { IAccountingTransaction, IImmobilization } from '../../..';\nimport { ApiPropertyOptional } from '../../../../utils';\n\nexport type FormImmobilization = IImmobilization;\n\nexport class FormEntry {\n vat? : number | {\n idVat: number;\n amount: number;\n }[];\n idAccount?: number;\n idThirdParty?: number;\n amountAllTaxIncludedPurchase?: number;\n designation?: string;\n amountAllTaxIncluded?: number;\n immobilization?: FormImmobilization; // pour la création d'une immo\n idImmobilization?: number; //\n}\n\n// Permet d'annoté une transaction bancaire Split, Marge, Intracom, Immo etc...\nexport type AnnotateAccountingTransaction = FormEntry[];\n\nexport class UpdateAccountingTransaction {\n @ApiPropertyOptional()\n // @Type(() => FormEntry)\n entries?: FormEntry[];\n @ApiPropertyOptional()\n comment?: string;\n @ApiPropertyOptional()\n exported?: Date | null;\n}\n\n// Permet d'afficher une transaction bancaire avec les informations de base ainsi que les informations d'annotations\nexport interface ReadFormattedAccountingTransaction extends IAccountingTransaction {\n amount: number;\n comment: string | null;\n designation: string | null;\n debit: number;\n credit: number;\n autoAnnotateWithML: boolean;\n entries?: AnnotateAccountingTransaction;\n}\n"],"sourceRoot":"","file":"AnnotateAccountingTransaction.js"}
@@ -27,7 +27,7 @@ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], Query
27
27
 
28
28
  __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Number)], QueryTransaction.prototype, "limit", void 0);
29
29
 
30
- __decorate([(0, _utils.ApiProperty)(), (0, _utils.Type)(() => Number), __metadata("design:type", Array)], QueryTransaction.prototype, "idAccountingJournal", void 0);
30
+ __decorate([(0, _utils.ApiProperty)(), __metadata("design:type", Array)], QueryTransaction.prototype, "idAccountingJournal", void 0);
31
31
 
32
32
  __decorate([(0, _utils.ApiPropertyOptional)(), __metadata("design:type", Array)], QueryTransaction.prototype, "idBankAccount", void 0);
33
33
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,gBAAP,CAAuB;;QAAhB,gB,GAAA,gB;;AAIX,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,0BAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,0BAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAIA,UAAA,CAAA,CAFC,yBAED,EADC,iBAAK,MAAM,MAAX,CACD,E,gCAAA,CAAA,E,0BAAA,E,qBAAA,E,KAA8B,CAA9B,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,gCAAA,CAAA,E,0BAAA,E,eAAA,E,KAAyB,CAAzB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,eAAA,E,KAAuB,CAAvB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,QAAA,E,KAAgB,CAAhB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,YAAA,E,KAAqB,CAArB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,YAAA,E,KAAqB,CAArB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,WAAA,E,KAAmB,CAAnB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,gBAAA,E,KAAyB,CAAzB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,kBAAA,E,KAA2B,CAA3B,CAAA","sourcesContent":["import { ApiProperty, ApiPropertyOptional, Type } from '../../../../utils';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n}\n"],"sourceRoot":"","file":"QueryTransaction.js"}
1
+ {"version":3,"sources":["../../../../../ts/types/Interface/api/accountingTransaction/QueryTransaction.ts"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;;;;;;;;AAEM,MAAO,gBAAP,CAAuB;;QAAhB,gB,GAAA,gB;;AAIX,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,0BAAA,E,MAAA,E,KAAa,CAAb,CAAA;;AAGA,UAAA,CAAA,CADC,yBACD,E,iCAAA,CAAA,E,0BAAA,E,OAAA,E,KAAc,CAAd,CAAA;;AAIA,UAAA,CAAA,CAFC,yBAED,E,gCAAA,CAAA,E,0BAAA,E,qBAAA,E,KAA8B,CAA9B,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,gCAAA,CAAA,E,0BAAA,E,eAAA,E,KAAyB,CAAzB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,eAAA,E,KAAuB,CAAvB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,QAAA,E,KAAgB,CAAhB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,YAAA,E,KAAqB,CAArB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,YAAA,E,KAAqB,CAArB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,WAAA,E,KAAmB,CAAnB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,iCAAA,CAAA,E,0BAAA,E,SAAA,E,KAAiB,CAAjB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,gBAAA,E,KAAyB,CAAzB,CAAA;;AAGA,UAAA,CAAA,CADC,iCACD,E,kCAAA,CAAA,E,0BAAA,E,kBAAA,E,KAA2B,CAA3B,CAAA","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '../../../../utils';\n\nexport class QueryTransaction {\n id: number;\n\n @ApiProperty()\n page: number;\n\n @ApiProperty()\n limit: number;\n\n @ApiProperty()\n // @Type(() => Number)\n idAccountingJournal: number[];\n\n @ApiPropertyOptional()\n idBankAccount?: number[];\n\n @ApiPropertyOptional()\n idAccountType?: number;\n\n @ApiPropertyOptional()\n orderBy?: string;\n\n @ApiPropertyOptional()\n search?: string;\n\n @ApiPropertyOptional()\n descending?: boolean;\n\n @ApiPropertyOptional()\n toAnnotate?: boolean;\n\n @ApiPropertyOptional()\n startDate?: string;\n\n @ApiPropertyOptional()\n endDate?: string;\n\n @ApiPropertyOptional()\n withoutReceipt?: boolean;\n\n @ApiPropertyOptional()\n invoiceRequested?: boolean;\n}\n"],"sourceRoot":"","file":"QueryTransaction.js"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.Type = exports.ApiProperty = exports.ApiPropertyOptional = undefined;
6
+ exports.ApiProperty = exports.ApiPropertyOptional = undefined;
7
7
 
8
8
  var _browserOrNode = require("browser-or-node");
9
9
 
@@ -32,11 +32,10 @@ const retrieveDecorator = (library, name) => {
32
32
  };
33
33
 
34
34
  const ApiPropertyOptional = exports.ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');
35
- const ApiProperty = exports.ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');
36
- const Type = exports.Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
35
+ const ApiProperty = exports.ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty'); // export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
36
+
37
37
  exports.default = {
38
38
  ApiPropertyOptional,
39
- ApiProperty,
40
- Type
39
+ ApiProperty
41
40
  };
42
41
  //# sourceMappingURL=decorators.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAEA,IAAK,OAAL;;AAAA,CAAA,UAAK,OAAL,EAAY;AACV,EAAA,OAAA,CAAA,SAAA,CAAA,GAAA,uCAAA;AACA,EAAA,OAAA,CAAA,mBAAA,CAAA,GAAA,6CAAA;AACD,CAHD,EAAK,OAAO,KAAP,OAAO,GAAA,EAAA,CAAZ,E,CAKA;;;AACA,MAAM,iBAAiB,GAAG,CAAC,OAAD,EAAmB,IAAnB,KAA2E;AACnG,MAAI,CAAC,qBAAL,EAAa;AACX,WAAO,CAAC,MAAD,EAAc,GAAd,KAA6B,CAAG,CAAvC;AACD;;AACD,MAAI;AACF;AACA,UAAM,IAAI,GAAG,OAAO,CAAC,MAAD,CAApB,CAFE,CAGF;;;AACA,WAAO,OAAO,CAAC,IAAI,CAAC,OAAL,CAAa,OAAO,CAAC,GAAR,EAAb,EAA4B,OAA5B,CAAD,CAAP,CAA8C,IAA9C,CAAP;AACD,GALD,CAKE,OAAO,CAAP,EAAU;AACV,WAAO,CAAC,MAAD,EAAc,GAAd,KAA6B,CAAG,CAAvC;AACD;AACF,CAZD;;AAaO,MAAM,mBAAmB,WAAnB,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAT,EAAkB,qBAAlB,CAA7C;AACA,MAAM,WAAW,WAAX,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAT,EAAkB,aAAlB,CAArC;AACA,MAAM,IAAI,WAAJ,IAAI,GAAG,iBAAiB,CAAC,OAAO,CAAC,iBAAT,EAA4B,MAA5B,CAA9B;kBAEQ;AAAE,EAAA,mBAAF;AAAuB,EAAA,WAAvB;AAAoC,EAAA;AAApC,C","sourcesContent":["import { isNode } from 'browser-or-node';\n\nenum Library {\n SWAGGER = 'node_modules/@nestjs/swagger/index.js',\n CLASS_TRANSFORMER = 'node_modules/class-transformer/cjs/index.js',\n}\n\n// eslint-disable-next-line global-require\nconst retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiProperty' | 'Type') => {\n if (!isNode) {\n return (target: any, key: string) => {};\n }\n try {\n // eslint-disable-next-line global-require\n const path = require('path');\n // eslint-disable-next-line global-require,import/no-dynamic-require\n return require(path.resolve(process.cwd(), library))[name];\n } catch (e) {\n return (target: any, key: string) => {};\n }\n};\nexport const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');\nexport const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');\nexport const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');\n\nexport default { ApiPropertyOptional, ApiProperty, Type };\n"],"sourceRoot":"","file":"decorators.js"}
1
+ {"version":3,"sources":["../../ts/utils/decorators.ts"],"names":[],"mappings":";;;;;;;AAAA;;AAEA,IAAK,OAAL;;AAAA,CAAA,UAAK,OAAL,EAAY;AACV,EAAA,OAAA,CAAA,SAAA,CAAA,GAAA,uCAAA;AACA,EAAA,OAAA,CAAA,mBAAA,CAAA,GAAA,6CAAA;AACD,CAHD,EAAK,OAAO,KAAP,OAAO,GAAA,EAAA,CAAZ,E,CAKA;;;AACA,MAAM,iBAAiB,GAAG,CAAC,OAAD,EAAmB,IAAnB,KAA2E;AACnG,MAAI,CAAC,qBAAL,EAAa;AACX,WAAO,CAAC,MAAD,EAAc,GAAd,KAA6B,CAAG,CAAvC;AACD;;AACD,MAAI;AACF;AACA,UAAM,IAAI,GAAG,OAAO,CAAC,MAAD,CAApB,CAFE,CAGF;;;AACA,WAAO,OAAO,CAAC,IAAI,CAAC,OAAL,CAAa,OAAO,CAAC,GAAR,EAAb,EAA4B,OAA5B,CAAD,CAAP,CAA8C,IAA9C,CAAP;AACD,GALD,CAKE,OAAO,CAAP,EAAU;AACV,WAAO,CAAC,MAAD,EAAc,GAAd,KAA6B,CAAG,CAAvC;AACD;AACF,CAZD;;AAaO,MAAM,mBAAmB,WAAnB,mBAAmB,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAT,EAAkB,qBAAlB,CAA7C;AACA,MAAM,WAAW,WAAX,WAAW,GAAG,iBAAiB,CAAC,OAAO,CAAC,OAAT,EAAkB,aAAlB,CAArC,C,CACP;;kBAEe;AAAE,EAAA,mBAAF;AAAuB,EAAA;AAAvB,C","sourcesContent":["import { isNode } from 'browser-or-node';\n\nenum Library {\n SWAGGER = 'node_modules/@nestjs/swagger/index.js',\n CLASS_TRANSFORMER = 'node_modules/class-transformer/cjs/index.js',\n}\n\n// eslint-disable-next-line global-require\nconst retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiProperty' | 'Type') => {\n if (!isNode) {\n return (target: any, key: string) => {};\n }\n try {\n // eslint-disable-next-line global-require\n const path = require('path');\n // eslint-disable-next-line global-require,import/no-dynamic-require\n return require(path.resolve(process.cwd(), library))[name];\n } catch (e) {\n return (target: any, key: string) => {};\n }\n};\nexport const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');\nexport const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');\n// export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');\n\nexport default { ApiPropertyOptional, ApiProperty };\n"],"sourceRoot":"","file":"decorators.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "0.4.7-0",
3
+ "version": "0.4.7",
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",
@@ -1,5 +1,5 @@
1
1
  import { IAccountingTransaction, IImmobilization } from '../../..';
2
- import { ApiPropertyOptional, Type } from '../../../../utils';
2
+ import { ApiPropertyOptional } from '../../../../utils';
3
3
 
4
4
  export type FormImmobilization = IImmobilization;
5
5
 
@@ -22,7 +22,7 @@ export type AnnotateAccountingTransaction = FormEntry[];
22
22
 
23
23
  export class UpdateAccountingTransaction {
24
24
  @ApiPropertyOptional()
25
- @Type(() => FormEntry)
25
+ // @Type(() => FormEntry)
26
26
  entries?: FormEntry[];
27
27
  @ApiPropertyOptional()
28
28
  comment?: string;
@@ -39,4 +39,4 @@ export interface ReadFormattedAccountingTransaction extends IAccountingTransacti
39
39
  credit: number;
40
40
  autoAnnotateWithML: boolean;
41
41
  entries?: AnnotateAccountingTransaction;
42
- }
42
+ }
@@ -1,4 +1,4 @@
1
- import { ApiProperty, ApiPropertyOptional, Type } from '../../../../utils';
1
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
2
2
 
3
3
  export class QueryTransaction {
4
4
  id: number;
@@ -10,7 +10,7 @@ export class QueryTransaction {
10
10
  limit: number;
11
11
 
12
12
  @ApiProperty()
13
- @Type(() => Number)
13
+ // @Type(() => Number)
14
14
  idAccountingJournal: number[];
15
15
 
16
16
  @ApiPropertyOptional()
@@ -21,6 +21,6 @@ const retrieveDecorator = (library: Library, name: 'ApiPropertyOptional' | 'ApiP
21
21
  };
22
22
  export const ApiPropertyOptional = retrieveDecorator(Library.SWAGGER, 'ApiPropertyOptional');
23
23
  export const ApiProperty = retrieveDecorator(Library.SWAGGER, 'ApiProperty');
24
- export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
24
+ // export const Type = retrieveDecorator(Library.CLASS_TRANSFORMER, 'Type');
25
25
 
26
- export default { ApiPropertyOptional, ApiProperty, Type };
26
+ export default { ApiPropertyOptional, ApiProperty };