@djust-b2b/djust-front-sdk 1.18.2 → 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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
350
|
+
body: JSON.stringify({
|
|
351
351
|
redirectUrl,
|
|
352
352
|
token,
|
|
353
|
-
},
|
|
353
|
+
}),
|
|
354
354
|
});
|
|
355
355
|
}
|