@devite/shopware-client 1.5.4 → 1.5.5
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.
package/dist/index.cjs
CHANGED
|
@@ -13048,8 +13048,7 @@ class CartClient extends Client {
|
|
|
13048
13048
|
"/checkout/cart",
|
|
13049
13049
|
this.client.withContextToken()
|
|
13050
13050
|
);
|
|
13051
|
-
if (response.statusCode ===
|
|
13052
|
-
return response.body.data;
|
|
13051
|
+
if (response.statusCode === 204) return;
|
|
13053
13052
|
throw new ShopwareError("Failed to delete cart", response);
|
|
13054
13053
|
}
|
|
13055
13054
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -99,7 +99,7 @@ import { UserListResponse, UserCreateRequest, UserCreateResponse, UserListSearch
|
|
|
99
99
|
import { WebhookListResponse, WebhookCreateRequest, WebhookCreateResponse, WebhookListSearchRequest, WebhookListSearchResponse, WebhookSingleResponse, WebhookUpdateRequest, WebhookUpdateResponse, WebhookAggregationRequest, WebhookAggregationResponse, EventLogListResponse, EventLogCreateRequest, EventLogCreateResponse, EventLogListSearchRequest, EventLogListSearchResponse, EventLogSingleResponse, EventLogUpdateRequest, EventLogUpdateResponse, EventLogAggregationRequest, EventLogAggregationResponse } from '#types/clients/admin/WebhookClient';
|
|
100
100
|
import { AccountNewsletterRecipientListRequest, AccountNewsletterRecipientListResponse, AccountUpdateRequest, AccountUpdateResponse, AccountEmailChangeRequest, AccountEmailChangeResponse, AccountLanguageChangeRequest, AccountLanguageChangeResponse, AccountPasswordChangeRequest, AccountPasswordChangeResponse, AccountPaymentMethodChangeResponse, AccountRecoveryExpiryCheckRequest, AccountRecoveryExpiryCheckResponse, AccountGetRequest, AccountGetResponse, AccountPasswordRecoveryRequest, AccountPasswordRecoveryResponse, AccountPasswordRecoveryMailRequest, AccountPasswordRecoveryMailResponse, CustomerRegistrationConfirmRequest, CustomerRegisterRequest, CustomerRegisterResponse, CustomerRegisterGroupConfigResponse } from '#types/clients/store/AccountClient';
|
|
101
101
|
import { AddressCreateRequest as AddressCreateRequest$2, AddressCreateResponse as AddressCreateResponse$2, AddressUpdateRequest as AddressUpdateRequest$2, AddressUpdateResponse as AddressUpdateResponse$2, AddressListRequest, AddressListResponse as AddressListResponse$2 } from '#types/clients/store/AddressClient';
|
|
102
|
-
import { CartGetOrCreateResponse,
|
|
102
|
+
import { CartGetOrCreateResponse, CartAddItemsRequest, CartAddItemsResponse, CartRemoveItemsRequest, CartRemoveItemsResponse, CartUpdateItemsRequest, CartUpdateItemsResponse } from '#types/clients/store/CartClient';
|
|
103
103
|
import { CategoryListRequest, CategoryListResponse as CategoryListResponse$1, CategorySingleRequest, CategorySingleResponse as CategorySingleResponse$1, NavigationMenuRequest, NavigationMenuResponse } from '#types/clients/store/CategoryClient';
|
|
104
104
|
import { ContactFormSubmitRequest, ContactFormSubmitResponse, CMSPageResolveResponse, MediaEntityResolveRequest, MediaEntityResolveResponse, LandingPageResolveRequest, LandingPageResolveResponse } from '#types/clients/store/ContentClient';
|
|
105
105
|
import { ContextGetResponse, ContextUpdateRequest, ContextUpdateResponse } from '#types/clients/store/ContextClient';
|
|
@@ -7234,7 +7234,7 @@ declare class CartClient extends Client {
|
|
|
7234
7234
|
/**
|
|
7235
7235
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7236
7236
|
*/
|
|
7237
|
-
deleteCart(): Promise<
|
|
7237
|
+
deleteCart(): Promise<void>;
|
|
7238
7238
|
/**
|
|
7239
7239
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7240
7240
|
*/
|
package/dist/index.d.mts
CHANGED
|
@@ -99,7 +99,7 @@ import { UserListResponse, UserCreateRequest, UserCreateResponse, UserListSearch
|
|
|
99
99
|
import { WebhookListResponse, WebhookCreateRequest, WebhookCreateResponse, WebhookListSearchRequest, WebhookListSearchResponse, WebhookSingleResponse, WebhookUpdateRequest, WebhookUpdateResponse, WebhookAggregationRequest, WebhookAggregationResponse, EventLogListResponse, EventLogCreateRequest, EventLogCreateResponse, EventLogListSearchRequest, EventLogListSearchResponse, EventLogSingleResponse, EventLogUpdateRequest, EventLogUpdateResponse, EventLogAggregationRequest, EventLogAggregationResponse } from '#types/clients/admin/WebhookClient';
|
|
100
100
|
import { AccountNewsletterRecipientListRequest, AccountNewsletterRecipientListResponse, AccountUpdateRequest, AccountUpdateResponse, AccountEmailChangeRequest, AccountEmailChangeResponse, AccountLanguageChangeRequest, AccountLanguageChangeResponse, AccountPasswordChangeRequest, AccountPasswordChangeResponse, AccountPaymentMethodChangeResponse, AccountRecoveryExpiryCheckRequest, AccountRecoveryExpiryCheckResponse, AccountGetRequest, AccountGetResponse, AccountPasswordRecoveryRequest, AccountPasswordRecoveryResponse, AccountPasswordRecoveryMailRequest, AccountPasswordRecoveryMailResponse, CustomerRegistrationConfirmRequest, CustomerRegisterRequest, CustomerRegisterResponse, CustomerRegisterGroupConfigResponse } from '#types/clients/store/AccountClient';
|
|
101
101
|
import { AddressCreateRequest as AddressCreateRequest$2, AddressCreateResponse as AddressCreateResponse$2, AddressUpdateRequest as AddressUpdateRequest$2, AddressUpdateResponse as AddressUpdateResponse$2, AddressListRequest, AddressListResponse as AddressListResponse$2 } from '#types/clients/store/AddressClient';
|
|
102
|
-
import { CartGetOrCreateResponse,
|
|
102
|
+
import { CartGetOrCreateResponse, CartAddItemsRequest, CartAddItemsResponse, CartRemoveItemsRequest, CartRemoveItemsResponse, CartUpdateItemsRequest, CartUpdateItemsResponse } from '#types/clients/store/CartClient';
|
|
103
103
|
import { CategoryListRequest, CategoryListResponse as CategoryListResponse$1, CategorySingleRequest, CategorySingleResponse as CategorySingleResponse$1, NavigationMenuRequest, NavigationMenuResponse } from '#types/clients/store/CategoryClient';
|
|
104
104
|
import { ContactFormSubmitRequest, ContactFormSubmitResponse, CMSPageResolveResponse, MediaEntityResolveRequest, MediaEntityResolveResponse, LandingPageResolveRequest, LandingPageResolveResponse } from '#types/clients/store/ContentClient';
|
|
105
105
|
import { ContextGetResponse, ContextUpdateRequest, ContextUpdateResponse } from '#types/clients/store/ContextClient';
|
|
@@ -7234,7 +7234,7 @@ declare class CartClient extends Client {
|
|
|
7234
7234
|
/**
|
|
7235
7235
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7236
7236
|
*/
|
|
7237
|
-
deleteCart(): Promise<
|
|
7237
|
+
deleteCart(): Promise<void>;
|
|
7238
7238
|
/**
|
|
7239
7239
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7240
7240
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ import { UserListResponse, UserCreateRequest, UserCreateResponse, UserListSearch
|
|
|
99
99
|
import { WebhookListResponse, WebhookCreateRequest, WebhookCreateResponse, WebhookListSearchRequest, WebhookListSearchResponse, WebhookSingleResponse, WebhookUpdateRequest, WebhookUpdateResponse, WebhookAggregationRequest, WebhookAggregationResponse, EventLogListResponse, EventLogCreateRequest, EventLogCreateResponse, EventLogListSearchRequest, EventLogListSearchResponse, EventLogSingleResponse, EventLogUpdateRequest, EventLogUpdateResponse, EventLogAggregationRequest, EventLogAggregationResponse } from '#types/clients/admin/WebhookClient';
|
|
100
100
|
import { AccountNewsletterRecipientListRequest, AccountNewsletterRecipientListResponse, AccountUpdateRequest, AccountUpdateResponse, AccountEmailChangeRequest, AccountEmailChangeResponse, AccountLanguageChangeRequest, AccountLanguageChangeResponse, AccountPasswordChangeRequest, AccountPasswordChangeResponse, AccountPaymentMethodChangeResponse, AccountRecoveryExpiryCheckRequest, AccountRecoveryExpiryCheckResponse, AccountGetRequest, AccountGetResponse, AccountPasswordRecoveryRequest, AccountPasswordRecoveryResponse, AccountPasswordRecoveryMailRequest, AccountPasswordRecoveryMailResponse, CustomerRegistrationConfirmRequest, CustomerRegisterRequest, CustomerRegisterResponse, CustomerRegisterGroupConfigResponse } from '#types/clients/store/AccountClient';
|
|
101
101
|
import { AddressCreateRequest as AddressCreateRequest$2, AddressCreateResponse as AddressCreateResponse$2, AddressUpdateRequest as AddressUpdateRequest$2, AddressUpdateResponse as AddressUpdateResponse$2, AddressListRequest, AddressListResponse as AddressListResponse$2 } from '#types/clients/store/AddressClient';
|
|
102
|
-
import { CartGetOrCreateResponse,
|
|
102
|
+
import { CartGetOrCreateResponse, CartAddItemsRequest, CartAddItemsResponse, CartRemoveItemsRequest, CartRemoveItemsResponse, CartUpdateItemsRequest, CartUpdateItemsResponse } from '#types/clients/store/CartClient';
|
|
103
103
|
import { CategoryListRequest, CategoryListResponse as CategoryListResponse$1, CategorySingleRequest, CategorySingleResponse as CategorySingleResponse$1, NavigationMenuRequest, NavigationMenuResponse } from '#types/clients/store/CategoryClient';
|
|
104
104
|
import { ContactFormSubmitRequest, ContactFormSubmitResponse, CMSPageResolveResponse, MediaEntityResolveRequest, MediaEntityResolveResponse, LandingPageResolveRequest, LandingPageResolveResponse } from '#types/clients/store/ContentClient';
|
|
105
105
|
import { ContextGetResponse, ContextUpdateRequest, ContextUpdateResponse } from '#types/clients/store/ContextClient';
|
|
@@ -7234,7 +7234,7 @@ declare class CartClient extends Client {
|
|
|
7234
7234
|
/**
|
|
7235
7235
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7236
7236
|
*/
|
|
7237
|
-
deleteCart(): Promise<
|
|
7237
|
+
deleteCart(): Promise<void>;
|
|
7238
7238
|
/**
|
|
7239
7239
|
* @throws {ShopwareError | import('ofetch').FetchError} if the request failed
|
|
7240
7240
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -13046,8 +13046,7 @@ class CartClient extends Client {
|
|
|
13046
13046
|
"/checkout/cart",
|
|
13047
13047
|
this.client.withContextToken()
|
|
13048
13048
|
);
|
|
13049
|
-
if (response.statusCode ===
|
|
13050
|
-
return response.body.data;
|
|
13049
|
+
if (response.statusCode === 204) return;
|
|
13051
13050
|
throw new ShopwareError("Failed to delete cart", response);
|
|
13052
13051
|
}
|
|
13053
13052
|
/**
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export interface LineItemPayload {
|
|
3
|
-
categoryIds: Array<string>;
|
|
4
|
-
readonly createdAt?: string;
|
|
5
|
-
readonly updatedAt?: string;
|
|
6
|
-
customFields?: GenericRecord;
|
|
7
|
-
features?: Array<string>;
|
|
8
|
-
isCloseout?: boolean;
|
|
9
|
-
isNew?: boolean;
|
|
10
|
-
manufacturerId?: string;
|
|
11
|
-
markAsTopseller?: boolean;
|
|
12
|
-
optionIds?: Array<string>;
|
|
13
|
-
options?: Array<{
|
|
14
|
-
group: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}>;
|
|
17
|
-
parentId?: string;
|
|
18
|
-
productNumber?: string;
|
|
19
|
-
propertyIds?: Array<string>;
|
|
20
|
-
releaseDate?: string;
|
|
21
|
-
stock?: number;
|
|
22
|
-
streamIds?: Array<string>;
|
|
23
|
-
tagsIds?: Array<string>;
|
|
24
|
-
taxId: string;
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
}
|
|
1
|
+
export type LineItemPayload = Record<string, any>;
|