@nsshunt/stsrest01client 1.0.4 → 1.0.6
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.
|
@@ -3742,7 +3742,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3742
3742
|
// --- [ Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3743
3743
|
// --- [ POST.Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3744
3744
|
__publicField(this, "PostResourceAR", async (resource, errorCb) => {
|
|
3745
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3745
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources`;
|
|
3746
3746
|
return await __privateGet(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
|
|
3747
3747
|
});
|
|
3748
3748
|
__publicField(this, "PostResourceDBR", async (resource, errorCb) => {
|
|
@@ -3755,7 +3755,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3755
3755
|
});
|
|
3756
3756
|
// --- [ PUT.Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3757
3757
|
__publicField(this, "PutResourceAR", async (resource, errorCb) => {
|
|
3758
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3758
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
|
|
3759
3759
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
|
|
3760
3760
|
});
|
|
3761
3761
|
__publicField(this, "PutResourceDBR", async (resource, errorCb) => {
|
|
@@ -3768,7 +3768,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3768
3768
|
});
|
|
3769
3769
|
// --- [ PATCH.Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3770
3770
|
__publicField(this, "PatchResourceAR", async (resource, errorCb) => {
|
|
3771
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3771
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
|
|
3772
3772
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
|
|
3773
3773
|
});
|
|
3774
3774
|
__publicField(this, "PatchResourceDBR", async (resource, errorCb) => {
|
|
@@ -3781,7 +3781,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3781
3781
|
});
|
|
3782
3782
|
// --- [ DELETE.Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3783
3783
|
__publicField(this, "DeleteResourceAR", async (resource, errorCb) => {
|
|
3784
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3784
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
|
|
3785
3785
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
|
|
3786
3786
|
});
|
|
3787
3787
|
__publicField(this, "DeleteResourceDBR", async (resource, errorCb) => {
|
|
@@ -3794,7 +3794,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3794
3794
|
});
|
|
3795
3795
|
// --- [ GET.Resource ] -------------------------------------------------------------------------------------------------------------------
|
|
3796
3796
|
__publicField(this, "GetResourceAR", async (resource, filters, errorCb) => {
|
|
3797
|
-
let url = `${__privateGet(this, _options2).endpoint}
|
|
3797
|
+
let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
|
|
3798
3798
|
if (filters && filters.localeCompare("") !== 0) {
|
|
3799
3799
|
url = `${url}?${filters}`;
|
|
3800
3800
|
}
|
|
@@ -3810,7 +3810,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3810
3810
|
});
|
|
3811
3811
|
// --- [ GET.Resources ] -------------------------------------------------------------------------------------------------------------------
|
|
3812
3812
|
__publicField(this, "GetResourcesAR", async (filters, errorCb) => {
|
|
3813
|
-
let url = `${__privateGet(this, _options2).endpoint}
|
|
3813
|
+
let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources`;
|
|
3814
3814
|
if (filters && filters.localeCompare("") !== 0) {
|
|
3815
3815
|
url = `${url}?${filters}`;
|
|
3816
3816
|
}
|
|
@@ -3827,7 +3827,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3827
3827
|
// --- [ Entity ] -------------------------------------------------------------------------------------------------------------------
|
|
3828
3828
|
// --- [ POST.Entitiy ] -------------------------------------------------------------------------------------------------------------------
|
|
3829
3829
|
__publicField(this, "PostEntityAR", async (resourceEntity, errorCb) => {
|
|
3830
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3830
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
|
|
3831
3831
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
|
|
3832
3832
|
});
|
|
3833
3833
|
__publicField(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -3840,7 +3840,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3840
3840
|
});
|
|
3841
3841
|
// --- [ PUT.Entity ] -------------------------------------------------------------------------------------------------------------------
|
|
3842
3842
|
__publicField(this, "PutEntityAR", async (entity, errorCb) => {
|
|
3843
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3843
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
|
|
3844
3844
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
|
|
3845
3845
|
});
|
|
3846
3846
|
__publicField(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -3853,7 +3853,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3853
3853
|
});
|
|
3854
3854
|
// --- [ PATCH.Entity ] -------------------------------------------------------------------------------------------------------------------
|
|
3855
3855
|
__publicField(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
|
|
3856
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3856
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
3857
3857
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
|
|
3858
3858
|
});
|
|
3859
3859
|
__publicField(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -3866,7 +3866,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3866
3866
|
});
|
|
3867
3867
|
// --- [ DELETE.Entity ] -------------------------------------------------------------------------------------------------------------------
|
|
3868
3868
|
__publicField(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
|
|
3869
|
-
const url = `${__privateGet(this, _options2).endpoint}
|
|
3869
|
+
const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
3870
3870
|
return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
|
|
3871
3871
|
});
|
|
3872
3872
|
__publicField(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
|
|
@@ -3879,7 +3879,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3879
3879
|
});
|
|
3880
3880
|
// --- [ GET.Entity ] -------------------------------------------------------------------------------------------------------------------
|
|
3881
3881
|
__publicField(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
|
|
3882
|
-
let url = `${__privateGet(this, _options2).endpoint}
|
|
3882
|
+
let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
|
|
3883
3883
|
if (filters && filters.localeCompare("") !== 0) {
|
|
3884
3884
|
url = `${url}?${filters}`;
|
|
3885
3885
|
}
|
|
@@ -3895,7 +3895,7 @@ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "
|
|
|
3895
3895
|
});
|
|
3896
3896
|
// --- [ GET.Entities ] -------------------------------------------------------------------------------------------------------------------
|
|
3897
3897
|
__publicField(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
|
|
3898
|
-
let url = `${__privateGet(this, _options2).endpoint}
|
|
3898
|
+
let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}/entities`;
|
|
3899
3899
|
if (filters && filters.localeCompare("") !== 0) {
|
|
3900
3900
|
url = `${url}?${filters}`;
|
|
3901
3901
|
}
|