@invoicetronic/ts-sdk 1.0.0 → 1.1.0

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 (234) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/README.md +2 -2
  3. package/base.ts +0 -24
  4. package/common.ts +1 -38
  5. package/configuration.ts +25 -19
  6. package/dist/base.d.ts +0 -24
  7. package/dist/base.js +0 -19
  8. package/dist/common.d.ts +0 -37
  9. package/dist/common.js +0 -37
  10. package/dist/configuration.d.ts +24 -17
  11. package/dist/configuration.js +2 -2
  12. package/dist/esm/base.d.ts +0 -24
  13. package/dist/esm/base.js +0 -19
  14. package/dist/esm/common.d.ts +0 -37
  15. package/dist/esm/common.js +0 -37
  16. package/dist/esm/configuration.d.ts +24 -17
  17. package/dist/esm/configuration.js +2 -2
  18. package/dist/esm/src/api/company-api.d.ts +5 -23
  19. package/dist/esm/src/api/company-api.js +0 -11
  20. package/dist/esm/src/api/log-api.d.ts +2 -14
  21. package/dist/esm/src/api/log-api.js +0 -8
  22. package/dist/esm/src/api/receive-api.d.ts +3 -17
  23. package/dist/esm/src/api/receive-api.js +0 -9
  24. package/dist/esm/src/api/send-api.d.ts +11 -53
  25. package/dist/esm/src/api/send-api.js +0 -29
  26. package/dist/esm/src/api/status-api.d.ts +1 -11
  27. package/dist/esm/src/api/status-api.js +0 -7
  28. package/dist/esm/src/api/update-api.d.ts +2 -17
  29. package/dist/esm/src/api/update-api.js +0 -11
  30. package/dist/esm/src/api/webhook-api.d.ts +7 -29
  31. package/dist/esm/src/api/webhook-api.js +0 -13
  32. package/dist/esm/src/models/allegati.d.ts +0 -30
  33. package/dist/esm/src/models/altri-dati-gestionali.d.ts +0 -25
  34. package/dist/esm/src/models/anagrafica.d.ts +0 -30
  35. package/dist/esm/src/models/cedente-prestatore.d.ts +0 -35
  36. package/dist/esm/src/models/cessionario-committente.d.ts +0 -25
  37. package/dist/esm/src/models/codice-articolo.d.ts +0 -15
  38. package/dist/esm/src/models/company.d.ts +0 -16
  39. package/dist/esm/src/models/contatti-trasmittente.d.ts +0 -15
  40. package/dist/esm/src/models/contatti.d.ts +0 -20
  41. package/dist/esm/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
  42. package/dist/esm/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
  43. package/dist/esm/src/models/dati-anagrafici-vettore.d.ts +0 -25
  44. package/dist/esm/src/models/dati-anagrafici.d.ts +0 -20
  45. package/dist/esm/src/models/dati-beni-servizi.d.ts +0 -15
  46. package/dist/esm/src/models/dati-bollo.d.ts +0 -15
  47. package/dist/esm/src/models/dati-cassa-previdenziale.d.ts +0 -45
  48. package/dist/esm/src/models/dati-contratto.d.ts +0 -40
  49. package/dist/esm/src/models/dati-convenzione.d.ts +0 -40
  50. package/dist/esm/src/models/dati-ddt.d.ts +0 -20
  51. package/dist/esm/src/models/dati-fatture-collegate.d.ts +0 -40
  52. package/dist/esm/src/models/dati-generali-documento.d.ts +0 -65
  53. package/dist/esm/src/models/dati-generali.d.ts +0 -55
  54. package/dist/esm/src/models/dati-ordine-acquisto.d.ts +0 -40
  55. package/dist/esm/src/models/dati-pagamento.d.ts +0 -15
  56. package/dist/esm/src/models/dati-ricezione.d.ts +0 -40
  57. package/dist/esm/src/models/dati-riepilogo.d.ts +0 -45
  58. package/dist/esm/src/models/dati-ritenuta.d.ts +0 -25
  59. package/dist/esm/src/models/dati-sal.d.ts +0 -10
  60. package/dist/esm/src/models/dati-trasmissione.d.ts +0 -35
  61. package/dist/esm/src/models/dati-trasporto.d.ts +0 -70
  62. package/dist/esm/src/models/dati-veicoli.d.ts +0 -15
  63. package/dist/esm/src/models/dettaglio-linee.d.ts +0 -85
  64. package/dist/esm/src/models/dettaglio-pagamento.d.ts +0 -110
  65. package/dist/esm/src/models/document-data.d.ts +0 -15
  66. package/dist/esm/src/models/event.d.ts +8 -39
  67. package/dist/esm/src/models/fattura-elettronica-body.d.ts +0 -30
  68. package/dist/esm/src/models/fattura-elettronica-header.d.ts +0 -35
  69. package/dist/esm/src/models/fattura-ordinaria.d.ts +0 -20
  70. package/dist/esm/src/models/fattura-principale.d.ts +0 -15
  71. package/dist/esm/src/models/id-fiscale-iva.d.ts +0 -15
  72. package/dist/esm/src/models/id-trasmittente.d.ts +0 -15
  73. package/dist/esm/src/models/indirizzo-resa.d.ts +0 -35
  74. package/dist/esm/src/models/iscrizione-rea.d.ts +0 -30
  75. package/dist/esm/src/models/model-error.d.ts +0 -8
  76. package/dist/esm/src/models/problem-details.d.ts +0 -30
  77. package/dist/esm/src/models/problem-http-result.d.ts +0 -20
  78. package/dist/esm/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
  79. package/dist/esm/src/models/rappresentante-fiscale.d.ts +0 -10
  80. package/dist/esm/src/models/receive.d.ts +0 -39
  81. package/dist/esm/src/models/sconto-maggiorazione.d.ts +0 -20
  82. package/dist/esm/src/models/sede-cedente-prestatore.d.ts +0 -35
  83. package/dist/esm/src/models/sede-cessionario-committente.d.ts +0 -35
  84. package/dist/esm/src/models/send-reduced.d.ts +0 -12
  85. package/dist/esm/src/models/send.d.ts +0 -42
  86. package/dist/esm/src/models/stabile-organizzazione.d.ts +0 -35
  87. package/dist/esm/src/models/status.d.ts +0 -9
  88. package/dist/esm/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
  89. package/dist/esm/src/models/update.d.ts +0 -34
  90. package/dist/esm/src/models/web-hook-history.d.ts +0 -20
  91. package/dist/esm/src/models/web-hook.d.ts +0 -25
  92. package/dist/src/api/company-api.d.ts +5 -23
  93. package/dist/src/api/company-api.js +0 -11
  94. package/dist/src/api/log-api.d.ts +2 -14
  95. package/dist/src/api/log-api.js +0 -8
  96. package/dist/src/api/receive-api.d.ts +3 -17
  97. package/dist/src/api/receive-api.js +0 -9
  98. package/dist/src/api/send-api.d.ts +11 -53
  99. package/dist/src/api/send-api.js +0 -29
  100. package/dist/src/api/status-api.d.ts +1 -11
  101. package/dist/src/api/status-api.js +0 -7
  102. package/dist/src/api/update-api.d.ts +2 -17
  103. package/dist/src/api/update-api.js +0 -11
  104. package/dist/src/api/webhook-api.d.ts +7 -29
  105. package/dist/src/api/webhook-api.js +0 -13
  106. package/dist/src/models/allegati.d.ts +0 -30
  107. package/dist/src/models/altri-dati-gestionali.d.ts +0 -25
  108. package/dist/src/models/anagrafica.d.ts +0 -30
  109. package/dist/src/models/cedente-prestatore.d.ts +0 -35
  110. package/dist/src/models/cessionario-committente.d.ts +0 -25
  111. package/dist/src/models/codice-articolo.d.ts +0 -15
  112. package/dist/src/models/company.d.ts +0 -16
  113. package/dist/src/models/contatti-trasmittente.d.ts +0 -15
  114. package/dist/src/models/contatti.d.ts +0 -20
  115. package/dist/src/models/dati-anagrafici-cedente-prestatore.d.ts +0 -45
  116. package/dist/src/models/dati-anagrafici-cessionario-committente.d.ts +0 -20
  117. package/dist/src/models/dati-anagrafici-vettore.d.ts +0 -25
  118. package/dist/src/models/dati-anagrafici.d.ts +0 -20
  119. package/dist/src/models/dati-beni-servizi.d.ts +0 -15
  120. package/dist/src/models/dati-bollo.d.ts +0 -15
  121. package/dist/src/models/dati-cassa-previdenziale.d.ts +0 -45
  122. package/dist/src/models/dati-contratto.d.ts +0 -40
  123. package/dist/src/models/dati-convenzione.d.ts +0 -40
  124. package/dist/src/models/dati-ddt.d.ts +0 -20
  125. package/dist/src/models/dati-fatture-collegate.d.ts +0 -40
  126. package/dist/src/models/dati-generali-documento.d.ts +0 -65
  127. package/dist/src/models/dati-generali.d.ts +0 -55
  128. package/dist/src/models/dati-ordine-acquisto.d.ts +0 -40
  129. package/dist/src/models/dati-pagamento.d.ts +0 -15
  130. package/dist/src/models/dati-ricezione.d.ts +0 -40
  131. package/dist/src/models/dati-riepilogo.d.ts +0 -45
  132. package/dist/src/models/dati-ritenuta.d.ts +0 -25
  133. package/dist/src/models/dati-sal.d.ts +0 -10
  134. package/dist/src/models/dati-trasmissione.d.ts +0 -35
  135. package/dist/src/models/dati-trasporto.d.ts +0 -70
  136. package/dist/src/models/dati-veicoli.d.ts +0 -15
  137. package/dist/src/models/dettaglio-linee.d.ts +0 -85
  138. package/dist/src/models/dettaglio-pagamento.d.ts +0 -110
  139. package/dist/src/models/document-data.d.ts +0 -15
  140. package/dist/src/models/event.d.ts +8 -39
  141. package/dist/src/models/fattura-elettronica-body.d.ts +0 -30
  142. package/dist/src/models/fattura-elettronica-header.d.ts +0 -35
  143. package/dist/src/models/fattura-ordinaria.d.ts +0 -20
  144. package/dist/src/models/fattura-principale.d.ts +0 -15
  145. package/dist/src/models/id-fiscale-iva.d.ts +0 -15
  146. package/dist/src/models/id-trasmittente.d.ts +0 -15
  147. package/dist/src/models/indirizzo-resa.d.ts +0 -35
  148. package/dist/src/models/iscrizione-rea.d.ts +0 -30
  149. package/dist/src/models/model-error.d.ts +0 -8
  150. package/dist/src/models/problem-details.d.ts +0 -30
  151. package/dist/src/models/problem-http-result.d.ts +0 -20
  152. package/dist/src/models/rappresentante-fiscale-cessionario-committente.d.ts +0 -25
  153. package/dist/src/models/rappresentante-fiscale.d.ts +0 -10
  154. package/dist/src/models/receive.d.ts +0 -39
  155. package/dist/src/models/sconto-maggiorazione.d.ts +0 -20
  156. package/dist/src/models/sede-cedente-prestatore.d.ts +0 -35
  157. package/dist/src/models/sede-cessionario-committente.d.ts +0 -35
  158. package/dist/src/models/send-reduced.d.ts +0 -12
  159. package/dist/src/models/send.d.ts +0 -42
  160. package/dist/src/models/stabile-organizzazione.d.ts +0 -35
  161. package/dist/src/models/status.d.ts +0 -9
  162. package/dist/src/models/terzo-intermediario-osoggetto-emittente.d.ts +0 -10
  163. package/dist/src/models/update.d.ts +0 -34
  164. package/dist/src/models/web-hook-history.d.ts +0 -20
  165. package/dist/src/models/web-hook.d.ts +0 -25
  166. package/docs/Event.md +4 -2
  167. package/package.json +1 -1
  168. package/src/api/company-api.ts +0 -18
  169. package/src/api/log-api.ts +0 -12
  170. package/src/api/receive-api.ts +0 -14
  171. package/src/api/send-api.ts +0 -42
  172. package/src/api/status-api.ts +0 -10
  173. package/src/api/update-api.ts +0 -15
  174. package/src/api/webhook-api.ts +0 -22
  175. package/src/models/allegati.ts +0 -30
  176. package/src/models/altri-dati-gestionali.ts +0 -25
  177. package/src/models/anagrafica.ts +0 -30
  178. package/src/models/cedente-prestatore.ts +0 -35
  179. package/src/models/cessionario-committente.ts +0 -25
  180. package/src/models/codice-articolo.ts +0 -15
  181. package/src/models/company.ts +0 -16
  182. package/src/models/contatti-trasmittente.ts +0 -15
  183. package/src/models/contatti.ts +0 -20
  184. package/src/models/dati-anagrafici-cedente-prestatore.ts +0 -45
  185. package/src/models/dati-anagrafici-cessionario-committente.ts +0 -20
  186. package/src/models/dati-anagrafici-vettore.ts +0 -25
  187. package/src/models/dati-anagrafici.ts +0 -20
  188. package/src/models/dati-beni-servizi.ts +0 -15
  189. package/src/models/dati-bollo.ts +0 -15
  190. package/src/models/dati-cassa-previdenziale.ts +0 -45
  191. package/src/models/dati-contratto.ts +0 -40
  192. package/src/models/dati-convenzione.ts +0 -40
  193. package/src/models/dati-ddt.ts +0 -20
  194. package/src/models/dati-fatture-collegate.ts +0 -40
  195. package/src/models/dati-generali-documento.ts +0 -65
  196. package/src/models/dati-generali.ts +0 -55
  197. package/src/models/dati-ordine-acquisto.ts +0 -40
  198. package/src/models/dati-pagamento.ts +0 -15
  199. package/src/models/dati-ricezione.ts +0 -40
  200. package/src/models/dati-riepilogo.ts +0 -45
  201. package/src/models/dati-ritenuta.ts +0 -25
  202. package/src/models/dati-sal.ts +0 -10
  203. package/src/models/dati-trasmissione.ts +0 -35
  204. package/src/models/dati-trasporto.ts +0 -70
  205. package/src/models/dati-veicoli.ts +0 -15
  206. package/src/models/dettaglio-linee.ts +0 -85
  207. package/src/models/dettaglio-pagamento.ts +0 -110
  208. package/src/models/document-data.ts +0 -15
  209. package/src/models/event.ts +8 -39
  210. package/src/models/fattura-elettronica-body.ts +0 -30
  211. package/src/models/fattura-elettronica-header.ts +0 -35
  212. package/src/models/fattura-ordinaria.ts +0 -20
  213. package/src/models/fattura-principale.ts +0 -15
  214. package/src/models/id-fiscale-iva.ts +0 -15
  215. package/src/models/id-trasmittente.ts +0 -15
  216. package/src/models/indirizzo-resa.ts +0 -35
  217. package/src/models/iscrizione-rea.ts +0 -30
  218. package/src/models/model-error.ts +0 -8
  219. package/src/models/problem-details.ts +0 -30
  220. package/src/models/problem-http-result.ts +0 -20
  221. package/src/models/rappresentante-fiscale-cessionario-committente.ts +0 -25
  222. package/src/models/rappresentante-fiscale.ts +0 -10
  223. package/src/models/receive.ts +0 -39
  224. package/src/models/sconto-maggiorazione.ts +0 -20
  225. package/src/models/sede-cedente-prestatore.ts +0 -35
  226. package/src/models/sede-cessionario-committente.ts +0 -35
  227. package/src/models/send-reduced.ts +0 -12
  228. package/src/models/send.ts +0 -42
  229. package/src/models/stabile-organizzazione.ts +0 -35
  230. package/src/models/status.ts +0 -9
  231. package/src/models/terzo-intermediario-osoggetto-emittente.ts +0 -10
  232. package/src/models/update.ts +0 -34
  233. package/src/models/web-hook-history.ts +0 -20
  234. package/src/models/web-hook.ts +0 -25
@@ -12,42 +12,22 @@
12
12
  import type { Configuration } from './configuration';
13
13
  import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  export declare const BASE_PATH: string;
15
- /**
16
- *
17
- * @export
18
- */
19
15
  export declare const COLLECTION_FORMATS: {
20
16
  csv: string;
21
17
  ssv: string;
22
18
  tsv: string;
23
19
  pipes: string;
24
20
  };
25
- /**
26
- *
27
- * @export
28
- * @interface RequestArgs
29
- */
30
21
  export interface RequestArgs {
31
22
  url: string;
32
23
  options: RawAxiosRequestConfig;
33
24
  }
34
- /**
35
- *
36
- * @export
37
- * @class BaseAPI
38
- */
39
25
  export declare class BaseAPI {
40
26
  protected basePath: string;
41
27
  protected axios: AxiosInstance;
42
28
  protected configuration: Configuration | undefined;
43
29
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
30
  }
45
- /**
46
- *
47
- * @export
48
- * @class RequiredError
49
- * @extends {Error}
50
- */
51
31
  export declare class RequiredError extends Error {
52
32
  field: string;
53
33
  constructor(field: string, msg?: string);
@@ -58,9 +38,5 @@ interface ServerMap {
58
38
  description: string;
59
39
  }[];
60
40
  }
61
- /**
62
- *
63
- * @export
64
- */
65
41
  export declare const operationServerMap: ServerMap;
66
42
  export {};
package/dist/esm/base.js CHANGED
@@ -13,21 +13,12 @@
13
13
  */
14
14
  import globalAxios from 'axios';
15
15
  export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
16
- /**
17
- *
18
- * @export
19
- */
20
16
  export const COLLECTION_FORMATS = {
21
17
  csv: ",",
22
18
  ssv: " ",
23
19
  tsv: "\t",
24
20
  pipes: "|",
25
21
  };
26
- /**
27
- *
28
- * @export
29
- * @class BaseAPI
30
- */
31
22
  export class BaseAPI {
32
23
  constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
33
24
  var _a;
@@ -40,12 +31,6 @@ export class BaseAPI {
40
31
  }
41
32
  }
42
33
  ;
43
- /**
44
- *
45
- * @export
46
- * @class RequiredError
47
- * @extends {Error}
48
- */
49
34
  export class RequiredError extends Error {
50
35
  constructor(field, msg) {
51
36
  super(msg);
@@ -53,8 +38,4 @@ export class RequiredError extends Error {
53
38
  this.name = "RequiredError";
54
39
  }
55
40
  }
56
- /**
57
- *
58
- * @export
59
- */
60
41
  export const operationServerMap = {};
@@ -13,54 +13,17 @@ import type { Configuration } from "./configuration";
13
13
  import type { RequestArgs } from "./base";
14
14
  import type { AxiosInstance, AxiosResponse } from 'axios';
15
15
  import { URL } from 'url';
16
- /**
17
- *
18
- * @export
19
- */
20
16
  export declare const DUMMY_BASE_URL = "https://example.com";
21
17
  /**
22
18
  *
23
19
  * @throws {RequiredError}
24
- * @export
25
20
  */
26
21
  export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
27
- /**
28
- *
29
- * @export
30
- */
31
22
  export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
32
- /**
33
- *
34
- * @export
35
- */
36
23
  export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
37
- /**
38
- *
39
- * @export
40
- */
41
24
  export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
42
- /**
43
- *
44
- * @export
45
- */
46
25
  export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
47
- /**
48
- *
49
- * @export
50
- */
51
26
  export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
- /**
53
- *
54
- * @export
55
- */
56
27
  export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
57
- /**
58
- *
59
- * @export
60
- */
61
28
  export declare const toPathString: (url: URL) => string;
62
- /**
63
- *
64
- * @export
65
- */
66
29
  export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
@@ -22,25 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  };
23
23
  import { RequiredError } from "./base";
24
24
  import { URLSearchParams } from 'url';
25
- /**
26
- *
27
- * @export
28
- */
29
25
  export const DUMMY_BASE_URL = 'https://example.com';
30
26
  /**
31
27
  *
32
28
  * @throws {RequiredError}
33
- * @export
34
29
  */
35
30
  export const assertParamExists = function (functionName, paramName, paramValue) {
36
31
  if (paramValue === null || paramValue === undefined) {
37
32
  throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);
38
33
  }
39
34
  };
40
- /**
41
- *
42
- * @export
43
- */
44
35
  export const setApiKeyToObject = function (object, keyParamName, configuration) {
45
36
  return __awaiter(this, void 0, void 0, function* () {
46
37
  if (configuration && configuration.apiKey) {
@@ -51,19 +42,11 @@ export const setApiKeyToObject = function (object, keyParamName, configuration)
51
42
  }
52
43
  });
53
44
  };
54
- /**
55
- *
56
- * @export
57
- */
58
45
  export const setBasicAuthToObject = function (object, configuration) {
59
46
  if (configuration && (configuration.username || configuration.password)) {
60
47
  object["auth"] = { username: configuration.username, password: configuration.password };
61
48
  }
62
49
  };
63
- /**
64
- *
65
- * @export
66
- */
67
50
  export const setBearerAuthToObject = function (object, configuration) {
68
51
  return __awaiter(this, void 0, void 0, function* () {
69
52
  if (configuration && configuration.accessToken) {
@@ -74,10 +57,6 @@ export const setBearerAuthToObject = function (object, configuration) {
74
57
  }
75
58
  });
76
59
  };
77
- /**
78
- *
79
- * @export
80
- */
81
60
  export const setOAuthToObject = function (object, name, scopes, configuration) {
82
61
  return __awaiter(this, void 0, void 0, function* () {
83
62
  if (configuration && configuration.accessToken) {
@@ -108,19 +87,11 @@ function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
108
87
  }
109
88
  }
110
89
  }
111
- /**
112
- *
113
- * @export
114
- */
115
90
  export const setSearchParams = function (url, ...objects) {
116
91
  const searchParams = new URLSearchParams(url.search);
117
92
  setFlattenedQueryParams(searchParams, objects);
118
93
  url.search = searchParams.toString();
119
94
  };
120
- /**
121
- *
122
- * @export
123
- */
124
95
  export const serializeDataIfNeeded = function (value, requestOptions, configuration) {
125
96
  const nonString = typeof value !== 'string';
126
97
  const needsSerialization = nonString && configuration && configuration.isJsonMime
@@ -130,17 +101,9 @@ export const serializeDataIfNeeded = function (value, requestOptions, configurat
130
101
  ? JSON.stringify(value !== undefined ? value : {})
131
102
  : (value || "");
132
103
  };
133
- /**
134
- *
135
- * @export
136
- */
137
104
  export const toPathString = function (url) {
138
105
  return url.pathname + url.search + url.hash;
139
106
  };
140
- /**
141
- *
142
- * @export
143
- */
144
107
  export const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
145
108
  return (axios = globalAxios, basePath = BASE_PATH) => {
146
109
  var _a;
@@ -9,11 +9,23 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ interface AWSv4Configuration {
13
+ options?: {
14
+ region?: string;
15
+ service?: string;
16
+ };
17
+ credentials?: {
18
+ accessKeyId?: string;
19
+ secretAccessKey?: string;
20
+ sessionToken?: string;
21
+ };
22
+ }
12
23
  export interface ConfigurationParameters {
13
24
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
25
  username?: string;
15
26
  password?: string;
16
27
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
28
+ awsv4?: AWSv4Configuration;
17
29
  basePath?: string;
18
30
  serverIndex?: number;
19
31
  baseOptions?: any;
@@ -23,49 +35,43 @@ export declare class Configuration {
23
35
  /**
24
36
  * parameter for apiKey security
25
37
  * @param name security name
26
- * @memberof Configuration
27
38
  */
28
39
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
29
40
  /**
30
41
  * parameter for basic security
31
- *
32
- * @type {string}
33
- * @memberof Configuration
34
42
  */
35
43
  username?: string;
36
44
  /**
37
45
  * parameter for basic security
38
- *
39
- * @type {string}
40
- * @memberof Configuration
41
46
  */
42
47
  password?: string;
43
48
  /**
44
49
  * parameter for oauth2 security
45
50
  * @param name security name
46
51
  * @param scopes oauth2 scope
47
- * @memberof Configuration
48
52
  */
49
53
  accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
50
54
  /**
51
- * override base path
52
- *
53
- * @type {string}
55
+ * parameter for aws4 signature security
56
+ * @param {Object} AWS4Signature - AWS4 Signature security
57
+ * @param {string} options.region - aws region
58
+ * @param {string} options.service - name of the service.
59
+ * @param {string} credentials.accessKeyId - aws access key id
60
+ * @param {string} credentials.secretAccessKey - aws access key
61
+ * @param {string} credentials.sessionToken - aws session token
54
62
  * @memberof Configuration
55
63
  */
64
+ awsv4?: AWSv4Configuration;
65
+ /**
66
+ * override base path
67
+ */
56
68
  basePath?: string;
57
69
  /**
58
70
  * override server index
59
- *
60
- * @type {number}
61
- * @memberof Configuration
62
71
  */
63
72
  serverIndex?: number;
64
73
  /**
65
74
  * base options for axios calls
66
- *
67
- * @type {any}
68
- * @memberof Configuration
69
75
  */
70
76
  baseOptions?: any;
71
77
  /**
@@ -89,3 +95,4 @@ export declare class Configuration {
89
95
  */
90
96
  isJsonMime(mime: string): boolean;
91
97
  }
98
+ export {};
@@ -1,5 +1,4 @@
1
1
  /* tslint:disable */
2
- /* eslint-disable */
3
2
  /**
4
3
  * Invoicetronic API
5
4
  * The [Invoicetronic API][2] is a RESTful service that allows you to send and receive invoices through the Italian [Servizio di Interscambio (SDI)][1], or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools. For more information, see [Invoicetronic website][2] [1]: https://www.fatturapa.gov.it/it/sistemainterscambio/cose-il-sdi/ [2]: https://invoicetronic.com/
@@ -18,9 +17,10 @@ export class Configuration {
18
17
  this.username = param.username;
19
18
  this.password = param.password;
20
19
  this.accessToken = param.accessToken;
20
+ this.awsv4 = param.awsv4;
21
21
  this.basePath = param.basePath;
22
22
  this.serverIndex = param.serverIndex;
23
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.0.0/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
23
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "Invoicetronic/1.1/TypeScript-SDK" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
24
24
  this.formDataCtor = param.formDataCtor;
25
25
  }
26
26
  /**
@@ -15,7 +15,6 @@ import { type RequestArgs, BaseAPI } from '../../base';
15
15
  import type { Company } from '../../src/models';
16
16
  /**
17
17
  * CompanyApi - axios parameter creator
18
- * @export
19
18
  */
20
19
  export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration) => {
21
20
  /**
@@ -63,7 +62,6 @@ export declare const CompanyApiAxiosParamCreator: (configuration?: Configuration
63
62
  };
64
63
  /**
65
64
  * CompanyApi - functional programming interface
66
- * @export
67
65
  */
68
66
  export declare const CompanyApiFp: (configuration?: Configuration) => {
69
67
  /**
@@ -111,7 +109,6 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
111
109
  };
112
110
  /**
113
111
  * CompanyApi - factory interface
114
- * @export
115
112
  */
116
113
  export declare const CompanyApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
117
114
  /**
@@ -159,8 +156,6 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
159
156
  };
160
157
  /**
161
158
  * CompanyApi - interface
162
- * @export
163
- * @interface CompanyApi
164
159
  */
165
160
  export interface CompanyApiInterface {
166
161
  /**
@@ -171,7 +166,6 @@ export interface CompanyApiInterface {
171
166
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
172
167
  * @param {*} [options] Override http request option.
173
168
  * @throws {RequiredError}
174
- * @memberof CompanyApiInterface
175
169
  */
176
170
  companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Company>>;
177
171
  /**
@@ -180,7 +174,6 @@ export interface CompanyApiInterface {
180
174
  * @param {number} id Item id
181
175
  * @param {*} [options] Override http request option.
182
176
  * @throws {RequiredError}
183
- * @memberof CompanyApiInterface
184
177
  */
185
178
  companyIdDelete(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
186
179
  /**
@@ -189,7 +182,6 @@ export interface CompanyApiInterface {
189
182
  * @param {number} id Item id
190
183
  * @param {*} [options] Override http request option.
191
184
  * @throws {RequiredError}
192
- * @memberof CompanyApiInterface
193
185
  */
194
186
  companyIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
195
187
  /**
@@ -198,7 +190,6 @@ export interface CompanyApiInterface {
198
190
  * @param {Company} company
199
191
  * @param {*} [options] Override http request option.
200
192
  * @throws {RequiredError}
201
- * @memberof CompanyApiInterface
202
193
  */
203
194
  companyPost(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
204
195
  /**
@@ -207,15 +198,11 @@ export interface CompanyApiInterface {
207
198
  * @param {Company} company
208
199
  * @param {*} [options] Override http request option.
209
200
  * @throws {RequiredError}
210
- * @memberof CompanyApiInterface
211
201
  */
212
202
  companyPut(company: Company, options?: RawAxiosRequestConfig): AxiosPromise<Company>;
213
203
  }
214
204
  /**
215
205
  * CompanyApi - object-oriented interface
216
- * @export
217
- * @class CompanyApi
218
- * @extends {BaseAPI}
219
206
  */
220
207
  export declare class CompanyApi extends BaseAPI implements CompanyApiInterface {
221
208
  /**
@@ -226,43 +213,38 @@ export declare class CompanyApi extends BaseAPI implements CompanyApiInterface {
226
213
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
227
214
  * @param {*} [options] Override http request option.
228
215
  * @throws {RequiredError}
229
- * @memberof CompanyApi
230
216
  */
231
- companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company[], any>>;
217
+ companyGet(page?: number, pageSize?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company[], any, {}>>;
232
218
  /**
233
219
  * Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
234
220
  * @summary Delete a company
235
221
  * @param {number} id Item id
236
222
  * @param {*} [options] Override http request option.
237
223
  * @throws {RequiredError}
238
- * @memberof CompanyApi
239
224
  */
240
- companyIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any>>;
225
+ companyIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
241
226
  /**
242
227
  * Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
243
228
  * @summary Get a company by id
244
229
  * @param {number} id Item id
245
230
  * @param {*} [options] Override http request option.
246
231
  * @throws {RequiredError}
247
- * @memberof CompanyApi
248
232
  */
249
- companyIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any>>;
233
+ companyIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
250
234
  /**
251
235
  * Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
252
236
  * @summary Add a company
253
237
  * @param {Company} company
254
238
  * @param {*} [options] Override http request option.
255
239
  * @throws {RequiredError}
256
- * @memberof CompanyApi
257
240
  */
258
- companyPost(company: Company, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any>>;
241
+ companyPost(company: Company, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
259
242
  /**
260
243
  * Companies are the entities that send and receive invoices. As you send invoices, companies are added as needed (company details are extrapolated). **You can only receive invoices for existing companies, so ensure they exist**.
261
244
  * @summary Update a company
262
245
  * @param {Company} company
263
246
  * @param {*} [options] Override http request option.
264
247
  * @throws {RequiredError}
265
- * @memberof CompanyApi
266
248
  */
267
- companyPut(company: Company, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any>>;
249
+ companyPut(company: Company, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Company, any, {}>>;
268
250
  }
@@ -31,7 +31,6 @@ import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParam
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
33
33
  * CompanyApi - axios parameter creator
34
- * @export
35
34
  */
36
35
  export const CompanyApiAxiosParamCreator = function (configuration) {
37
36
  return {
@@ -209,7 +208,6 @@ export const CompanyApiAxiosParamCreator = function (configuration) {
209
208
  };
210
209
  /**
211
210
  * CompanyApi - functional programming interface
212
- * @export
213
211
  */
214
212
  export const CompanyApiFp = function (configuration) {
215
213
  const localVarAxiosParamCreator = CompanyApiAxiosParamCreator(configuration);
@@ -300,7 +298,6 @@ export const CompanyApiFp = function (configuration) {
300
298
  };
301
299
  /**
302
300
  * CompanyApi - factory interface
303
- * @export
304
301
  */
305
302
  export const CompanyApiFactory = function (configuration, basePath, axios) {
306
303
  const localVarFp = CompanyApiFp(configuration);
@@ -361,9 +358,6 @@ export const CompanyApiFactory = function (configuration, basePath, axios) {
361
358
  };
362
359
  /**
363
360
  * CompanyApi - object-oriented interface
364
- * @export
365
- * @class CompanyApi
366
- * @extends {BaseAPI}
367
361
  */
368
362
  export class CompanyApi extends BaseAPI {
369
363
  /**
@@ -374,7 +368,6 @@ export class CompanyApi extends BaseAPI {
374
368
  * @param {string} [sort] Sort by field. Prefix with \&#39;-\&#39; for descending order.
375
369
  * @param {*} [options] Override http request option.
376
370
  * @throws {RequiredError}
377
- * @memberof CompanyApi
378
371
  */
379
372
  companyGet(page, pageSize, sort, options) {
380
373
  return CompanyApiFp(this.configuration).companyGet(page, pageSize, sort, options).then((request) => request(this.axios, this.basePath));
@@ -385,7 +378,6 @@ export class CompanyApi extends BaseAPI {
385
378
  * @param {number} id Item id
386
379
  * @param {*} [options] Override http request option.
387
380
  * @throws {RequiredError}
388
- * @memberof CompanyApi
389
381
  */
390
382
  companyIdDelete(id, options) {
391
383
  return CompanyApiFp(this.configuration).companyIdDelete(id, options).then((request) => request(this.axios, this.basePath));
@@ -396,7 +388,6 @@ export class CompanyApi extends BaseAPI {
396
388
  * @param {number} id Item id
397
389
  * @param {*} [options] Override http request option.
398
390
  * @throws {RequiredError}
399
- * @memberof CompanyApi
400
391
  */
401
392
  companyIdGet(id, options) {
402
393
  return CompanyApiFp(this.configuration).companyIdGet(id, options).then((request) => request(this.axios, this.basePath));
@@ -407,7 +398,6 @@ export class CompanyApi extends BaseAPI {
407
398
  * @param {Company} company
408
399
  * @param {*} [options] Override http request option.
409
400
  * @throws {RequiredError}
410
- * @memberof CompanyApi
411
401
  */
412
402
  companyPost(company, options) {
413
403
  return CompanyApiFp(this.configuration).companyPost(company, options).then((request) => request(this.axios, this.basePath));
@@ -418,7 +408,6 @@ export class CompanyApi extends BaseAPI {
418
408
  * @param {Company} company
419
409
  * @param {*} [options] Override http request option.
420
410
  * @throws {RequiredError}
421
- * @memberof CompanyApi
422
411
  */
423
412
  companyPut(company, options) {
424
413
  return CompanyApiFp(this.configuration).companyPut(company, options).then((request) => request(this.axios, this.basePath));
@@ -15,7 +15,6 @@ import { type RequestArgs, BaseAPI } from '../../base';
15
15
  import type { Event } from '../../src/models';
16
16
  /**
17
17
  * LogApi - axios parameter creator
18
- * @export
19
18
  */
20
19
  export declare const LogApiAxiosParamCreator: (configuration?: Configuration) => {
21
20
  /**
@@ -50,7 +49,6 @@ export declare const LogApiAxiosParamCreator: (configuration?: Configuration) =>
50
49
  };
51
50
  /**
52
51
  * LogApi - functional programming interface
53
- * @export
54
52
  */
55
53
  export declare const LogApiFp: (configuration?: Configuration) => {
56
54
  /**
@@ -85,7 +83,6 @@ export declare const LogApiFp: (configuration?: Configuration) => {
85
83
  };
86
84
  /**
87
85
  * LogApi - factory interface
88
- * @export
89
86
  */
90
87
  export declare const LogApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
91
88
  /**
@@ -120,8 +117,6 @@ export declare const LogApiFactory: (configuration?: Configuration, basePath?: s
120
117
  };
121
118
  /**
122
119
  * LogApi - interface
123
- * @export
124
- * @interface LogApi
125
120
  */
126
121
  export interface LogApiInterface {
127
122
  /**
@@ -143,7 +138,6 @@ export interface LogApiInterface {
143
138
  * @param {string} [dateTimeTo] Date and time of the event
144
139
  * @param {*} [options] Override http request option.
145
140
  * @throws {RequiredError}
146
- * @memberof LogApiInterface
147
141
  */
148
142
  logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Event>>;
149
143
  /**
@@ -152,15 +146,11 @@ export interface LogApiInterface {
152
146
  * @param {number} id Item id
153
147
  * @param {*} [options] Override http request option.
154
148
  * @throws {RequiredError}
155
- * @memberof LogApiInterface
156
149
  */
157
150
  logIdGet(id: number, options?: RawAxiosRequestConfig): AxiosPromise<Event>;
158
151
  }
159
152
  /**
160
153
  * LogApi - object-oriented interface
161
- * @export
162
- * @class LogApi
163
- * @extends {BaseAPI}
164
154
  */
165
155
  export declare class LogApi extends BaseAPI implements LogApiInterface {
166
156
  /**
@@ -182,16 +172,14 @@ export declare class LogApi extends BaseAPI implements LogApiInterface {
182
172
  * @param {string} [dateTimeTo] Date and time of the event
183
173
  * @param {*} [options] Override http request option.
184
174
  * @throws {RequiredError}
185
- * @memberof LogApi
186
175
  */
187
- logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any>>;
176
+ logGet(companyId?: number, endpoint?: string, method?: string, apiVerion?: number, statusCode?: number, dateCreatedFrom?: string, dateCreatedTo?: string, page?: number, pageSize?: number, sort?: string, query?: string, success?: boolean, dateTimeFrom?: string, dateTimeTo?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event[], any, {}>>;
188
177
  /**
189
178
  * Every API operation is logged and can be retrieved here. Log records are preserved for 15 days.
190
179
  * @summary Get an event by id
191
180
  * @param {number} id Item id
192
181
  * @param {*} [options] Override http request option.
193
182
  * @throws {RequiredError}
194
- * @memberof LogApi
195
183
  */
196
- logIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event, any>>;
184
+ logIdGet(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Event, any, {}>>;
197
185
  }
@@ -31,7 +31,6 @@ import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setSearchParam
31
31
  import { BASE_PATH, BaseAPI, operationServerMap } from '../../base';
32
32
  /**
33
33
  * LogApi - axios parameter creator
34
- * @export
35
34
  */
36
35
  export const LogApiAxiosParamCreator = function (configuration) {
37
36
  return {
@@ -163,7 +162,6 @@ export const LogApiAxiosParamCreator = function (configuration) {
163
162
  };
164
163
  /**
165
164
  * LogApi - functional programming interface
166
- * @export
167
165
  */
168
166
  export const LogApiFp = function (configuration) {
169
167
  const localVarAxiosParamCreator = LogApiAxiosParamCreator(configuration);
@@ -217,7 +215,6 @@ export const LogApiFp = function (configuration) {
217
215
  };
218
216
  /**
219
217
  * LogApi - factory interface
220
- * @export
221
218
  */
222
219
  export const LogApiFactory = function (configuration, basePath, axios) {
223
220
  const localVarFp = LogApiFp(configuration);
@@ -259,9 +256,6 @@ export const LogApiFactory = function (configuration, basePath, axios) {
259
256
  };
260
257
  /**
261
258
  * LogApi - object-oriented interface
262
- * @export
263
- * @class LogApi
264
- * @extends {BaseAPI}
265
259
  */
266
260
  export class LogApi extends BaseAPI {
267
261
  /**
@@ -283,7 +277,6 @@ export class LogApi extends BaseAPI {
283
277
  * @param {string} [dateTimeTo] Date and time of the event
284
278
  * @param {*} [options] Override http request option.
285
279
  * @throws {RequiredError}
286
- * @memberof LogApi
287
280
  */
288
281
  logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options) {
289
282
  return LogApiFp(this.configuration).logGet(companyId, endpoint, method, apiVerion, statusCode, dateCreatedFrom, dateCreatedTo, page, pageSize, sort, query, success, dateTimeFrom, dateTimeTo, options).then((request) => request(this.axios, this.basePath));
@@ -294,7 +287,6 @@ export class LogApi extends BaseAPI {
294
287
  * @param {number} id Item id
295
288
  * @param {*} [options] Override http request option.
296
289
  * @throws {RequiredError}
297
- * @memberof LogApi
298
290
  */
299
291
  logIdGet(id, options) {
300
292
  return LogApiFp(this.configuration).logIdGet(id, options).then((request) => request(this.axios, this.basePath));