@metarisc/metarisc-js 0.0.1-alpha.63 → 0.0.1-alpha.64

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 (91) hide show
  1. package/.eslintrc +43 -17
  2. package/lib/api/AnomaliesAPI.d.ts +0 -6
  3. package/lib/api/AnomaliesAPI.js +0 -10
  4. package/lib/api/CommissionsAPI.d.ts +0 -22
  5. package/lib/api/CommissionsAPI.js +0 -31
  6. package/lib/api/ContactsAPI.d.ts +0 -6
  7. package/lib/api/ContactsAPI.js +0 -10
  8. package/lib/api/DocumentsAPI.d.ts +0 -6
  9. package/lib/api/DocumentsAPI.js +0 -10
  10. package/lib/api/DossiersAPI.d.ts +0 -35
  11. package/lib/api/DossiersAPI.js +0 -49
  12. package/lib/api/ERPAPI.d.ts +0 -22
  13. package/lib/api/ERPAPI.js +0 -32
  14. package/lib/api/EvenementsAPI.d.ts +0 -11
  15. package/lib/api/EvenementsAPI.js +0 -16
  16. package/lib/api/FeedAPI.d.ts +0 -3
  17. package/lib/api/FeedAPI.js +0 -5
  18. package/lib/api/MoiAPI.d.ts +2 -2
  19. package/lib/api/MoiAPI.js +0 -1
  20. package/lib/api/NotificationsAPI.d.ts +0 -5
  21. package/lib/api/NotificationsAPI.js +0 -9
  22. package/lib/api/OrganisationsAPI.d.ts +0 -13
  23. package/lib/api/OrganisationsAPI.js +0 -20
  24. package/lib/api/PEIAPI.d.ts +0 -23
  25. package/lib/api/PEIAPI.js +0 -33
  26. package/lib/api/PingAPI.d.ts +2 -2
  27. package/lib/api/PingAPI.js +0 -1
  28. package/lib/api/PrescriptionsAPI.d.ts +0 -10
  29. package/lib/api/PrescriptionsAPI.js +0 -18
  30. package/lib/api/TournesDECIAPI.d.ts +0 -25
  31. package/lib/api/TournesDECIAPI.js +0 -43
  32. package/lib/api/UtilisateursAPI.d.ts +0 -9
  33. package/lib/api/UtilisateursAPI.js +0 -14
  34. package/lib/client.d.ts +5 -0
  35. package/lib/client.js +19 -5
  36. package/lib/collection.js +1 -1
  37. package/lib/core.d.ts +1 -0
  38. package/lib/core.js +4 -1
  39. package/lib/index.d.ts +0 -1
  40. package/lib/index.js +1 -3
  41. package/lib/metarisc.d.ts +0 -2
  42. package/lib/metarisc.js +0 -3
  43. package/lib/model/GetPing200Response.d.ts +3 -0
  44. package/lib/model/OrganisationMembre.d.ts +2 -2
  45. package/lib/model/OrganisationMembreUtilisateur.d.ts +2 -0
  46. package/lib/model/TourneeDeci.d.ts +2 -2
  47. package/lib/model/TourneeDeciModele.d.ts +2 -2
  48. package/lib/tus.js +2 -2
  49. package/package.json +1 -1
  50. package/src/api/AnomaliesAPI.ts +3 -13
  51. package/src/api/CommissionsAPI.ts +5 -36
  52. package/src/api/ContactsAPI.ts +3 -13
  53. package/src/api/DocumentsAPI.ts +3 -13
  54. package/src/api/DossiersAPI.ts +9 -58
  55. package/src/api/ERPAPI.ts +6 -38
  56. package/src/api/EvenementsAPI.ts +3 -19
  57. package/src/api/FeedAPI.ts +1 -6
  58. package/src/api/MoiAPI.ts +2 -3
  59. package/src/api/NotificationsAPI.ts +3 -12
  60. package/src/api/OrganisationsAPI.ts +6 -26
  61. package/src/api/PEIAPI.ts +6 -39
  62. package/src/api/PingAPI.ts +2 -3
  63. package/src/api/PrescriptionsAPI.ts +6 -24
  64. package/src/api/TournesDECIAPI.ts +5 -50
  65. package/src/api/UtilisateursAPI.ts +4 -18
  66. package/src/client.ts +24 -6
  67. package/src/collection.ts +1 -1
  68. package/src/core.ts +5 -1
  69. package/src/index.ts +0 -2
  70. package/src/metarisc.ts +0 -7
  71. package/src/model/GetPing200Response.ts +3 -0
  72. package/src/model/OrganisationMembre.ts +2 -2
  73. package/src/model/OrganisationMembreUtilisateur.ts +4 -0
  74. package/src/model/TourneeDeci.ts +2 -2
  75. package/src/model/TourneeDeciModele.ts +2 -2
  76. package/src/tus.ts +2 -2
  77. package/lib/api/SupportAPI.d.ts +0 -25
  78. package/lib/api/SupportAPI.js +0 -54
  79. package/lib/model/Moi200Response.d.ts +0 -12
  80. package/lib/model/Ping200Response.d.ts +0 -3
  81. package/lib/model/PostTicketRequest.d.ts +0 -10
  82. package/lib/model/PostTicketRequest.js +0 -2
  83. package/lib/model/Ticket.d.ts +0 -17
  84. package/lib/model/Ticket.js +0 -12
  85. package/src/api/SupportAPI.ts +0 -63
  86. package/src/model/Moi200Response.ts +0 -12
  87. package/src/model/Ping200Response.ts +0 -3
  88. package/src/model/PostTicketRequest.ts +0 -10
  89. package/src/model/Ticket.ts +0 -18
  90. /package/lib/model/{Moi200Response.js → GetPing200Response.js} +0 -0
  91. /package/lib/model/{Ping200Response.js → OrganisationMembreUtilisateur.js} +0 -0
package/.eslintrc CHANGED
@@ -1,20 +1,46 @@
1
1
  {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "plugins": [
5
- "@typescript-eslint",
6
- "unused-imports",
7
- "import"
2
+ "root": true,
3
+ "parser": "@typescript-eslint/parser",
4
+ "plugins": [
5
+ "@typescript-eslint",
6
+ "unused-imports",
7
+ "import"
8
+ ],
9
+ "extends": [
10
+ "eslint:recommended",
11
+ "plugin:@typescript-eslint/eslint-recommended",
12
+ "plugin:@typescript-eslint/recommended"
13
+ ],
14
+ "rules": {
15
+ "@typescript-eslint/no-explicit-any": [
16
+ "off"
8
17
  ],
9
- "extends": [
10
- "eslint:recommended",
11
- "plugin:@typescript-eslint/eslint-recommended",
12
- "plugin:@typescript-eslint/recommended"
18
+ "@typescript-eslint/ban-types": [
19
+ "error", {
20
+ "extendDefaults": true,
21
+ "types": {
22
+ "{}": false
23
+ }
24
+ }
13
25
  ],
14
- "rules": {
15
- "@typescript-eslint/no-explicit-any": ["off"],
16
- "no-multiple-empty-lines": [1, { "max": 1, "maxEOF": 0, "maxBOF": 0 }],
17
- "unused-imports/no-unused-imports": "error",
18
- "import/no-duplicates": ["error", {"considerQueryString": true, "prefer-inline": true}]
19
- }
20
- }
26
+ "no-multiple-empty-lines": [
27
+ "warn", {
28
+ "max": 1,
29
+ "maxEOF": 0,
30
+ "maxBOF": 0
31
+ }
32
+ ],
33
+ "unused-imports/no-unused-imports": [
34
+ "error"
35
+ ],
36
+ "import/no-duplicates": [
37
+ "error", {
38
+ "considerQueryString": true,
39
+ "prefer-inline": true
40
+ }
41
+ ],
42
+ "comma-dangle": [
43
+ "error"
44
+ ]
45
+ }
46
+ }
@@ -7,24 +7,18 @@ export declare class AnomaliesAPI extends Core {
7
7
  constructor(config: MetariscConfig, client?: Client);
8
8
  /**
9
9
  * Suppression d'une anomalie DECI type.
10
- * @param anomalieId
11
10
  */
12
11
  deleteAnomalie(anomalieId: string): Promise<AxiosResponse<void>>;
13
12
  /**
14
13
  * Détails d'une anomalie type DECI.
15
- * @param anomalieId
16
14
  */
17
15
  getAnomalie(anomalieId: string): Promise<AxiosResponse<AnomalieDECI>>;
18
16
  /**
19
17
  * Liste des anomalies.
20
- * @param page Numéro de page
21
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
22
- * @param texte Filtre sur le texte de l'anomalie
23
18
  */
24
19
  paginateAnomalies(page?: number, perPage?: number, texte?: string): Collection<AnomalieDECI>;
25
20
  /**
26
21
  * Ajout d'une nouvelle anomalie DECI type pour une organisation.
27
- * @param anomalieDECI
28
22
  */
29
23
  postAnomalie(anomalieDECI?: AnomalieDECI): Promise<AxiosResponse<AnomalieDECI>>;
30
24
  }
@@ -9,58 +9,48 @@ class AnomaliesAPI extends core_1.Core {
9
9
  }
10
10
  /**
11
11
  * Suppression d'une anomalie DECI type.
12
- * @param anomalieId
13
12
  */
14
13
  async deleteAnomalie(anomalieId) {
15
14
  const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
16
15
  return this.request({
17
16
  method: 'DELETE',
18
17
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
19
- headers: {},
20
18
  params: {},
21
19
  body: utils_1.Utils.payloadFilter({})
22
20
  });
23
21
  }
24
22
  /**
25
23
  * Détails d'une anomalie type DECI.
26
- * @param anomalieId
27
24
  */
28
25
  async getAnomalie(anomalieId) {
29
26
  const pathVariable = { 'anomalie_id': (new String(anomalieId)).toString() };
30
27
  return this.request({
31
28
  method: 'GET',
32
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies/{anomalie_id}'),
33
- headers: {},
34
30
  params: {},
35
31
  body: utils_1.Utils.payloadFilter({})
36
32
  });
37
33
  }
38
34
  /**
39
35
  * Liste des anomalies.
40
- * @param page Numéro de page
41
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
42
- * @param texte Filtre sur le texte de l'anomalie
43
36
  */
44
37
  paginateAnomalies(page, perPage, texte) {
45
38
  const pathVariable = {};
46
39
  return this.collect({
47
40
  method: 'GET',
48
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
49
- headers: {},
50
42
  params: { 'page': page?.toString(), 'per_page': perPage?.toString(), 'texte': texte },
51
43
  body: utils_1.Utils.payloadFilter({})
52
44
  });
53
45
  }
54
46
  /**
55
47
  * Ajout d'une nouvelle anomalie DECI type pour une organisation.
56
- * @param anomalieDECI
57
48
  */
58
49
  async postAnomalie(anomalieDECI) {
59
50
  const pathVariable = {};
60
51
  return this.request({
61
52
  method: 'POST',
62
53
  endpoint: utils_1.Utils.constructPath(pathVariable, '/anomalies'),
63
- headers: {},
64
54
  params: {},
65
55
  body: utils_1.Utils.payloadFilter({ 'code': anomalieDECI?.code, 'texte': anomalieDECI?.texte, 'indice_de_gravite': anomalieDECI?.indice_de_gravite })
66
56
  });
@@ -9,60 +9,38 @@ export declare class CommissionsAPI extends Core {
9
9
  constructor(config: MetariscConfig, client?: Client);
10
10
  /**
11
11
  * Récupération des détails de la commission.
12
- * @param commissionId
13
12
  */
14
13
  getCommission(commissionId: string): Promise<AxiosResponse<Commission>>;
15
14
  /**
16
15
  * Récupération d'une date de passage en commission.
17
- * @param commissionId
18
- * @param dateId
19
16
  */
20
17
  getCommissionDate(commissionId: string, dateId: string): Promise<AxiosResponse<PassageCommission>>;
21
18
  /**
22
19
  * Liste des commissions.
23
- * @param page Numéro de page
24
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
25
20
  */
26
21
  paginateCommissions(page?: number, perPage?: number): Collection<Commission>;
27
22
  /**
28
23
  * Récupération de la liste des dates de passage de la commission.
29
- * @param commissionId
30
- * @param page Numéro de page
31
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
32
24
  */
33
25
  paginateCommissionDates(commissionId: string, page?: number, perPage?: number): Collection<PassageCommission>;
34
26
  /**
35
27
  * Récupération d'une liste de dossiers à l'ordre du jour liés à une date de passage en commission.
36
- * @param commissionId
37
- * @param dateId
38
- * @param page Numéro de page
39
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
40
28
  */
41
29
  paginateCommissionDateDossiers(commissionId: string, dateId: string, page?: number, perPage?: number): Collection<PassageCommissionDossier>;
42
30
  /**
43
31
  * Ajoute une commission.
44
- * @param commission
45
32
  */
46
33
  postCommission(commission?: Commission): Promise<AxiosResponse<Commission>>;
47
34
  /**
48
35
  * Ajout d'une date de passage en commission.
49
- * @param commissionId
50
- * @param passageCommission
51
36
  */
52
37
  postCommissionDate(commissionId: string, passageCommission?: PassageCommission): Promise<AxiosResponse<PassageCommission>>;
53
38
  /**
54
39
  * Mise à jour des détails d'un dossier lié à une date de passage en commission
55
- * @param commissionId
56
- * @param dateId
57
- * @param dossierId
58
- * @param passageCommissionDossier
59
40
  */
60
41
  updateCommissionDateDossier(commissionId: string, dateId: string, dossierId: string, passageCommissionDossier?: PassageCommissionDossier): Promise<AxiosResponse<PassageCommissionDossier>>;
61
42
  /**
62
43
  * Ajout d'un dossier à l'ordre du jour d'un passage en commission.
63
- * @param commissionId
64
- * @param dateId
65
- * @param passageCommissionDossier
66
44
  */
67
45
  postCommissionDateDossier(commissionId: string, dateId: string, passageCommissionDossier?: PassageCommissionDossier): Promise<AxiosResponse<PassageCommissionDossier>>;
68
46
  }
@@ -9,139 +9,108 @@ class CommissionsAPI extends core_1.Core {
9
9
  }
10
10
  /**
11
11
  * Récupération des détails de la commission.
12
- * @param commissionId
13
12
  */
14
13
  async getCommission(commissionId) {
15
14
  const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
16
15
  return this.request({
17
16
  method: 'GET',
18
17
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}'),
19
- headers: {},
20
18
  params: {},
21
19
  body: utils_1.Utils.payloadFilter({})
22
20
  });
23
21
  }
24
22
  /**
25
23
  * Récupération d'une date de passage en commission.
26
- * @param commissionId
27
- * @param dateId
28
24
  */
29
25
  async getCommissionDate(commissionId, dateId) {
30
26
  const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
31
27
  return this.request({
32
28
  method: 'GET',
33
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}'),
34
- headers: {},
35
30
  params: {},
36
31
  body: utils_1.Utils.payloadFilter({})
37
32
  });
38
33
  }
39
34
  /**
40
35
  * Liste des commissions.
41
- * @param page Numéro de page
42
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
43
36
  */
44
37
  paginateCommissions(page, perPage) {
45
38
  const pathVariable = {};
46
39
  return this.collect({
47
40
  method: 'GET',
48
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
49
- headers: {},
50
42
  params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
51
43
  body: utils_1.Utils.payloadFilter({})
52
44
  });
53
45
  }
54
46
  /**
55
47
  * Récupération de la liste des dates de passage de la commission.
56
- * @param commissionId
57
- * @param page Numéro de page
58
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
59
48
  */
60
49
  paginateCommissionDates(commissionId, page, perPage) {
61
50
  const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
62
51
  return this.collect({
63
52
  method: 'GET',
64
53
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
65
- headers: {},
66
54
  params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
67
55
  body: utils_1.Utils.payloadFilter({})
68
56
  });
69
57
  }
70
58
  /**
71
59
  * Récupération d'une liste de dossiers à l'ordre du jour liés à une date de passage en commission.
72
- * @param commissionId
73
- * @param dateId
74
- * @param page Numéro de page
75
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
76
60
  */
77
61
  paginateCommissionDateDossiers(commissionId, dateId, page, perPage) {
78
62
  const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
79
63
  return this.collect({
80
64
  method: 'GET',
81
65
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}/ordre_du_jour'),
82
- headers: {},
83
66
  params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
84
67
  body: utils_1.Utils.payloadFilter({})
85
68
  });
86
69
  }
87
70
  /**
88
71
  * Ajoute une commission.
89
- * @param commission
90
72
  */
91
73
  async postCommission(commission) {
92
74
  const pathVariable = {};
93
75
  return this.request({
94
76
  method: 'POST',
95
77
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions'),
96
- headers: {},
97
78
  params: {},
98
79
  body: utils_1.Utils.payloadFilter({ 'id': commission?.id, 'type': commission?.type, 'libelle': commission?.libelle })
99
80
  });
100
81
  }
101
82
  /**
102
83
  * Ajout d'une date de passage en commission.
103
- * @param commissionId
104
- * @param passageCommission
105
84
  */
106
85
  async postCommissionDate(commissionId, passageCommission) {
107
86
  const pathVariable = { 'commission_id': (new String(commissionId)).toString() };
108
87
  return this.request({
109
88
  method: 'POST',
110
89
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates'),
111
- headers: {},
112
90
  params: {},
113
91
  body: utils_1.Utils.payloadFilter({ 'id': passageCommission?.id, 'date_debut': passageCommission?.date_debut ? utils_1.Utils.formatDate(passageCommission?.date_debut) : undefined, 'date_fin': passageCommission?.date_fin ? utils_1.Utils.formatDate(passageCommission?.date_fin) : undefined, 'type': passageCommission?.type, 'libelle': passageCommission?.libelle })
114
92
  });
115
93
  }
116
94
  /**
117
95
  * Mise à jour des détails d'un dossier lié à une date de passage en commission
118
- * @param commissionId
119
- * @param dateId
120
- * @param dossierId
121
- * @param passageCommissionDossier
122
96
  */
123
97
  async updateCommissionDateDossier(commissionId, dateId, dossierId, passageCommissionDossier) {
124
98
  const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString(), 'dossier_id': (new String(dossierId)).toString() };
125
99
  return this.request({
126
100
  method: 'POST',
127
101
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}/ordre_du_jour/{dossier_id}'),
128
- headers: {},
129
102
  params: {},
130
103
  body: utils_1.Utils.payloadFilter({ 'id': passageCommissionDossier?.id, 'dossier': passageCommissionDossier?.dossier, 'dossier_id': passageCommissionDossier?.dossier_id, 'avis': passageCommissionDossier?.avis, 'statut': passageCommissionDossier?.statut })
131
104
  });
132
105
  }
133
106
  /**
134
107
  * Ajout d'un dossier à l'ordre du jour d'un passage en commission.
135
- * @param commissionId
136
- * @param dateId
137
- * @param passageCommissionDossier
138
108
  */
139
109
  async postCommissionDateDossier(commissionId, dateId, passageCommissionDossier) {
140
110
  const pathVariable = { 'commission_id': (new String(commissionId)).toString(), 'date_id': (new String(dateId)).toString() };
141
111
  return this.request({
142
112
  method: 'POST',
143
113
  endpoint: utils_1.Utils.constructPath(pathVariable, '/commissions/{commission_id}/dates/{date_id}/ordre_du_jour'),
144
- headers: {},
145
114
  params: {},
146
115
  body: utils_1.Utils.payloadFilter({ 'id': passageCommissionDossier?.id, 'dossier': passageCommissionDossier?.dossier, 'dossier_id': passageCommissionDossier?.dossier_id, 'avis': passageCommissionDossier?.avis, 'statut': passageCommissionDossier?.statut })
147
116
  });
@@ -7,24 +7,18 @@ export declare class ContactsAPI extends Core {
7
7
  constructor(config: MetariscConfig, client?: Client);
8
8
  /**
9
9
  * Suppression d'une fiche contact existante.
10
- * @param contactId
11
10
  */
12
11
  deleteContact(contactId: string): Promise<AxiosResponse<void>>;
13
12
  /**
14
13
  * Récupération d'une fiche contact.
15
- * @param contactId
16
14
  */
17
15
  getContact(contactId: string): Promise<AxiosResponse<Contact>>;
18
16
  /**
19
17
  * Récupération de la liste des contacts.
20
- * @param page Numéro de page
21
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
22
18
  */
23
19
  paginateContacts(page?: number, perPage?: number): Collection<Contact>;
24
20
  /**
25
21
  * Mise à jour d'une fiche contact existante.
26
- * @param contactId
27
- * @param contact
28
22
  */
29
23
  updateContact(contactId: string, contact?: Contact): Promise<AxiosResponse<Contact>>;
30
24
  }
@@ -9,58 +9,48 @@ class ContactsAPI extends core_1.Core {
9
9
  }
10
10
  /**
11
11
  * Suppression d'une fiche contact existante.
12
- * @param contactId
13
12
  */
14
13
  async deleteContact(contactId) {
15
14
  const pathVariable = { 'contact_id': (new String(contactId)).toString() };
16
15
  return this.request({
17
16
  method: 'DELETE',
18
17
  endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
19
- headers: {},
20
18
  params: {},
21
19
  body: utils_1.Utils.payloadFilter({})
22
20
  });
23
21
  }
24
22
  /**
25
23
  * Récupération d'une fiche contact.
26
- * @param contactId
27
24
  */
28
25
  async getContact(contactId) {
29
26
  const pathVariable = { 'contact_id': (new String(contactId)).toString() };
30
27
  return this.request({
31
28
  method: 'GET',
32
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
33
- headers: {},
34
30
  params: {},
35
31
  body: utils_1.Utils.payloadFilter({})
36
32
  });
37
33
  }
38
34
  /**
39
35
  * Récupération de la liste des contacts.
40
- * @param page Numéro de page
41
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
42
36
  */
43
37
  paginateContacts(page, perPage) {
44
38
  const pathVariable = {};
45
39
  return this.collect({
46
40
  method: 'GET',
47
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts'),
48
- headers: {},
49
42
  params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
50
43
  body: utils_1.Utils.payloadFilter({})
51
44
  });
52
45
  }
53
46
  /**
54
47
  * Mise à jour d'une fiche contact existante.
55
- * @param contactId
56
- * @param contact
57
48
  */
58
49
  async updateContact(contactId, contact) {
59
50
  const pathVariable = { 'contact_id': (new String(contactId)).toString() };
60
51
  return this.request({
61
52
  method: 'POST',
62
53
  endpoint: utils_1.Utils.constructPath(pathVariable, '/contacts/{contact_id}'),
63
- headers: {},
64
54
  params: {},
65
55
  body: utils_1.Utils.payloadFilter({ 'id': contact?.id, 'nom': contact?.nom, 'prenom': contact?.prenom, 'fonction': contact?.fonction, 'telephone_fixe': contact?.telephone_fixe, 'telephone_portable': contact?.telephone_portable, 'telephone_fax': contact?.telephone_fax, 'adresse': contact?.adresse, 'site_web_url': contact?.site_web_url, 'civilite': contact?.civilite, 'societe': contact?.societe, 'email': contact?.email, 'observations': contact?.observations })
66
56
  });
@@ -7,24 +7,18 @@ export declare class DocumentsAPI extends Core {
7
7
  constructor(config: MetariscConfig, client?: Client);
8
8
  /**
9
9
  * Suppression d'un document existant.
10
- * @param documentId
11
10
  */
12
11
  deleteDocument(documentId: string): Promise<AxiosResponse<void>>;
13
12
  /**
14
13
  * Récupération d'un document.
15
- * @param documentId
16
14
  */
17
15
  getDocument(documentId: string): Promise<AxiosResponse<PieceJointe>>;
18
16
  /**
19
17
  * Récupération de la liste des documents.
20
- * @param page Numéro de page
21
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
22
18
  */
23
19
  paginate(page?: number, perPage?: number): Collection<PieceJointe>;
24
20
  /**
25
21
  * Mise à jour d'un document existant.
26
- * @param documentId
27
- * @param pieceJointe
28
22
  */
29
23
  postDocument(documentId: string, pieceJointe?: PieceJointe): Promise<AxiosResponse<PieceJointe>>;
30
24
  }
@@ -9,58 +9,48 @@ class DocumentsAPI extends core_1.Core {
9
9
  }
10
10
  /**
11
11
  * Suppression d'un document existant.
12
- * @param documentId
13
12
  */
14
13
  async deleteDocument(documentId) {
15
14
  const pathVariable = { 'document_id': (new String(documentId)).toString() };
16
15
  return this.request({
17
16
  method: 'DELETE',
18
17
  endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
19
- headers: {},
20
18
  params: {},
21
19
  body: utils_1.Utils.payloadFilter({})
22
20
  });
23
21
  }
24
22
  /**
25
23
  * Récupération d'un document.
26
- * @param documentId
27
24
  */
28
25
  async getDocument(documentId) {
29
26
  const pathVariable = { 'document_id': (new String(documentId)).toString() };
30
27
  return this.request({
31
28
  method: 'GET',
32
29
  endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
33
- headers: {},
34
30
  params: {},
35
31
  body: utils_1.Utils.payloadFilter({})
36
32
  });
37
33
  }
38
34
  /**
39
35
  * Récupération de la liste des documents.
40
- * @param page Numéro de page
41
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
42
36
  */
43
37
  paginate(page, perPage) {
44
38
  const pathVariable = {};
45
39
  return this.collect({
46
40
  method: 'GET',
47
41
  endpoint: utils_1.Utils.constructPath(pathVariable, '/documents'),
48
- headers: {},
49
42
  params: { 'page': page?.toString(), 'per_page': perPage?.toString() },
50
43
  body: utils_1.Utils.payloadFilter({})
51
44
  });
52
45
  }
53
46
  /**
54
47
  * Mise à jour d'un document existant.
55
- * @param documentId
56
- * @param pieceJointe
57
48
  */
58
49
  async postDocument(documentId, pieceJointe) {
59
50
  const pathVariable = { 'document_id': (new String(documentId)).toString() };
60
51
  return this.request({
61
52
  method: 'POST',
62
53
  endpoint: utils_1.Utils.constructPath(pathVariable, '/documents/{document_id}'),
63
- headers: {},
64
54
  params: {},
65
55
  body: utils_1.Utils.payloadFilter({ 'id': pieceJointe?.id, 'url': pieceJointe?.url, 'nom': pieceJointe?.nom, 'description': pieceJointe?.description, 'type': pieceJointe?.type })
66
56
  });
@@ -11,93 +11,58 @@ export declare class DossiersAPI extends Core {
11
11
  constructor(config: MetariscConfig, client?: Client);
12
12
  /**
13
13
  * Récupération de l'ensemble des données d'un dossier.
14
- * @param dossierId
15
14
  */
16
15
  getDossier(dossierId: string): Promise<AxiosResponse<Dossier>>;
17
16
  /**
18
17
  * Récupération des détails d'un workflow.
19
- * @param dossierId Identifiant unique du Dossier
20
- * @param workflowId Identifiant unique du Workflow
21
18
  */
22
19
  getDossierWorkflowsDetails(dossierId: string, workflowId: string): Promise<AxiosResponse<Workflow>>;
23
20
  /**
24
21
  * Récupération de la liste des contacts.
25
- * @param dossierId
26
- * @param page Numéro de page
27
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
28
22
  */
29
23
  paginateDossierContacts(dossierId: string, page?: number, perPage?: number): Collection<Contact>;
30
24
  /**
31
25
  * Récupération de la liste des documents.
32
- * @param dossierId
33
- * @param page Numéro de page
34
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
35
26
  */
36
27
  paginateDossierDocuments(dossierId: string, page?: number, perPage?: number): Collection<PieceJointe>;
37
28
  /**
38
29
  * Récupération de la liste des documents.
39
- * @param dossierId
40
- * @param workflowId
41
- * @param page Numéro de page
42
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
43
30
  */
44
31
  paginateDossierWorkflowsWorkflowDocuments(dossierId: string, workflowId: string, page?: number, perPage?: number): Collection<PieceJointe>;
45
32
  /**
46
33
  * Récupération de la liste des dossiers selon des critères de recherche.
47
- * @param page Numéro de page
48
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
49
34
  */
50
35
  paginateDossiers(page?: number, perPage?: number): Collection<Dossier>;
51
36
  /**
52
37
  * Récupération de la liste des tags d'un dossier.
53
- * @param dossierId
54
- * @param page Numéro de page
55
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
56
38
  */
57
39
  paginateDossierTags(dossierId: string, page?: number, perPage?: number): Collection<Tag>;
58
40
  /**
59
41
  * Récupération de la liste des workflows d'un dossier.
60
- * @param dossierId Identifiant unique du Dossier
61
- * @param page Numéro de page
62
- * @param perPage Limite le nombre d'objets retournés. La limite est comprise entre 1 et 100, la valeur par défaut étant de 10.
63
42
  */
64
43
  paginateDossierWorkflows(dossierId: string, page?: number, perPage?: number): Collection<Workflow>;
65
44
  /**
66
45
  * Ajout d'un contact.
67
- * @param dossierId
68
- * @param contact
69
46
  */
70
47
  postContactsDossier(dossierId: string, contact?: Contact): Promise<AxiosResponse<Contact>>;
71
48
  /**
72
49
  * Ajout d'un document.
73
- * @param dossierId
74
- * @param pieceJointe
75
50
  */
76
51
  postDocumentsDossier(dossierId: string, pieceJointe?: PieceJointe): Promise<AxiosResponse<PieceJointe>>;
77
52
  /**
78
53
  * Ajout d'un document.
79
- * @param dossierId
80
- * @param workflowId
81
- * @param pieceJointe
82
54
  */
83
55
  postDocumentsWorkflowWorkflowsDossier(dossierId: string, workflowId: string, pieceJointe?: PieceJointe): Promise<AxiosResponse<PieceJointe>>;
84
56
  /**
85
57
  * Modification d'un dossier existant
86
- * @param dossierId
87
- * @param dossier
88
58
  */
89
59
  patchDossier(dossierId: string, dossier?: Dossier): Promise<AxiosResponse<Dossier>>;
90
60
  /**
91
61
  * Terminer un workflow d'un dossier. Cela met à jour l'ensemble de son traitement.
92
- * @param dossierId
93
- * @param workflowId
94
62
  */
95
63
  postTerminerWorkflowWorkflowsDossier(dossierId: string, workflowId: string): Promise<AxiosResponse<void>>;
96
64
  /**
97
65
  * Mise à jour d'un workflow.
98
- * @param dossierId Identifiant unique du Dossier
99
- * @param workflowId Identifiant unique du Workflow
100
- * @param workflow
101
66
  */
102
67
  updateDossierWorkflowsDetails(dossierId: string, workflowId: string, workflow?: Workflow): Promise<AxiosResponse<Workflow>>;
103
68
  }