@djust-b2b/djust-front-sdk 1.18.1 → 1.18.3

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.
@@ -106,7 +106,7 @@ async function createCustomerUser(params) {
106
106
  const { data } = await (0, fetch_instance_1.enhancedFetch)({
107
107
  method: "POST",
108
108
  path: `/v1/shop/customer-users`,
109
- params: {
109
+ body: JSON.stringify({
110
110
  activationUrl,
111
111
  civility,
112
112
  customFieldValues,
@@ -120,7 +120,7 @@ async function createCustomerUser(params) {
120
120
  mainOrganisationId,
121
121
  organisations,
122
122
  phone,
123
- },
123
+ }),
124
124
  });
125
125
  return data;
126
126
  }
@@ -167,13 +167,13 @@ async function updateCustomerUser({ civility, firstName, lastName, phone, custom
167
167
  const { data } = await (0, fetch_instance_1.enhancedFetch)({
168
168
  method: "PUT",
169
169
  path: `/v1/shop/customer-users`,
170
- params: {
170
+ body: JSON.stringify({
171
171
  civility,
172
172
  firstName,
173
173
  lastName,
174
174
  phone,
175
175
  customFieldValues,
176
- },
176
+ }),
177
177
  });
178
178
  return data;
179
179
  }
@@ -211,9 +211,9 @@ async function activateCustomerUser(params) {
211
211
  await (0, fetch_instance_1.enhancedFetch)({
212
212
  method: "POST",
213
213
  path: `/v1/shop/customer-users/activate`,
214
- params: {
214
+ body: JSON.stringify({
215
215
  token,
216
- },
216
+ }),
217
217
  });
218
218
  }
219
219
  /**
@@ -261,12 +261,12 @@ async function getCustomerUserAddresses({ shipping, billing, account, organisati
261
261
  const { data } = await (0, fetch_instance_1.enhancedFetch)({
262
262
  method: "GET",
263
263
  path: `/v1/shop/customer-users/addresses`,
264
- params: {
264
+ body: JSON.stringify({
265
265
  shipping,
266
266
  billing,
267
267
  account,
268
268
  organisationIds,
269
- },
269
+ }),
270
270
  });
271
271
  return data;
272
272
  }
@@ -347,9 +347,9 @@ async function sendCustomerUserActivationRequest({ redirectUrl, token, }) {
347
347
  (0, fetch_instance_1.enhancedFetch)({
348
348
  method: "POST",
349
349
  path: `/v1/shop/customer-users/resend-activation-request`,
350
- params: {
350
+ body: JSON.stringify({
351
351
  redirectUrl,
352
352
  token,
353
- },
353
+ }),
354
354
  });
355
355
  }
@@ -198,7 +198,7 @@ async function createOrderLogisticLineIncident({ logisticOrderId, idType, custom
198
198
  body: JSON.stringify({
199
199
  customFieldIdType,
200
200
  orderLines,
201
- reasonCode,
201
+ reasonCodes: reasonCode,
202
202
  }),
203
203
  });
204
204
  return data;
@@ -257,7 +257,7 @@ async function createOrderLogisticIncidentThread({ logisticOrderId, incidentId,
257
257
  customField,
258
258
  message,
259
259
  name,
260
- reasonCodes: reasonCode,
260
+ reasonCode,
261
261
  }),
262
262
  });
263
263
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djust-b2b/djust-front-sdk",
3
- "version": "1.18.1",
3
+ "version": "1.18.3",
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",