bruce-models 7.1.85 → 7.1.86
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 +8 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -4
- 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 +7 -3
- 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 +12 -0
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -8453,11 +8453,12 @@
|
|
|
8453
8453
|
*/
|
|
8454
8454
|
function Get(params) {
|
|
8455
8455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8456
|
-
let { id, api, req: reqParams } = params;
|
|
8456
|
+
let { id, expandCount, api, req: reqParams } = params;
|
|
8457
8457
|
if (!api) {
|
|
8458
8458
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8459
8459
|
}
|
|
8460
|
-
|
|
8460
|
+
const query = expandCount ? "?Expand=Count" : "";
|
|
8461
|
+
return yield api.GET(`v3/change/${id}${query}`, exports.Api.PrepReqParams(reqParams));
|
|
8461
8462
|
});
|
|
8462
8463
|
}
|
|
8463
8464
|
ChangeSet.Get = Get;
|
|
@@ -8467,7 +8468,7 @@
|
|
|
8467
8468
|
*/
|
|
8468
8469
|
function GetList(params) {
|
|
8469
8470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8470
|
-
let { api, req: reqParams, pageSize, pageIndex } = params;
|
|
8471
|
+
let { api, req: reqParams, pageSize, pageIndex, expandCount } = params;
|
|
8471
8472
|
if (!api) {
|
|
8472
8473
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
8473
8474
|
}
|
|
@@ -8478,6 +8479,9 @@
|
|
|
8478
8479
|
if (pageIndex != null) {
|
|
8479
8480
|
urlParams.append("PageIndex", String(pageIndex));
|
|
8480
8481
|
}
|
|
8482
|
+
if (expandCount) {
|
|
8483
|
+
urlParams.append("Expand", "Count");
|
|
8484
|
+
}
|
|
8481
8485
|
const query = urlParams.toString();
|
|
8482
8486
|
return api.GET(query ? `v3/changes?${query}` : "v3/changes", exports.Api.PrepReqParams(reqParams));
|
|
8483
8487
|
});
|
|
@@ -20377,7 +20381,7 @@
|
|
|
20377
20381
|
})(exports.UrlUtils || (exports.UrlUtils = {}));
|
|
20378
20382
|
|
|
20379
20383
|
// This is updated with the package.json version on build.
|
|
20380
|
-
const VERSION = "7.1.
|
|
20384
|
+
const VERSION = "7.1.86";
|
|
20381
20385
|
|
|
20382
20386
|
exports.VERSION = VERSION;
|
|
20383
20387
|
exports.AbstractApi = AbstractApi;
|