@silexpert/core 1.0.153 → 1.0.155

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 (78) hide show
  1. package/es/api/resources/Rule.d.ts +4 -2
  2. package/es/api/resources/Rule.d.ts.map +1 -1
  3. package/es/api/resources/Rule.js +6 -0
  4. package/es/api/resources/Rule.js.map +1 -1
  5. package/es/api/resources/Shine.js +4 -4
  6. package/es/api/resources/Shine.js.map +1 -1
  7. package/es/types/Enum/PrestationType.d.ts +5 -2626
  8. package/es/types/Enum/PrestationType.d.ts.map +1 -1
  9. package/es/types/Enum/PrestationType.js +1674 -1511
  10. package/es/types/Enum/PrestationType.js.map +1 -1
  11. package/es/types/Interface/api/rule/Create.d.ts +10 -0
  12. package/es/types/Interface/api/rule/Create.d.ts.map +1 -0
  13. package/es/types/Interface/api/rule/Create.js +46 -0
  14. package/es/types/Interface/api/rule/Create.js.map +1 -0
  15. package/es/types/Interface/api/rule/Update.d.ts +4 -0
  16. package/es/types/Interface/api/rule/Update.d.ts.map +1 -0
  17. package/es/types/Interface/api/rule/Update.js +21 -0
  18. package/es/types/Interface/api/rule/Update.js.map +1 -0
  19. package/es/types/Interface/models/IAccountingTransaction.d.ts +1 -0
  20. package/es/types/Interface/models/IAccountingTransaction.d.ts.map +1 -1
  21. package/es/types/Interface/models/IAccountingTransaction.js.map +1 -1
  22. package/es/types/Interface/models/IExercicePrestation.d.ts +2 -1
  23. package/es/types/Interface/models/IExercicePrestation.d.ts.map +1 -1
  24. package/es/types/Interface/models/IExercicePrestation.js.map +1 -1
  25. package/es/types/Interface/models/IPrestation.d.ts +13 -10
  26. package/es/types/Interface/models/IPrestation.d.ts.map +1 -1
  27. package/es/types/Interface/models/IPrestation.js.map +1 -1
  28. package/es/types/Interface/models/IPrestationList.d.ts +3 -2
  29. package/es/types/Interface/models/IPrestationList.d.ts.map +1 -1
  30. package/es/types/Interface/models/IPrestationList.js.map +1 -1
  31. package/es/types/Interface/models/IRule.d.ts +2 -0
  32. package/es/types/Interface/models/IRule.d.ts.map +1 -1
  33. package/es/types/Interface/models/IRule.js.map +1 -1
  34. package/es/types/Interface/models/ITerminationList.d.ts +7 -4
  35. package/es/types/Interface/models/ITerminationList.d.ts.map +1 -1
  36. package/es/types/Interface/models/ITerminationList.js.map +1 -1
  37. package/es/types/index.d.ts +3 -0
  38. package/es/types/index.d.ts.map +1 -1
  39. package/es/types/index.js +3 -0
  40. package/es/types/index.js.map +1 -1
  41. package/es/utils/prestation.d.ts +4 -1
  42. package/es/utils/prestation.d.ts.map +1 -1
  43. package/es/utils/prestation.js +18 -1
  44. package/es/utils/prestation.js.map +1 -1
  45. package/js/api/resources/Rule.js +6 -0
  46. package/js/api/resources/Rule.js.map +1 -1
  47. package/js/api/resources/Shine.js +4 -4
  48. package/js/api/resources/Shine.js.map +1 -1
  49. package/js/types/Enum/PrestationType.js +1837 -1674
  50. package/js/types/Enum/PrestationType.js.map +1 -1
  51. package/js/types/Interface/api/rule/Create.js +29 -0
  52. package/js/types/Interface/api/rule/Create.js.map +1 -0
  53. package/js/types/Interface/api/rule/Update.js +23 -0
  54. package/js/types/Interface/api/rule/Update.js.map +1 -0
  55. package/js/types/Interface/models/IAccountingTransaction.js.map +1 -1
  56. package/js/types/Interface/models/IExercicePrestation.js.map +1 -1
  57. package/js/types/Interface/models/IPrestation.js.map +1 -1
  58. package/js/types/Interface/models/IPrestationList.js.map +1 -1
  59. package/js/types/Interface/models/IRule.js.map +1 -1
  60. package/js/types/Interface/models/ITerminationList.js.map +1 -1
  61. package/js/types/index.js +30 -0
  62. package/js/types/index.js.map +1 -1
  63. package/js/utils/prestation.js +17 -1
  64. package/js/utils/prestation.js.map +1 -1
  65. package/package.json +1 -1
  66. package/ts/api/resources/Rule.ts +12 -2
  67. package/ts/api/resources/Shine.ts +4 -4
  68. package/ts/types/Enum/PrestationType.ts +1681 -1512
  69. package/ts/types/Interface/api/rule/Create.ts +29 -0
  70. package/ts/types/Interface/api/rule/Update.ts +10 -0
  71. package/ts/types/Interface/models/IAccountingTransaction.ts +1 -0
  72. package/ts/types/Interface/models/IExercicePrestation.ts +2 -1
  73. package/ts/types/Interface/models/IPrestation.ts +13 -10
  74. package/ts/types/Interface/models/IPrestationList.ts +3 -2
  75. package/ts/types/Interface/models/IRule.ts +2 -0
  76. package/ts/types/Interface/models/ITerminationList.ts +7 -4
  77. package/ts/types/index.ts +3 -0
  78. package/ts/utils/prestation.ts +23 -1
@@ -1,9 +1,11 @@
1
- import { BasePaginate } from '../../types';
1
+ import { BasePaginate, CreateRule, IRule, UpdateRule } from '../../types';
2
2
  import { QueryRule, QueryMostFrequent } from '../../types/Interface/api/rule/Query';
3
3
  import { ReadMostFrequentOccurence } from '../../types/Interface/api/rule/Read';
4
4
  import { Resource } from '../Resource';
5
5
  export declare class Rule extends Resource {
6
- getAll(params: QueryRule): Promise<BasePaginate<Rule>>;
6
+ getAll(params: QueryRule): Promise<BasePaginate<IRule>>;
7
7
  getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]>;
8
+ create(params: CreateRule): Promise<IRule>;
9
+ update(idRule: number, params: UpdateRule): Promise<IRule>;
8
10
  }
9
11
  //# sourceMappingURL=Rule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IAItD,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC;CAGjF"}
1
+ {"version":3,"file":"Rule.d.ts","sourceRoot":"","sources":["../../../ts/api/resources/Rule.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAC5C,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBAAa,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAIvD,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC;IAIhF,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;IAI1C,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC;CAG3D"}
@@ -6,5 +6,11 @@ export class Rule extends Resource {
6
6
  getMostFrequent(params) {
7
7
  return this.axios.$get('rules/most-frequent', { params });
8
8
  }
9
+ create(params) {
10
+ return this.axios.$post('rules', params);
11
+ }
12
+ update(idRule, params) {
13
+ return this.axios.$post(`rules/${idRule}`, params);
14
+ }
9
15
  }
10
16
  //# sourceMappingURL=Rule.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../ts/api/resources/Rule.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,MAAiB;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,eAAe,CAAC,MAAyB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;CACF","sourcesContent":["import { BasePaginate } from '../../types';\nimport { QueryRule, QueryMostFrequent } from '../../types/Interface/api/rule/Query';\nimport { ReadMostFrequentOccurence } from '../../types/Interface/api/rule/Read';\nimport { Resource } from '../Resource';\n\nexport class Rule extends Resource {\n getAll(params: QueryRule): Promise<BasePaginate<Rule>> {\n return this.axios.$get('rules', { params });\n }\n\n getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]> {\n return this.axios.$get('rules/most-frequent', { params });\n }\n}\n"]}
1
+ {"version":3,"file":"Rule.js","sourceRoot":"","sources":["../../../ts/api/resources/Rule.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,OAAO,IAAK,SAAQ,QAAQ;IAChC,MAAM,CAAC,MAAiB;QACtB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,eAAe,CAAC,MAAyB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,CAAC,MAAkB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IAED,MAAM,CAAC,MAAc,EAAE,MAAkB;QACvC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;CACF","sourcesContent":["import {\n BasePaginate, CreateRule, IRule, UpdateRule,\n} from '../../types';\nimport { QueryRule, QueryMostFrequent } from '../../types/Interface/api/rule/Query';\nimport { ReadMostFrequentOccurence } from '../../types/Interface/api/rule/Read';\nimport { Resource } from '../Resource';\n\nexport class Rule extends Resource {\n getAll(params: QueryRule): Promise<BasePaginate<IRule>> {\n return this.axios.$get('rules', { params });\n }\n\n getMostFrequent(params: QueryMostFrequent): Promise<ReadMostFrequentOccurence[]> {\n return this.axios.$get('rules/most-frequent', { params });\n }\n\n create(params: CreateRule): Promise<IRule> {\n return this.axios.$post('rules', params);\n }\n\n update(idRule: number, params: UpdateRule): Promise<IRule> {\n return this.axios.$post(`rules/${idRule}`, params);\n }\n}\n"]}
@@ -1,16 +1,16 @@
1
1
  import { Resource } from '../Resource';
2
2
  export class Shine extends Resource {
3
3
  connect(idSociety, params) {
4
- return this.axios.$get(`/shine/${idSociety}/connect`, { params });
4
+ return this.axios.$get(`/connectors/shine/${idSociety}/connect`, { params });
5
5
  }
6
6
  importBankAccount(idSociety, params) {
7
- return this.axios.$post(`/shine/${idSociety}/importBankAccount`, params);
7
+ return this.axios.$post(`/connectors/shine/${idSociety}/importBankAccount`, params);
8
8
  }
9
9
  importTransactions(params) {
10
- return this.axios.$post('/shine/importTransactions', params);
10
+ return this.axios.$post('/connectors/shine/importTransactions', params);
11
11
  }
12
12
  refreshConnection(idBankConnection) {
13
- return this.axios.$put(`/shine/${idBankConnection}/refresh-connection`);
13
+ return this.axios.$put(`/connectors/shine/${idBankConnection}/refresh-connection`);
14
14
  }
15
15
  }
16
16
  //# sourceMappingURL=Shine.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Shine.js","sourceRoot":"","sources":["../../../ts/api/resources/Shine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,KAAM,SAAQ,QAAQ;IACjC,OAAO,CAAC,SAAiB,EAAE,MAAkB;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACpE,CAAC;IACD,iBAAiB,CAAC,SAAiB,EAAE,MAA0B;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,SAAS,oBAAoB,EAAE,MAAM,CAAC,CAAC;IAC3E,CAAC;IACD,kBAAkB,CAAC,MAA+B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;IAC/D,CAAC;IACD,iBAAiB,CAAC,gBAAwB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,gBAAgB,qBAAqB,CAAC,CAAC;IAC1E,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IBankAccount, CreateShineTransactions, GetConnect, CreateShineAccount, ConnectResponse, IBankConnection,\n} from '../../types';\n\nexport class Shine extends Resource {\n connect(idSociety: number, params: GetConnect): Promise<ConnectResponse> {\n return this.axios.$get(`/shine/${idSociety}/connect`, { params });\n }\n importBankAccount(idSociety: number, params: CreateShineAccount): Promise<IBankAccount> {\n return this.axios.$post(`/shine/${idSociety}/importBankAccount`, params);\n }\n importTransactions(params: CreateShineTransactions): Promise<number> {\n return this.axios.$post('/shine/importTransactions', params);\n }\n refreshConnection(idBankConnection: number): Promise<IBankConnection> {\n return this.axios.$put(`/shine/${idBankConnection}/refresh-connection`);\n }\n}"]}
1
+ {"version":3,"file":"Shine.js","sourceRoot":"","sources":["../../../ts/api/resources/Shine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAKvC,MAAM,OAAO,KAAM,SAAQ,QAAQ;IACjC,OAAO,CAAC,SAAiB,EAAE,MAAkB;QAC3C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/E,CAAC;IACD,iBAAiB,CAAC,SAAiB,EAAE,MAA0B;QAC7D,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,SAAS,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACtF,CAAC;IACD,kBAAkB,CAAC,MAA+B;QAChD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,sCAAsC,EAAE,MAAM,CAAC,CAAC;IAC1E,CAAC;IACD,iBAAiB,CAAC,gBAAwB;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qBAAqB,gBAAgB,qBAAqB,CAAC,CAAC;IACrF,CAAC;CACF","sourcesContent":["import { Resource } from '../Resource';\nimport {\n IBankAccount, CreateShineTransactions, GetConnect, CreateShineAccount, ConnectResponse, IBankConnection,\n} from '../../types';\n\nexport class Shine extends Resource {\n connect(idSociety: number, params: GetConnect): Promise<ConnectResponse> {\n return this.axios.$get(`/connectors/shine/${idSociety}/connect`, { params });\n }\n importBankAccount(idSociety: number, params: CreateShineAccount): Promise<IBankAccount> {\n return this.axios.$post(`/connectors/shine/${idSociety}/importBankAccount`, params);\n }\n importTransactions(params: CreateShineTransactions): Promise<number> {\n return this.axios.$post('/connectors/shine/importTransactions', params);\n }\n refreshConnection(idBankConnection: number): Promise<IBankConnection> {\n return this.axios.$put(`/connectors/shine/${idBankConnection}/refresh-connection`);\n }\n}"]}