@devite/shopware-client 1.9.0 → 1.9.1
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.d.cts +12 -13
- package/dist/index.d.mts +12 -13
- package/dist/index.d.ts +12 -13
- package/dist/types/api/admin/LogEntry.d.ts +1 -1
- package/dist/types/api/admin/Notification.d.ts +1 -1
- package/dist/types/api/admin/ScheduledTask.d.ts +1 -1
- package/dist/types/api/admin/ShopwarePlugin.d.ts +2 -2
- package/dist/types/api/admin/SystemConfigEntry.d.ts +1 -1
- package/dist/types/api/admin/acl/AclRole.d.ts +1 -1
- package/dist/types/api/admin/acl/AclUserRole.d.ts +1 -1
- package/dist/types/api/admin/app/App.d.ts +2 -2
- package/dist/types/api/admin/app/AppActionButton.d.ts +2 -2
- package/dist/types/api/admin/category/Category.d.ts +3 -5
- package/dist/types/api/admin/category/MainCategory.d.ts +1 -1
- package/dist/types/api/admin/cms/CmsPage.d.ts +5 -1
- package/dist/types/api/admin/cms/CmsSection.d.ts +1 -3
- package/dist/types/api/admin/cms/CmsSlot.d.ts +1 -1
- package/dist/types/api/admin/cms/landingPage/LandingPage.d.ts +1 -1
- package/dist/types/api/admin/country/Country.d.ts +1 -1
- package/dist/types/api/admin/currency/CurrencyCountryRounding.d.ts +1 -1
- package/dist/types/api/admin/custom/field/CustomField.d.ts +1 -1
- package/dist/types/api/admin/custom/field/set/CustomFieldSet.d.ts +1 -1
- package/dist/types/api/admin/customer/Customer.d.ts +2 -2
- package/dist/types/api/admin/customer/CustomerAddress.d.ts +1 -1
- package/dist/types/api/admin/customer/{group/CustomerGroup.d.ts → CustomerGroup.d.ts} +2 -2
- package/dist/types/api/admin/customer/index.d.ts +1 -1
- package/dist/types/api/admin/document/ShopwareDocument.d.ts +1 -1
- package/dist/types/api/admin/document/ShopwareDocumentBaseConfig.d.ts +1 -1
- package/dist/types/api/admin/locale/Language.d.ts +1 -1
- package/dist/types/api/admin/mail/MailHeaderFooter.d.ts +2 -2
- package/dist/types/api/admin/mail/template/MailTemplate.d.ts +2 -2
- package/dist/types/api/admin/mail/template/MailTemplateType.d.ts +2 -2
- package/dist/types/api/admin/media/Media.d.ts +1 -1
- package/dist/types/api/admin/media/thumbnail/MediaThumbnail.d.ts +1 -1
- package/dist/types/api/admin/media/thumbnail/MediaThumbnailSize.d.ts +1 -1
- package/dist/types/api/admin/newsletterRecipient/NewsletterRecipient.d.ts +1 -1
- package/dist/types/api/admin/numberRange/NumberRange.d.ts +2 -2
- package/dist/types/api/admin/numberRange/NumberRangeState.d.ts +1 -1
- package/dist/types/api/admin/numberRange/NumberRangeType.d.ts +2 -2
- package/dist/types/api/admin/order/Order.d.ts +2 -2
- package/dist/types/api/admin/order/OrderAddress.d.ts +1 -1
- package/dist/types/api/admin/order/OrderCustomer.d.ts +1 -1
- package/dist/types/api/admin/order/delivery/OrderDelivery.d.ts +1 -1
- package/dist/types/api/admin/order/delivery/OrderDeliveryPosition.d.ts +1 -1
- package/dist/types/api/admin/order/lineItem/OrderLineItem.d.ts +1 -1
- package/dist/types/api/admin/order/lineItem/OrderLineItemDownload.d.ts +1 -1
- package/dist/types/api/admin/order/transaction/OrderTransaction.d.ts +1 -1
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCapture.d.ts +1 -1
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefund.d.ts +1 -1
- package/dist/types/api/admin/order/transaction/capture/OrderTransactionCaptureRefundPosition.d.ts +1 -1
- package/dist/types/api/admin/paymentMethod/PaymentMethod.d.ts +1 -1
- package/dist/types/api/admin/product/Product.d.ts +17 -11
- package/dist/types/api/admin/product/ProductDownload.d.ts +2 -2
- package/dist/types/api/admin/product/ProductManufacturer.d.ts +12 -2
- package/dist/types/api/admin/product/ProductMedia.d.ts +1 -1
- package/dist/types/api/admin/product/ProductPrice.d.ts +1 -1
- package/dist/types/api/admin/product/ProductSorting.d.ts +2 -2
- package/dist/types/api/admin/product/crossSelling/ProductCrossSellingAssignedProduct.d.ts +1 -1
- package/dist/types/api/admin/product/search/ProductSearchKeyword.d.ts +1 -1
- package/dist/types/api/admin/product/search/config/ProductSearchConfig.d.ts +1 -1
- package/dist/types/api/admin/product/search/config/ProductSearchConfigField.d.ts +1 -1
- package/dist/types/api/admin/product/stream/ProductStreamFilter.d.ts +1 -1
- package/dist/types/api/admin/promotion/Promotion.d.ts +2 -2
- package/dist/types/api/admin/promotion/PromotionIndividualCode.d.ts +1 -1
- package/dist/types/api/admin/promotion/PromotionSalesChannel.d.ts +1 -1
- package/dist/types/api/admin/promotion/PromotionSetGroup.d.ts +1 -1
- package/dist/types/api/admin/promotion/discount/PromotionDiscount.d.ts +1 -1
- package/dist/types/api/admin/promotion/discount/PromotionDiscountPrice.d.ts +1 -1
- package/dist/types/api/admin/propertyGroup/PropertyGroup.d.ts +1 -1
- package/dist/types/api/admin/propertyGroup/PropertyGroupOption.d.ts +1 -1
- package/dist/types/api/admin/rule/RuleCondition.d.ts +1 -1
- package/dist/types/api/admin/salesChannel/SalesChannel.d.ts +2 -2
- package/dist/types/api/admin/salesChannel/SalesChannelDomain.d.ts +1 -1
- package/dist/types/api/admin/salesChannel/SalesChannelType.d.ts +2 -2
- package/dist/types/api/admin/seo/SeoUrl.d.ts +1 -1
- package/dist/types/api/admin/seo/SeoUrlTemplate.d.ts +1 -1
- package/dist/types/api/admin/shippingMethod/AppShippingMethod.d.ts +1 -1
- package/dist/types/api/admin/shippingMethod/ShippingMethod.d.ts +1 -1
- package/dist/types/api/admin/shippingMethod/ShippingMethodPrice.d.ts +1 -1
- package/dist/types/api/admin/stateMachine/StateMachine.d.ts +2 -2
- package/dist/types/api/admin/stateMachine/StateMachineHistory.d.ts +1 -1
- package/dist/types/api/admin/stateMachine/StateMachineTransition.d.ts +1 -1
- package/dist/types/api/admin/tax/TaxProvider.d.ts +2 -2
- package/dist/types/api/admin/tax/rule/TaxRule.d.ts +1 -1
- package/dist/types/api/admin/tax/rule/TaxRuleType.d.ts +2 -2
- package/dist/types/api/admin/user/User.d.ts +1 -1
- package/dist/types/api/admin/user/UserAccessKey.d.ts +1 -1
- package/dist/types/api/admin/user/UserConfig.d.ts +1 -1
- package/dist/types/api/admin/webhook/Webhook.d.ts +1 -1
- package/dist/types/api/admin/webhook/WebhookEventLog.d.ts +1 -1
- package/dist/types/api/store/Currency.d.ts +2 -2
- package/dist/types/api/store/DeliveryTime.d.ts +2 -2
- package/dist/types/api/store/PaymentMethod.d.ts +2 -2
- package/dist/types/api/store/Rule.d.ts +1 -1
- package/dist/types/api/store/Salutation.d.ts +2 -2
- package/dist/types/api/store/StateMachineState.d.ts +2 -2
- package/dist/types/api/store/Tag.d.ts +1 -1
- package/dist/types/api/store/Tax.d.ts +1 -1
- package/dist/types/api/store/Unit.d.ts +2 -2
- package/dist/types/api/store/cart/Cart.d.ts +1 -2
- package/dist/types/api/store/cart/delivery/CartDelivery.d.ts +1 -0
- package/dist/types/api/store/cart/lineItem/CartLineItem.d.ts +3 -0
- package/dist/types/api/store/category/Category.d.ts +5 -6
- package/dist/types/api/store/category/MainCategory.d.ts +1 -1
- package/dist/types/api/store/cms/CmsBlock.d.ts +1 -1
- package/dist/types/api/store/cms/CmsPage.d.ts +2 -2
- package/dist/types/api/store/cms/CmsSection.d.ts +3 -2
- package/dist/types/api/store/cms/CmsSlot.d.ts +2 -2
- package/dist/types/api/store/cms/LandingPage.d.ts +2 -2
- package/dist/types/api/store/country/Country.d.ts +2 -2
- package/dist/types/api/store/country/CountryState.d.ts +2 -2
- package/dist/types/api/store/customer/Customer.d.ts +1 -1
- package/dist/types/api/store/customer/CustomerGroup.d.ts +2 -2
- package/dist/types/api/store/customer/address/CustomerAddress.d.ts +1 -1
- package/dist/types/api/store/customer/address/CustomerAddressBody.d.ts +1 -1
- package/dist/types/api/store/document/ShopwareDocument.d.ts +1 -1
- package/dist/types/api/store/document/ShopwareDocumentBaseConfig.d.ts +1 -1
- package/dist/types/api/store/document/ShopwareDocumentType.d.ts +2 -2
- package/dist/types/api/store/locale/Language.d.ts +1 -1
- package/dist/types/api/store/locale/Locale.d.ts +2 -2
- package/dist/types/api/store/media/Media.d.ts +2 -2
- package/dist/types/api/store/media/MediaThumbnail.d.ts +1 -1
- package/dist/types/api/store/media/ProductMedia.d.ts +1 -1
- package/dist/types/api/store/order/OrderAddress.d.ts +1 -1
- package/dist/types/api/store/order/OrderCustomer.d.ts +1 -1
- package/dist/types/api/store/order/OrderLineItem.d.ts +5 -29
- package/dist/types/api/store/order/OrderLineItemDownload.d.ts +1 -1
- package/dist/types/api/store/order/delivery/OrderDelivery.d.ts +1 -1
- package/dist/types/api/store/order/delivery/OrderDeliveryPosition.d.ts +1 -1
- package/dist/types/api/store/order/transaction/OrderTransaction.d.ts +1 -1
- package/dist/types/api/store/order/transaction/capture/OrderTransactionCapture.d.ts +1 -1
- package/dist/types/api/store/order/transaction/capture/OrderTransactionCaptureRefund.d.ts +1 -1
- package/dist/types/api/store/order/transaction/capture/OrderTransactionCaptureRefundPosition.d.ts +1 -1
- package/dist/types/api/store/product/Product.d.ts +4 -8
- package/dist/types/api/store/product/ProductDownload.d.ts +1 -1
- package/dist/types/api/store/product/ProductListingResult.d.ts +1 -1
- package/dist/types/api/store/product/ProductReview.d.ts +1 -1
- package/dist/types/api/store/product/ProductStream.d.ts +2 -2
- package/dist/types/api/store/product/crossSelling/ProductCrossSelling.d.ts +2 -2
- package/dist/types/api/store/product/index.d.ts +0 -1
- package/dist/types/api/store/propertyGroup/PropertyGroup.d.ts +2 -2
- package/dist/types/api/store/propertyGroup/PropertyGroupOption.d.ts +2 -2
- package/dist/types/api/store/salesChannel/SalesChannel.d.ts +2 -2
- package/dist/types/api/store/seo/SeoUrlEntity.d.ts +1 -1
- package/dist/types/api/store/shippingMethod/ShippingMethod.d.ts +2 -2
- package/dist/types/api/store/shippingMethod/ShippingMethodPrice.d.ts +1 -1
- package/dist/types/clients/store/AccountClient.d.ts +3 -3
- package/package.json +1 -1
- package/dist/types/api/admin/customer/group/CustomerGroupRegistrationSalesChannels.d.ts +0 -10
- package/dist/types/api/admin/customer/group/index.d.ts +0 -2
- package/dist/types/api/store/product/ProductManufacturer.d.ts +0 -15
package/dist/index.d.cts
CHANGED
|
@@ -23,7 +23,6 @@ import { CustomField } from '#types/api/admin/custom/field/CustomField';
|
|
|
23
23
|
import { ImpersonationTokenRequest, ImpersonationTokenResponse } from '#types/clients/admin/CustomerClient';
|
|
24
24
|
import { Customer } from '#types/api/admin/customer/Customer';
|
|
25
25
|
import { CustomerAddress } from '#types/api/admin/customer/CustomerAddress';
|
|
26
|
-
import { CustomerGroup } from '#types/api/admin/customer/group/CustomerGroup';
|
|
27
26
|
import { DeliveryTime } from '#types/api/admin/DeliveryTime';
|
|
28
27
|
import { NumberReservationResponse, UploadResponse, DownloadResponse } from '#types/clients/admin/DocumentClient';
|
|
29
28
|
import { ShopwareDocument } from '#types/api/admin/document/ShopwareDocument';
|
|
@@ -808,13 +807,13 @@ declare class CustomerClient extends Client {
|
|
|
808
807
|
total: number;
|
|
809
808
|
data: CustomerGroup[];
|
|
810
809
|
}>;
|
|
811
|
-
create: (data:
|
|
810
|
+
create: (data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
812
811
|
data: CustomerGroup;
|
|
813
812
|
}>;
|
|
814
813
|
get: (id: string) => Promise<{
|
|
815
814
|
data: CustomerGroup;
|
|
816
815
|
}>;
|
|
817
|
-
update: (id: string, data:
|
|
816
|
+
update: (id: string, data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
818
817
|
data: CustomerGroup;
|
|
819
818
|
}>;
|
|
820
819
|
delete: (id: string) => Promise<void>;
|
|
@@ -1287,7 +1286,7 @@ type StateMachineState = StateMachineState$1 & {
|
|
|
1287
1286
|
stateMachine?: StateMachine;
|
|
1288
1287
|
};
|
|
1289
1288
|
|
|
1290
|
-
type Language = Language$2 & {
|
|
1289
|
+
type Language = Omit<Language$2, "parent" | "children" | "locale" | "translationCode"> & {
|
|
1291
1290
|
parent?: Language;
|
|
1292
1291
|
children?: Array<Language>;
|
|
1293
1292
|
locale?: Locale;
|
|
@@ -1300,13 +1299,13 @@ type Locale = Locale$2 & {
|
|
|
1300
1299
|
|
|
1301
1300
|
type Media = Media$2 & {
|
|
1302
1301
|
userId?: string;
|
|
1303
|
-
user
|
|
1302
|
+
user?: User;
|
|
1304
1303
|
mediaFolderId?: string;
|
|
1305
1304
|
};
|
|
1306
1305
|
|
|
1307
1306
|
interface UserAccessKey {
|
|
1308
1307
|
id: string;
|
|
1309
|
-
readonly createdAt
|
|
1308
|
+
readonly createdAt: string;
|
|
1310
1309
|
readonly updatedAt?: string;
|
|
1311
1310
|
accessKey: string;
|
|
1312
1311
|
secretAccessKey: string;
|
|
@@ -1316,7 +1315,7 @@ interface UserAccessKey {
|
|
|
1316
1315
|
|
|
1317
1316
|
interface UserConfig {
|
|
1318
1317
|
id: string;
|
|
1319
|
-
readonly createdAt
|
|
1318
|
+
readonly createdAt: string;
|
|
1320
1319
|
readonly updatedAt?: string;
|
|
1321
1320
|
key: string;
|
|
1322
1321
|
value?: string;
|
|
@@ -1324,7 +1323,7 @@ interface UserConfig {
|
|
|
1324
1323
|
|
|
1325
1324
|
interface AclRole {
|
|
1326
1325
|
id: string;
|
|
1327
|
-
readonly createdAt
|
|
1326
|
+
readonly createdAt: string;
|
|
1328
1327
|
readonly updatedAt?: string;
|
|
1329
1328
|
readonly deletedAt?: string;
|
|
1330
1329
|
name: string;
|
|
@@ -1334,7 +1333,7 @@ interface AclRole {
|
|
|
1334
1333
|
|
|
1335
1334
|
interface User {
|
|
1336
1335
|
id: string;
|
|
1337
|
-
readonly createdAt
|
|
1336
|
+
readonly createdAt: string;
|
|
1338
1337
|
readonly updatedAt?: string;
|
|
1339
1338
|
active?: boolean;
|
|
1340
1339
|
timeZone?: string;
|
|
@@ -1357,7 +1356,7 @@ interface User {
|
|
|
1357
1356
|
|
|
1358
1357
|
interface StateMachineHistory {
|
|
1359
1358
|
id: string;
|
|
1360
|
-
readonly createdAt
|
|
1359
|
+
readonly createdAt: string;
|
|
1361
1360
|
readonly updatedAt?: string;
|
|
1362
1361
|
referencedId: string;
|
|
1363
1362
|
referencedVersionId: string;
|
|
@@ -1376,7 +1375,7 @@ interface StateMachineHistory {
|
|
|
1376
1375
|
|
|
1377
1376
|
interface StateMachine {
|
|
1378
1377
|
id: string;
|
|
1379
|
-
readonly createdAt
|
|
1378
|
+
readonly createdAt: string;
|
|
1380
1379
|
readonly updatedAt?: string;
|
|
1381
1380
|
technicalName: string;
|
|
1382
1381
|
name: string;
|
|
@@ -1385,12 +1384,12 @@ interface StateMachine {
|
|
|
1385
1384
|
transitions?: Array<StateMachineTransition>;
|
|
1386
1385
|
historyEntries?: Array<StateMachineHistory>;
|
|
1387
1386
|
customFields?: GenericRecord;
|
|
1388
|
-
translated?: Record<string,
|
|
1387
|
+
translated?: Record<string, any>;
|
|
1389
1388
|
}
|
|
1390
1389
|
|
|
1391
1390
|
interface StateMachineTransition {
|
|
1392
1391
|
id: string;
|
|
1393
|
-
readonly createdAt
|
|
1392
|
+
readonly createdAt: string;
|
|
1394
1393
|
readonly updatedAt?: string;
|
|
1395
1394
|
actionName: string;
|
|
1396
1395
|
stateMachineId: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -23,7 +23,6 @@ import { CustomField } from '#types/api/admin/custom/field/CustomField';
|
|
|
23
23
|
import { ImpersonationTokenRequest, ImpersonationTokenResponse } from '#types/clients/admin/CustomerClient';
|
|
24
24
|
import { Customer } from '#types/api/admin/customer/Customer';
|
|
25
25
|
import { CustomerAddress } from '#types/api/admin/customer/CustomerAddress';
|
|
26
|
-
import { CustomerGroup } from '#types/api/admin/customer/group/CustomerGroup';
|
|
27
26
|
import { DeliveryTime } from '#types/api/admin/DeliveryTime';
|
|
28
27
|
import { NumberReservationResponse, UploadResponse, DownloadResponse } from '#types/clients/admin/DocumentClient';
|
|
29
28
|
import { ShopwareDocument } from '#types/api/admin/document/ShopwareDocument';
|
|
@@ -808,13 +807,13 @@ declare class CustomerClient extends Client {
|
|
|
808
807
|
total: number;
|
|
809
808
|
data: CustomerGroup[];
|
|
810
809
|
}>;
|
|
811
|
-
create: (data:
|
|
810
|
+
create: (data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
812
811
|
data: CustomerGroup;
|
|
813
812
|
}>;
|
|
814
813
|
get: (id: string) => Promise<{
|
|
815
814
|
data: CustomerGroup;
|
|
816
815
|
}>;
|
|
817
|
-
update: (id: string, data:
|
|
816
|
+
update: (id: string, data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
818
817
|
data: CustomerGroup;
|
|
819
818
|
}>;
|
|
820
819
|
delete: (id: string) => Promise<void>;
|
|
@@ -1287,7 +1286,7 @@ type StateMachineState = StateMachineState$1 & {
|
|
|
1287
1286
|
stateMachine?: StateMachine;
|
|
1288
1287
|
};
|
|
1289
1288
|
|
|
1290
|
-
type Language = Language$2 & {
|
|
1289
|
+
type Language = Omit<Language$2, "parent" | "children" | "locale" | "translationCode"> & {
|
|
1291
1290
|
parent?: Language;
|
|
1292
1291
|
children?: Array<Language>;
|
|
1293
1292
|
locale?: Locale;
|
|
@@ -1300,13 +1299,13 @@ type Locale = Locale$2 & {
|
|
|
1300
1299
|
|
|
1301
1300
|
type Media = Media$2 & {
|
|
1302
1301
|
userId?: string;
|
|
1303
|
-
user
|
|
1302
|
+
user?: User;
|
|
1304
1303
|
mediaFolderId?: string;
|
|
1305
1304
|
};
|
|
1306
1305
|
|
|
1307
1306
|
interface UserAccessKey {
|
|
1308
1307
|
id: string;
|
|
1309
|
-
readonly createdAt
|
|
1308
|
+
readonly createdAt: string;
|
|
1310
1309
|
readonly updatedAt?: string;
|
|
1311
1310
|
accessKey: string;
|
|
1312
1311
|
secretAccessKey: string;
|
|
@@ -1316,7 +1315,7 @@ interface UserAccessKey {
|
|
|
1316
1315
|
|
|
1317
1316
|
interface UserConfig {
|
|
1318
1317
|
id: string;
|
|
1319
|
-
readonly createdAt
|
|
1318
|
+
readonly createdAt: string;
|
|
1320
1319
|
readonly updatedAt?: string;
|
|
1321
1320
|
key: string;
|
|
1322
1321
|
value?: string;
|
|
@@ -1324,7 +1323,7 @@ interface UserConfig {
|
|
|
1324
1323
|
|
|
1325
1324
|
interface AclRole {
|
|
1326
1325
|
id: string;
|
|
1327
|
-
readonly createdAt
|
|
1326
|
+
readonly createdAt: string;
|
|
1328
1327
|
readonly updatedAt?: string;
|
|
1329
1328
|
readonly deletedAt?: string;
|
|
1330
1329
|
name: string;
|
|
@@ -1334,7 +1333,7 @@ interface AclRole {
|
|
|
1334
1333
|
|
|
1335
1334
|
interface User {
|
|
1336
1335
|
id: string;
|
|
1337
|
-
readonly createdAt
|
|
1336
|
+
readonly createdAt: string;
|
|
1338
1337
|
readonly updatedAt?: string;
|
|
1339
1338
|
active?: boolean;
|
|
1340
1339
|
timeZone?: string;
|
|
@@ -1357,7 +1356,7 @@ interface User {
|
|
|
1357
1356
|
|
|
1358
1357
|
interface StateMachineHistory {
|
|
1359
1358
|
id: string;
|
|
1360
|
-
readonly createdAt
|
|
1359
|
+
readonly createdAt: string;
|
|
1361
1360
|
readonly updatedAt?: string;
|
|
1362
1361
|
referencedId: string;
|
|
1363
1362
|
referencedVersionId: string;
|
|
@@ -1376,7 +1375,7 @@ interface StateMachineHistory {
|
|
|
1376
1375
|
|
|
1377
1376
|
interface StateMachine {
|
|
1378
1377
|
id: string;
|
|
1379
|
-
readonly createdAt
|
|
1378
|
+
readonly createdAt: string;
|
|
1380
1379
|
readonly updatedAt?: string;
|
|
1381
1380
|
technicalName: string;
|
|
1382
1381
|
name: string;
|
|
@@ -1385,12 +1384,12 @@ interface StateMachine {
|
|
|
1385
1384
|
transitions?: Array<StateMachineTransition>;
|
|
1386
1385
|
historyEntries?: Array<StateMachineHistory>;
|
|
1387
1386
|
customFields?: GenericRecord;
|
|
1388
|
-
translated?: Record<string,
|
|
1387
|
+
translated?: Record<string, any>;
|
|
1389
1388
|
}
|
|
1390
1389
|
|
|
1391
1390
|
interface StateMachineTransition {
|
|
1392
1391
|
id: string;
|
|
1393
|
-
readonly createdAt
|
|
1392
|
+
readonly createdAt: string;
|
|
1394
1393
|
readonly updatedAt?: string;
|
|
1395
1394
|
actionName: string;
|
|
1396
1395
|
stateMachineId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { CustomField } from '#types/api/admin/custom/field/CustomField';
|
|
|
23
23
|
import { ImpersonationTokenRequest, ImpersonationTokenResponse } from '#types/clients/admin/CustomerClient';
|
|
24
24
|
import { Customer } from '#types/api/admin/customer/Customer';
|
|
25
25
|
import { CustomerAddress } from '#types/api/admin/customer/CustomerAddress';
|
|
26
|
-
import { CustomerGroup } from '#types/api/admin/customer/group/CustomerGroup';
|
|
27
26
|
import { DeliveryTime } from '#types/api/admin/DeliveryTime';
|
|
28
27
|
import { NumberReservationResponse, UploadResponse, DownloadResponse } from '#types/clients/admin/DocumentClient';
|
|
29
28
|
import { ShopwareDocument } from '#types/api/admin/document/ShopwareDocument';
|
|
@@ -808,13 +807,13 @@ declare class CustomerClient extends Client {
|
|
|
808
807
|
total: number;
|
|
809
808
|
data: CustomerGroup[];
|
|
810
809
|
}>;
|
|
811
|
-
create: (data:
|
|
810
|
+
create: (data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
812
811
|
data: CustomerGroup;
|
|
813
812
|
}>;
|
|
814
813
|
get: (id: string) => Promise<{
|
|
815
814
|
data: CustomerGroup;
|
|
816
815
|
}>;
|
|
817
|
-
update: (id: string, data:
|
|
816
|
+
update: (id: string, data: CustomerGroup, responseDetails?: "basic" | "detail") => Promise<{
|
|
818
817
|
data: CustomerGroup;
|
|
819
818
|
}>;
|
|
820
819
|
delete: (id: string) => Promise<void>;
|
|
@@ -1287,7 +1286,7 @@ type StateMachineState = StateMachineState$1 & {
|
|
|
1287
1286
|
stateMachine?: StateMachine;
|
|
1288
1287
|
};
|
|
1289
1288
|
|
|
1290
|
-
type Language = Language$2 & {
|
|
1289
|
+
type Language = Omit<Language$2, "parent" | "children" | "locale" | "translationCode"> & {
|
|
1291
1290
|
parent?: Language;
|
|
1292
1291
|
children?: Array<Language>;
|
|
1293
1292
|
locale?: Locale;
|
|
@@ -1300,13 +1299,13 @@ type Locale = Locale$2 & {
|
|
|
1300
1299
|
|
|
1301
1300
|
type Media = Media$2 & {
|
|
1302
1301
|
userId?: string;
|
|
1303
|
-
user
|
|
1302
|
+
user?: User;
|
|
1304
1303
|
mediaFolderId?: string;
|
|
1305
1304
|
};
|
|
1306
1305
|
|
|
1307
1306
|
interface UserAccessKey {
|
|
1308
1307
|
id: string;
|
|
1309
|
-
readonly createdAt
|
|
1308
|
+
readonly createdAt: string;
|
|
1310
1309
|
readonly updatedAt?: string;
|
|
1311
1310
|
accessKey: string;
|
|
1312
1311
|
secretAccessKey: string;
|
|
@@ -1316,7 +1315,7 @@ interface UserAccessKey {
|
|
|
1316
1315
|
|
|
1317
1316
|
interface UserConfig {
|
|
1318
1317
|
id: string;
|
|
1319
|
-
readonly createdAt
|
|
1318
|
+
readonly createdAt: string;
|
|
1320
1319
|
readonly updatedAt?: string;
|
|
1321
1320
|
key: string;
|
|
1322
1321
|
value?: string;
|
|
@@ -1324,7 +1323,7 @@ interface UserConfig {
|
|
|
1324
1323
|
|
|
1325
1324
|
interface AclRole {
|
|
1326
1325
|
id: string;
|
|
1327
|
-
readonly createdAt
|
|
1326
|
+
readonly createdAt: string;
|
|
1328
1327
|
readonly updatedAt?: string;
|
|
1329
1328
|
readonly deletedAt?: string;
|
|
1330
1329
|
name: string;
|
|
@@ -1334,7 +1333,7 @@ interface AclRole {
|
|
|
1334
1333
|
|
|
1335
1334
|
interface User {
|
|
1336
1335
|
id: string;
|
|
1337
|
-
readonly createdAt
|
|
1336
|
+
readonly createdAt: string;
|
|
1338
1337
|
readonly updatedAt?: string;
|
|
1339
1338
|
active?: boolean;
|
|
1340
1339
|
timeZone?: string;
|
|
@@ -1357,7 +1356,7 @@ interface User {
|
|
|
1357
1356
|
|
|
1358
1357
|
interface StateMachineHistory {
|
|
1359
1358
|
id: string;
|
|
1360
|
-
readonly createdAt
|
|
1359
|
+
readonly createdAt: string;
|
|
1361
1360
|
readonly updatedAt?: string;
|
|
1362
1361
|
referencedId: string;
|
|
1363
1362
|
referencedVersionId: string;
|
|
@@ -1376,7 +1375,7 @@ interface StateMachineHistory {
|
|
|
1376
1375
|
|
|
1377
1376
|
interface StateMachine {
|
|
1378
1377
|
id: string;
|
|
1379
|
-
readonly createdAt
|
|
1378
|
+
readonly createdAt: string;
|
|
1380
1379
|
readonly updatedAt?: string;
|
|
1381
1380
|
technicalName: string;
|
|
1382
1381
|
name: string;
|
|
@@ -1385,12 +1384,12 @@ interface StateMachine {
|
|
|
1385
1384
|
transitions?: Array<StateMachineTransition>;
|
|
1386
1385
|
historyEntries?: Array<StateMachineHistory>;
|
|
1387
1386
|
customFields?: GenericRecord;
|
|
1388
|
-
translated?: Record<string,
|
|
1387
|
+
translated?: Record<string, any>;
|
|
1389
1388
|
}
|
|
1390
1389
|
|
|
1391
1390
|
interface StateMachineTransition {
|
|
1392
1391
|
id: string;
|
|
1393
|
-
readonly createdAt
|
|
1392
|
+
readonly createdAt: string;
|
|
1394
1393
|
readonly updatedAt?: string;
|
|
1395
1394
|
actionName: string;
|
|
1396
1395
|
stateMachineId: string;
|
|
@@ -2,7 +2,7 @@ import { GenericRecord } from "#types/api/global/GenericRecord";
|
|
|
2
2
|
import { PaymentMethod } from "./paymentMethod/PaymentMethod";
|
|
3
3
|
export interface ShopwarePlugin {
|
|
4
4
|
id: string;
|
|
5
|
-
readonly createdAt
|
|
5
|
+
readonly createdAt: string;
|
|
6
6
|
readonly updatedAt?: string;
|
|
7
7
|
readonly installedAt?: string;
|
|
8
8
|
active?: boolean;
|
|
@@ -19,5 +19,5 @@ export interface ShopwarePlugin {
|
|
|
19
19
|
author?: string;
|
|
20
20
|
paymentMethods?: Array<PaymentMethod>;
|
|
21
21
|
customFields?: GenericRecord;
|
|
22
|
-
translated?: Record<string,
|
|
22
|
+
translated?: Record<string, any>;
|
|
23
23
|
}
|
|
@@ -6,7 +6,7 @@ import { PaymentMethod } from "../paymentMethod/PaymentMethod";
|
|
|
6
6
|
import { AppShippingMethod } from "../shippingMethod/AppShippingMethod";
|
|
7
7
|
export interface App {
|
|
8
8
|
id: string;
|
|
9
|
-
readonly createdAt
|
|
9
|
+
readonly createdAt: string;
|
|
10
10
|
readonly updatedAt?: string;
|
|
11
11
|
active?: boolean;
|
|
12
12
|
allowDisable?: boolean;
|
|
@@ -22,5 +22,5 @@ export interface App {
|
|
|
22
22
|
appShippingMethods?: Array<AppShippingMethod>;
|
|
23
23
|
webhooks?: Array<Webhook>;
|
|
24
24
|
customFields?: GenericRecord;
|
|
25
|
-
translated?: Record<string,
|
|
25
|
+
translated?: Record<string, any>;
|
|
26
26
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface AppActionButton {
|
|
2
2
|
id: string;
|
|
3
|
-
readonly createdAt
|
|
3
|
+
readonly createdAt: string;
|
|
4
4
|
readonly updatedAt?: string;
|
|
5
5
|
action: string;
|
|
6
6
|
label: string;
|
|
7
7
|
url: string;
|
|
8
|
-
translated?: Record<string,
|
|
8
|
+
translated?: Record<string, any>;
|
|
9
9
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Category as StoreApiCategory } from "#types/api/store/category/Category";
|
|
2
2
|
import { Media } from "../media/Media";
|
|
3
3
|
import { CmsPage } from "../cms/CmsPage";
|
|
4
|
-
import {
|
|
5
|
-
export type Category = StoreApiCategory & {
|
|
6
|
-
parent?: Category;
|
|
4
|
+
import { SeoUrl } from "../seo/SeoUrl";
|
|
5
|
+
export type Category = Omit<StoreApiCategory, "children" | "seoUrls" | "cmsPage" | "media"> & {
|
|
7
6
|
children?: Array<Category>;
|
|
8
|
-
seoUrls?: Array<
|
|
7
|
+
seoUrls?: Array<SeoUrl>;
|
|
9
8
|
cmsPage?: CmsPage;
|
|
10
9
|
media?: Media;
|
|
11
|
-
translated?: Record<string, string>;
|
|
12
10
|
};
|
|
@@ -2,7 +2,7 @@ import { MainCategory as StoreApiMainCategory } from "#types/api/store/category/
|
|
|
2
2
|
import { Product } from "../product/Product";
|
|
3
3
|
import { Category } from "./Category";
|
|
4
4
|
import { SalesChannel } from "../salesChannel/SalesChannel";
|
|
5
|
-
export type MainCategory = StoreApiMainCategory & {
|
|
5
|
+
export type MainCategory = Omit<StoreApiMainCategory, "salesChannel"> & {
|
|
6
6
|
product?: Product;
|
|
7
7
|
category?: Category;
|
|
8
8
|
salesChannel?: SalesChannel;
|
|
@@ -3,10 +3,14 @@ import { CmsSection } from "./CmsSection";
|
|
|
3
3
|
import { Media } from "../media/Media";
|
|
4
4
|
import { LandingPage } from "./landingPage/LandingPage";
|
|
5
5
|
import { Product } from "../product/Product";
|
|
6
|
-
|
|
6
|
+
import { SeoUrl } from "../seo/SeoUrl";
|
|
7
|
+
import { Tag } from "../Tag";
|
|
8
|
+
export type CmsPage = Omit<StoreApiCmsPage, "previewMedia" | "landingPages" | "sections" | "seoUrls" | "tags"> & {
|
|
7
9
|
locked?: boolean;
|
|
8
10
|
previewMedia?: Media;
|
|
9
11
|
products?: Array<Product>;
|
|
10
12
|
landingPages?: Array<LandingPage>;
|
|
11
13
|
sections?: Array<CmsSection>;
|
|
14
|
+
seoUrls?: Array<SeoUrl>;
|
|
15
|
+
tags?: Array<Tag>;
|
|
12
16
|
};
|
|
@@ -2,9 +2,7 @@ import { CmsSection as StoreApiCmsSection } from "#types/api/store/cms/CmsSectio
|
|
|
2
2
|
import { CmsPage } from "./CmsPage";
|
|
3
3
|
import { Media } from "../media/Media";
|
|
4
4
|
import { CmsBlock } from "./CmsBlock";
|
|
5
|
-
export type CmsSection = StoreApiCmsSection & {
|
|
6
|
-
id: string;
|
|
7
|
-
versionId: string;
|
|
5
|
+
export type CmsSection = Omit<StoreApiCmsSection, "backgroundMedia" | "page" | "blocks"> & {
|
|
8
6
|
backgroundMedia?: Media;
|
|
9
7
|
page?: CmsPage;
|
|
10
8
|
blocks?: Array<CmsBlock>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LandingPage as StoreApiLandingPage } from "#types/api/store/cms/LandingPage";
|
|
2
2
|
import { CmsPage } from "../CmsPage";
|
|
3
|
-
export type LandingPage = StoreApiLandingPage & {
|
|
3
|
+
export type LandingPage = Omit<StoreApiLandingPage, "cmsPage"> & {
|
|
4
4
|
cmsPage?: CmsPage;
|
|
5
5
|
};
|
|
@@ -3,7 +3,7 @@ import { Currency } from "./Currency";
|
|
|
3
3
|
import { Country } from "../country/Country";
|
|
4
4
|
export interface CurrencyCountryRounding {
|
|
5
5
|
id: string;
|
|
6
|
-
readonly createdAt
|
|
6
|
+
readonly createdAt: string;
|
|
7
7
|
readonly updatedAt?: string;
|
|
8
8
|
currencyId: string;
|
|
9
9
|
currency?: Currency;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Customer as StoreApiCustomer } from "#types/api/store/customer/Customer";
|
|
2
|
-
import { CustomerGroup } from "./
|
|
2
|
+
import { CustomerGroup } from "./CustomerGroup";
|
|
3
3
|
import { SalesChannel } from "../salesChannel/SalesChannel";
|
|
4
4
|
import { Language } from "../locale/Language";
|
|
5
5
|
import { PaymentMethod } from "../paymentMethod/PaymentMethod";
|
|
@@ -8,7 +8,7 @@ import { Salutation } from "../Salutation";
|
|
|
8
8
|
import { Tag } from "../Tag";
|
|
9
9
|
import { ProductReview } from "../product/ProductReview";
|
|
10
10
|
import { User } from "../user/User";
|
|
11
|
-
export type Customer = StoreApiCustomer & {
|
|
11
|
+
export type Customer = Omit<StoreApiCustomer, "group" | "lastPaymentMethod" | "salutation" | "addresses" | "defaultBillingAddress" | "activeBillingAddress" | "defaultShippingAddress" | "activeShippingAddress" | "productReviews"> & {
|
|
12
12
|
readonly autoIncrement?: number;
|
|
13
13
|
createdById?: string;
|
|
14
14
|
createdBy?: User;
|
|
@@ -2,7 +2,7 @@ import { CustomerAddress as StoreApiCustomerAddress } from "#types/api/store/cus
|
|
|
2
2
|
import { Country } from "../country/Country";
|
|
3
3
|
import { CountryState } from "../country/CountryState";
|
|
4
4
|
import { Salutation } from "../Salutation";
|
|
5
|
-
export type CustomerAddress = StoreApiCustomerAddress & {
|
|
5
|
+
export type CustomerAddress = Omit<StoreApiCustomerAddress, "salutation" | "country" | "countryState"> & {
|
|
6
6
|
salutation?: Salutation;
|
|
7
7
|
country?: Country;
|
|
8
8
|
countryState?: CountryState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomerGroup as StoreApiCustomerGroup } from "#types/api/store/customer/CustomerGroup";
|
|
2
|
-
import { Customer } from "
|
|
3
|
-
import { SalesChannel } from "
|
|
2
|
+
import { Customer } from "./Customer";
|
|
3
|
+
import { SalesChannel } from "../salesChannel/SalesChannel";
|
|
4
4
|
export type CustomerGroup = StoreApiCustomerGroup & {
|
|
5
5
|
customers?: Array<Customer>;
|
|
6
6
|
salesChannels?: Array<SalesChannel>;
|
|
@@ -2,7 +2,7 @@ import { ShopwareDocument as StoreApiShopwareDocument } from "#types/api/store/d
|
|
|
2
2
|
import { ShopwareDocumentType } from "./ShopwareDocumentType";
|
|
3
3
|
import { Media } from "../media/Media";
|
|
4
4
|
import { Order } from "../order/Order";
|
|
5
|
-
export type ShopwareDocument = StoreApiShopwareDocument & {
|
|
5
|
+
export type ShopwareDocument = Omit<StoreApiShopwareDocument, "order" | "documentType" | "referencedDocument" | "dependantDocuments" | "documentMediaFile" | "documentA11yMediaFile"> & {
|
|
6
6
|
order?: Order;
|
|
7
7
|
documentType?: ShopwareDocumentType;
|
|
8
8
|
referencedDocument?: ShopwareDocument;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ShopwareDocumentBaseConfig as StoreApiShopwareDocumentBaseConfig } from "#types/api/store/document/ShopwareDocumentBaseConfig";
|
|
2
2
|
import { ShopwareDocumentType } from "./ShopwareDocumentType";
|
|
3
3
|
import { Media } from "../media/Media";
|
|
4
|
-
export type ShopwareDocumentBaseConfig = StoreApiShopwareDocumentBaseConfig & {
|
|
4
|
+
export type ShopwareDocumentBaseConfig = Omit<StoreApiShopwareDocumentBaseConfig, "documentType" | "logo"> & {
|
|
5
5
|
documentType?: ShopwareDocumentType;
|
|
6
6
|
logo?: Media;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Language as StoreApiLanguage } from "#types/api/store/locale/Language";
|
|
2
2
|
import { Locale } from "./Locale";
|
|
3
|
-
export type Language = StoreApiLanguage & {
|
|
3
|
+
export type Language = Omit<StoreApiLanguage, "parent" | "children" | "locale" | "translationCode"> & {
|
|
4
4
|
parent?: Language;
|
|
5
5
|
children?: Array<Language>;
|
|
6
6
|
locale?: Locale;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface MailHeaderFooter {
|
|
2
2
|
id: string;
|
|
3
|
-
readonly createdAt
|
|
3
|
+
readonly createdAt: string;
|
|
4
4
|
readonly updatedAt?: string;
|
|
5
5
|
name: string;
|
|
6
6
|
description?: string;
|
|
@@ -8,5 +8,5 @@ export interface MailHeaderFooter {
|
|
|
8
8
|
headerPlain?: string;
|
|
9
9
|
footerHtml?: string;
|
|
10
10
|
footerPlain?: string;
|
|
11
|
-
translated?: Record<string,
|
|
11
|
+
translated?: Record<string, any>;
|
|
12
12
|
}
|
|
@@ -3,7 +3,7 @@ import { MailTemplateType } from "./MailTemplateType";
|
|
|
3
3
|
import { MailTemplateMedia } from "./MailTemplateMedia";
|
|
4
4
|
export interface MailTemplate {
|
|
5
5
|
id: string;
|
|
6
|
-
readonly createdAt
|
|
6
|
+
readonly createdAt: string;
|
|
7
7
|
readonly updatedAt?: string;
|
|
8
8
|
senderName?: string;
|
|
9
9
|
subject: string;
|
|
@@ -14,5 +14,5 @@ export interface MailTemplate {
|
|
|
14
14
|
mailTemplateType?: MailTemplateType;
|
|
15
15
|
media?: Array<MailTemplateMedia>;
|
|
16
16
|
customFields?: GenericRecord;
|
|
17
|
-
translated?: Record<string,
|
|
17
|
+
translated?: Record<string, any>;
|
|
18
18
|
}
|