@lowcodeunit/applications-flow-common 1.33.320-lets-get-social-ish → 1.33.321-lets-get-social-ish
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/esm2020/lib/dialogs/feed-header-dialog/feed-header-dialog.component.mjs +3 -1
- package/esm2020/lib/models/user-feed.model.mjs +1 -1
- package/esm2020/lib/services/applications-flow.service.mjs +8 -1
- package/esm2020/lib/services/eac.service.mjs +4 -1
- package/esm2020/lib/services/project.service.mjs +24 -1
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +39 -0
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +35 -0
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/services/applications-flow.service.d.ts +2 -0
- package/lib/services/eac.service.d.ts +2 -1
- package/lib/services/project.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -310,6 +310,13 @@ class ApplicationsFlowService {
|
|
|
310
310
|
headers: this.loadHeaders(),
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
+
SubmitFeedEntry(entry) {
|
|
314
|
+
return this.http.post(`${this.apiRoot}/api/lowcodeunit/userfeed/entry`, {
|
|
315
|
+
FeedEntry: entry,
|
|
316
|
+
}, {
|
|
317
|
+
headers: this.loadHeaders(),
|
|
318
|
+
});
|
|
319
|
+
}
|
|
313
320
|
UnpackLowCodeUnit(req) {
|
|
314
321
|
return this.http.post(`${this.apiRoot}/api/lowcodeunit/manage/projects/unpack`, req, {
|
|
315
322
|
headers: this.loadHeaders(),
|
|
@@ -677,6 +684,29 @@ class ProjectService {
|
|
|
677
684
|
}
|
|
678
685
|
});
|
|
679
686
|
}
|
|
687
|
+
async SubmitFeedEntry(state, entry) {
|
|
688
|
+
return new Promise((resolve, reject) => {
|
|
689
|
+
state.Loading = true;
|
|
690
|
+
this.appsFlowSvc.SubmitFeedEntry(entry).subscribe(async (response) => {
|
|
691
|
+
if (response.Status.Code === 0) {
|
|
692
|
+
var results = await Promise.all([
|
|
693
|
+
this.LoadEnterpriseAsCode(state),
|
|
694
|
+
this.LoadUserFeed(1, 25, state),
|
|
695
|
+
]);
|
|
696
|
+
resolve(response.Status);
|
|
697
|
+
}
|
|
698
|
+
else {
|
|
699
|
+
state.Loading = false;
|
|
700
|
+
reject(response.Status);
|
|
701
|
+
console.log(response);
|
|
702
|
+
}
|
|
703
|
+
}, (err) => {
|
|
704
|
+
state.Loading = false;
|
|
705
|
+
reject(err);
|
|
706
|
+
console.log(err);
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
}
|
|
680
710
|
ToggleCreateProject() {
|
|
681
711
|
this.SetCreatingProject(!this.CreatingProject);
|
|
682
712
|
}
|
|
@@ -937,6 +967,9 @@ class EaCService {
|
|
|
937
967
|
async SetEditProjectSettings(projectLookup) {
|
|
938
968
|
await this.projectService.SetEditProjectSettings(this.State, projectLookup);
|
|
939
969
|
}
|
|
970
|
+
async SubmitFeedEntry(entry) {
|
|
971
|
+
return await this.projectService.SubmitFeedEntry(this.State, entry);
|
|
972
|
+
}
|
|
940
973
|
async UnpackLowCodeUnit(req) {
|
|
941
974
|
if (confirm(`Are you sure you want to unpack application '${req.ApplicationName}' with version '${req.Version}'?`)) {
|
|
942
975
|
await this.projectService.UnpackLowCodeUnit(this.State, req);
|
|
@@ -6053,6 +6086,8 @@ class FeedHeaderDialogComponent {
|
|
|
6053
6086
|
Title: this.TitleFormControl ? this.TitleFormControl.value : null,
|
|
6054
6087
|
};
|
|
6055
6088
|
console.log("Control: ", returnObject);
|
|
6089
|
+
let status = this.eacSvc.SubmitFeedEntry(returnObject);
|
|
6090
|
+
console.log("feed entry status: ", status);
|
|
6056
6091
|
// console.log("Editor: ", this.EditorControl.value )
|
|
6057
6092
|
}
|
|
6058
6093
|
OrganizationChanged(event) {
|