@icib.dev/api-client 1.0.5 → 1.1.1
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.
- package/README.md +29 -11
- package/dist/scripts/generate.js +75 -7
- package/dist/scripts/verify.js +0 -0
- package/package.json +9 -16
- package/dist/api/apiClient.d.ts +0 -6
- package/dist/api/apiClient.d.ts.map +0 -1
- package/dist/api/apiClient.js +0 -5
- package/dist/api/client.d.ts +0 -15
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.js +0 -37
- package/dist/api/contexts/QR_Code.d.ts +0 -41
- package/dist/api/contexts/QR_Code.d.ts.map +0 -1
- package/dist/api/contexts/QR_Code.js +0 -42
- package/dist/api/contexts/allegati.d.ts +0 -58
- package/dist/api/contexts/allegati.d.ts.map +0 -1
- package/dist/api/contexts/allegati.js +0 -52
- package/dist/api/contexts/allegato.d.ts +0 -19
- package/dist/api/contexts/allegato.d.ts.map +0 -1
- package/dist/api/contexts/allegato.js +0 -22
- package/dist/api/contexts/articolo.d.ts +0 -98
- package/dist/api/contexts/articolo.d.ts.map +0 -1
- package/dist/api/contexts/articolo.js +0 -76
- package/dist/api/contexts/aspetto_beni.d.ts +0 -73
- package/dist/api/contexts/aspetto_beni.d.ts.map +0 -1
- package/dist/api/contexts/aspetto_beni.js +0 -57
- package/dist/api/contexts/auth.d.ts +0 -23
- package/dist/api/contexts/auth.d.ts.map +0 -1
- package/dist/api/contexts/auth.js +0 -29
- package/dist/api/contexts/azienda.d.ts +0 -81
- package/dist/api/contexts/azienda.d.ts.map +0 -1
- package/dist/api/contexts/azienda.js +0 -61
- package/dist/api/contexts/banca.d.ts +0 -77
- package/dist/api/contexts/banca.d.ts.map +0 -1
- package/dist/api/contexts/banca.js +0 -59
- package/dist/api/contexts/building-media.d.ts +0 -109
- package/dist/api/contexts/building-media.d.ts.map +0 -1
- package/dist/api/contexts/building-media.js +0 -93
- package/dist/api/contexts/building.d.ts +0 -77
- package/dist/api/contexts/building.d.ts.map +0 -1
- package/dist/api/contexts/building.js +0 -59
- package/dist/api/contexts/catalog.d.ts +0 -77
- package/dist/api/contexts/catalog.d.ts.map +0 -1
- package/dist/api/contexts/catalog.js +0 -59
- package/dist/api/contexts/causale_trasporto.d.ts +0 -77
- package/dist/api/contexts/causale_trasporto.d.ts.map +0 -1
- package/dist/api/contexts/causale_trasporto.js +0 -59
- package/dist/api/contexts/change_password.d.ts +0 -5
- package/dist/api/contexts/change_password.d.ts.map +0 -1
- package/dist/api/contexts/change_password.js +0 -8
- package/dist/api/contexts/client-catalog.d.ts +0 -81
- package/dist/api/contexts/client-catalog.d.ts.map +0 -1
- package/dist/api/contexts/client-catalog.js +0 -61
- package/dist/api/contexts/client-user.d.ts +0 -92
- package/dist/api/contexts/client-user.d.ts.map +0 -1
- package/dist/api/contexts/client-user.js +0 -63
- package/dist/api/contexts/client.d.ts +0 -85
- package/dist/api/contexts/client.d.ts.map +0 -1
- package/dist/api/contexts/client.js +0 -67
- package/dist/api/contexts/cliente_fornitore.d.ts +0 -157
- package/dist/api/contexts/cliente_fornitore.d.ts.map +0 -1
- package/dist/api/contexts/cliente_fornitore.js +0 -100
- package/dist/api/contexts/cliente_fornitore_banca.d.ts +0 -73
- package/dist/api/contexts/cliente_fornitore_banca.d.ts.map +0 -1
- package/dist/api/contexts/cliente_fornitore_banca.js +0 -57
- package/dist/api/contexts/cliente_fornitore_contatto.d.ts +0 -85
- package/dist/api/contexts/cliente_fornitore_contatto.d.ts.map +0 -1
- package/dist/api/contexts/cliente_fornitore_contatto.js +0 -63
- package/dist/api/contexts/cliente_fornitore_sede.d.ts +0 -81
- package/dist/api/contexts/cliente_fornitore_sede.d.ts.map +0 -1
- package/dist/api/contexts/cliente_fornitore_sede.js +0 -61
- package/dist/api/contexts/codice_iva.d.ts +0 -81
- package/dist/api/contexts/codice_iva.d.ts.map +0 -1
- package/dist/api/contexts/codice_iva.js +0 -61
- package/dist/api/contexts/comment.d.ts +0 -73
- package/dist/api/contexts/comment.d.ts.map +0 -1
- package/dist/api/contexts/comment.js +0 -57
- package/dist/api/contexts/contact.d.ts +0 -81
- package/dist/api/contexts/contact.d.ts.map +0 -1
- package/dist/api/contexts/contact.js +0 -61
- package/dist/api/contexts/contract.d.ts +0 -73
- package/dist/api/contexts/contract.d.ts.map +0 -1
- package/dist/api/contexts/contract.js +0 -57
- package/dist/api/contexts/dashboard.d.ts +0 -9
- package/dist/api/contexts/dashboard.d.ts.map +0 -1
- package/dist/api/contexts/dashboard.js +0 -12
- package/dist/api/contexts/documento.d.ts +0 -1036
- package/dist/api/contexts/documento.d.ts.map +0 -1
- package/dist/api/contexts/documento.js +0 -733
- package/dist/api/contexts/equipment.d.ts +0 -85
- package/dist/api/contexts/equipment.d.ts.map +0 -1
- package/dist/api/contexts/equipment.js +0 -63
- package/dist/api/contexts/equipment_document.d.ts +0 -109
- package/dist/api/contexts/equipment_document.d.ts.map +0 -1
- package/dist/api/contexts/equipment_document.js +0 -93
- package/dist/api/contexts/equipment_field.d.ts +0 -77
- package/dist/api/contexts/equipment_field.d.ts.map +0 -1
- package/dist/api/contexts/equipment_field.js +0 -59
- package/dist/api/contexts/equipment_model.d.ts +0 -77
- package/dist/api/contexts/equipment_model.d.ts.map +0 -1
- package/dist/api/contexts/equipment_model.js +0 -59
- package/dist/api/contexts/equipment_model_checklist_item.d.ts +0 -73
- package/dist/api/contexts/equipment_model_checklist_item.d.ts.map +0 -1
- package/dist/api/contexts/equipment_model_checklist_item.js +0 -57
- package/dist/api/contexts/fe-invio.d.ts +0 -110
- package/dist/api/contexts/fe-invio.d.ts.map +0 -1
- package/dist/api/contexts/fe-invio.js +0 -76
- package/dist/api/contexts/fe-ricezione.d.ts +0 -385
- package/dist/api/contexts/fe-ricezione.d.ts.map +0 -1
- package/dist/api/contexts/fe-ricezione.js +0 -287
- package/dist/api/contexts/field.d.ts +0 -85
- package/dist/api/contexts/field.d.ts.map +0 -1
- package/dist/api/contexts/field.js +0 -63
- package/dist/api/contexts/info.d.ts +0 -5
- package/dist/api/contexts/info.d.ts.map +0 -1
- package/dist/api/contexts/info.js +0 -8
- package/dist/api/contexts/items.d.ts +0 -5
- package/dist/api/contexts/items.d.ts.map +0 -1
- package/dist/api/contexts/items.js +0 -8
- package/dist/api/contexts/law.d.ts +0 -89
- package/dist/api/contexts/law.d.ts.map +0 -1
- package/dist/api/contexts/law.js +0 -73
- package/dist/api/contexts/magazzino.d.ts +0 -81
- package/dist/api/contexts/magazzino.d.ts.map +0 -1
- package/dist/api/contexts/magazzino.js +0 -61
- package/dist/api/contexts/me.d.ts +0 -5
- package/dist/api/contexts/me.d.ts.map +0 -1
- package/dist/api/contexts/me.js +0 -8
- package/dist/api/contexts/media.d.ts +0 -57
- package/dist/api/contexts/media.d.ts.map +0 -1
- package/dist/api/contexts/media.js +0 -44
- package/dist/api/contexts/movimento.d.ts +0 -85
- package/dist/api/contexts/movimento.d.ts.map +0 -1
- package/dist/api/contexts/movimento.js +0 -63
- package/dist/api/contexts/movimento_magazzino.d.ts +0 -97
- package/dist/api/contexts/movimento_magazzino.d.ts.map +0 -1
- package/dist/api/contexts/movimento_magazzino.js +0 -69
- package/dist/api/contexts/non-conformity-product.d.ts +0 -81
- package/dist/api/contexts/non-conformity-product.d.ts.map +0 -1
- package/dist/api/contexts/non-conformity-product.js +0 -61
- package/dist/api/contexts/non_conformity.d.ts +0 -113
- package/dist/api/contexts/non_conformity.d.ts.map +0 -1
- package/dist/api/contexts/non_conformity.js +0 -85
- package/dist/api/contexts/non_conformity_equipment.d.ts +0 -85
- package/dist/api/contexts/non_conformity_equipment.d.ts.map +0 -1
- package/dist/api/contexts/non_conformity_equipment.js +0 -63
- package/dist/api/contexts/offer-item-product.d.ts +0 -85
- package/dist/api/contexts/offer-item-product.d.ts.map +0 -1
- package/dist/api/contexts/offer-item-product.js +0 -63
- package/dist/api/contexts/offer-item.d.ts +0 -77
- package/dist/api/contexts/offer-item.d.ts.map +0 -1
- package/dist/api/contexts/offer-item.js +0 -59
- package/dist/api/contexts/offer.d.ts +0 -111
- package/dist/api/contexts/offer.d.ts.map +0 -1
- package/dist/api/contexts/offer.js +0 -85
- package/dist/api/contexts/pagamento.d.ts +0 -97
- package/dist/api/contexts/pagamento.d.ts.map +0 -1
- package/dist/api/contexts/pagamento.js +0 -79
- package/dist/api/contexts/piano_conti.d.ts +0 -77
- package/dist/api/contexts/piano_conti.d.ts.map +0 -1
- package/dist/api/contexts/piano_conti.js +0 -59
- package/dist/api/contexts/price-tag.d.ts +0 -77
- package/dist/api/contexts/price-tag.d.ts.map +0 -1
- package/dist/api/contexts/price-tag.js +0 -59
- package/dist/api/contexts/product-accessory.d.ts +0 -77
- package/dist/api/contexts/product-accessory.d.ts.map +0 -1
- package/dist/api/contexts/product-accessory.js +0 -59
- package/dist/api/contexts/product-family.d.ts +0 -81
- package/dist/api/contexts/product-family.d.ts.map +0 -1
- package/dist/api/contexts/product-family.js +0 -69
- package/dist/api/contexts/product-installation.d.ts +0 -77
- package/dist/api/contexts/product-installation.d.ts.map +0 -1
- package/dist/api/contexts/product-installation.js +0 -59
- package/dist/api/contexts/product-law.d.ts +0 -77
- package/dist/api/contexts/product-law.d.ts.map +0 -1
- package/dist/api/contexts/product-law.js +0 -59
- package/dist/api/contexts/product-media.d.ts +0 -117
- package/dist/api/contexts/product-media.d.ts.map +0 -1
- package/dist/api/contexts/product-media.js +0 -101
- package/dist/api/contexts/product-supplier.d.ts +0 -81
- package/dist/api/contexts/product-supplier.d.ts.map +0 -1
- package/dist/api/contexts/product-supplier.js +0 -61
- package/dist/api/contexts/product.d.ts +0 -161
- package/dist/api/contexts/product.d.ts.map +0 -1
- package/dist/api/contexts/product.js +0 -123
- package/dist/api/contexts/registry.d.ts +0 -89
- package/dist/api/contexts/registry.d.ts.map +0 -1
- package/dist/api/contexts/registry.js +0 -65
- package/dist/api/contexts/registry_model.d.ts +0 -97
- package/dist/api/contexts/registry_model.d.ts.map +0 -1
- package/dist/api/contexts/registry_model.js +0 -85
- package/dist/api/contexts/scadenzario.d.ts +0 -151
- package/dist/api/contexts/scadenzario.d.ts.map +0 -1
- package/dist/api/contexts/scadenzario.js +0 -106
- package/dist/api/contexts/scadenzario_tipologia.d.ts +0 -73
- package/dist/api/contexts/scadenzario_tipologia.d.ts.map +0 -1
- package/dist/api/contexts/scadenzario_tipologia.js +0 -57
- package/dist/api/contexts/sezionale.d.ts +0 -81
- package/dist/api/contexts/sezionale.d.ts.map +0 -1
- package/dist/api/contexts/sezionale.js +0 -61
- package/dist/api/contexts/supplier.d.ts +0 -81
- package/dist/api/contexts/supplier.d.ts.map +0 -1
- package/dist/api/contexts/supplier.js +0 -69
- package/dist/api/contexts/tipo_articolo.d.ts +0 -73
- package/dist/api/contexts/tipo_articolo.d.ts.map +0 -1
- package/dist/api/contexts/tipo_articolo.js +0 -57
- package/dist/api/contexts/unitamisura.d.ts +0 -77
- package/dist/api/contexts/unitamisura.d.ts.map +0 -1
- package/dist/api/contexts/unitamisura.js +0 -59
- package/dist/api/contexts/utente.d.ts +0 -99
- package/dist/api/contexts/utente.d.ts.map +0 -1
- package/dist/api/contexts/utente.js +0 -77
- package/dist/api/contexts/validation.d.ts +0 -81
- package/dist/api/contexts/validation.d.ts.map +0 -1
- package/dist/api/contexts/validation.js +0 -61
- package/dist/api/contexts/visit-equipment-media.d.ts +0 -109
- package/dist/api/contexts/visit-equipment-media.d.ts.map +0 -1
- package/dist/api/contexts/visit-equipment-media.js +0 -93
- package/dist/api/contexts/visit-equipment.d.ts +0 -87
- package/dist/api/contexts/visit-equipment.d.ts.map +0 -1
- package/dist/api/contexts/visit-equipment.js +0 -69
- package/dist/api/contexts/visit-job.d.ts +0 -77
- package/dist/api/contexts/visit-job.d.ts.map +0 -1
- package/dist/api/contexts/visit-job.js +0 -59
- package/dist/api/contexts/visit-technician.d.ts +0 -77
- package/dist/api/contexts/visit-technician.d.ts.map +0 -1
- package/dist/api/contexts/visit-technician.js +0 -59
- package/dist/api/contexts/visit.d.ts +0 -107
- package/dist/api/contexts/visit.d.ts.map +0 -1
- package/dist/api/contexts/visit.js +0 -83
- package/dist/api/index.d.ts +0 -5
- package/dist/api/index.d.ts.map +0 -1
- package/dist/api/index.js +0 -4
- package/dist/api/types/index.d.ts +0 -10
- package/dist/api/types/index.d.ts.map +0 -1
- package/dist/api/types/index.js +0 -2
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Auto-generated API client for context: product-accessory
|
|
2
|
-
import { client } from "../client.js";
|
|
3
|
-
/** API client for product-accessory endpoints */
|
|
4
|
-
export const productAccessory = {
|
|
5
|
-
/**
|
|
6
|
-
* @param params.search - A search term.
|
|
7
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
8
|
-
* @param params.product - Query parameter
|
|
9
|
-
* @param params.accessory - Query parameter
|
|
10
|
-
* @param params.page - A page number within the paginated result set.
|
|
11
|
-
* @param params.size - Number of results to return per page.
|
|
12
|
-
*/
|
|
13
|
-
async list(params) {
|
|
14
|
-
return client.get("/api/product-accessory/", { params });
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* @param data - Request body
|
|
18
|
-
*/
|
|
19
|
-
async create(data) {
|
|
20
|
-
return client.post("/api/product-accessory/", data);
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* @param params.search - A search term.
|
|
24
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
25
|
-
* @param params.product - Query parameter
|
|
26
|
-
* @param params.accessory - Query parameter
|
|
27
|
-
* @param params.page - A page number within the paginated result set.
|
|
28
|
-
* @param params.size - Number of results to return per page.
|
|
29
|
-
*/
|
|
30
|
-
async select(params) {
|
|
31
|
-
return client.get("/api/product-accessory/select/", { params });
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @param params.id - A UUID string identifying this Product Accessory.
|
|
35
|
-
*/
|
|
36
|
-
async read(params) {
|
|
37
|
-
return client.get(`/api/product-accessory/${String(params.id)}/`);
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* @param params.id - A UUID string identifying this Product Accessory.
|
|
41
|
-
* @param data - Request body
|
|
42
|
-
*/
|
|
43
|
-
async update(params, data) {
|
|
44
|
-
return client.put(`/api/product-accessory/${String(params.id)}/`, data);
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* @param params.id - A UUID string identifying this Product Accessory.
|
|
48
|
-
* @param data - Request body
|
|
49
|
-
*/
|
|
50
|
-
async partialUpdate(params, data) {
|
|
51
|
-
return client.patch(`/api/product-accessory/${String(params.id)}/`, data);
|
|
52
|
-
},
|
|
53
|
-
/**
|
|
54
|
-
* @param params.id - A UUID string identifying this Product Accessory.
|
|
55
|
-
*/
|
|
56
|
-
async delete(params) {
|
|
57
|
-
return client.delete(`/api/product-accessory/${String(params.id)}/`);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { type BlobDownloadOptions } from "../client.js";
|
|
2
|
-
import type { ProductFamily } from "../types/index.js";
|
|
3
|
-
/** API client for product-family endpoints */
|
|
4
|
-
export declare const productFamily: {
|
|
5
|
-
/**
|
|
6
|
-
* @param params.search - A search term.
|
|
7
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
8
|
-
* @param params.name - Query parameter
|
|
9
|
-
* @param params.page - A page number within the paginated result set.
|
|
10
|
-
* @param params.size - Number of results to return per page.
|
|
11
|
-
*/
|
|
12
|
-
list(params?: {
|
|
13
|
-
search?: string;
|
|
14
|
-
ordering?: string;
|
|
15
|
-
name?: string;
|
|
16
|
-
page?: number;
|
|
17
|
-
size?: number;
|
|
18
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
19
|
-
count: number;
|
|
20
|
-
next?: string | null;
|
|
21
|
-
previous?: string | null;
|
|
22
|
-
results: Array<ProductFamily>;
|
|
23
|
-
}, any, {}>>;
|
|
24
|
-
/**
|
|
25
|
-
* @param data - Request body
|
|
26
|
-
*/
|
|
27
|
-
create(data: ProductFamily): Promise<import("axios").AxiosResponse<ProductFamily, any, {}>>;
|
|
28
|
-
/**
|
|
29
|
-
* Importa famiglie prodotto da CSV
|
|
30
|
-
* Crea in blocco le famiglie di prodotto da un file CSV. **Colonne CSV:** - `nome` *(obbligatorio)* — nome della famiglia - `descrizione` *(opzionale)* — testo libero Le famiglie già esistenti (per nome) vengono saltate, non aggiornate.
|
|
31
|
-
* @param options.download - When true, triggers a file download in the browser
|
|
32
|
-
* @param options.filename - Suggested filename for the download
|
|
33
|
-
*/
|
|
34
|
-
importCsv(data?: FormData | Record<string, unknown>, options?: BlobDownloadOptions): Promise<import("axios").AxiosResponse<Blob, any, {}>>;
|
|
35
|
-
/**
|
|
36
|
-
* @param params.search - A search term.
|
|
37
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
38
|
-
* @param params.name - Query parameter
|
|
39
|
-
* @param params.page - A page number within the paginated result set.
|
|
40
|
-
* @param params.size - Number of results to return per page.
|
|
41
|
-
*/
|
|
42
|
-
select(params?: {
|
|
43
|
-
search?: string;
|
|
44
|
-
ordering?: string;
|
|
45
|
-
name?: string;
|
|
46
|
-
page?: number;
|
|
47
|
-
size?: number;
|
|
48
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
49
|
-
count: number;
|
|
50
|
-
next?: string | null;
|
|
51
|
-
previous?: string | null;
|
|
52
|
-
results: Array<ProductFamily>;
|
|
53
|
-
}, any, {}>>;
|
|
54
|
-
/**
|
|
55
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
56
|
-
*/
|
|
57
|
-
read(params: {
|
|
58
|
-
id: string | number;
|
|
59
|
-
}): Promise<import("axios").AxiosResponse<ProductFamily, any, {}>>;
|
|
60
|
-
/**
|
|
61
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
62
|
-
* @param data - Request body
|
|
63
|
-
*/
|
|
64
|
-
update(params: {
|
|
65
|
-
id: string | number;
|
|
66
|
-
}, data: ProductFamily): Promise<import("axios").AxiosResponse<ProductFamily, any, {}>>;
|
|
67
|
-
/**
|
|
68
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
69
|
-
* @param data - Request body
|
|
70
|
-
*/
|
|
71
|
-
partialUpdate(params: {
|
|
72
|
-
id: string | number;
|
|
73
|
-
}, data: ProductFamily): Promise<import("axios").AxiosResponse<ProductFamily, any, {}>>;
|
|
74
|
-
/**
|
|
75
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
76
|
-
*/
|
|
77
|
-
delete(params: {
|
|
78
|
-
id: string | number;
|
|
79
|
-
}): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=product-family.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-family.d.ts","sourceRoot":"","sources":["../../../api/contexts/product-family.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,mBAAmB,EAA4B,MAAM,cAAc,CAAC;AAE/G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,8CAA8C;AAC9C,eAAO,MAAM,aAAa;IACtB;;;;;;OAMG;kBACiB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAElG,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,aAAa,CAAC;;IAG3B;;OAEG;iBACgB,aAAa;IAGhC;;;;;OAKG;qBACoB,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAY,mBAAmB;IAKxF;;;;;;OAMG;oBACmB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAEpG,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,aAAa,CAAC;;IAG3B;;OAEG;iBACgB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG1C;;;OAGG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,aAAa;IAGjE;;;OAGG;0BACyB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,aAAa;IAGxE;;OAEG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAG/C,CAAC"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
// Auto-generated API client for context: product-family
|
|
2
|
-
import { client, triggerBlobDownload } from "../client.js";
|
|
3
|
-
/** API client for product-family endpoints */
|
|
4
|
-
export const productFamily = {
|
|
5
|
-
/**
|
|
6
|
-
* @param params.search - A search term.
|
|
7
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
8
|
-
* @param params.name - Query parameter
|
|
9
|
-
* @param params.page - A page number within the paginated result set.
|
|
10
|
-
* @param params.size - Number of results to return per page.
|
|
11
|
-
*/
|
|
12
|
-
async list(params) {
|
|
13
|
-
return client.get("/api/product-family/", { params });
|
|
14
|
-
},
|
|
15
|
-
/**
|
|
16
|
-
* @param data - Request body
|
|
17
|
-
*/
|
|
18
|
-
async create(data) {
|
|
19
|
-
return client.post("/api/product-family/", data);
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* Importa famiglie prodotto da CSV
|
|
23
|
-
* Crea in blocco le famiglie di prodotto da un file CSV. **Colonne CSV:** - `nome` *(obbligatorio)* — nome della famiglia - `descrizione` *(opzionale)* — testo libero Le famiglie già esistenti (per nome) vengono saltate, non aggiornate.
|
|
24
|
-
* @param options.download - When true, triggers a file download in the browser
|
|
25
|
-
* @param options.filename - Suggested filename for the download
|
|
26
|
-
*/
|
|
27
|
-
async importCsv(data, options) {
|
|
28
|
-
const res = await client.post("/api/product-family/import_csv/", data, { responseType: "blob" });
|
|
29
|
-
if (options?.download)
|
|
30
|
-
triggerBlobDownload(res.data, res.headers, options.filename);
|
|
31
|
-
return res;
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @param params.search - A search term.
|
|
35
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
36
|
-
* @param params.name - Query parameter
|
|
37
|
-
* @param params.page - A page number within the paginated result set.
|
|
38
|
-
* @param params.size - Number of results to return per page.
|
|
39
|
-
*/
|
|
40
|
-
async select(params) {
|
|
41
|
-
return client.get("/api/product-family/select/", { params });
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
45
|
-
*/
|
|
46
|
-
async read(params) {
|
|
47
|
-
return client.get(`/api/product-family/${String(params.id)}/`);
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
51
|
-
* @param data - Request body
|
|
52
|
-
*/
|
|
53
|
-
async update(params, data) {
|
|
54
|
-
return client.put(`/api/product-family/${String(params.id)}/`, data);
|
|
55
|
-
},
|
|
56
|
-
/**
|
|
57
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
58
|
-
* @param data - Request body
|
|
59
|
-
*/
|
|
60
|
-
async partialUpdate(params, data) {
|
|
61
|
-
return client.patch(`/api/product-family/${String(params.id)}/`, data);
|
|
62
|
-
},
|
|
63
|
-
/**
|
|
64
|
-
* @param params.id - A UUID string identifying this Product Family.
|
|
65
|
-
*/
|
|
66
|
-
async delete(params) {
|
|
67
|
-
return client.delete(`/api/product-family/${String(params.id)}/`);
|
|
68
|
-
}
|
|
69
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { ProductInstallation } from "../types/index.js";
|
|
2
|
-
/** API client for product-installation endpoints */
|
|
3
|
-
export declare const productInstallation: {
|
|
4
|
-
/**
|
|
5
|
-
* @param params.search - A search term.
|
|
6
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
7
|
-
* @param params.product - Query parameter
|
|
8
|
-
* @param params.equipment - Query parameter
|
|
9
|
-
* @param params.page - A page number within the paginated result set.
|
|
10
|
-
* @param params.size - Number of results to return per page.
|
|
11
|
-
*/
|
|
12
|
-
list(params?: {
|
|
13
|
-
search?: string;
|
|
14
|
-
ordering?: string;
|
|
15
|
-
product?: string;
|
|
16
|
-
equipment?: string;
|
|
17
|
-
page?: number;
|
|
18
|
-
size?: number;
|
|
19
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
20
|
-
count: number;
|
|
21
|
-
next?: string | null;
|
|
22
|
-
previous?: string | null;
|
|
23
|
-
results: Array<ProductInstallation>;
|
|
24
|
-
}, any, {}>>;
|
|
25
|
-
/**
|
|
26
|
-
* @param data - Request body
|
|
27
|
-
*/
|
|
28
|
-
create(data: ProductInstallation): Promise<import("axios").AxiosResponse<ProductInstallation, any, {}>>;
|
|
29
|
-
/**
|
|
30
|
-
* @param params.search - A search term.
|
|
31
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
32
|
-
* @param params.product - Query parameter
|
|
33
|
-
* @param params.equipment - Query parameter
|
|
34
|
-
* @param params.page - A page number within the paginated result set.
|
|
35
|
-
* @param params.size - Number of results to return per page.
|
|
36
|
-
*/
|
|
37
|
-
select(params?: {
|
|
38
|
-
search?: string;
|
|
39
|
-
ordering?: string;
|
|
40
|
-
product?: string;
|
|
41
|
-
equipment?: string;
|
|
42
|
-
page?: number;
|
|
43
|
-
size?: number;
|
|
44
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
45
|
-
count: number;
|
|
46
|
-
next?: string | null;
|
|
47
|
-
previous?: string | null;
|
|
48
|
-
results: Array<ProductInstallation>;
|
|
49
|
-
}, any, {}>>;
|
|
50
|
-
/**
|
|
51
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
52
|
-
*/
|
|
53
|
-
read(params: {
|
|
54
|
-
id: string | number;
|
|
55
|
-
}): Promise<import("axios").AxiosResponse<ProductInstallation, any, {}>>;
|
|
56
|
-
/**
|
|
57
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
58
|
-
* @param data - Request body
|
|
59
|
-
*/
|
|
60
|
-
update(params: {
|
|
61
|
-
id: string | number;
|
|
62
|
-
}, data: ProductInstallation): Promise<import("axios").AxiosResponse<ProductInstallation, any, {}>>;
|
|
63
|
-
/**
|
|
64
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
65
|
-
* @param data - Request body
|
|
66
|
-
*/
|
|
67
|
-
partialUpdate(params: {
|
|
68
|
-
id: string | number;
|
|
69
|
-
}, data: ProductInstallation): Promise<import("axios").AxiosResponse<ProductInstallation, any, {}>>;
|
|
70
|
-
/**
|
|
71
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
72
|
-
*/
|
|
73
|
-
delete(params: {
|
|
74
|
-
id: string | number;
|
|
75
|
-
}): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=product-installation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-installation.d.ts","sourceRoot":"","sources":["../../../api/contexts/product-installation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,oDAAoD;AACpD,eAAO,MAAM,mBAAmB;IAC5B;;;;;;;OAOG;kBACiB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAEzH,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,mBAAmB,CAAC;;IAGjC;;OAEG;iBACgB,mBAAmB;IAGtC;;;;;;;OAOG;oBACmB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAE3H,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,mBAAmB,CAAC;;IAGjC;;OAEG;iBACgB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG1C;;;OAGG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,mBAAmB;IAGvE;;;OAGG;0BACyB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,mBAAmB;IAG9E;;OAEG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAG/C,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Auto-generated API client for context: product-installation
|
|
2
|
-
import { client } from "../client.js";
|
|
3
|
-
/** API client for product-installation endpoints */
|
|
4
|
-
export const productInstallation = {
|
|
5
|
-
/**
|
|
6
|
-
* @param params.search - A search term.
|
|
7
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
8
|
-
* @param params.product - Query parameter
|
|
9
|
-
* @param params.equipment - Query parameter
|
|
10
|
-
* @param params.page - A page number within the paginated result set.
|
|
11
|
-
* @param params.size - Number of results to return per page.
|
|
12
|
-
*/
|
|
13
|
-
async list(params) {
|
|
14
|
-
return client.get("/api/product-installation/", { params });
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* @param data - Request body
|
|
18
|
-
*/
|
|
19
|
-
async create(data) {
|
|
20
|
-
return client.post("/api/product-installation/", data);
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* @param params.search - A search term.
|
|
24
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
25
|
-
* @param params.product - Query parameter
|
|
26
|
-
* @param params.equipment - Query parameter
|
|
27
|
-
* @param params.page - A page number within the paginated result set.
|
|
28
|
-
* @param params.size - Number of results to return per page.
|
|
29
|
-
*/
|
|
30
|
-
async select(params) {
|
|
31
|
-
return client.get("/api/product-installation/select/", { params });
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
35
|
-
*/
|
|
36
|
-
async read(params) {
|
|
37
|
-
return client.get(`/api/product-installation/${String(params.id)}/`);
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
41
|
-
* @param data - Request body
|
|
42
|
-
*/
|
|
43
|
-
async update(params, data) {
|
|
44
|
-
return client.put(`/api/product-installation/${String(params.id)}/`, data);
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
48
|
-
* @param data - Request body
|
|
49
|
-
*/
|
|
50
|
-
async partialUpdate(params, data) {
|
|
51
|
-
return client.patch(`/api/product-installation/${String(params.id)}/`, data);
|
|
52
|
-
},
|
|
53
|
-
/**
|
|
54
|
-
* @param params.id - A UUID string identifying this Product Installation.
|
|
55
|
-
*/
|
|
56
|
-
async delete(params) {
|
|
57
|
-
return client.delete(`/api/product-installation/${String(params.id)}/`);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import type { ProductLaw } from "../types/index.js";
|
|
2
|
-
/** API client for product-law endpoints */
|
|
3
|
-
export declare const productLaw: {
|
|
4
|
-
/**
|
|
5
|
-
* @param params.search - A search term.
|
|
6
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
7
|
-
* @param params.product - Query parameter
|
|
8
|
-
* @param params.law - Query parameter
|
|
9
|
-
* @param params.page - A page number within the paginated result set.
|
|
10
|
-
* @param params.size - Number of results to return per page.
|
|
11
|
-
*/
|
|
12
|
-
list(params?: {
|
|
13
|
-
search?: string;
|
|
14
|
-
ordering?: string;
|
|
15
|
-
product?: string;
|
|
16
|
-
law?: string;
|
|
17
|
-
page?: number;
|
|
18
|
-
size?: number;
|
|
19
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
20
|
-
count: number;
|
|
21
|
-
next?: string | null;
|
|
22
|
-
previous?: string | null;
|
|
23
|
-
results: Array<ProductLaw>;
|
|
24
|
-
}, any, {}>>;
|
|
25
|
-
/**
|
|
26
|
-
* @param data - Request body
|
|
27
|
-
*/
|
|
28
|
-
create(data: ProductLaw): Promise<import("axios").AxiosResponse<ProductLaw, any, {}>>;
|
|
29
|
-
/**
|
|
30
|
-
* @param params.search - A search term.
|
|
31
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
32
|
-
* @param params.product - Query parameter
|
|
33
|
-
* @param params.law - Query parameter
|
|
34
|
-
* @param params.page - A page number within the paginated result set.
|
|
35
|
-
* @param params.size - Number of results to return per page.
|
|
36
|
-
*/
|
|
37
|
-
select(params?: {
|
|
38
|
-
search?: string;
|
|
39
|
-
ordering?: string;
|
|
40
|
-
product?: string;
|
|
41
|
-
law?: string;
|
|
42
|
-
page?: number;
|
|
43
|
-
size?: number;
|
|
44
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
45
|
-
count: number;
|
|
46
|
-
next?: string | null;
|
|
47
|
-
previous?: string | null;
|
|
48
|
-
results: Array<ProductLaw>;
|
|
49
|
-
}, any, {}>>;
|
|
50
|
-
/**
|
|
51
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
52
|
-
*/
|
|
53
|
-
read(params: {
|
|
54
|
-
id: string | number;
|
|
55
|
-
}): Promise<import("axios").AxiosResponse<ProductLaw, any, {}>>;
|
|
56
|
-
/**
|
|
57
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
58
|
-
* @param data - Request body
|
|
59
|
-
*/
|
|
60
|
-
update(params: {
|
|
61
|
-
id: string | number;
|
|
62
|
-
}, data: ProductLaw): Promise<import("axios").AxiosResponse<ProductLaw, any, {}>>;
|
|
63
|
-
/**
|
|
64
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
65
|
-
* @param data - Request body
|
|
66
|
-
*/
|
|
67
|
-
partialUpdate(params: {
|
|
68
|
-
id: string | number;
|
|
69
|
-
}, data: ProductLaw): Promise<import("axios").AxiosResponse<ProductLaw, any, {}>>;
|
|
70
|
-
/**
|
|
71
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
72
|
-
*/
|
|
73
|
-
delete(params: {
|
|
74
|
-
id: string | number;
|
|
75
|
-
}): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=product-law.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-law.d.ts","sourceRoot":"","sources":["../../../api/contexts/product-law.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,2CAA2C;AAC3C,eAAO,MAAM,UAAU;IACnB;;;;;;;OAOG;kBACiB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAEnH,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,UAAU,CAAC;;IAGxB;;OAEG;iBACgB,UAAU;IAG7B;;;;;;;OAOG;oBACmB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAErH,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,UAAU,CAAC;;IAGxB;;OAEG;iBACgB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG1C;;;OAGG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,UAAU;IAG9D;;;OAGG;0BACyB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,UAAU;IAGrE;;OAEG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;CAG/C,CAAC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// Auto-generated API client for context: product-law
|
|
2
|
-
import { client } from "../client.js";
|
|
3
|
-
/** API client for product-law endpoints */
|
|
4
|
-
export const productLaw = {
|
|
5
|
-
/**
|
|
6
|
-
* @param params.search - A search term.
|
|
7
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
8
|
-
* @param params.product - Query parameter
|
|
9
|
-
* @param params.law - Query parameter
|
|
10
|
-
* @param params.page - A page number within the paginated result set.
|
|
11
|
-
* @param params.size - Number of results to return per page.
|
|
12
|
-
*/
|
|
13
|
-
async list(params) {
|
|
14
|
-
return client.get("/api/product-law/", { params });
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* @param data - Request body
|
|
18
|
-
*/
|
|
19
|
-
async create(data) {
|
|
20
|
-
return client.post("/api/product-law/", data);
|
|
21
|
-
},
|
|
22
|
-
/**
|
|
23
|
-
* @param params.search - A search term.
|
|
24
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
25
|
-
* @param params.product - Query parameter
|
|
26
|
-
* @param params.law - Query parameter
|
|
27
|
-
* @param params.page - A page number within the paginated result set.
|
|
28
|
-
* @param params.size - Number of results to return per page.
|
|
29
|
-
*/
|
|
30
|
-
async select(params) {
|
|
31
|
-
return client.get("/api/product-law/select/", { params });
|
|
32
|
-
},
|
|
33
|
-
/**
|
|
34
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
35
|
-
*/
|
|
36
|
-
async read(params) {
|
|
37
|
-
return client.get(`/api/product-law/${String(params.id)}/`);
|
|
38
|
-
},
|
|
39
|
-
/**
|
|
40
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
41
|
-
* @param data - Request body
|
|
42
|
-
*/
|
|
43
|
-
async update(params, data) {
|
|
44
|
-
return client.put(`/api/product-law/${String(params.id)}/`, data);
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
48
|
-
* @param data - Request body
|
|
49
|
-
*/
|
|
50
|
-
async partialUpdate(params, data) {
|
|
51
|
-
return client.patch(`/api/product-law/${String(params.id)}/`, data);
|
|
52
|
-
},
|
|
53
|
-
/**
|
|
54
|
-
* @param params.id - A unique integer value identifying this Product Law.
|
|
55
|
-
*/
|
|
56
|
-
async delete(params) {
|
|
57
|
-
return client.delete(`/api/product-law/${String(params.id)}/`);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { type BlobDownloadOptions } from "../client.js";
|
|
2
|
-
import type { ProductMedia } from "../types/index.js";
|
|
3
|
-
/** API client for product-media endpoints */
|
|
4
|
-
export declare const productMedia: {
|
|
5
|
-
/**
|
|
6
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
7
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
8
|
-
* @param params.search - A search term.
|
|
9
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
10
|
-
* @param params.product - Query parameter
|
|
11
|
-
* @param params.type - Query parameter
|
|
12
|
-
* @param params.page - A page number within the paginated result set.
|
|
13
|
-
* @param params.size - Number of results to return per page.
|
|
14
|
-
*/
|
|
15
|
-
list(params?: {
|
|
16
|
-
search?: string;
|
|
17
|
-
ordering?: string;
|
|
18
|
-
product?: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
page?: number;
|
|
21
|
-
size?: number;
|
|
22
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
23
|
-
count: number;
|
|
24
|
-
next?: string | null;
|
|
25
|
-
previous?: string | null;
|
|
26
|
-
results: Array<ProductMedia>;
|
|
27
|
-
}, any, {}>>;
|
|
28
|
-
/**
|
|
29
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
30
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
31
|
-
* @param params.search - A search term.
|
|
32
|
-
* @param params.ordering - Which field to use when ordering the results.
|
|
33
|
-
* @param params.product - Query parameter
|
|
34
|
-
* @param params.type - Query parameter
|
|
35
|
-
* @param params.page - A page number within the paginated result set.
|
|
36
|
-
* @param params.size - Number of results to return per page.
|
|
37
|
-
*/
|
|
38
|
-
select(params?: {
|
|
39
|
-
search?: string;
|
|
40
|
-
ordering?: string;
|
|
41
|
-
product?: string;
|
|
42
|
-
type?: string;
|
|
43
|
-
page?: number;
|
|
44
|
-
size?: number;
|
|
45
|
-
}): Promise<import("axios").AxiosResponse<{
|
|
46
|
-
count: number;
|
|
47
|
-
next?: string | null;
|
|
48
|
-
previous?: string | null;
|
|
49
|
-
results: Array<ProductMedia>;
|
|
50
|
-
}, any, {}>>;
|
|
51
|
-
/**
|
|
52
|
-
* Carica un file e crea ProductMedia. Solo staff. Form-data: file (obbligatorio), product_id (UUID), type (es. MANUAL, OTHER).
|
|
53
|
-
* Carica un file e crea ProductMedia. Solo staff. Form-data: file (obbligatorio), product_id (UUID), type (es. MANUAL, OTHER).
|
|
54
|
-
*/
|
|
55
|
-
uploadToProduct(data?: FormData | Record<string, unknown>): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
56
|
-
/**
|
|
57
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
58
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
59
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
60
|
-
*/
|
|
61
|
-
read(params: {
|
|
62
|
-
id: string | number;
|
|
63
|
-
}): Promise<import("axios").AxiosResponse<ProductMedia, any, {}>>;
|
|
64
|
-
/**
|
|
65
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
66
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
67
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
68
|
-
* @param data - Request body
|
|
69
|
-
*/
|
|
70
|
-
update(params: {
|
|
71
|
-
id: string | number;
|
|
72
|
-
}, data: ProductMedia): Promise<import("axios").AxiosResponse<ProductMedia, any, {}>>;
|
|
73
|
-
/**
|
|
74
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
75
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
76
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
77
|
-
* @param data - Request body
|
|
78
|
-
*/
|
|
79
|
-
partialUpdate(params: {
|
|
80
|
-
id: string | number;
|
|
81
|
-
}, data: ProductMedia): Promise<import("axios").AxiosResponse<ProductMedia, any, {}>>;
|
|
82
|
-
/**
|
|
83
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
84
|
-
* ViewSet per gestire i media dei prodotti con upload e download di file.
|
|
85
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
86
|
-
*/
|
|
87
|
-
delete(params: {
|
|
88
|
-
id: string | number;
|
|
89
|
-
}): Promise<import("axios").AxiosResponse<unknown, any, {}>>;
|
|
90
|
-
/**
|
|
91
|
-
* Download del file associato al ProductMedia.
|
|
92
|
-
* Query params: - inline: Se true, mostra il file nel browser invece di scaricarlo
|
|
93
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
94
|
-
* @param options.download - When true, triggers a file download in the browser
|
|
95
|
-
* @param options.filename - Suggested filename for the download
|
|
96
|
-
*/
|
|
97
|
-
download(params: {
|
|
98
|
-
id: string | number;
|
|
99
|
-
}, options?: BlobDownloadOptions): Promise<import("axios").AxiosResponse<Blob, any, {}>>;
|
|
100
|
-
/**
|
|
101
|
-
* Download con supporto per range requests (utile per video e file grandi). Supporta partial content per streaming progressivo.
|
|
102
|
-
* Download con supporto per range requests (utile per video e file grandi). Supporta partial content per streaming progressivo.
|
|
103
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
104
|
-
*/
|
|
105
|
-
stream(params: {
|
|
106
|
-
id: string | number;
|
|
107
|
-
}): Promise<import("axios").AxiosResponse<ProductMedia, any, {}>>;
|
|
108
|
-
/**
|
|
109
|
-
* Upload di un file per un ProductMedia esistente. Solo staff.
|
|
110
|
-
* Body (form-data): - file: Il file da caricare
|
|
111
|
-
* @param params.id - A UUID string identifying this Product Media.
|
|
112
|
-
*/
|
|
113
|
-
upload(params: {
|
|
114
|
-
id: string | number;
|
|
115
|
-
}, data?: FormData | Record<string, unknown>): Promise<import("axios").AxiosResponse<ProductMedia, any, {}>>;
|
|
116
|
-
};
|
|
117
|
-
//# sourceMappingURL=product-media.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product-media.d.ts","sourceRoot":"","sources":["../../../api/contexts/product-media.ts"],"names":[],"mappings":"AAEA,OAAO,EAA+B,KAAK,mBAAmB,EAA4B,MAAM,cAAc,CAAC;AAE/G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,6CAA6C;AAC7C,eAAO,MAAM,YAAY;IACrB;;;;;;;;;OASG;kBACiB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAEpH,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,YAAY,CAAC;;IAG1B;;;;;;;;;OASG;oBACmB;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;eAEtH,MAAM;eACN,MAAM,GAAG,IAAI;mBACT,MAAM,GAAG,IAAI;iBACf,KAAK,CAAC,YAAY,CAAC;;IAG1B;;;OAGG;2BAC0B,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAG/D;;;;OAIG;iBACgB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG1C;;;;;OAKG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,YAAY;IAGhE;;;;;OAKG;0BACyB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,QAAQ,YAAY;IAGvE;;;;OAIG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG5C;;;;;;OAMG;qBACoB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,YAAY,mBAAmB;IAK7E;;;;OAIG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE;IAG5C;;;;OAIG;mBACkB;QAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,SAAS,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAG1F,CAAC"}
|