@shopware-ag/acceptance-test-suite 1.1.1 → 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.d.mts +1 -3
- package/dist/index.d.ts +1 -3
- package/dist/index.mjs +8 -9
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -484,9 +484,7 @@ declare const getThemeId: (technicalName: string, adminApiContext: AdminApiConte
|
|
|
484
484
|
declare const getSalutationId: (salutationKey: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
485
485
|
declare const getStateMachineId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
486
486
|
declare const getStateMachineStateId: (stateMachineId: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
487
|
-
declare const getFlowId: (
|
|
488
|
-
id: string;
|
|
489
|
-
}>;
|
|
487
|
+
declare const getFlowId: (flowName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
490
488
|
declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApiContext) => Promise<{
|
|
491
489
|
id: string;
|
|
492
490
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -484,9 +484,7 @@ declare const getThemeId: (technicalName: string, adminApiContext: AdminApiConte
|
|
|
484
484
|
declare const getSalutationId: (salutationKey: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
485
485
|
declare const getStateMachineId: (technicalName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
486
486
|
declare const getStateMachineStateId: (stateMachineId: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
487
|
-
declare const getFlowId: (
|
|
488
|
-
id: string;
|
|
489
|
-
}>;
|
|
487
|
+
declare const getFlowId: (flowName: string, adminApiContext: AdminApiContext) => Promise<string>;
|
|
490
488
|
declare const getOrderTransactionId: (orderId: string, adminApiContext: AdminApiContext) => Promise<{
|
|
491
489
|
id: string;
|
|
492
490
|
}>;
|
package/dist/index.mjs
CHANGED
|
@@ -157,20 +157,19 @@ const getStateMachineStateId = async (stateMachineId, adminApiContext) => {
|
|
|
157
157
|
const result = await resp.json();
|
|
158
158
|
return result.data[0].id;
|
|
159
159
|
};
|
|
160
|
-
const getFlowId = async (
|
|
161
|
-
const resp = await adminApiContext.post("search
|
|
160
|
+
const getFlowId = async (flowName, adminApiContext) => {
|
|
161
|
+
const resp = await adminApiContext.post("./search/flow", {
|
|
162
162
|
data: {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
163
|
+
limit: 1,
|
|
164
|
+
filter: [{
|
|
165
|
+
type: "equals",
|
|
166
|
+
field: "name",
|
|
167
|
+
value: flowName
|
|
169
168
|
}]
|
|
170
169
|
}
|
|
171
170
|
});
|
|
172
171
|
const result = await resp.json();
|
|
173
|
-
return result.data[0];
|
|
172
|
+
return result.data[0].id;
|
|
174
173
|
};
|
|
175
174
|
const getOrderTransactionId = async (orderId, adminApiContext) => {
|
|
176
175
|
const orderTransactionResponse = await adminApiContext.get(`order/${orderId}/transactions?_response`);
|