@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.
Files changed (156) hide show
  1. package/README.md +80 -0
  2. package/dist/credentials/ShopwareOAuth2Api.credentials.d.ts +16 -0
  3. package/dist/credentials/ShopwareOAuth2Api.credentials.js +78 -0
  4. package/dist/credentials/ShopwareOAuth2Api.credentials.js.map +1 -0
  5. package/dist/nodes/Shopware/Shopware.node.d.ts +4 -0
  6. package/dist/nodes/Shopware/Shopware.node.js +23 -0
  7. package/dist/nodes/Shopware/Shopware.node.js.map +1 -0
  8. package/dist/nodes/Shopware/Shopware.node.json +18 -0
  9. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.d.ts +1 -0
  10. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js +98 -0
  11. package/dist/nodes/Shopware/test/v1/node/customer/getMany.test.js.map +1 -0
  12. package/dist/nodes/Shopware/test/v1/node/helpers.d.ts +6 -0
  13. package/dist/nodes/Shopware/test/v1/node/helpers.js +44 -0
  14. package/dist/nodes/Shopware/test/v1/node/helpers.js.map +1 -0
  15. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.d.ts +1 -0
  16. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js +111 -0
  17. package/dist/nodes/Shopware/test/v1/node/order/getMany.test.js.map +1 -0
  18. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.d.ts +1 -0
  19. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js +96 -0
  20. package/dist/nodes/Shopware/test/v1/node/product/getMany.test.js.map +1 -0
  21. package/dist/nodes/Shopware/v1/ShopwareV1.node.d.ts +10 -0
  22. package/dist/nodes/Shopware/v1/ShopwareV1.node.js +23 -0
  23. package/dist/nodes/Shopware/v1/ShopwareV1.node.js.map +1 -0
  24. package/dist/nodes/Shopware/v1/actions/category/Category.resource.d.ts +8 -0
  25. package/dist/nodes/Shopware/v1/actions/category/Category.resource.js +98 -0
  26. package/dist/nodes/Shopware/v1/actions/category/Category.resource.js.map +1 -0
  27. package/dist/nodes/Shopware/v1/actions/category/create.operation.d.ts +27 -0
  28. package/dist/nodes/Shopware/v1/actions/category/create.operation.js +211 -0
  29. package/dist/nodes/Shopware/v1/actions/category/create.operation.js.map +1 -0
  30. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.d.ts +27 -0
  31. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js +47 -0
  32. package/dist/nodes/Shopware/v1/actions/category/deleteCategory.operation.js.map +1 -0
  33. package/dist/nodes/Shopware/v1/actions/category/fields.d.ts +1 -0
  34. package/dist/nodes/Shopware/v1/actions/category/fields.js +21 -0
  35. package/dist/nodes/Shopware/v1/actions/category/fields.js.map +1 -0
  36. package/dist/nodes/Shopware/v1/actions/category/get.operation.d.ts +27 -0
  37. package/dist/nodes/Shopware/v1/actions/category/get.operation.js +77 -0
  38. package/dist/nodes/Shopware/v1/actions/category/get.operation.js.map +1 -0
  39. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.d.ts +27 -0
  40. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js +164 -0
  41. package/dist/nodes/Shopware/v1/actions/category/getMany.operation.js.map +1 -0
  42. package/dist/nodes/Shopware/v1/actions/category/types.d.ts +19 -0
  43. package/dist/nodes/Shopware/v1/actions/category/types.js +3 -0
  44. package/dist/nodes/Shopware/v1/actions/category/types.js.map +1 -0
  45. package/dist/nodes/Shopware/v1/actions/category/update.operation.d.ts +27 -0
  46. package/dist/nodes/Shopware/v1/actions/category/update.operation.js +120 -0
  47. package/dist/nodes/Shopware/v1/actions/category/update.operation.js.map +1 -0
  48. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.d.ts +8 -0
  49. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js +98 -0
  50. package/dist/nodes/Shopware/v1/actions/customer/Customer.resource.js.map +1 -0
  51. package/dist/nodes/Shopware/v1/actions/customer/create.operation.d.ts +27 -0
  52. package/dist/nodes/Shopware/v1/actions/customer/create.operation.js +301 -0
  53. package/dist/nodes/Shopware/v1/actions/customer/create.operation.js.map +1 -0
  54. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.d.ts +27 -0
  55. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js +47 -0
  56. package/dist/nodes/Shopware/v1/actions/customer/deleteCustomer.operation.js.map +1 -0
  57. package/dist/nodes/Shopware/v1/actions/customer/fields.d.ts +4 -0
  58. package/dist/nodes/Shopware/v1/actions/customer/fields.js +30 -0
  59. package/dist/nodes/Shopware/v1/actions/customer/fields.js.map +1 -0
  60. package/dist/nodes/Shopware/v1/actions/customer/get.operation.d.ts +27 -0
  61. package/dist/nodes/Shopware/v1/actions/customer/get.operation.js +77 -0
  62. package/dist/nodes/Shopware/v1/actions/customer/get.operation.js.map +1 -0
  63. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.d.ts +27 -0
  64. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js +319 -0
  65. package/dist/nodes/Shopware/v1/actions/customer/getMany.operation.js.map +1 -0
  66. package/dist/nodes/Shopware/v1/actions/customer/types.d.ts +54 -0
  67. package/dist/nodes/Shopware/v1/actions/customer/types.js +3 -0
  68. package/dist/nodes/Shopware/v1/actions/customer/types.js.map +1 -0
  69. package/dist/nodes/Shopware/v1/actions/customer/update.operation.d.ts +27 -0
  70. package/dist/nodes/Shopware/v1/actions/customer/update.operation.js +287 -0
  71. package/dist/nodes/Shopware/v1/actions/customer/update.operation.js.map +1 -0
  72. package/dist/nodes/Shopware/v1/actions/fields.d.ts +5 -0
  73. package/dist/nodes/Shopware/v1/actions/fields.js +26 -0
  74. package/dist/nodes/Shopware/v1/actions/fields.js.map +1 -0
  75. package/dist/nodes/Shopware/v1/actions/node.type.d.ts +9 -0
  76. package/dist/nodes/Shopware/v1/actions/node.type.js +3 -0
  77. package/dist/nodes/Shopware/v1/actions/node.type.js.map +1 -0
  78. package/dist/nodes/Shopware/v1/actions/order/Order.resource.d.ts +8 -0
  79. package/dist/nodes/Shopware/v1/actions/order/Order.resource.js +98 -0
  80. package/dist/nodes/Shopware/v1/actions/order/Order.resource.js.map +1 -0
  81. package/dist/nodes/Shopware/v1/actions/order/create.operation.d.ts +27 -0
  82. package/dist/nodes/Shopware/v1/actions/order/create.operation.js +861 -0
  83. package/dist/nodes/Shopware/v1/actions/order/create.operation.js.map +1 -0
  84. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.d.ts +27 -0
  85. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js +47 -0
  86. package/dist/nodes/Shopware/v1/actions/order/deleteOrder.operation.js.map +1 -0
  87. package/dist/nodes/Shopware/v1/actions/order/fields.d.ts +2 -0
  88. package/dist/nodes/Shopware/v1/actions/order/fields.js +25 -0
  89. package/dist/nodes/Shopware/v1/actions/order/fields.js.map +1 -0
  90. package/dist/nodes/Shopware/v1/actions/order/get.operation.d.ts +27 -0
  91. package/dist/nodes/Shopware/v1/actions/order/get.operation.js +77 -0
  92. package/dist/nodes/Shopware/v1/actions/order/get.operation.js.map +1 -0
  93. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.d.ts +27 -0
  94. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js +226 -0
  95. package/dist/nodes/Shopware/v1/actions/order/getMany.operation.js.map +1 -0
  96. package/dist/nodes/Shopware/v1/actions/order/types.d.ts +171 -0
  97. package/dist/nodes/Shopware/v1/actions/order/types.js +3 -0
  98. package/dist/nodes/Shopware/v1/actions/order/types.js.map +1 -0
  99. package/dist/nodes/Shopware/v1/actions/order/update.operation.d.ts +27 -0
  100. package/dist/nodes/Shopware/v1/actions/order/update.operation.js +723 -0
  101. package/dist/nodes/Shopware/v1/actions/order/update.operation.js.map +1 -0
  102. package/dist/nodes/Shopware/v1/actions/product/Product.resource.d.ts +8 -0
  103. package/dist/nodes/Shopware/v1/actions/product/Product.resource.js +98 -0
  104. package/dist/nodes/Shopware/v1/actions/product/Product.resource.js.map +1 -0
  105. package/dist/nodes/Shopware/v1/actions/product/create.operation.d.ts +27 -0
  106. package/dist/nodes/Shopware/v1/actions/product/create.operation.js +335 -0
  107. package/dist/nodes/Shopware/v1/actions/product/create.operation.js.map +1 -0
  108. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.d.ts +27 -0
  109. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js +47 -0
  110. package/dist/nodes/Shopware/v1/actions/product/deleteProduct.operation.js.map +1 -0
  111. package/dist/nodes/Shopware/v1/actions/product/fields.d.ts +7 -0
  112. package/dist/nodes/Shopware/v1/actions/product/fields.js +33 -0
  113. package/dist/nodes/Shopware/v1/actions/product/fields.js.map +1 -0
  114. package/dist/nodes/Shopware/v1/actions/product/get.operation.d.ts +27 -0
  115. package/dist/nodes/Shopware/v1/actions/product/get.operation.js +77 -0
  116. package/dist/nodes/Shopware/v1/actions/product/get.operation.js.map +1 -0
  117. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.d.ts +27 -0
  118. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js +319 -0
  119. package/dist/nodes/Shopware/v1/actions/product/getMany.operation.js.map +1 -0
  120. package/dist/nodes/Shopware/v1/actions/product/types.d.ts +66 -0
  121. package/dist/nodes/Shopware/v1/actions/product/types.js +3 -0
  122. package/dist/nodes/Shopware/v1/actions/product/types.js.map +1 -0
  123. package/dist/nodes/Shopware/v1/actions/product/update.operation.d.ts +27 -0
  124. package/dist/nodes/Shopware/v1/actions/product/update.operation.js +287 -0
  125. package/dist/nodes/Shopware/v1/actions/product/update.operation.js.map +1 -0
  126. package/dist/nodes/Shopware/v1/actions/router.d.ts +2 -0
  127. package/dist/nodes/Shopware/v1/actions/router.js +78 -0
  128. package/dist/nodes/Shopware/v1/actions/router.js.map +1 -0
  129. package/dist/nodes/Shopware/v1/actions/types.d.ts +97 -0
  130. package/dist/nodes/Shopware/v1/actions/types.js +3 -0
  131. package/dist/nodes/Shopware/v1/actions/types.js.map +1 -0
  132. package/dist/nodes/Shopware/v1/actions/versionDescription.d.ts +2 -0
  133. package/dist/nodes/Shopware/v1/actions/versionDescription.js +93 -0
  134. package/dist/nodes/Shopware/v1/actions/versionDescription.js.map +1 -0
  135. package/dist/nodes/Shopware/v1/helpers/handlers.d.ts +14 -0
  136. package/dist/nodes/Shopware/v1/helpers/handlers.js +261 -0
  137. package/dist/nodes/Shopware/v1/helpers/handlers.js.map +1 -0
  138. package/dist/nodes/Shopware/v1/helpers/interfaces.d.ts +1 -0
  139. package/dist/nodes/Shopware/v1/helpers/interfaces.js +3 -0
  140. package/dist/nodes/Shopware/v1/helpers/interfaces.js.map +1 -0
  141. package/dist/nodes/Shopware/v1/helpers/utils.d.ts +16 -0
  142. package/dist/nodes/Shopware/v1/helpers/utils.js +354 -0
  143. package/dist/nodes/Shopware/v1/helpers/utils.js.map +1 -0
  144. package/dist/nodes/Shopware/v1/methods/index.d.ts +1 -0
  145. package/dist/nodes/Shopware/v1/methods/index.js +38 -0
  146. package/dist/nodes/Shopware/v1/methods/index.js.map +1 -0
  147. package/dist/nodes/Shopware/v1/methods/loadOptions.d.ts +18 -0
  148. package/dist/nodes/Shopware/v1/methods/loadOptions.js +143 -0
  149. package/dist/nodes/Shopware/v1/methods/loadOptions.js.map +1 -0
  150. package/dist/nodes/Shopware/v1/transport/index.d.ts +2 -0
  151. package/dist/nodes/Shopware/v1/transport/index.js +25 -0
  152. package/dist/nodes/Shopware/v1/transport/index.js.map +1 -0
  153. package/dist/package.json +63 -0
  154. package/dist/shopware.png +0 -0
  155. package/dist/tsconfig.tsbuildinfo +1 -0
  156. 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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -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[]>;