@chift/chift-nodejs 1.0.19 → 1.0.21

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.
@@ -109,6 +109,14 @@ const Consumer = (internalApi, body) => {
109
109
  const { data: response } = yield _internalApi.post(`/consumers/${consumerId}/logs`, logs);
110
110
  return response;
111
111
  });
112
+ const updateConsumer = (body) => __awaiter(void 0, void 0, void 0, function* () {
113
+ const { data } = yield _internalApi.patch(`/consumers/${consumerId}`, body);
114
+ return data;
115
+ });
116
+ const updateFlowConfig = (syncId, flowId, body) => __awaiter(void 0, void 0, void 0, function* () {
117
+ const { data } = yield _internalApi.patch(`/consumers/${consumerId}/syncs/${syncId}/flows/${flowId}`, body);
118
+ return data;
119
+ });
112
120
  return {
113
121
  consumerId,
114
122
  getConnections,
@@ -137,6 +145,8 @@ const Consumer = (internalApi, body) => {
137
145
  logData,
138
146
  setConnectionId,
139
147
  setIntegrationId,
148
+ updateConsumer,
149
+ updateFlowConfig,
140
150
  };
141
151
  };
142
152
  exports.Consumer = Consumer;