@djust-b2b/djust-front-sdk 1.18.9 → 1.18.11

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.
@@ -143,7 +143,7 @@ export declare function createOrderLogisticLineIncident({ logisticOrderId, idTyp
143
143
  * 🚚 Creates a new incident thread for a specific logistic order on specific lines.
144
144
  *
145
145
  * This function allows the creation of a thread related to an incident for one or more lines within a logistic order.
146
- * The `logisticOrderId`, `incidentId`, `customField`, `reasonCode` and `name` are required parameters.
146
+ * The `logisticOrderId`, `incidentId`, `customField`, `reasonCode` and `message` are required parameters.
147
147
  * The `idType` is used for specifying additional information about the thread.
148
148
  *
149
149
  * 🛠 **Endpoint**: `POST /v2/shop/logistic-orders/${logisticOrderId}/incidents/${incidentId}/threads [ORDER-106]`
@@ -153,8 +153,8 @@ export declare function createOrderLogisticLineIncident({ logisticOrderId, idTyp
153
153
  * | `logisticOrderId` | `string` | ✅ | The ID of the logistic order on which the incident happened. |
154
154
  * | `incidentId` | `string` | ✅ | The ID of the incident for which thread is created. |
155
155
  * | `idType` | `IncidentIdType` | ❌ | The type of incident ID (e.g., `DJUST_ID`, `EXTERNAL_ID`). |
156
- * | `name` | `string` | | The name of the created thread. |
157
- * | `message` | `string` | | The message of the created thread. |
156
+ * | `name` | `string` | | The name of the created thread. |
157
+ * | `message` | `string` | | The message of the created thread. |
158
158
  * | `customField` | `{ customFieldValues: CustomFieldValueRequest[], idType: string}[]` | ✅ | An array of objects describing the custom field values to add to the thread. |
159
159
  * | `reasonCode` | `string[]` | ✅ | The reason codes for the incident related to the thread (e.g., `["PRODUCT_DEFECT"]`). |
160
160
  *
@@ -178,7 +178,7 @@ export declare function createOrderLogisticLineIncident({ logisticOrderId, idTyp
178
178
  * ```
179
179
  *
180
180
  * @param {createOrderLogisticLineIncidentParameters} params - The parameters for creating the thread.
181
- * @throws {Error} If `logisticOrderId`, `incidentId`, `customField`, `reasonCode` or `name` is missing.
181
+ * @throws {Error} If `logisticOrderId`, `incidentId`, `customField`, `reasonCode` or `message` is missing.
182
182
  * @returns {Promise<createOrderLogisticLineIncidentResponse>} A promise resolving to the response containing the created thread's details.
183
183
  */
184
184
  export declare function createOrderLogisticIncidentThread({ logisticOrderId, incidentId, idType, customField, message, name, reasonCode, }: createOrderLogisticIncidentThreadParameters): Promise<createOrderLogisticIncidentThreadResponse>;
@@ -207,7 +207,7 @@ async function createOrderLogisticLineIncident({ logisticOrderId, idType, custom
207
207
  * 🚚 Creates a new incident thread for a specific logistic order on specific lines.
208
208
  *
209
209
  * This function allows the creation of a thread related to an incident for one or more lines within a logistic order.
210
- * The `logisticOrderId`, `incidentId`, `customField`, `reasonCode` and `name` are required parameters.
210
+ * The `logisticOrderId`, `incidentId`, `customField`, `reasonCode` and `message` are required parameters.
211
211
  * The `idType` is used for specifying additional information about the thread.
212
212
  *
213
213
  * 🛠 **Endpoint**: `POST /v2/shop/logistic-orders/${logisticOrderId}/incidents/${incidentId}/threads [ORDER-106]`
@@ -217,8 +217,8 @@ async function createOrderLogisticLineIncident({ logisticOrderId, idType, custom
217
217
  * | `logisticOrderId` | `string` | ✅ | The ID of the logistic order on which the incident happened. |
218
218
  * | `incidentId` | `string` | ✅ | The ID of the incident for which thread is created. |
219
219
  * | `idType` | `IncidentIdType` | ❌ | The type of incident ID (e.g., `DJUST_ID`, `EXTERNAL_ID`). |
220
- * | `name` | `string` | | The name of the created thread. |
221
- * | `message` | `string` | | The message of the created thread. |
220
+ * | `name` | `string` | | The name of the created thread. |
221
+ * | `message` | `string` | | The message of the created thread. |
222
222
  * | `customField` | `{ customFieldValues: CustomFieldValueRequest[], idType: string}[]` | ✅ | An array of objects describing the custom field values to add to the thread. |
223
223
  * | `reasonCode` | `string[]` | ✅ | The reason codes for the incident related to the thread (e.g., `["PRODUCT_DEFECT"]`). |
224
224
  *
@@ -242,11 +242,11 @@ async function createOrderLogisticLineIncident({ logisticOrderId, idType, custom
242
242
  * ```
243
243
  *
244
244
  * @param {createOrderLogisticLineIncidentParameters} params - The parameters for creating the thread.
245
- * @throws {Error} If `logisticOrderId`, `incidentId`, `customField`, `reasonCode` or `name` is missing.
245
+ * @throws {Error} If `logisticOrderId`, `incidentId`, `customField`, `reasonCode` or `message` is missing.
246
246
  * @returns {Promise<createOrderLogisticLineIncidentResponse>} A promise resolving to the response containing the created thread's details.
247
247
  */
248
248
  async function createOrderLogisticIncidentThread({ logisticOrderId, incidentId, idType, customField, message, name, reasonCode, }) {
249
- (0, parameters_validation_1.required)({ logisticOrderId, incidentId, reasonCode, name });
249
+ (0, parameters_validation_1.required)({ logisticOrderId, incidentId, reasonCode, message });
250
250
  const { data } = await (0, fetch_instance_1.enhancedFetch)({
251
251
  method: "POST",
252
252
  path: `/v2/shop/logistic-orders/${logisticOrderId}/incidents/${incidentId}/threads`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djust-b2b/djust-front-sdk",
3
- "version": "1.18.9",
3
+ "version": "1.18.11",
4
4
  "description": "DJUST Front SDK is a versatile JavaScript Software Development Kit (SDK) ",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",