@djust-b2b/djust-front-sdk 1.13.0 → 1.14.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.
@@ -1,5 +1,5 @@
1
1
  import { CustomFieldValueRequest } from "../../interfaces/models/custom-field";
2
- import { CivilityType, UserStatus } from "../../interfaces/models/customer-user";
2
+ import { CivilityType, UserInfoDto, UserStatus } from "../../interfaces/models/customer-user";
3
3
  import { CustomerOrganisationDto } from "../../interfaces/models/customer-organisation";
4
4
  import { AddressDto } from "../../interfaces/models/address";
5
5
  /**
@@ -55,5 +55,7 @@ export interface UpdateCustomerUserResponse {
55
55
  }
56
56
  export interface GetCustomerUserAddressesResponse extends Array<AddressDto> {
57
57
  }
58
+ export interface GetAuthenticatedUserResponse extends Array<UserInfoDto> {
59
+ }
58
60
  export interface GetCustomerUserOrganisationsResponse extends Array<CustomerOrganisationDto> {
59
61
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @document documents/customer-user.md
5
5
  */
6
- import { ActivateCustomerUserParameters, CreateCustomerUserParameters, CreateCustomerUserResponse, GetCustomerUserAddressesParameters, GetCustomerUserOrganisationsResponse, SendCustomerUserActivationRequestParameters, UpdateCustomerUserParameters, UpdateCustomerUserResponse } from "./definitions";
6
+ import { ActivateCustomerUserParameters, CreateCustomerUserParameters, CreateCustomerUserResponse, GetAuthenticatedUserResponse, GetCustomerUserAddressesParameters, GetCustomerUserOrganisationsResponse, SendCustomerUserActivationRequestParameters, UpdateCustomerUserParameters, UpdateCustomerUserResponse } from "./definitions";
7
7
  /**
8
8
  * APICODE(USER-500)
9
9
  * Retrieves the authenticated user.
@@ -25,7 +25,7 @@ import { ActivateCustomerUserParameters, CreateCustomerUserParameters, CreateCus
25
25
  * }
26
26
  * ```
27
27
  */
28
- export declare function getAuthenticatedUser(): Promise<any>;
28
+ export declare function getAuthenticatedUser(): Promise<GetAuthenticatedUserResponse>;
29
29
  /**
30
30
  * APICODE(USER-100)
31
31
  * Creates a customer user.
@@ -1,5 +1,6 @@
1
+ import { WarningReportDto } from "../../interfaces/models/common";
1
2
  import { CustomFieldValueRequest, PageCustomFieldSearch } from "../../interfaces/models/custom-field";
2
- import { ApprovalDto, OrderDocumentDto, OrderIdType, OrderLogisticDto, OrderLogisticLineDto, OrderLogisticStatusType, OrderRatingResponse, PageOrderLogisticDto, PageOrderLogisticLineDto, ShippingTypeInformationDto, ThreadReasonDto, ThreadReasonType, ThreadReasonTypeDto } from "../../interfaces/models/order";
3
+ import { ApprovalDto, OrderDocumentDto, OrderIdType, OrderLogisticDto, OrderLogisticLineDto, OrderLogisticLineUpdate, OrderLogisticStatusType, OrderRatingResponse, PageOrderLogisticDto, PageOrderLogisticLineDto, ShippingTypeInformationDto, ThreadReasonDto, ThreadReasonType, ThreadReasonTypeDto } from "../../interfaces/models/order";
3
4
  import { PaymentOption } from "../../interfaces/models/payment";
4
5
  /**
5
6
  * Request parameters type definitions
@@ -67,6 +68,9 @@ export interface ConfirmLogisticOrderReceptionParameters {
67
68
  locale: string;
68
69
  nbPreviewLines?: number;
69
70
  }
71
+ export interface CreateLogisticOrderParameters {
72
+ orderId: string;
73
+ }
70
74
  export interface DisapproveLogisticOrderParameters {
71
75
  orderId: string;
72
76
  locale: string;
@@ -87,12 +91,21 @@ export interface GetLogisticOrderLinesParameters {
87
91
  sort?: string;
88
92
  locale?: string;
89
93
  }
94
+ export interface UpdateOnHoldLogisticOrderLinesParameters {
95
+ orderId: string;
96
+ lines: OrderLogisticLineUpdate[];
97
+ }
90
98
  export interface UpdateLogisticOrderLineCustomFieldsParameters {
91
99
  orderId: string;
92
100
  lineId: string;
93
101
  locale?: string;
94
102
  customFields: CustomFieldValueRequest[];
95
103
  }
104
+ export interface UpdateOnHoldLogisticOrderLineParameters {
105
+ orderId: string;
106
+ orderLineId: string;
107
+ quantity: number;
108
+ }
96
109
  export interface UpdateLogisticOrderShippingAddressParameters {
97
110
  orderId: string;
98
111
  shippingAddressId: string;
@@ -155,6 +168,8 @@ export interface GetLogisticOrderDocumentsResponse extends Array<OrderDocumentDt
155
168
  }
156
169
  export interface GetLogisticOrderLinesResponse extends PageOrderLogisticLineDto {
157
170
  }
171
+ export interface UpdateOnHoldLogisticOrderLinesResponse extends WarningReportDto {
172
+ }
158
173
  export interface UpdateLogisticOrderLineCustomFieldsResponse extends OrderLogisticLineDto {
159
174
  }
160
175
  export interface GetLogisticOrderShippingAddressResponse extends Array<ShippingTypeInformationDto> {