@beam3_dev/api_module 0.0.174 → 0.0.175

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/wb3Api.js CHANGED
@@ -632,19 +632,23 @@ function Q(e, t, n, s, i, r, o = void 0, a = void 0) {
632
632
  },
633
633
  data: JSON.stringify({
634
634
  csrf: f,
635
- data: [{
636
- relateddata: {
637
- files: [{
638
- dataelements: {
639
- title: i,
640
- receipt: S
641
- },
642
- updateAction: "REVISE"
643
- }]
644
- },
645
- id: t,
646
- updateAction: "NONE"
647
- }]
635
+ data: [
636
+ {
637
+ relateddata: {
638
+ files: [
639
+ {
640
+ dataelements: {
641
+ title: i,
642
+ receipt: S
643
+ },
644
+ updateAction: "REVISE"
645
+ }
646
+ ]
647
+ },
648
+ id: t,
649
+ updateAction: "NONE"
650
+ }
651
+ ]
648
652
  }),
649
653
  type: "json",
650
654
  onComplete(C) {
@@ -674,11 +678,10 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
674
678
  ENO_CSRF_TOKEN: a
675
679
  },
676
680
  onComplete(p, l, f) {
677
- let u = JSON.parse(p).data[0].dataelements, g = new FormData();
678
- const h = new Blob([t], {
681
+ let u = JSON.parse(p).data[0].dataelements, g = new FormData(), h;
682
+ t instanceof Blob ? h = t : h = new Blob([t], {
679
683
  type: "text/plain"
680
- });
681
- g.append("__fcs__jobTicket", u.ticket), g.append("filename", h, n);
684
+ }), g.append("__fcs__jobTicket", u.ticket), g.append("filename", h, n);
682
685
  const S = (_) => _.indexOf(".") === -1 ? _ : _.split(".").slice(0, -1).join(".");
683
686
  let y = {
684
687
  method: "POST",
@@ -722,7 +725,10 @@ async function Re(e, t, n, s, i = void 0, r = void 0) {
722
725
  r && r(k);
723
726
  }
724
727
  };
725
- m(o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c, G);
728
+ m(
729
+ o + "/resources/v1/modeler/documents/?SecurityContext=ctx::" + c,
730
+ G
731
+ );
726
732
  },
727
733
  onFailure(_) {
728
734
  r && r(_);
@@ -786,7 +792,9 @@ function N(e, t = void 0, n = void 0, s = void 0, i = void 0, r = void 0, o = !1
786
792
  async function D(e, t = void 0, n = void 0) {
787
793
  return (!e.objID || e.objID === "") && (console.warn(
788
794
  "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
789
- ), n && n("_3DSpace_download_doc() / Le paramètre objectId est obligatoire")), (e.space === "" || !e.space) && (console.warn(
795
+ ), n && n(
796
+ "_3DSpace_download_doc() / Le paramètre objectId est obligatoire"
797
+ )), (e.space === "" || !e.space) && (console.warn(
790
798
  "_3DSpace_download_doc() / Le paramètre space est obligatoire"
791
799
  ), n && n("_3DSpace_download_doc() / Le paramètre space est obligatoire")), (e.token === "" || !e.token) && W(
792
800
  e,
@@ -936,9 +944,11 @@ function Pe(e, t, n = void 0, s = void 0) {
936
944
  "Content-Type": "application/json"
937
945
  },
938
946
  data: JSON.stringify({
939
- data: [{
940
- id: t
941
- }]
947
+ data: [
948
+ {
949
+ id: t
950
+ }
951
+ ]
942
952
  }),
943
953
  type: "json",
944
954
  onComplete(a) {
@@ -975,10 +985,12 @@ function De(e, t, n, s = void 0, i = void 0) {
975
985
  "Content-Type": "application/json"
976
986
  },
977
987
  data: JSON.stringify({
978
- data: [{
979
- id: t,
980
- nextState: n
981
- }]
988
+ data: [
989
+ {
990
+ id: t,
991
+ nextState: n
992
+ }
993
+ ]
982
994
  }),
983
995
  type: "json",
984
996
  onComplete(c) {
@@ -1015,9 +1027,11 @@ function Le(e, t, n = void 0, s = void 0) {
1015
1027
  "Content-Type": "application/json"
1016
1028
  },
1017
1029
  data: JSON.stringify({
1018
- graphRequests: [{
1019
- id: t
1020
- }]
1030
+ graphRequests: [
1031
+ {
1032
+ id: t
1033
+ }
1034
+ ]
1021
1035
  }),
1022
1036
  type: "json",
1023
1037
  onComplete(a) {
@@ -1054,15 +1068,17 @@ function Me(e, t, n = void 0, s = void 0) {
1054
1068
  "Content-Type": "application/json"
1055
1069
  },
1056
1070
  data: JSON.stringify({
1057
- data: [{
1058
- "attribute[PLMReference.V_versionComment]": null,
1059
- physicalid: t,
1060
- type: "Document",
1061
- tenant: e.tenant,
1062
- objectId: t,
1063
- policy: "Document Release",
1064
- availableSemantic: ["E", "LAST", "NEW", "DUP"]
1065
- }]
1071
+ data: [
1072
+ {
1073
+ "attribute[PLMReference.V_versionComment]": null,
1074
+ physicalid: t,
1075
+ type: "Document",
1076
+ tenant: e.tenant,
1077
+ objectId: t,
1078
+ policy: "Document Release",
1079
+ availableSemantic: ["E", "LAST", "NEW", "DUP"]
1080
+ }
1081
+ ]
1066
1082
  }),
1067
1083
  type: "json",
1068
1084
  onComplete(a) {
@@ -1099,13 +1115,15 @@ function Je(e, t, n, s = void 0, i = void 0) {
1099
1115
  "Content-Type": "application/json"
1100
1116
  },
1101
1117
  data: JSON.stringify({
1102
- data: [{
1103
- physicalid: t,
1104
- proposedRevision: n,
1105
- modifiedAttributes: {
1106
- revision: n
1118
+ data: [
1119
+ {
1120
+ physicalid: t,
1121
+ proposedRevision: n,
1122
+ modifiedAttributes: {
1123
+ revision: n
1124
+ }
1107
1125
  }
1108
- }],
1126
+ ],
1109
1127
  folderid: null,
1110
1128
  notificationTimeout: 600
1111
1129
  }),
@@ -1161,17 +1179,19 @@ function Ee(e, t, n, s, i = void 0, r = void 0) {
1161
1179
  name: "ENO_CSRF_TOKEN",
1162
1180
  value: e.token
1163
1181
  },
1164
- data: [{
1165
- type: "Workspace",
1166
- cestamp: "businessobject",
1167
- relId: t,
1168
- id: t,
1169
- dataelements: {
1170
- personList: n,
1171
- eventsList: s
1172
- },
1173
- tenant: e.tenant
1174
- }]
1182
+ data: [
1183
+ {
1184
+ type: "Workspace",
1185
+ cestamp: "businessobject",
1186
+ relId: t,
1187
+ id: t,
1188
+ dataelements: {
1189
+ personList: n,
1190
+ eventsList: s
1191
+ },
1192
+ tenant: e.tenant
1193
+ }
1194
+ ]
1175
1195
  });
1176
1196
  });
1177
1197
  }