@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.
@@ -3744,7 +3744,7 @@ class STSRest01Client {
3744
3744
  // --- [ Resource ] -------------------------------------------------------------------------------------------------------------------
3745
3745
  // --- [ POST.Resource ] -------------------------------------------------------------------------------------------------------------------
3746
3746
  __publicField(this, "PostResourceAR", async (resource, errorCb) => {
3747
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources`;
3747
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources`;
3748
3748
  return await __privateGet(this, _axiosClient).InvokeResourceAPI(url, "post", resource, null, null, errorCb);
3749
3749
  });
3750
3750
  __publicField(this, "PostResourceDBR", async (resource, errorCb) => {
@@ -3757,7 +3757,7 @@ class STSRest01Client {
3757
3757
  });
3758
3758
  // --- [ PUT.Resource ] -------------------------------------------------------------------------------------------------------------------
3759
3759
  __publicField(this, "PutResourceAR", async (resource, errorCb) => {
3760
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resource.resname}`;
3760
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
3761
3761
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "put", resource, null, null, errorCb);
3762
3762
  });
3763
3763
  __publicField(this, "PutResourceDBR", async (resource, errorCb) => {
@@ -3770,7 +3770,7 @@ class STSRest01Client {
3770
3770
  });
3771
3771
  // --- [ PATCH.Resource ] -------------------------------------------------------------------------------------------------------------------
3772
3772
  __publicField(this, "PatchResourceAR", async (resource, errorCb) => {
3773
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resource.resname}`;
3773
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
3774
3774
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "patch", resource, null, null, errorCb);
3775
3775
  });
3776
3776
  __publicField(this, "PatchResourceDBR", async (resource, errorCb) => {
@@ -3783,7 +3783,7 @@ class STSRest01Client {
3783
3783
  });
3784
3784
  // --- [ DELETE.Resource ] -------------------------------------------------------------------------------------------------------------------
3785
3785
  __publicField(this, "DeleteResourceAR", async (resource, errorCb) => {
3786
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resource.resname}`;
3786
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
3787
3787
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "delete", resource, null, null, errorCb);
3788
3788
  });
3789
3789
  __publicField(this, "DeleteResourceDBR", async (resource, errorCb) => {
@@ -3796,7 +3796,7 @@ class STSRest01Client {
3796
3796
  });
3797
3797
  // --- [ GET.Resource ] -------------------------------------------------------------------------------------------------------------------
3798
3798
  __publicField(this, "GetResourceAR", async (resource, filters, errorCb) => {
3799
- let url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resource.resname}`;
3799
+ let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}`;
3800
3800
  if (filters && filters.localeCompare("") !== 0) {
3801
3801
  url = `${url}?${filters}`;
3802
3802
  }
@@ -3812,7 +3812,7 @@ class STSRest01Client {
3812
3812
  });
3813
3813
  // --- [ GET.Resources ] -------------------------------------------------------------------------------------------------------------------
3814
3814
  __publicField(this, "GetResourcesAR", async (filters, errorCb) => {
3815
- let url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources`;
3815
+ let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources`;
3816
3816
  if (filters && filters.localeCompare("") !== 0) {
3817
3817
  url = `${url}?${filters}`;
3818
3818
  }
@@ -3829,7 +3829,7 @@ class STSRest01Client {
3829
3829
  // --- [ Entity ] -------------------------------------------------------------------------------------------------------------------
3830
3830
  // --- [ POST.Entitiy ] -------------------------------------------------------------------------------------------------------------------
3831
3831
  __publicField(this, "PostEntityAR", async (resourceEntity, errorCb) => {
3832
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
3832
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities`;
3833
3833
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "post", resourceEntity, null, null, errorCb);
3834
3834
  });
3835
3835
  __publicField(this, "PostEntityDBR", async (resourceEntity, errorCb) => {
@@ -3842,7 +3842,7 @@ class STSRest01Client {
3842
3842
  });
3843
3843
  // --- [ PUT.Entity ] -------------------------------------------------------------------------------------------------------------------
3844
3844
  __publicField(this, "PutEntityAR", async (entity, errorCb) => {
3845
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
3845
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${entity.resname}/entities/${entity.entname}`;
3846
3846
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "put", entity, null, null, errorCb);
3847
3847
  });
3848
3848
  __publicField(this, "PutEntityDBR", async (resourceEntity, errorCb) => {
@@ -3855,7 +3855,7 @@ class STSRest01Client {
3855
3855
  });
3856
3856
  // --- [ PATCH.Entity ] -------------------------------------------------------------------------------------------------------------------
3857
3857
  __publicField(this, "PatchEntityAR", async (resourceEntity, errorCb) => {
3858
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3858
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3859
3859
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "patch", resourceEntity, null, null, errorCb);
3860
3860
  });
3861
3861
  __publicField(this, "PatchEntityDBR", async (resourceEntity, errorCb) => {
@@ -3868,7 +3868,7 @@ class STSRest01Client {
3868
3868
  });
3869
3869
  // --- [ DELETE.Entity ] -------------------------------------------------------------------------------------------------------------------
3870
3870
  __publicField(this, "DeleteEntityAR", async (resourceEntity, errorCb) => {
3871
- const url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3871
+ const url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3872
3872
  return __privateGet(this, _axiosClient).InvokeResourceAPI(url, "delete", resourceEntity, null, null, errorCb);
3873
3873
  });
3874
3874
  __publicField(this, "DeleteEntityDBR", async (resourceEntity, errorCb) => {
@@ -3881,7 +3881,7 @@ class STSRest01Client {
3881
3881
  });
3882
3882
  // --- [ GET.Entity ] -------------------------------------------------------------------------------------------------------------------
3883
3883
  __publicField(this, "GetEntityAR", async (resourceEntity, filters, errorCb) => {
3884
- let url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3884
+ let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resourceEntity.resname}/entities/${resourceEntity.entname}`;
3885
3885
  if (filters && filters.localeCompare("") !== 0) {
3886
3886
  url = `${url}?${filters}`;
3887
3887
  }
@@ -3897,7 +3897,7 @@ class STSRest01Client {
3897
3897
  });
3898
3898
  // --- [ GET.Entities ] -------------------------------------------------------------------------------------------------------------------
3899
3899
  __publicField(this, "GetEntitiesAR", async (resource, filters, errorCb) => {
3900
- let url = `${__privateGet(this, _options2).endpoint}:${goptions.rest01port}${goptions.rest01apiroot}/resources/${resource.resname}/entities`;
3900
+ let url = `${__privateGet(this, _options2).endpoint}${goptions.rest01apiroot}/resources/${resource.resname}/entities`;
3901
3901
  if (filters && filters.localeCompare("") !== 0) {
3902
3902
  url = `${url}?${filters}`;
3903
3903
  }