@djust-b2b/djust-front-sdk 1.24.0 → 1.25.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.
@@ -53,6 +53,8 @@ export interface GetCustomerAccountOrdersParameters {
53
53
  }
54
54
  export interface GetCustomerAccountUsersParameters {
55
55
  pageable: PageableParameters;
56
+ forAllAccounts?: boolean;
57
+ query?: string;
56
58
  }
57
59
  export interface CreateCustomerAccountOrganisationParameters {
58
60
  externalId: string;
@@ -334,6 +334,7 @@ export declare function getCustomerAccountOrders(params: GetCustomerAccountOrder
334
334
  * | **Parameter** | **Type** | **Required** | **Description** |
335
335
  * |-------------------|------------|--------------|-------------------------------------------------------------|
336
336
  * | `pageable` | `object` | ✅ | Object containing pagination details: `page`, `size`, etc. |
337
+ * | `forAllAccounts` | `boolean` | ❌ | Specifies if we want to retrieve users of all my users' accounts |
337
338
  * | `locale` | `string` | ❌ | The locale in which data should be retrieved. |
338
339
  *
339
340
  * ### **Returns**:
@@ -474,6 +474,7 @@ async function getCustomerAccountOrders(params) {
474
474
  * | **Parameter** | **Type** | **Required** | **Description** |
475
475
  * |-------------------|------------|--------------|-------------------------------------------------------------|
476
476
  * | `pageable` | `object` | ✅ | Object containing pagination details: `page`, `size`, etc. |
477
+ * | `forAllAccounts` | `boolean` | ❌ | Specifies if we want to retrieve users of all my users' accounts |
477
478
  * | `locale` | `string` | ❌ | The locale in which data should be retrieved. |
478
479
  *
479
480
  * ### **Returns**:
@@ -488,7 +489,7 @@ async function getCustomerAccountOrders(params) {
488
489
  * ```
489
490
  */
490
491
  async function getCustomerAccountUsers(params) {
491
- var _a, _b, _c;
492
+ var _a, _b, _c, _d;
492
493
  (0, parameters_validation_1.required)({ pageable: params.pageable });
493
494
  const { data } = await (0, fetch_instance_1.enhancedFetch)({
494
495
  method: "GET",
@@ -497,6 +498,8 @@ async function getCustomerAccountUsers(params) {
497
498
  page: (_a = params.pageable) === null || _a === void 0 ? void 0 : _a.page,
498
499
  size: (_b = params.pageable) === null || _b === void 0 ? void 0 : _b.size,
499
500
  sort: (_c = params.pageable) === null || _c === void 0 ? void 0 : _c.sort,
501
+ forAllAccounts: (_d = params.forAllAccounts) !== null && _d !== void 0 ? _d : false,
502
+ query: params.query || "",
500
503
  },
501
504
  });
502
505
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djust-b2b/djust-front-sdk",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
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",