@revxui/intellibid-client-ts 1.0.3 → 1.0.4

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.
@@ -894,9 +894,12 @@ class FacebookEngagementControllerService {
894
894
  }
895
895
  return false;
896
896
  }
897
- createFacebookEngagement(body, observe = 'body', reportProgress = false) {
897
+ createOrUpdateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
898
898
  if (body === null || body === undefined) {
899
- throw new Error('Required parameter body was null or undefined when calling createFacebookEngagement.');
899
+ throw new Error('Required parameter body was null or undefined when calling createOrUpdateFacebookEngagement.');
900
+ }
901
+ if (id === null || id === undefined) {
902
+ throw new Error('Required parameter id was null or undefined when calling createOrUpdateFacebookEngagement.');
900
903
  }
901
904
  let headers = this.defaultHeaders;
902
905
  // to determine the Accept header
@@ -915,7 +918,7 @@ class FacebookEngagementControllerService {
915
918
  if (httpContentTypeSelected != undefined) {
916
919
  headers = headers.set('Content-Type', httpContentTypeSelected);
917
920
  }
918
- return this.httpClient.request('post', `${this.basePath}/facebook-engagement`, {
921
+ return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
919
922
  body: body,
920
923
  withCredentials: this.configuration.withCredentials,
921
924
  headers: headers,
@@ -1016,38 +1019,6 @@ class FacebookEngagementControllerService {
1016
1019
  reportProgress: reportProgress
1017
1020
  });
1018
1021
  }
1019
- updateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
1020
- if (body === null || body === undefined) {
1021
- throw new Error('Required parameter body was null or undefined when calling updateFacebookEngagement.');
1022
- }
1023
- if (id === null || id === undefined) {
1024
- throw new Error('Required parameter id was null or undefined when calling updateFacebookEngagement.');
1025
- }
1026
- let headers = this.defaultHeaders;
1027
- // to determine the Accept header
1028
- let httpHeaderAccepts = [
1029
- '*/*'
1030
- ];
1031
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1032
- if (httpHeaderAcceptSelected != undefined) {
1033
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1034
- }
1035
- // to determine the Content-Type header
1036
- const consumes = [
1037
- 'application/json'
1038
- ];
1039
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1040
- if (httpContentTypeSelected != undefined) {
1041
- headers = headers.set('Content-Type', httpContentTypeSelected);
1042
- }
1043
- return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
1044
- body: body,
1045
- withCredentials: this.configuration.withCredentials,
1046
- headers: headers,
1047
- observe: observe,
1048
- reportProgress: reportProgress
1049
- });
1050
- }
1051
1022
  }
1052
1023
  FacebookEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1053
1024
  FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });