@devite/shopware-client 1.1.0 → 1.1.2
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 +5955 -4900
- package/dist/index.d.cts +16 -17
- package/dist/index.d.mts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.mjs +5955 -4900
- package/dist/types/clients/admin/index.d.ts +38 -1
- package/dist/types/clients/store/ContextClient.d.ts +0 -3
- package/dist/types/clients/store/index.d.ts +15 -15
- package/package.json +4 -4
- /package/dist/types/clients/store/{CustomerAuthenticationClient.d.ts → CustomerAuthClient.d.ts} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -86,7 +86,6 @@ declare class Client {
|
|
|
86
86
|
protected patch(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
87
87
|
protected put(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
88
88
|
protected options(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
89
|
-
protected withContextToken(options?: ClientRequestOptions): ClientRequestOptions;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
type GenericRecord = never | null | string | Array<string> | number | {
|
|
@@ -11993,15 +11992,15 @@ declare class CartClient extends Client {
|
|
|
11993
11992
|
/**
|
|
11994
11993
|
* @throws {Error} if the request failed
|
|
11995
11994
|
*/
|
|
11996
|
-
|
|
11995
|
+
addLineItems(request: CartAddItemsRequest): Promise<CartAddItemsResponse>;
|
|
11997
11996
|
/**
|
|
11998
11997
|
* @throws {Error} if the request failed
|
|
11999
11998
|
*/
|
|
12000
|
-
|
|
11999
|
+
removeLineItems(request: CartRemoveItemsRequest): Promise<CartRemoveItemsResponse>;
|
|
12001
12000
|
/**
|
|
12002
12001
|
* @throws {Error} if the request failed
|
|
12003
12002
|
*/
|
|
12004
|
-
|
|
12003
|
+
updateLineItems(request: CartUpdateItemsRequest): Promise<CartUpdateItemsResponse>;
|
|
12005
12004
|
}
|
|
12006
12005
|
|
|
12007
12006
|
type CategoryListRequest = Criteria;
|
|
@@ -12144,7 +12143,7 @@ interface CustomerLoginImitateResponse {
|
|
|
12144
12143
|
redirectUrl?: string;
|
|
12145
12144
|
}
|
|
12146
12145
|
|
|
12147
|
-
declare class
|
|
12146
|
+
declare class CustomerAuthClient extends Client {
|
|
12148
12147
|
/**
|
|
12149
12148
|
* @throws {Error} if the request failed
|
|
12150
12149
|
*/
|
|
@@ -12166,7 +12165,7 @@ declare class DocumentClient extends Client {
|
|
|
12166
12165
|
/**
|
|
12167
12166
|
* @throws {Error} if the request failed
|
|
12168
12167
|
*/
|
|
12169
|
-
|
|
12168
|
+
download(id: string, deepLinkCode: string, request: DocumentDownloadRequest): Promise<DocumentDownloadResponse>;
|
|
12170
12169
|
}
|
|
12171
12170
|
|
|
12172
12171
|
interface GatewayCheckoutResponse {
|
|
@@ -12273,7 +12272,7 @@ declare class OrderClient extends Client {
|
|
|
12273
12272
|
/**
|
|
12274
12273
|
* @throws {Error} if the request failed
|
|
12275
12274
|
*/
|
|
12276
|
-
|
|
12275
|
+
cancel(request: OrderCancelRequest): Promise<OrderCancelResponse>;
|
|
12277
12276
|
/**
|
|
12278
12277
|
* @throws {Error} if the request failed
|
|
12279
12278
|
*/
|
|
@@ -12281,7 +12280,7 @@ declare class OrderClient extends Client {
|
|
|
12281
12280
|
/**
|
|
12282
12281
|
* @throws {Error} if the request failed
|
|
12283
12282
|
*/
|
|
12284
|
-
|
|
12283
|
+
updatePaymentMethod(request: OrderUpdatePaymentMethodRequest): Promise<OrderUpdatePaymentMethodResponse>;
|
|
12285
12284
|
/**
|
|
12286
12285
|
* @throws {Error} if the request failed
|
|
12287
12286
|
*/
|
|
@@ -12289,7 +12288,7 @@ declare class OrderClient extends Client {
|
|
|
12289
12288
|
/**
|
|
12290
12289
|
* @throws {Error} if the request failed
|
|
12291
12290
|
*/
|
|
12292
|
-
|
|
12291
|
+
createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
|
|
12293
12292
|
}
|
|
12294
12293
|
|
|
12295
12294
|
interface ProductListingFlags {
|
|
@@ -12350,15 +12349,15 @@ declare class ProductClient extends Client {
|
|
|
12350
12349
|
/**
|
|
12351
12350
|
* @throws {Error} if the request failed
|
|
12352
12351
|
*/
|
|
12353
|
-
|
|
12352
|
+
getListingByCategory(categoryId: string, request?: ProductListingListWithCategoryRequest): Promise<ProductListingListWithCategoryResponse>;
|
|
12354
12353
|
/**
|
|
12355
12354
|
* @throws {Error} if the request failed
|
|
12356
12355
|
*/
|
|
12357
|
-
getCrossSellingGroupsForProduct(
|
|
12356
|
+
getCrossSellingGroupsForProduct(id: string): Promise<ProductCrossSellingGroupListResponse>;
|
|
12358
12357
|
/**
|
|
12359
12358
|
* @throws {Error} if the request failed
|
|
12360
12359
|
*/
|
|
12361
|
-
getProduct(
|
|
12360
|
+
getProduct(id: string, includeSeoUrls: boolean, request?: ProductSingleRequest): Promise<ProductSingleResponse>;
|
|
12362
12361
|
/**
|
|
12363
12362
|
* @throws {Error} if the request failed
|
|
12364
12363
|
*/
|
|
@@ -12366,15 +12365,15 @@ declare class ProductClient extends Client {
|
|
|
12366
12365
|
/**
|
|
12367
12366
|
* @throws {Error} if the request failed
|
|
12368
12367
|
*/
|
|
12369
|
-
getReviewsForProduct(
|
|
12368
|
+
getReviewsForProduct(id: string, request?: ProductReviewListRequest): Promise<ProductReviewListResponse>;
|
|
12370
12369
|
/**
|
|
12371
12370
|
* @throws {Error} if the request failed
|
|
12372
12371
|
*/
|
|
12373
|
-
saveReviewForProduct(
|
|
12372
|
+
saveReviewForProduct(id: string, request: ProductReviewSaveRequest): Promise<void>;
|
|
12374
12373
|
/**
|
|
12375
12374
|
* @throws {Error} if the request failed
|
|
12376
12375
|
*/
|
|
12377
|
-
|
|
12376
|
+
findVariantWithOptions(id: string, request: ProductVariantWithOptionsRequest): Promise<ProductVariantWithOptionsResponse>;
|
|
12378
12377
|
/**
|
|
12379
12378
|
* @throws {Error} if the request failed
|
|
12380
12379
|
*/
|
|
@@ -12396,7 +12395,7 @@ declare class SeoClient extends Client {
|
|
|
12396
12395
|
/**
|
|
12397
12396
|
* @throws {Error} if the request failed
|
|
12398
12397
|
*/
|
|
12399
|
-
|
|
12398
|
+
getRoutes(request?: SeoRouteListRequest): Promise<SeoRouteListResponse>;
|
|
12400
12399
|
/**
|
|
12401
12400
|
* @throws {Error} if the request failed
|
|
12402
12401
|
*/
|
|
@@ -12523,7 +12522,7 @@ declare class StoreShopwareClient extends ShopwareClient {
|
|
|
12523
12522
|
forCategory(): CategoryClient;
|
|
12524
12523
|
forContent(): ContentClient;
|
|
12525
12524
|
forContext(): ContextClient;
|
|
12526
|
-
|
|
12525
|
+
forCustomerAuth(): CustomerAuthClient;
|
|
12527
12526
|
forDocument(): DocumentClient;
|
|
12528
12527
|
forGateway(): GatewayClient;
|
|
12529
12528
|
forNewsletter(): NewsletterClient;
|
package/dist/index.d.mts
CHANGED
|
@@ -86,7 +86,6 @@ declare class Client {
|
|
|
86
86
|
protected patch(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
87
87
|
protected put(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
88
88
|
protected options(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
89
|
-
protected withContextToken(options?: ClientRequestOptions): ClientRequestOptions;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
type GenericRecord = never | null | string | Array<string> | number | {
|
|
@@ -11993,15 +11992,15 @@ declare class CartClient extends Client {
|
|
|
11993
11992
|
/**
|
|
11994
11993
|
* @throws {Error} if the request failed
|
|
11995
11994
|
*/
|
|
11996
|
-
|
|
11995
|
+
addLineItems(request: CartAddItemsRequest): Promise<CartAddItemsResponse>;
|
|
11997
11996
|
/**
|
|
11998
11997
|
* @throws {Error} if the request failed
|
|
11999
11998
|
*/
|
|
12000
|
-
|
|
11999
|
+
removeLineItems(request: CartRemoveItemsRequest): Promise<CartRemoveItemsResponse>;
|
|
12001
12000
|
/**
|
|
12002
12001
|
* @throws {Error} if the request failed
|
|
12003
12002
|
*/
|
|
12004
|
-
|
|
12003
|
+
updateLineItems(request: CartUpdateItemsRequest): Promise<CartUpdateItemsResponse>;
|
|
12005
12004
|
}
|
|
12006
12005
|
|
|
12007
12006
|
type CategoryListRequest = Criteria;
|
|
@@ -12144,7 +12143,7 @@ interface CustomerLoginImitateResponse {
|
|
|
12144
12143
|
redirectUrl?: string;
|
|
12145
12144
|
}
|
|
12146
12145
|
|
|
12147
|
-
declare class
|
|
12146
|
+
declare class CustomerAuthClient extends Client {
|
|
12148
12147
|
/**
|
|
12149
12148
|
* @throws {Error} if the request failed
|
|
12150
12149
|
*/
|
|
@@ -12166,7 +12165,7 @@ declare class DocumentClient extends Client {
|
|
|
12166
12165
|
/**
|
|
12167
12166
|
* @throws {Error} if the request failed
|
|
12168
12167
|
*/
|
|
12169
|
-
|
|
12168
|
+
download(id: string, deepLinkCode: string, request: DocumentDownloadRequest): Promise<DocumentDownloadResponse>;
|
|
12170
12169
|
}
|
|
12171
12170
|
|
|
12172
12171
|
interface GatewayCheckoutResponse {
|
|
@@ -12273,7 +12272,7 @@ declare class OrderClient extends Client {
|
|
|
12273
12272
|
/**
|
|
12274
12273
|
* @throws {Error} if the request failed
|
|
12275
12274
|
*/
|
|
12276
|
-
|
|
12275
|
+
cancel(request: OrderCancelRequest): Promise<OrderCancelResponse>;
|
|
12277
12276
|
/**
|
|
12278
12277
|
* @throws {Error} if the request failed
|
|
12279
12278
|
*/
|
|
@@ -12281,7 +12280,7 @@ declare class OrderClient extends Client {
|
|
|
12281
12280
|
/**
|
|
12282
12281
|
* @throws {Error} if the request failed
|
|
12283
12282
|
*/
|
|
12284
|
-
|
|
12283
|
+
updatePaymentMethod(request: OrderUpdatePaymentMethodRequest): Promise<OrderUpdatePaymentMethodResponse>;
|
|
12285
12284
|
/**
|
|
12286
12285
|
* @throws {Error} if the request failed
|
|
12287
12286
|
*/
|
|
@@ -12289,7 +12288,7 @@ declare class OrderClient extends Client {
|
|
|
12289
12288
|
/**
|
|
12290
12289
|
* @throws {Error} if the request failed
|
|
12291
12290
|
*/
|
|
12292
|
-
|
|
12291
|
+
createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
|
|
12293
12292
|
}
|
|
12294
12293
|
|
|
12295
12294
|
interface ProductListingFlags {
|
|
@@ -12350,15 +12349,15 @@ declare class ProductClient extends Client {
|
|
|
12350
12349
|
/**
|
|
12351
12350
|
* @throws {Error} if the request failed
|
|
12352
12351
|
*/
|
|
12353
|
-
|
|
12352
|
+
getListingByCategory(categoryId: string, request?: ProductListingListWithCategoryRequest): Promise<ProductListingListWithCategoryResponse>;
|
|
12354
12353
|
/**
|
|
12355
12354
|
* @throws {Error} if the request failed
|
|
12356
12355
|
*/
|
|
12357
|
-
getCrossSellingGroupsForProduct(
|
|
12356
|
+
getCrossSellingGroupsForProduct(id: string): Promise<ProductCrossSellingGroupListResponse>;
|
|
12358
12357
|
/**
|
|
12359
12358
|
* @throws {Error} if the request failed
|
|
12360
12359
|
*/
|
|
12361
|
-
getProduct(
|
|
12360
|
+
getProduct(id: string, includeSeoUrls: boolean, request?: ProductSingleRequest): Promise<ProductSingleResponse>;
|
|
12362
12361
|
/**
|
|
12363
12362
|
* @throws {Error} if the request failed
|
|
12364
12363
|
*/
|
|
@@ -12366,15 +12365,15 @@ declare class ProductClient extends Client {
|
|
|
12366
12365
|
/**
|
|
12367
12366
|
* @throws {Error} if the request failed
|
|
12368
12367
|
*/
|
|
12369
|
-
getReviewsForProduct(
|
|
12368
|
+
getReviewsForProduct(id: string, request?: ProductReviewListRequest): Promise<ProductReviewListResponse>;
|
|
12370
12369
|
/**
|
|
12371
12370
|
* @throws {Error} if the request failed
|
|
12372
12371
|
*/
|
|
12373
|
-
saveReviewForProduct(
|
|
12372
|
+
saveReviewForProduct(id: string, request: ProductReviewSaveRequest): Promise<void>;
|
|
12374
12373
|
/**
|
|
12375
12374
|
* @throws {Error} if the request failed
|
|
12376
12375
|
*/
|
|
12377
|
-
|
|
12376
|
+
findVariantWithOptions(id: string, request: ProductVariantWithOptionsRequest): Promise<ProductVariantWithOptionsResponse>;
|
|
12378
12377
|
/**
|
|
12379
12378
|
* @throws {Error} if the request failed
|
|
12380
12379
|
*/
|
|
@@ -12396,7 +12395,7 @@ declare class SeoClient extends Client {
|
|
|
12396
12395
|
/**
|
|
12397
12396
|
* @throws {Error} if the request failed
|
|
12398
12397
|
*/
|
|
12399
|
-
|
|
12398
|
+
getRoutes(request?: SeoRouteListRequest): Promise<SeoRouteListResponse>;
|
|
12400
12399
|
/**
|
|
12401
12400
|
* @throws {Error} if the request failed
|
|
12402
12401
|
*/
|
|
@@ -12523,7 +12522,7 @@ declare class StoreShopwareClient extends ShopwareClient {
|
|
|
12523
12522
|
forCategory(): CategoryClient;
|
|
12524
12523
|
forContent(): ContentClient;
|
|
12525
12524
|
forContext(): ContextClient;
|
|
12526
|
-
|
|
12525
|
+
forCustomerAuth(): CustomerAuthClient;
|
|
12527
12526
|
forDocument(): DocumentClient;
|
|
12528
12527
|
forGateway(): GatewayClient;
|
|
12529
12528
|
forNewsletter(): NewsletterClient;
|
package/dist/index.d.ts
CHANGED
|
@@ -86,7 +86,6 @@ declare class Client {
|
|
|
86
86
|
protected patch(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
87
87
|
protected put(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
88
88
|
protected options(path: string, options?: ClientRequestOptions): Promise<ClientResponse>;
|
|
89
|
-
protected withContextToken(options?: ClientRequestOptions): ClientRequestOptions;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
type GenericRecord = never | null | string | Array<string> | number | {
|
|
@@ -11993,15 +11992,15 @@ declare class CartClient extends Client {
|
|
|
11993
11992
|
/**
|
|
11994
11993
|
* @throws {Error} if the request failed
|
|
11995
11994
|
*/
|
|
11996
|
-
|
|
11995
|
+
addLineItems(request: CartAddItemsRequest): Promise<CartAddItemsResponse>;
|
|
11997
11996
|
/**
|
|
11998
11997
|
* @throws {Error} if the request failed
|
|
11999
11998
|
*/
|
|
12000
|
-
|
|
11999
|
+
removeLineItems(request: CartRemoveItemsRequest): Promise<CartRemoveItemsResponse>;
|
|
12001
12000
|
/**
|
|
12002
12001
|
* @throws {Error} if the request failed
|
|
12003
12002
|
*/
|
|
12004
|
-
|
|
12003
|
+
updateLineItems(request: CartUpdateItemsRequest): Promise<CartUpdateItemsResponse>;
|
|
12005
12004
|
}
|
|
12006
12005
|
|
|
12007
12006
|
type CategoryListRequest = Criteria;
|
|
@@ -12144,7 +12143,7 @@ interface CustomerLoginImitateResponse {
|
|
|
12144
12143
|
redirectUrl?: string;
|
|
12145
12144
|
}
|
|
12146
12145
|
|
|
12147
|
-
declare class
|
|
12146
|
+
declare class CustomerAuthClient extends Client {
|
|
12148
12147
|
/**
|
|
12149
12148
|
* @throws {Error} if the request failed
|
|
12150
12149
|
*/
|
|
@@ -12166,7 +12165,7 @@ declare class DocumentClient extends Client {
|
|
|
12166
12165
|
/**
|
|
12167
12166
|
* @throws {Error} if the request failed
|
|
12168
12167
|
*/
|
|
12169
|
-
|
|
12168
|
+
download(id: string, deepLinkCode: string, request: DocumentDownloadRequest): Promise<DocumentDownloadResponse>;
|
|
12170
12169
|
}
|
|
12171
12170
|
|
|
12172
12171
|
interface GatewayCheckoutResponse {
|
|
@@ -12273,7 +12272,7 @@ declare class OrderClient extends Client {
|
|
|
12273
12272
|
/**
|
|
12274
12273
|
* @throws {Error} if the request failed
|
|
12275
12274
|
*/
|
|
12276
|
-
|
|
12275
|
+
cancel(request: OrderCancelRequest): Promise<OrderCancelResponse>;
|
|
12277
12276
|
/**
|
|
12278
12277
|
* @throws {Error} if the request failed
|
|
12279
12278
|
*/
|
|
@@ -12281,7 +12280,7 @@ declare class OrderClient extends Client {
|
|
|
12281
12280
|
/**
|
|
12282
12281
|
* @throws {Error} if the request failed
|
|
12283
12282
|
*/
|
|
12284
|
-
|
|
12283
|
+
updatePaymentMethod(request: OrderUpdatePaymentMethodRequest): Promise<OrderUpdatePaymentMethodResponse>;
|
|
12285
12284
|
/**
|
|
12286
12285
|
* @throws {Error} if the request failed
|
|
12287
12286
|
*/
|
|
@@ -12289,7 +12288,7 @@ declare class OrderClient extends Client {
|
|
|
12289
12288
|
/**
|
|
12290
12289
|
* @throws {Error} if the request failed
|
|
12291
12290
|
*/
|
|
12292
|
-
|
|
12291
|
+
createFromCart(request?: OrderFromCartRequest): Promise<OrderFromCartResponse>;
|
|
12293
12292
|
}
|
|
12294
12293
|
|
|
12295
12294
|
interface ProductListingFlags {
|
|
@@ -12350,15 +12349,15 @@ declare class ProductClient extends Client {
|
|
|
12350
12349
|
/**
|
|
12351
12350
|
* @throws {Error} if the request failed
|
|
12352
12351
|
*/
|
|
12353
|
-
|
|
12352
|
+
getListingByCategory(categoryId: string, request?: ProductListingListWithCategoryRequest): Promise<ProductListingListWithCategoryResponse>;
|
|
12354
12353
|
/**
|
|
12355
12354
|
* @throws {Error} if the request failed
|
|
12356
12355
|
*/
|
|
12357
|
-
getCrossSellingGroupsForProduct(
|
|
12356
|
+
getCrossSellingGroupsForProduct(id: string): Promise<ProductCrossSellingGroupListResponse>;
|
|
12358
12357
|
/**
|
|
12359
12358
|
* @throws {Error} if the request failed
|
|
12360
12359
|
*/
|
|
12361
|
-
getProduct(
|
|
12360
|
+
getProduct(id: string, includeSeoUrls: boolean, request?: ProductSingleRequest): Promise<ProductSingleResponse>;
|
|
12362
12361
|
/**
|
|
12363
12362
|
* @throws {Error} if the request failed
|
|
12364
12363
|
*/
|
|
@@ -12366,15 +12365,15 @@ declare class ProductClient extends Client {
|
|
|
12366
12365
|
/**
|
|
12367
12366
|
* @throws {Error} if the request failed
|
|
12368
12367
|
*/
|
|
12369
|
-
getReviewsForProduct(
|
|
12368
|
+
getReviewsForProduct(id: string, request?: ProductReviewListRequest): Promise<ProductReviewListResponse>;
|
|
12370
12369
|
/**
|
|
12371
12370
|
* @throws {Error} if the request failed
|
|
12372
12371
|
*/
|
|
12373
|
-
saveReviewForProduct(
|
|
12372
|
+
saveReviewForProduct(id: string, request: ProductReviewSaveRequest): Promise<void>;
|
|
12374
12373
|
/**
|
|
12375
12374
|
* @throws {Error} if the request failed
|
|
12376
12375
|
*/
|
|
12377
|
-
|
|
12376
|
+
findVariantWithOptions(id: string, request: ProductVariantWithOptionsRequest): Promise<ProductVariantWithOptionsResponse>;
|
|
12378
12377
|
/**
|
|
12379
12378
|
* @throws {Error} if the request failed
|
|
12380
12379
|
*/
|
|
@@ -12396,7 +12395,7 @@ declare class SeoClient extends Client {
|
|
|
12396
12395
|
/**
|
|
12397
12396
|
* @throws {Error} if the request failed
|
|
12398
12397
|
*/
|
|
12399
|
-
|
|
12398
|
+
getRoutes(request?: SeoRouteListRequest): Promise<SeoRouteListResponse>;
|
|
12400
12399
|
/**
|
|
12401
12400
|
* @throws {Error} if the request failed
|
|
12402
12401
|
*/
|
|
@@ -12523,7 +12522,7 @@ declare class StoreShopwareClient extends ShopwareClient {
|
|
|
12523
12522
|
forCategory(): CategoryClient;
|
|
12524
12523
|
forContent(): ContentClient;
|
|
12525
12524
|
forContext(): ContextClient;
|
|
12526
|
-
|
|
12525
|
+
forCustomerAuth(): CustomerAuthClient;
|
|
12527
12526
|
forDocument(): DocumentClient;
|
|
12528
12527
|
forGateway(): GatewayClient;
|
|
12529
12528
|
forNewsletter(): NewsletterClient;
|