@nsshunt/stsrunnerframework 1.0.47 → 1.0.49
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.
|
@@ -7522,7 +7522,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7522
7522
|
} else {
|
|
7523
7523
|
accessToken = await __privateGet$1(this, _options).GetAccessToken();
|
|
7524
7524
|
}
|
|
7525
|
-
|
|
7525
|
+
let requestConfig = new stsutils.STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet$1(this, _DUMMY_USER));
|
|
7526
|
+
if (!(httpVerb.localeCompare("get") === 0 || httpVerb.localeCompare("head") === 0)) {
|
|
7527
|
+
requestConfig.withData(filters ? filters : resource ? resource : void 0);
|
|
7528
|
+
}
|
|
7526
7529
|
if (isNode && __privateGet$1(this, _options).agentManager) {
|
|
7527
7530
|
requestConfig.withAgentManager(__privateGet$1(this, _options).agentManager);
|
|
7528
7531
|
}
|
|
@@ -7651,7 +7654,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7651
7654
|
return this;
|
|
7652
7655
|
});
|
|
7653
7656
|
__publicField$1(this, "PostResourceAR", async (resource, errorCb) => {
|
|
7654
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7657
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7655
7658
|
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
|
|
7656
7659
|
});
|
|
7657
7660
|
__publicField$1(this, "PostResourceDBR", async (resource, errorCb) => {
|
|
@@ -7663,7 +7666,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7663
7666
|
return ((_a = await this.PostResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7664
7667
|
});
|
|
7665
7668
|
__publicField$1(this, "PutResourceAR", async (resource, errorCb) => {
|
|
7666
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7669
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7667
7670
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
7668
7671
|
});
|
|
7669
7672
|
__publicField$1(this, "PutResourceDBR", async (resource, errorCb) => {
|
|
@@ -7675,7 +7678,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7675
7678
|
return ((_a = await this.PutResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7676
7679
|
});
|
|
7677
7680
|
__publicField$1(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
7678
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7681
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7679
7682
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
7680
7683
|
});
|
|
7681
7684
|
__publicField$1(this, "PatchResourceDBR", async (resource, errorCb) => {
|
|
@@ -7687,7 +7690,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7687
7690
|
return ((_a = await this.PatchResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7688
7691
|
});
|
|
7689
7692
|
__publicField$1(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
7690
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7693
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7691
7694
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
7692
7695
|
});
|
|
7693
7696
|
__publicField$1(this, "DeleteResourceDBR", async (resource, errorCb) => {
|
|
@@ -7699,7 +7702,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7699
7702
|
return ((_a = await this.DeleteResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7700
7703
|
});
|
|
7701
7704
|
__publicField$1(this, "GetResourceAR", async (resource, filters, errorCb) => {
|
|
7702
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7705
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7703
7706
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7704
7707
|
url = `${url}?${filters}`;
|
|
7705
7708
|
}
|
|
@@ -7714,7 +7717,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7714
7717
|
return ((_a = await this.GetResourceDBR(resource, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7715
7718
|
});
|
|
7716
7719
|
__publicField$1(this, "GetResourcesAR", async (filters, errorCb) => {
|
|
7717
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7720
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7718
7721
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7719
7722
|
url = `${url}?${filters}`;
|
|
7720
7723
|
}
|
|
@@ -7729,7 +7732,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7729
7732
|
return ((_a = await this.GetResourcesDBR(filters, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7730
7733
|
});
|
|
7731
7734
|
__publicField$1(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
7732
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7735
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
7733
7736
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
7734
7737
|
});
|
|
7735
7738
|
__publicField$1(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7741,7 +7744,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7741
7744
|
return ((_a = await this.PostEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7742
7745
|
});
|
|
7743
7746
|
__publicField$1(this, "PutEntityAR", async (entity, errorCb) => {
|
|
7744
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7747
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
7745
7748
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
7746
7749
|
});
|
|
7747
7750
|
__publicField$1(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7753,7 +7756,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7753
7756
|
return ((_a = await this.PutEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7754
7757
|
});
|
|
7755
7758
|
__publicField$1(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
7756
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7759
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7757
7760
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
7758
7761
|
});
|
|
7759
7762
|
__publicField$1(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7765,7 +7768,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7765
7768
|
return ((_a = await this.PatchEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7766
7769
|
});
|
|
7767
7770
|
__publicField$1(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
7768
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7771
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7769
7772
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
7770
7773
|
});
|
|
7771
7774
|
__publicField$1(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7777,7 +7780,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7777
7780
|
return ((_a = await this.DeleteEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7778
7781
|
});
|
|
7779
7782
|
__publicField$1(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
|
|
7780
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7783
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7781
7784
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7782
7785
|
url = `${url}?${filters}`;
|
|
7783
7786
|
}
|
|
@@ -7792,7 +7795,7 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
7792
7795
|
return ((_a = await this.GetEntityDBR(resourceEntity, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7793
7796
|
});
|
|
7794
7797
|
__publicField$1(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
|
|
7795
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7798
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}/entities`;
|
|
7796
7799
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7797
7800
|
url = `${url}?${filters}`;
|
|
7798
7801
|
}
|