@silexpert/core 1.1.75 → 1.1.77

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.
Files changed (70) hide show
  1. package/es/api/resources/GeneralLedger.d.ts +2 -2
  2. package/es/api/resources/GeneralLedger.d.ts.map +1 -1
  3. package/es/api/resources/GeneralLedger.js.map +1 -1
  4. package/es/api/resources/Regulate.d.ts +2 -1
  5. package/es/api/resources/Regulate.d.ts.map +1 -1
  6. package/es/api/resources/Regulate.js +3 -0
  7. package/es/api/resources/Regulate.js.map +1 -1
  8. package/es/types/Enum/FollowList.d.ts +98 -0
  9. package/es/types/Enum/FollowList.d.ts.map +1 -0
  10. package/es/types/Enum/FollowList.js +98 -0
  11. package/es/types/Enum/FollowList.js.map +1 -0
  12. package/es/types/Enum/TaskResponseType.d.ts.map +1 -1
  13. package/es/types/Enum/TaskResponseType.js +11 -0
  14. package/es/types/Enum/TaskResponseType.js.map +1 -1
  15. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts +13 -0
  16. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.d.ts.map +1 -1
  17. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +17 -1
  18. package/es/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  19. package/es/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.d.ts +9 -0
  20. package/es/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.d.ts.map +1 -0
  21. package/es/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.js +2 -0
  22. package/es/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.js.map +1 -0
  23. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts +7 -0
  24. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.d.ts.map +1 -0
  25. package/es/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +6 -6
  26. package/es/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
  27. package/es/types/Interface/api/regulate/DestroyRegulate.d.ts +5 -0
  28. package/es/types/Interface/api/regulate/DestroyRegulate.d.ts.map +1 -0
  29. package/es/types/Interface/api/regulate/DestroyRegulate.js +25 -0
  30. package/es/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
  31. package/es/types/Interface/models/IFollow.d.ts +0 -2
  32. package/es/types/Interface/models/IFollow.d.ts.map +1 -1
  33. package/es/types/Interface/models/IFollow.js.map +1 -1
  34. package/es/types/index.d.ts +4 -1
  35. package/es/types/index.d.ts.map +1 -1
  36. package/es/types/index.js +4 -1
  37. package/es/types/index.js.map +1 -1
  38. package/js/api/resources/GeneralLedger.js.map +1 -1
  39. package/js/api/resources/Regulate.js +5 -0
  40. package/js/api/resources/Regulate.js.map +1 -1
  41. package/js/types/Enum/FollowList.js +103 -0
  42. package/js/types/Enum/FollowList.js.map +1 -0
  43. package/js/types/Enum/TaskResponseType.js +10 -0
  44. package/js/types/Enum/TaskResponseType.js.map +1 -1
  45. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js +8 -1
  46. package/js/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.js.map +1 -1
  47. package/js/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.js +6 -0
  48. package/js/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.js.map +1 -0
  49. package/js/types/Interface/api/prestation/{QueryCreatePrestationSocieties.js → BodyCreatePrestationSocieties.js} +8 -8
  50. package/js/types/Interface/api/prestation/BodyCreatePrestationSocieties.js.map +1 -0
  51. package/js/types/Interface/api/regulate/DestroyRegulate.js +23 -0
  52. package/js/types/Interface/api/regulate/DestroyRegulate.js.map +1 -0
  53. package/js/types/Interface/models/IFollow.js.map +1 -1
  54. package/js/types/index.js +33 -3
  55. package/js/types/index.js.map +1 -1
  56. package/package.json +3 -3
  57. package/ts/api/resources/GeneralLedger.ts +2 -2
  58. package/ts/api/resources/Regulate.ts +4 -1
  59. package/ts/types/Enum/FollowList.ts +97 -0
  60. package/ts/types/Enum/TaskResponseType.ts +11 -0
  61. package/ts/types/Interface/api/generalLedger/IGeneralLedgerThirdParty.ts +24 -1
  62. package/ts/types/Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams.ts +10 -0
  63. package/ts/types/Interface/api/prestation/{QueryCreatePrestationSocieties.ts → BodyCreatePrestationSocieties.ts} +1 -1
  64. package/ts/types/Interface/api/regulate/DestroyRegulate.ts +15 -0
  65. package/ts/types/Interface/models/IFollow.ts +0 -5
  66. package/ts/types/index.ts +4 -1
  67. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts +0 -7
  68. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.d.ts.map +0 -1
  69. package/es/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
  70. package/js/types/Interface/api/prestation/QueryCreatePrestationSocieties.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silexpert/core",
3
- "version": "1.1.75",
3
+ "version": "1.1.77",
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",
@@ -45,8 +45,8 @@
45
45
  "@types/ejs": "^3.0.6",
46
46
  "@types/node": "^18.15.11",
47
47
  "@types/validator": "^13.11.1",
48
- "@typescript-eslint/eslint-plugin": "6.4.1",
49
- "@typescript-eslint/parser": "6.4.1",
48
+ "@typescript-eslint/eslint-plugin": "6.5.0",
49
+ "@typescript-eslint/parser": "6.5.0",
50
50
  "babel-preset-env": "^1.7.0",
51
51
  "ejs": "^3.1.9",
52
52
  "eslint": "^8.47.0",
@@ -1,5 +1,5 @@
1
1
  import {
2
- BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary,
2
+ BasePaginateInterface, IGeneralLedgerAccount, IGeneralLedgerThirdParty, QueryGeneralLedgerAuxiliary, QueryGeneralLedgerThirdParty, ReadGeneralLedgerSummary, ReadIGeneralLedgerThirdPartyPaginated,
3
3
  } from '../../types';
4
4
  import { QueryGeneralLedger } from '../../types/Interface/api/generalLedger/QueryGeneralLedger';
5
5
  import { Resource } from '../Resource';
@@ -65,7 +65,7 @@ export class GeneralLedger extends Resource {
65
65
  return this.axios.$get('/general-ledger/auxiliary/summaries', { params });
66
66
  }
67
67
 
68
- getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<IGeneralLedgerThirdParty> {
68
+ getThirdParty(id: number, params: QueryGeneralLedgerThirdParty): Promise<ReadIGeneralLedgerThirdPartyPaginated> {
69
69
  return this.axios.$get(`/general-ledger/third-parties/${id}`, { params });
70
70
  }
71
71
  }
@@ -1,9 +1,12 @@
1
1
  import { CancelToken } from 'axios';
2
- import { QueryGetAll, RegulateWithStats } from '../../types';
2
+ import { QueryGetAll, RegulateWithStats, DestroyRegulate } from '../../types';
3
3
  import { Resource } from '../Resource';
4
4
 
5
5
  export class Regulate extends Resource {
6
6
  getAllByCommercial(params: QueryGetAll, cancelToken?: CancelToken): Promise<RegulateWithStats[]> {
7
7
  return this.axios.$get('/regulates/all-by-commercial', { ...(cancelToken ? { cancelToken } : {}), params });
8
8
  }
9
+ delete(params: DestroyRegulate): Promise<number> {
10
+ return this.axios.$delete('/regulates', { params });
11
+ }
9
12
  }
@@ -0,0 +1,97 @@
1
+ export const FollowList = {
2
+ FAILED_CALL: {
3
+ id: 1,
4
+ name: 'Echec appel',
5
+ color: 'teal lighten-4',
6
+ },
7
+ NOT_SUBSCRIBED: {
8
+ id: 2,
9
+ name: 'Non souscris/abandon',
10
+ color: 'red lighten-4',
11
+ },
12
+ FAKE_CONTACT: {
13
+ id: 3,
14
+ name: 'Faux contact',
15
+ color: 'red lighten-4',
16
+ },
17
+ THROW_BACK: {
18
+ id: 4,
19
+ name: 'A relancer',
20
+ color: 'blue lighten-4',
21
+ },
22
+ PROMISE_CONTRACT: {
23
+ id: 5,
24
+ name: 'Promesse contrat',
25
+ color: 'green lighten-4',
26
+ },
27
+ NO_ANSWER: {
28
+ id: 6,
29
+ name: 'Ne répond pas/à relancer',
30
+ color: 'purple lighten-4',
31
+ },
32
+ ECDS: {
33
+ id: 7,
34
+ name: 'ECDS',
35
+ color: 'green lighten-4',
36
+ },
37
+ SUBSCRIBE: {
38
+ id: 8,
39
+ name: 'Souscris',
40
+ color: 'green lighten-4',
41
+ },
42
+ OTHER: {
43
+ id: 9,
44
+ name: 'Autre',
45
+ color: 'lime lighten-4',
46
+ },
47
+ TO_REMIND: {
48
+ id: 10,
49
+ name: 'A rappeler pour une souscription',
50
+ color: 'lightskyblue',
51
+ },
52
+ PRESTA_COMPL: {
53
+ id: 11,
54
+ name: 'Prestation Complémentaire',
55
+ color: 'white',
56
+ },
57
+ RELOAD_1: {
58
+ id: 12,
59
+ name: 'Relance 1',
60
+ color: 'pink',
61
+ },
62
+ RELOAD_2: {
63
+ id: 13,
64
+ name: 'Relance 2',
65
+ color: 'pink lighten-1',
66
+ },
67
+ RELOAD_3: {
68
+ id: 14,
69
+ name: 'Relance 3',
70
+ color: 'pink lighten-2',
71
+ },
72
+ RELOAD_4: {
73
+ id: 15,
74
+ name: 'Relance 4',
75
+ color: 'pink lighten-3',
76
+ },
77
+ RELOAD_5: {
78
+ id: 16,
79
+ name: 'Relance 5',
80
+ color: 'pink lighten-4',
81
+ },
82
+ NRP: {
83
+ id: 17,
84
+ name: 'NRP Constitution',
85
+ color: 'purple lighten-3',
86
+ },
87
+ CONSTITUTION_ANSWER: {
88
+ id: 18,
89
+ name: 'Répondu Constitution',
90
+ color: 'green lighten-3',
91
+ },
92
+ RDV_PROGRAM: {
93
+ id: 19,
94
+ name: 'RDV programmé',
95
+ color: 'orange lighten-1',
96
+ },
97
+ };
@@ -400,6 +400,17 @@ export const TaskResponseType = {
400
400
  responseType: null,
401
401
  description: 'Rendez-vous Clementine',
402
402
  },
403
+ {
404
+ id: 33,
405
+ label: 'Juridique',
406
+ role: Role.COMMERCIAL,
407
+ deadline: Deadline,
408
+ isForWholeRole: false,
409
+ backToClient: false,
410
+ goToCalendar: false,
411
+ responseType: null,
412
+ description: 'Abandon de constitution, résiliation de la mission comptable',
413
+ },
403
414
  ],
404
415
 
405
416
  },
@@ -1,6 +1,7 @@
1
- import { IsDateString, IsNumber } from 'class-validator';
1
+ import { IsDateString, IsNumber, IsOptional } from 'class-validator';
2
2
  import { ApiProperty } from '../../../../utils';
3
3
  import { IGeneralLedgerAccountingEntry } from './IGeneralLedgerAccountingEntry';
4
+ import { BasePaginate } from '../BasePaginate';
4
5
 
5
6
  export interface IGeneralLedgerThirdParty {
6
7
  idThirdParty: number;
@@ -13,6 +14,18 @@ export interface IGeneralLedgerThirdParty {
13
14
  initialBalance: number;
14
15
  }
15
16
 
17
+ export interface ReadIGeneralLedgerThirdPartyPaginated {
18
+ idThirdParty: number;
19
+ name: string;
20
+ totalCredit: number;
21
+ totalDebit: number;
22
+ totalSolde: number;
23
+ entries: BasePaginate<IGeneralLedgerAccountingEntry>;
24
+ identifier: string;
25
+ initialBalance: number;
26
+ }
27
+
28
+
16
29
  export interface ReadGeneralLedgerSummary {
17
30
  idThirdParty: number;
18
31
  name: string;
@@ -34,4 +47,14 @@ export class QueryGeneralLedgerThirdParty {
34
47
  @ApiProperty()
35
48
  @IsNumber()
36
49
  idSociety: number;
50
+
51
+ @ApiProperty()
52
+ @IsOptional()
53
+ @IsNumber()
54
+ page: number = 1;
55
+
56
+ @ApiProperty()
57
+ @IsOptional()
58
+ @IsNumber()
59
+ limit: number = 100;
37
60
  }
@@ -0,0 +1,10 @@
1
+ import { PSAddress } from './PSAddress';
2
+ import { PSCountry } from './PSCountry';
3
+ import { PSOrder } from './PSOrder';
4
+
5
+
6
+ export interface GetPrestashopDataFromJSONOutputParams {
7
+ order?: PSOrder,
8
+ address?: PSAddress,
9
+ country?: PSCountry
10
+ }
@@ -3,7 +3,7 @@ import {
3
3
  } from 'class-validator';
4
4
  import { ApiProperty } from '../../../../utils';
5
5
 
6
- export class QueryCreatePrestationSocieties {
6
+ export class BodyCreatePrestationSocieties {
7
7
  @ApiProperty({
8
8
  description: 'array of id society',
9
9
  required: true,
@@ -0,0 +1,15 @@
1
+ import {
2
+ IsInt, IsOptional,
3
+ } from 'class-validator';
4
+ import { ApiProperty, ApiPropertyOptional } from '../../../../utils';
5
+
6
+ export class DestroyRegulate {
7
+ @ApiProperty()
8
+ @IsInt()
9
+ idPrestation?: number;
10
+
11
+ @ApiPropertyOptional()
12
+ @IsOptional()
13
+ @IsInt()
14
+ id?: number;
15
+ }
@@ -1,5 +1,3 @@
1
- import { IFollowList } from './IFollowList';
2
-
3
1
  // follows
4
2
  export interface IFollow {
5
3
  id?: number;
@@ -12,7 +10,4 @@ export interface IFollow {
12
10
  idSociety: number;
13
11
  createdAt?: Date | null;
14
12
  updatedAt?: Date | null;
15
-
16
- // Associations
17
- typeFollow: IFollowList;
18
13
  }
package/ts/types/index.ts CHANGED
@@ -476,6 +476,7 @@ export * from './Enum/Compensation';
476
476
  export * from './Enum/CashDeskTransactionType';
477
477
  export * from './Enum/ThirdParty';
478
478
  export * from './Enum/PaymentExpectation';
479
+ export * from './Enum/FollowList';
479
480
 
480
481
  // Interfaces API
481
482
  export * from './Interface/api/adjustment/Query';
@@ -743,6 +744,7 @@ export * from './Interface/api/shopify/InvoicesShopify';
743
744
  export * from './Interface/api/shopify/line_item';
744
745
  export * from './Interface/api/shopify/tax_line';
745
746
  export * from './Interface/api/shopify/shipping_line';
747
+ export * from './Interface/api/prestashop/GetPrestashopDataFromJSONOutputParams';
746
748
  export * from './Interface/api/prestashop/PSOrder';
747
749
  export * from './Interface/api/prestashop/PSAddress';
748
750
  export * from './Interface/api/prestashop/PSCountry';
@@ -850,6 +852,7 @@ export * from './Interface/api/societyEvent/CreateSocietyEvent';
850
852
  export * from './Interface/api/task/QueryGetAllTask';
851
853
  export * from './Interface/api/regulate/QueryGetAll';
852
854
  export * from './Interface/api/regulate/RegulateWithStats';
855
+ export * from './Interface/api/regulate/DestroyRegulate';
853
856
  export * from './Interface/api/task/QueryPaginatedTask';
854
857
  export * from './Interface/api/task/QueryCreateTask';
855
858
  export * from './Interface/api/task/QueryGetTask';
@@ -891,7 +894,7 @@ export * from './Interface/api/societyConfig/update';
891
894
  export * from './Interface/api/wallet/UpdateAttribution';
892
895
  export * from './Interface/api/prestation/CreatePrestation';
893
896
  export * from './Interface/api/prestation/QueryPrestation';
894
- export * from './Interface/api/prestation/QueryCreatePrestationSocieties';
897
+ export * from './Interface/api/prestation/BodyCreatePrestationSocieties';
895
898
  export * from './Interface/api/prestation/QueryGetPaginatedSocietiesFromPrestation';
896
899
  export * from './Interface/api/paymentExpectation/QueryPaymentExpectation';
897
900
  export * from './Interface/api/legalNotice/UpdateLegalNotice';
@@ -1,7 +0,0 @@
1
- export declare class QueryCreatePrestationSocieties {
2
- societiesIds: number[];
3
- datePayment: Date;
4
- idPrestationList: number;
5
- amount: number;
6
- }
7
- //# sourceMappingURL=QueryCreatePrestationSocieties.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCreatePrestationSocieties.d.ts","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"names":[],"mappings":"AAKA,qBAAa,8BAA8B;IAQvC,YAAY,EAAE,MAAM,EAAE,CAAC;IAIvB,WAAW,EAAE,IAAI,CAAC;IAIlB,gBAAgB,EAAE,MAAM,CAAC;IAIzB,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCreatePrestationSocieties.js","sourceRoot":"","sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GACjC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,8BAA8B;CAqB1C;AApBC;IAAC,WAAW,CAAC;QACX,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC;KACjB,CAAC;IACD,OAAO,EAAE;;oEACe;AAEzB;IAAC,WAAW,EAAE;IACb,MAAM,EAAE;8BACM,IAAI;mEAAC;AAEpB;IAAC,WAAW,EAAE;IACb,KAAK,EAAE;;wEACmB;AAE3B;IAAC,WAAW,EAAE;IACb,QAAQ,EAAE;;8DACM","sourcesContent":["import {\n IsArray, IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryCreatePrestationSocieties {\n @ApiProperty({\n description: 'array of id society',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n societiesIds: number[];\n\n @ApiProperty()\n @IsDate()\n datePayment: Date;\n\n @ApiProperty()\n @IsInt()\n idPrestationList: number;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n}"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"QueryCreatePrestationSocieties.js","names":["_classValidator","require","_utils","QueryCreatePrestationSocieties","exports","__decorate","ApiProperty","description","required","type","Number","example","IsArray","IsDate","Date","IsInt","IsNumber"],"sources":["../../../../../ts/types/Interface/api/prestation/QueryCreatePrestationSocieties.ts"],"sourcesContent":["import {\n IsArray, IsDate, IsInt, IsNumber,\n} from 'class-validator';\nimport { ApiProperty } from '../../../../utils';\n\nexport class QueryCreatePrestationSocieties {\n @ApiProperty({\n description: 'array of id society',\n required: true,\n type: [Number],\n example: [1, 13],\n })\n @IsArray()\n societiesIds: number[];\n\n @ApiProperty()\n @IsDate()\n datePayment: Date;\n\n @ApiProperty()\n @IsInt()\n idPrestationList: number;\n\n @ApiProperty()\n @IsNumber()\n amount: number;\n}"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;;;;;;;;;;;AAEM,MAAOE,8BAA8B;AAqB1CC,OAAA,CArBYD,8BAA8B,GAA9BA,8BAA8B;AACzCE,UAAA,EAAC,IAAAC,kBAAW,EAAC;EACXC,WAAW,EAAE,qBAAqB;EAClCC,QAAQ,EAAE,IAAI;EACdC,IAAI,EAAE,CAACC,MAAM,CAAC;EACdC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;CAChB,CAAC,EACD,IAAAC,uBAAO,GAAE,E,oGACe;AAEzBP,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAO,sBAAM,GAAE,E,0BACMC,IAAI,E,kEAAC;AAEpBT,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAS,qBAAK,GAAE,E,yGACmB;AAE3BV,UAAA,EAAC,IAAAC,kBAAW,GAAE,EACb,IAAAU,wBAAQ,GAAE,E,+FACM"}