@djust-b2b/djust-front-sdk 2.10.0 → 2.11.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.
package/lib/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const DjustSDK: {
|
|
|
33
33
|
createOrderLogisticIncidentThread({ logisticOrderId, incidentId, idType, customField, message, name, reasonCode, }: import("./services/incident/definitions").createOrderLogisticIncidentThreadParameters): Promise<import("./services/incident/definitions").createOrderLogisticIncidentThreadResponse>;
|
|
34
34
|
createIncident({ customField, externalId, logisticOrderId, reasonCodes, idType, }: import("./services/incident/definitions").createIncidentParameters): Promise<import("./services/incident/definitions").createIncidentResponse>;
|
|
35
35
|
getIncidentsV2({ customerAccountIds, linkedType, ids, status, idType, page, size, sort, supplierIds, }: import("./services/incident/definitions").getIncidentsParameters): Promise<import("./services/incident/definitions").getIncidentsResponse>;
|
|
36
|
-
getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, isValidated, }: import("./interfaces").GetCommercialOrdersParameters): Promise<import("./interfaces").GetCommercialOrdersResponse>;
|
|
36
|
+
getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, sourceTypes, isValidated, }: import("./interfaces").GetCommercialOrdersParameters): Promise<import("./interfaces").GetCommercialOrdersResponse>;
|
|
37
37
|
createCommercialOrder({ nbPreviewLines, channel, customFields, locale, origin, originId, paymentInfo, }: import("./interfaces").CreateCommercialOrderParameters): Promise<import("./interfaces").CreateCommercialOrderResponse>;
|
|
38
38
|
createCommercialOrderV2({ customFieldIdType, customFields, isFull, sourceId, sourceType, }: import("./interfaces").CreateCommercialOrderV2Parameters): Promise<import("./interfaces").CreateCommercialOrderV2Response>;
|
|
39
39
|
getCommercialOrder({ orderId, idType, locale, nbPreviewLines, }: import("./interfaces").GetCommercialOrderParameters): Promise<import("./interfaces").GetCommercialOrderResponse>;
|
|
@@ -19,6 +19,7 @@ import { CreateCommercialOrderCardRegistrationParameters, CreateCommercialOrderC
|
|
|
19
19
|
* | `sort` | `string[]` | ❌ | The sort to apply to the results. |
|
|
20
20
|
* | `connectedUserOnly` | `boolean` | ❌ | Filter to show only orders for the connected user. |
|
|
21
21
|
* | `customerAccountIds` | `string[]` | ❌ | Filter by customer account IDs. |
|
|
22
|
+
* | `sourceTypes` | `string[]` | ❌ | Filter by source types. |
|
|
22
23
|
* | `isValidated` | `boolean` | ❌ | Filter by validation status. |
|
|
23
24
|
*
|
|
24
25
|
* 📤 **Returns**:
|
|
@@ -39,7 +40,7 @@ import { CreateCommercialOrderCardRegistrationParameters, CreateCommercialOrderC
|
|
|
39
40
|
* @throws {Error} If `locale` is missing.
|
|
40
41
|
* @returns {Promise<GetCommercialOrdersResponse>} A promise resolving to the response containing page object.
|
|
41
42
|
*/
|
|
42
|
-
export declare function getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, isValidated, }: GetCommercialOrdersParameters): Promise<GetCommercialOrdersResponse>;
|
|
43
|
+
export declare function getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, sourceTypes, isValidated, }: GetCommercialOrdersParameters): Promise<GetCommercialOrdersResponse>;
|
|
43
44
|
/**
|
|
44
45
|
* 🚚 Creates commercial orders.
|
|
45
46
|
*
|
|
@@ -42,6 +42,7 @@ const fetch_instance_1 = require("../../settings/fetch-instance");
|
|
|
42
42
|
* | `sort` | `string[]` | ❌ | The sort to apply to the results. |
|
|
43
43
|
* | `connectedUserOnly` | `boolean` | ❌ | Filter to show only orders for the connected user. |
|
|
44
44
|
* | `customerAccountIds` | `string[]` | ❌ | Filter by customer account IDs. |
|
|
45
|
+
* | `sourceTypes` | `string[]` | ❌ | Filter by source types. |
|
|
45
46
|
* | `isValidated` | `boolean` | ❌ | Filter by validation status. |
|
|
46
47
|
*
|
|
47
48
|
* 📤 **Returns**:
|
|
@@ -62,7 +63,7 @@ const fetch_instance_1 = require("../../settings/fetch-instance");
|
|
|
62
63
|
* @throws {Error} If `locale` is missing.
|
|
63
64
|
* @returns {Promise<GetCommercialOrdersResponse>} A promise resolving to the response containing page object.
|
|
64
65
|
*/
|
|
65
|
-
async function getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, isValidated, }) {
|
|
66
|
+
async function getCommercialOrders({ locale, nbPreviewLines, page, size, sort, connectedUserOnly, customerAccountIds, sourceTypes, isValidated, }) {
|
|
66
67
|
(0, parameters_validation_1.required)({ locale });
|
|
67
68
|
const { data } = await (0, fetch_instance_1.enhancedFetch)({
|
|
68
69
|
method: "GET",
|
|
@@ -75,6 +76,7 @@ async function getCommercialOrders({ locale, nbPreviewLines, page, size, sort, c
|
|
|
75
76
|
sort,
|
|
76
77
|
connectedUserOnly,
|
|
77
78
|
customerAccountIds,
|
|
79
|
+
sourceTypes,
|
|
78
80
|
isValidated,
|
|
79
81
|
},
|
|
80
82
|
});
|