@solution25/n8n-nodes-shopware 1.4.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.
- package/README.md +80 -0
- package/dist/credentials/ShopwareOAuth2Api.credentials.d.ts +16 -0
- package/dist/credentials/ShopwareOAuth2Api.credentials.js +78 -0
- package/dist/credentials/ShopwareOAuth2Api.credentials.js.map +1 -0
- package/dist/nodes/Shopware/Shopware.node.d.ts +4 -0
- package/dist/nodes/Shopware/Shopware.node.js +23 -0
- package/dist/nodes/Shopware/Shopware.node.js.map +1 -0
- package/dist/nodes/Shopware/Shopware.node.json +18 -0
- package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.d.ts +1 -0
- package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js +98 -0
- package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js.map +1 -0
- package/dist/nodes/Shopware/test/v1/node/helpers.d.ts +6 -0
- package/dist/nodes/Shopware/test/v1/node/helpers.js +44 -0
- package/dist/nodes/Shopware/test/v1/node/helpers.js.map +1 -0
- package/dist/nodes/Shopware/test/v1/node/order/getMany.test.d.ts +1 -0
- package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js +111 -0
- package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js.map +1 -0
- package/dist/nodes/Shopware/test/v1/node/product/getMany.test.d.ts +1 -0
- package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js +96 -0
- package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js.map +1 -0
- package/dist/nodes/Shopware/v1/ShopwareV1.node.d.ts +10 -0
- package/dist/nodes/Shopware/v1/ShopwareV1.node.js +23 -0
- package/dist/nodes/Shopware/v1/ShopwareV1.node.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/Category.resource.d.ts +8 -0
- package/dist/nodes/Shopware/v1/actions/category/Category.resource.js +98 -0
- package/dist/nodes/Shopware/v1/actions/category/Category.resource.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/create.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/category/create.operation.js +211 -0
- package/dist/nodes/Shopware/v1/actions/category/create.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js +47 -0
- package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/fields.d.ts +1 -0
- package/dist/nodes/Shopware/v1/actions/category/fields.js +21 -0
- package/dist/nodes/Shopware/v1/actions/category/fields.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/get.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/category/get.operation.js +77 -0
- package/dist/nodes/Shopware/v1/actions/category/get.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/getMany.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js +164 -0
- package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/types.d.ts +19 -0
- package/dist/nodes/Shopware/v1/actions/category/types.js +3 -0
- package/dist/nodes/Shopware/v1/actions/category/types.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/category/update.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/category/update.operation.js +120 -0
- package/dist/nodes/Shopware/v1/actions/category/update.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.d.ts +8 -0
- package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js +98 -0
- package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/create.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/customer/create.operation.js +301 -0
- package/dist/nodes/Shopware/v1/actions/customer/create.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js +47 -0
- package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/fields.d.ts +4 -0
- package/dist/nodes/Shopware/v1/actions/customer/fields.js +30 -0
- package/dist/nodes/Shopware/v1/actions/customer/fields.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/get.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/customer/get.operation.js +77 -0
- package/dist/nodes/Shopware/v1/actions/customer/get.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js +319 -0
- package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/types.d.ts +54 -0
- package/dist/nodes/Shopware/v1/actions/customer/types.js +3 -0
- package/dist/nodes/Shopware/v1/actions/customer/types.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/customer/update.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/customer/update.operation.js +287 -0
- package/dist/nodes/Shopware/v1/actions/customer/update.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/fields.d.ts +5 -0
- package/dist/nodes/Shopware/v1/actions/fields.js +26 -0
- package/dist/nodes/Shopware/v1/actions/fields.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/node.type.d.ts +9 -0
- package/dist/nodes/Shopware/v1/actions/node.type.js +3 -0
- package/dist/nodes/Shopware/v1/actions/node.type.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/Order.resource.d.ts +8 -0
- package/dist/nodes/Shopware/v1/actions/order/Order.resource.js +98 -0
- package/dist/nodes/Shopware/v1/actions/order/Order.resource.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/create.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/order/create.operation.js +861 -0
- package/dist/nodes/Shopware/v1/actions/order/create.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js +47 -0
- package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/fields.d.ts +2 -0
- package/dist/nodes/Shopware/v1/actions/order/fields.js +25 -0
- package/dist/nodes/Shopware/v1/actions/order/fields.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/get.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/order/get.operation.js +77 -0
- package/dist/nodes/Shopware/v1/actions/order/get.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/getMany.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js +226 -0
- package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/types.d.ts +171 -0
- package/dist/nodes/Shopware/v1/actions/order/types.js +3 -0
- package/dist/nodes/Shopware/v1/actions/order/types.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/order/update.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/order/update.operation.js +723 -0
- package/dist/nodes/Shopware/v1/actions/order/update.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/Product.resource.d.ts +8 -0
- package/dist/nodes/Shopware/v1/actions/product/Product.resource.js +98 -0
- package/dist/nodes/Shopware/v1/actions/product/Product.resource.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/create.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/product/create.operation.js +335 -0
- package/dist/nodes/Shopware/v1/actions/product/create.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js +47 -0
- package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/fields.d.ts +7 -0
- package/dist/nodes/Shopware/v1/actions/product/fields.js +33 -0
- package/dist/nodes/Shopware/v1/actions/product/fields.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/get.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/product/get.operation.js +77 -0
- package/dist/nodes/Shopware/v1/actions/product/get.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/getMany.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js +319 -0
- package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/types.d.ts +66 -0
- package/dist/nodes/Shopware/v1/actions/product/types.js +3 -0
- package/dist/nodes/Shopware/v1/actions/product/types.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/product/update.operation.d.ts +27 -0
- package/dist/nodes/Shopware/v1/actions/product/update.operation.js +287 -0
- package/dist/nodes/Shopware/v1/actions/product/update.operation.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/router.d.ts +2 -0
- package/dist/nodes/Shopware/v1/actions/router.js +78 -0
- package/dist/nodes/Shopware/v1/actions/router.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/types.d.ts +97 -0
- package/dist/nodes/Shopware/v1/actions/types.js +3 -0
- package/dist/nodes/Shopware/v1/actions/types.js.map +1 -0
- package/dist/nodes/Shopware/v1/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/Shopware/v1/actions/versionDescription.js +93 -0
- package/dist/nodes/Shopware/v1/actions/versionDescription.js.map +1 -0
- package/dist/nodes/Shopware/v1/helpers/handlers.d.ts +14 -0
- package/dist/nodes/Shopware/v1/helpers/handlers.js +261 -0
- package/dist/nodes/Shopware/v1/helpers/handlers.js.map +1 -0
- package/dist/nodes/Shopware/v1/helpers/interfaces.d.ts +1 -0
- package/dist/nodes/Shopware/v1/helpers/interfaces.js +3 -0
- package/dist/nodes/Shopware/v1/helpers/interfaces.js.map +1 -0
- package/dist/nodes/Shopware/v1/helpers/utils.d.ts +16 -0
- package/dist/nodes/Shopware/v1/helpers/utils.js +354 -0
- package/dist/nodes/Shopware/v1/helpers/utils.js.map +1 -0
- package/dist/nodes/Shopware/v1/methods/index.d.ts +1 -0
- package/dist/nodes/Shopware/v1/methods/index.js +38 -0
- package/dist/nodes/Shopware/v1/methods/index.js.map +1 -0
- package/dist/nodes/Shopware/v1/methods/loadOptions.d.ts +18 -0
- package/dist/nodes/Shopware/v1/methods/loadOptions.js +143 -0
- package/dist/nodes/Shopware/v1/methods/loadOptions.js.map +1 -0
- package/dist/nodes/Shopware/v1/transport/index.d.ts +2 -0
- package/dist/nodes/Shopware/v1/transport/index.js +25 -0
- package/dist/nodes/Shopware/v1/transport/index.js.map +1 -0
- package/dist/package.json +63 -0
- package/dist/shopware.png +0 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
export interface Rounding {
|
|
3
|
+
decimals: number;
|
|
4
|
+
interval: number;
|
|
5
|
+
roundForNet: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface CalculatedTax {
|
|
8
|
+
tax: number;
|
|
9
|
+
taxRate: number;
|
|
10
|
+
price: number;
|
|
11
|
+
}
|
|
12
|
+
interface TaxRule {
|
|
13
|
+
taxRate: number;
|
|
14
|
+
percentage: number;
|
|
15
|
+
}
|
|
16
|
+
interface OrderPrice {
|
|
17
|
+
netPrice: number;
|
|
18
|
+
totalPrice: number;
|
|
19
|
+
calculatedTaxes: CalculatedTax[];
|
|
20
|
+
taxRules: TaxRule[];
|
|
21
|
+
positionPrice: number;
|
|
22
|
+
rawTotal: number;
|
|
23
|
+
taxStatus: string;
|
|
24
|
+
}
|
|
25
|
+
interface LineItemPrice {
|
|
26
|
+
unitPrice: number;
|
|
27
|
+
totalPrice: number;
|
|
28
|
+
quantity: number;
|
|
29
|
+
calculatedTaxes: CalculatedTax[];
|
|
30
|
+
taxRules: TaxRule[];
|
|
31
|
+
}
|
|
32
|
+
export interface OrderCustomer {
|
|
33
|
+
firstName: string;
|
|
34
|
+
lastName: string;
|
|
35
|
+
email: string;
|
|
36
|
+
salutationId: string;
|
|
37
|
+
customerId?: string;
|
|
38
|
+
customerNumber: string;
|
|
39
|
+
}
|
|
40
|
+
interface BillingAddress {
|
|
41
|
+
id: string;
|
|
42
|
+
countryId: string;
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
street: string;
|
|
46
|
+
city: string;
|
|
47
|
+
}
|
|
48
|
+
export interface GenericPrice {
|
|
49
|
+
unitPrice: number;
|
|
50
|
+
totalPrice: number;
|
|
51
|
+
quantity: number;
|
|
52
|
+
calculatedTaxes: CalculatedTax[];
|
|
53
|
+
taxRules: TaxRule[];
|
|
54
|
+
}
|
|
55
|
+
export interface Transaction {
|
|
56
|
+
paymentMethodId: string;
|
|
57
|
+
stateId: string;
|
|
58
|
+
amount: GenericPrice;
|
|
59
|
+
}
|
|
60
|
+
export interface Delivery {
|
|
61
|
+
shippingOrderAddressId: string;
|
|
62
|
+
shippingMethodId: string;
|
|
63
|
+
stateId: string;
|
|
64
|
+
shippingDateEarliest: Date;
|
|
65
|
+
shippingDateLatest: Date;
|
|
66
|
+
shippingCosts: GenericPrice;
|
|
67
|
+
}
|
|
68
|
+
export interface Address {
|
|
69
|
+
id: string;
|
|
70
|
+
countryId: string;
|
|
71
|
+
firstName: string;
|
|
72
|
+
lastName: string;
|
|
73
|
+
street: string;
|
|
74
|
+
city: string;
|
|
75
|
+
}
|
|
76
|
+
export interface LineItem {
|
|
77
|
+
identifier: string;
|
|
78
|
+
productId: string;
|
|
79
|
+
quantity: number;
|
|
80
|
+
label: string;
|
|
81
|
+
states: string[];
|
|
82
|
+
price: LineItemPrice;
|
|
83
|
+
}
|
|
84
|
+
interface OrderBody {
|
|
85
|
+
orderNumber: string;
|
|
86
|
+
billingAddressId: string;
|
|
87
|
+
currencyId: string;
|
|
88
|
+
languageId: string;
|
|
89
|
+
salesChannelId: string;
|
|
90
|
+
orderDateTime: Date;
|
|
91
|
+
currencyFactor: number;
|
|
92
|
+
stateId: string;
|
|
93
|
+
itemRounding: Rounding;
|
|
94
|
+
totalRounding: Rounding;
|
|
95
|
+
orderCustomer: OrderCustomer;
|
|
96
|
+
price: OrderPrice;
|
|
97
|
+
billingAddress: BillingAddress;
|
|
98
|
+
shippingCosts: GenericPrice;
|
|
99
|
+
transactions?: Transaction[];
|
|
100
|
+
deliveries?: Delivery[];
|
|
101
|
+
addresses: Address[];
|
|
102
|
+
lineItems: LineItem[];
|
|
103
|
+
}
|
|
104
|
+
export interface OrderCreatePayload extends OrderBody, IDataObject {
|
|
105
|
+
}
|
|
106
|
+
type NullablePartial<T> = {
|
|
107
|
+
[P in keyof T]?: T[P] | null;
|
|
108
|
+
};
|
|
109
|
+
export type OrderUpdatePayload = Omit<NullablePartial<OrderCreatePayload>, 'orderCustomer'> & {
|
|
110
|
+
orderCustomer?: Partial<OrderCustomer> | null;
|
|
111
|
+
};
|
|
112
|
+
export interface OrderResponse extends OrderBody {
|
|
113
|
+
id: string;
|
|
114
|
+
amountNet: number;
|
|
115
|
+
currency: {
|
|
116
|
+
id: string;
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
export type SalutationOption = {
|
|
120
|
+
id: string;
|
|
121
|
+
displayName: string;
|
|
122
|
+
};
|
|
123
|
+
export type NodeLineItem = {
|
|
124
|
+
productNumber: string;
|
|
125
|
+
quantity: number;
|
|
126
|
+
};
|
|
127
|
+
export type NodeTransaction = {
|
|
128
|
+
paymentMethod: string;
|
|
129
|
+
state: string;
|
|
130
|
+
};
|
|
131
|
+
export type NodeDelivery = {
|
|
132
|
+
shippingMethod: string;
|
|
133
|
+
state: string;
|
|
134
|
+
customerShippingAddress: boolean;
|
|
135
|
+
addressUi: {
|
|
136
|
+
addressValues: AddressValues;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
export type AddressValues = {
|
|
140
|
+
country: string;
|
|
141
|
+
firstName: string;
|
|
142
|
+
lastName: string;
|
|
143
|
+
city: string;
|
|
144
|
+
street: string;
|
|
145
|
+
};
|
|
146
|
+
export type CustomerData = {
|
|
147
|
+
firstName: string;
|
|
148
|
+
lastName: string;
|
|
149
|
+
email: string;
|
|
150
|
+
salutationId: string;
|
|
151
|
+
billingAddress: Address;
|
|
152
|
+
shippingAddress: Address;
|
|
153
|
+
};
|
|
154
|
+
export type GlobalDefaults = {
|
|
155
|
+
salesChannelId: string;
|
|
156
|
+
languageId: string;
|
|
157
|
+
};
|
|
158
|
+
export type NodeCustomerDetails = {
|
|
159
|
+
firstName: string;
|
|
160
|
+
lastName: string;
|
|
161
|
+
email: string;
|
|
162
|
+
salutation: string;
|
|
163
|
+
};
|
|
164
|
+
export type NodeCustomerAddressDetails = {
|
|
165
|
+
country: string;
|
|
166
|
+
firstName: string;
|
|
167
|
+
lastName: string;
|
|
168
|
+
city: string;
|
|
169
|
+
street: string;
|
|
170
|
+
};
|
|
171
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../nodes/Shopware/v1/actions/order/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type INodeExecutionData, type INodeProperties, type IExecuteFunctions } from 'n8n-workflow';
|
|
2
|
+
export declare const description: {
|
|
3
|
+
displayOptions: import("n8n-workflow").IDisplayOptions;
|
|
4
|
+
displayName: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: import("n8n-workflow").NodePropertyTypes;
|
|
7
|
+
typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
|
|
8
|
+
default: import("n8n-workflow").NodeParameterValueType;
|
|
9
|
+
description?: string;
|
|
10
|
+
hint?: string;
|
|
11
|
+
disabledOptions?: import("n8n-workflow").IDisplayOptions;
|
|
12
|
+
options?: Array<import("n8n-workflow").INodePropertyOptions | INodeProperties | import("n8n-workflow").INodePropertyCollection>;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
isNodeSetting?: boolean;
|
|
15
|
+
noDataExpression?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
routing?: import("n8n-workflow").INodePropertyRouting;
|
|
18
|
+
credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
|
|
19
|
+
extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
|
|
20
|
+
modes?: import("n8n-workflow").INodePropertyMode[];
|
|
21
|
+
requiresDataPath?: "single" | "multiple";
|
|
22
|
+
doNotInherit?: boolean;
|
|
23
|
+
validateType?: import("n8n-workflow").FieldType;
|
|
24
|
+
ignoreValidationDuringExecution?: boolean;
|
|
25
|
+
allowArbitraryValues?: boolean;
|
|
26
|
+
}[];
|
|
27
|
+
export declare function execute(this: IExecuteFunctions, items: INodeExecutionData[]): Promise<INodeExecutionData[]>;
|