@pipedream/mews
Version:
Pipedream mews Components
33 lines (30 loc) • 654 B
JavaScript
import base from "../common/polling.mjs";
export default {
...base,
name: "Order Item Updated",
description: "Emit new order items as they are updated (polling)",
key: "mews-order-item-updated",
version: "0.0.1",
type: "source",
methods: {
...base.methods,
getRequester() {
return this.app.orderItemsGetAll;
},
getResultKey() {
return "OrderItems";
},
getResourceName() {
return "Order Item";
},
getId(resource) {
return resource?.Id || resource?.id;
},
getDateField() {
return "UpdatedUtc";
},
getDateFilterField() {
return "UpdatedUtc";
},
},
};