@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.
|
@@ -7533,7 +7533,10 @@ class AxiosClient {
|
|
|
7533
7533
|
} else {
|
|
7534
7534
|
accessToken = await __privateGet$1(this, _options).GetAccessToken();
|
|
7535
7535
|
}
|
|
7536
|
-
|
|
7536
|
+
let requestConfig = new STSAxiosConfig(url, httpVerb).withAuthHeaders(accessToken, __privateGet$1(this, _DUMMY_USER));
|
|
7537
|
+
if (!(httpVerb.localeCompare("get") === 0 || httpVerb.localeCompare("head") === 0)) {
|
|
7538
|
+
requestConfig.withData(filters ? filters : resource ? resource : void 0);
|
|
7539
|
+
}
|
|
7537
7540
|
if (isNode && __privateGet$1(this, _options).agentManager) {
|
|
7538
7541
|
requestConfig.withAgentManager(__privateGet$1(this, _options).agentManager);
|
|
7539
7542
|
}
|
|
@@ -7662,7 +7665,7 @@ class STSRest01Client {
|
|
|
7662
7665
|
return this;
|
|
7663
7666
|
});
|
|
7664
7667
|
__publicField$1(this, "PostResourceAR", async (resource, errorCb) => {
|
|
7665
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7668
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7666
7669
|
return await __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
|
|
7667
7670
|
});
|
|
7668
7671
|
__publicField$1(this, "PostResourceDBR", async (resource, errorCb) => {
|
|
@@ -7674,7 +7677,7 @@ class STSRest01Client {
|
|
|
7674
7677
|
return ((_a = await this.PostResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7675
7678
|
});
|
|
7676
7679
|
__publicField$1(this, "PutResourceAR", async (resource, errorCb) => {
|
|
7677
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7680
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7678
7681
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
7679
7682
|
});
|
|
7680
7683
|
__publicField$1(this, "PutResourceDBR", async (resource, errorCb) => {
|
|
@@ -7686,7 +7689,7 @@ class STSRest01Client {
|
|
|
7686
7689
|
return ((_a = await this.PutResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7687
7690
|
});
|
|
7688
7691
|
__publicField$1(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
7689
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7692
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7690
7693
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
7691
7694
|
});
|
|
7692
7695
|
__publicField$1(this, "PatchResourceDBR", async (resource, errorCb) => {
|
|
@@ -7698,7 +7701,7 @@ class STSRest01Client {
|
|
|
7698
7701
|
return ((_a = await this.PatchResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7699
7702
|
});
|
|
7700
7703
|
__publicField$1(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
7701
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7704
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7702
7705
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
7703
7706
|
});
|
|
7704
7707
|
__publicField$1(this, "DeleteResourceDBR", async (resource, errorCb) => {
|
|
@@ -7710,7 +7713,7 @@ class STSRest01Client {
|
|
|
7710
7713
|
return ((_a = await this.DeleteResourceDBR(resource, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7711
7714
|
});
|
|
7712
7715
|
__publicField$1(this, "GetResourceAR", async (resource, filters, errorCb) => {
|
|
7713
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7716
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}`;
|
|
7714
7717
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7715
7718
|
url = `${url}?${filters}`;
|
|
7716
7719
|
}
|
|
@@ -7725,7 +7728,7 @@ class STSRest01Client {
|
|
|
7725
7728
|
return ((_a = await this.GetResourceDBR(resource, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7726
7729
|
});
|
|
7727
7730
|
__publicField$1(this, "GetResourcesAR", async (filters, errorCb) => {
|
|
7728
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7731
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources`;
|
|
7729
7732
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7730
7733
|
url = `${url}?${filters}`;
|
|
7731
7734
|
}
|
|
@@ -7740,7 +7743,7 @@ class STSRest01Client {
|
|
|
7740
7743
|
return ((_a = await this.GetResourcesDBR(filters, errorCb)) == null ? void 0 : _a.map((r) => r.resdesc)) ?? null;
|
|
7741
7744
|
});
|
|
7742
7745
|
__publicField$1(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
7743
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7746
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
7744
7747
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
7745
7748
|
});
|
|
7746
7749
|
__publicField$1(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7752,7 +7755,7 @@ class STSRest01Client {
|
|
|
7752
7755
|
return ((_a = await this.PostEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7753
7756
|
});
|
|
7754
7757
|
__publicField$1(this, "PutEntityAR", async (entity, errorCb) => {
|
|
7755
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7758
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
7756
7759
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
7757
7760
|
});
|
|
7758
7761
|
__publicField$1(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7764,7 +7767,7 @@ class STSRest01Client {
|
|
|
7764
7767
|
return ((_a = await this.PutEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7765
7768
|
});
|
|
7766
7769
|
__publicField$1(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
7767
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7770
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7768
7771
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
7769
7772
|
});
|
|
7770
7773
|
__publicField$1(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7776,7 +7779,7 @@ class STSRest01Client {
|
|
|
7776
7779
|
return ((_a = await this.PatchEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7777
7780
|
});
|
|
7778
7781
|
__publicField$1(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
7779
|
-
const url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7782
|
+
const url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7780
7783
|
return __privateGet$1(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
7781
7784
|
});
|
|
7782
7785
|
__publicField$1(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -7788,7 +7791,7 @@ class STSRest01Client {
|
|
|
7788
7791
|
return ((_a = await this.DeleteEntityDBR(resourceEntity, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7789
7792
|
});
|
|
7790
7793
|
__publicField$1(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
|
|
7791
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7794
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
7792
7795
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7793
7796
|
url = `${url}?${filters}`;
|
|
7794
7797
|
}
|
|
@@ -7803,7 +7806,7 @@ class STSRest01Client {
|
|
|
7803
7806
|
return ((_a = await this.GetEntityDBR(resourceEntity, filters, errorCb)) == null ? void 0 : _a.resdesc) ?? null;
|
|
7804
7807
|
});
|
|
7805
7808
|
__publicField$1(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
|
|
7806
|
-
let url = `${__privateGet$1(this, _options2$1).endpoint}
|
|
7809
|
+
let url = `${__privateGet$1(this, _options2$1).endpoint}${goptions$1.rest01apiroot}/resources/${resource.resname}/entities`;
|
|
7807
7810
|
if (filters && filters.localeCompare("") !== 0) {
|
|
7808
7811
|
url = `${url}?${filters}`;
|
|
7809
7812
|
}
|