bruce-models 7.0.16 → 7.0.18
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/bruce-models.es5.js +26 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +26 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/change-set/change-set.js +25 -0
- package/dist/lib/change-set/change-set.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/change-set/change-set.d.ts +49 -3
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -16798,10 +16798,35 @@
|
|
|
16798
16798
|
});
|
|
16799
16799
|
}
|
|
16800
16800
|
ChangeSet.GetList = GetList;
|
|
16801
|
+
/**
|
|
16802
|
+
* Gets the Change Set record by its ID.
|
|
16803
|
+
*/
|
|
16804
|
+
function GetChangeSetContent(params) {
|
|
16805
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16806
|
+
let { id, api, req: reqParams } = params;
|
|
16807
|
+
if (!api) {
|
|
16808
|
+
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
16809
|
+
}
|
|
16810
|
+
reqParams = exports.Api.PrepReqParams(reqParams);
|
|
16811
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
16812
|
+
try {
|
|
16813
|
+
const data = yield api.GET(`change/${id}/content`, exports.Api.PrepReqParams(reqParams));
|
|
16814
|
+
res({
|
|
16815
|
+
changeSet: data
|
|
16816
|
+
});
|
|
16817
|
+
}
|
|
16818
|
+
catch (e) {
|
|
16819
|
+
rej(e);
|
|
16820
|
+
}
|
|
16821
|
+
}));
|
|
16822
|
+
return prom;
|
|
16823
|
+
});
|
|
16824
|
+
}
|
|
16825
|
+
ChangeSet.GetChangeSetContent = GetChangeSetContent;
|
|
16801
16826
|
})(exports.ChangeSet || (exports.ChangeSet = {}));
|
|
16802
16827
|
|
|
16803
16828
|
// This is updated with the package.json version on build.
|
|
16804
|
-
const VERSION = "7.0.
|
|
16829
|
+
const VERSION = "7.0.18";
|
|
16805
16830
|
|
|
16806
16831
|
exports.VERSION = VERSION;
|
|
16807
16832
|
exports.AbstractApi = AbstractApi;
|