@otr-app/shared-backend-generated-client 2.3.65 → 2.3.67
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.
- package/dist/angular/api/socialLoginController.service.ts +209 -9
- package/dist/angular/model/customerReview.ts +1 -0
- package/dist/otrBackendService.js +112 -9
- package/dist/otrBackendService.min.js +5 -5
- package/dist/typescript/api/SocialLoginControllerApi.d.ts +19 -2
- package/dist/typescript/api/SocialLoginControllerApi.js +79 -10
- package/dist/typescript/model/CustomerReview.d.ts +1 -0
- package/package.json +1 -1
|
@@ -131,6 +131,74 @@ export class SocialLoginControllerService {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
|
|
134
|
+
// to determine the Content-Type header
|
|
135
|
+
const consumes: string[] = [
|
|
136
|
+
'application/json'
|
|
137
|
+
];
|
|
138
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
139
|
+
if (httpContentTypeSelected !== undefined) {
|
|
140
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
144
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
145
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
146
|
+
responseType_ = 'text';
|
|
147
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
148
|
+
responseType_ = 'json';
|
|
149
|
+
} else {
|
|
150
|
+
responseType_ = 'blob';
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
let localVarPath = `/api/v1/connect/Apple`;
|
|
155
|
+
return this.httpClient.request<SocialLoginResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
156
|
+
{
|
|
157
|
+
context: localVarHttpContext,
|
|
158
|
+
body: request,
|
|
159
|
+
responseType: <any>responseType_,
|
|
160
|
+
withCredentials: this.configuration.withCredentials,
|
|
161
|
+
headers: localVarHeaders,
|
|
162
|
+
observe: observe,
|
|
163
|
+
reportProgress: reportProgress
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* appleConnect
|
|
170
|
+
* @param request request
|
|
171
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
172
|
+
* @param reportProgress flag to report request and response progress.
|
|
173
|
+
*/
|
|
174
|
+
public appleConnectUsingPOST1(request: AppleLoginRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SocialLoginResponse>;
|
|
175
|
+
public appleConnectUsingPOST1(request: AppleLoginRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SocialLoginResponse>>;
|
|
176
|
+
public appleConnectUsingPOST1(request: AppleLoginRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SocialLoginResponse>>;
|
|
177
|
+
public appleConnectUsingPOST1(request: AppleLoginRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
178
|
+
if (request === null || request === undefined) {
|
|
179
|
+
throw new Error('Required parameter request was null or undefined when calling appleConnectUsingPOST1.');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
let localVarHeaders = this.defaultHeaders;
|
|
183
|
+
|
|
184
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
185
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
186
|
+
// to determine the Accept header
|
|
187
|
+
const httpHeaderAccepts: string[] = [
|
|
188
|
+
'*/*'
|
|
189
|
+
];
|
|
190
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
191
|
+
}
|
|
192
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
193
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
197
|
+
if (localVarHttpContext === undefined) {
|
|
198
|
+
localVarHttpContext = new HttpContext();
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
|
|
134
202
|
// to determine the Content-Type header
|
|
135
203
|
const consumes: string[] = [
|
|
136
204
|
'application/json'
|
|
@@ -167,18 +235,14 @@ export class SocialLoginControllerService {
|
|
|
167
235
|
|
|
168
236
|
/**
|
|
169
237
|
* facebookConnect
|
|
170
|
-
* @param providerId providerId
|
|
171
238
|
* @param request request
|
|
172
239
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
173
240
|
* @param reportProgress flag to report request and response progress.
|
|
174
241
|
*/
|
|
175
|
-
public facebookConnectUsingPOST(
|
|
176
|
-
public facebookConnectUsingPOST(
|
|
177
|
-
public facebookConnectUsingPOST(
|
|
178
|
-
public facebookConnectUsingPOST(
|
|
179
|
-
if (providerId === null || providerId === undefined) {
|
|
180
|
-
throw new Error('Required parameter providerId was null or undefined when calling facebookConnectUsingPOST.');
|
|
181
|
-
}
|
|
242
|
+
public facebookConnectUsingPOST(request: SocialLoginRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SocialLoginResponse>;
|
|
243
|
+
public facebookConnectUsingPOST(request: SocialLoginRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SocialLoginResponse>>;
|
|
244
|
+
public facebookConnectUsingPOST(request: SocialLoginRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SocialLoginResponse>>;
|
|
245
|
+
public facebookConnectUsingPOST(request: SocialLoginRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
182
246
|
if (request === null || request === undefined) {
|
|
183
247
|
throw new Error('Required parameter request was null or undefined when calling facebookConnectUsingPOST.');
|
|
184
248
|
}
|
|
@@ -223,7 +287,75 @@ export class SocialLoginControllerService {
|
|
|
223
287
|
}
|
|
224
288
|
}
|
|
225
289
|
|
|
226
|
-
let localVarPath = `/api/v1/connect
|
|
290
|
+
let localVarPath = `/api/v1/connect/Facebook`;
|
|
291
|
+
return this.httpClient.request<SocialLoginResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
292
|
+
{
|
|
293
|
+
context: localVarHttpContext,
|
|
294
|
+
body: request,
|
|
295
|
+
responseType: <any>responseType_,
|
|
296
|
+
withCredentials: this.configuration.withCredentials,
|
|
297
|
+
headers: localVarHeaders,
|
|
298
|
+
observe: observe,
|
|
299
|
+
reportProgress: reportProgress
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* facebookConnect
|
|
306
|
+
* @param request request
|
|
307
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
308
|
+
* @param reportProgress flag to report request and response progress.
|
|
309
|
+
*/
|
|
310
|
+
public facebookConnectUsingPOST1(request: SocialLoginRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SocialLoginResponse>;
|
|
311
|
+
public facebookConnectUsingPOST1(request: SocialLoginRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SocialLoginResponse>>;
|
|
312
|
+
public facebookConnectUsingPOST1(request: SocialLoginRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SocialLoginResponse>>;
|
|
313
|
+
public facebookConnectUsingPOST1(request: SocialLoginRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
314
|
+
if (request === null || request === undefined) {
|
|
315
|
+
throw new Error('Required parameter request was null or undefined when calling facebookConnectUsingPOST1.');
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
let localVarHeaders = this.defaultHeaders;
|
|
319
|
+
|
|
320
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
321
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
322
|
+
// to determine the Accept header
|
|
323
|
+
const httpHeaderAccepts: string[] = [
|
|
324
|
+
'*/*'
|
|
325
|
+
];
|
|
326
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
327
|
+
}
|
|
328
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
329
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
333
|
+
if (localVarHttpContext === undefined) {
|
|
334
|
+
localVarHttpContext = new HttpContext();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
// to determine the Content-Type header
|
|
339
|
+
const consumes: string[] = [
|
|
340
|
+
'application/json'
|
|
341
|
+
];
|
|
342
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
343
|
+
if (httpContentTypeSelected !== undefined) {
|
|
344
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
348
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
349
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
350
|
+
responseType_ = 'text';
|
|
351
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
352
|
+
responseType_ = 'json';
|
|
353
|
+
} else {
|
|
354
|
+
responseType_ = 'blob';
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
let localVarPath = `/api/v1/connect/facebook`;
|
|
227
359
|
return this.httpClient.request<SocialLoginResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
228
360
|
{
|
|
229
361
|
context: localVarHttpContext,
|
|
@@ -271,6 +403,74 @@ export class SocialLoginControllerService {
|
|
|
271
403
|
}
|
|
272
404
|
|
|
273
405
|
|
|
406
|
+
// to determine the Content-Type header
|
|
407
|
+
const consumes: string[] = [
|
|
408
|
+
'application/json'
|
|
409
|
+
];
|
|
410
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
411
|
+
if (httpContentTypeSelected !== undefined) {
|
|
412
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
416
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
417
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
418
|
+
responseType_ = 'text';
|
|
419
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
420
|
+
responseType_ = 'json';
|
|
421
|
+
} else {
|
|
422
|
+
responseType_ = 'blob';
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
let localVarPath = `/api/v1/connect/Google`;
|
|
427
|
+
return this.httpClient.request<SocialLoginResponse>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
428
|
+
{
|
|
429
|
+
context: localVarHttpContext,
|
|
430
|
+
body: request,
|
|
431
|
+
responseType: <any>responseType_,
|
|
432
|
+
withCredentials: this.configuration.withCredentials,
|
|
433
|
+
headers: localVarHeaders,
|
|
434
|
+
observe: observe,
|
|
435
|
+
reportProgress: reportProgress
|
|
436
|
+
}
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* googleConnect
|
|
442
|
+
* @param request request
|
|
443
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
444
|
+
* @param reportProgress flag to report request and response progress.
|
|
445
|
+
*/
|
|
446
|
+
public googleConnectUsingPOST1(request: GoogleLoginRequest, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<SocialLoginResponse>;
|
|
447
|
+
public googleConnectUsingPOST1(request: GoogleLoginRequest, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<SocialLoginResponse>>;
|
|
448
|
+
public googleConnectUsingPOST1(request: GoogleLoginRequest, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<SocialLoginResponse>>;
|
|
449
|
+
public googleConnectUsingPOST1(request: GoogleLoginRequest, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
450
|
+
if (request === null || request === undefined) {
|
|
451
|
+
throw new Error('Required parameter request was null or undefined when calling googleConnectUsingPOST1.');
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
let localVarHeaders = this.defaultHeaders;
|
|
455
|
+
|
|
456
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
457
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
458
|
+
// to determine the Accept header
|
|
459
|
+
const httpHeaderAccepts: string[] = [
|
|
460
|
+
'*/*'
|
|
461
|
+
];
|
|
462
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
463
|
+
}
|
|
464
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
465
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
469
|
+
if (localVarHttpContext === undefined) {
|
|
470
|
+
localVarHttpContext = new HttpContext();
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
|
|
274
474
|
// to determine the Content-Type header
|
|
275
475
|
const consumes: string[] = [
|
|
276
476
|
'application/json'
|
|
@@ -24,6 +24,7 @@ export interface CustomerReview {
|
|
|
24
24
|
id?: number;
|
|
25
25
|
loggedInUserVote?: CustomerReview.LoggedInUserVoteEnum;
|
|
26
26
|
nameSetting?: CustomerReview.NameSettingEnum;
|
|
27
|
+
profilePictureSignedUrl?: string;
|
|
27
28
|
profilePictureUrl?: string;
|
|
28
29
|
ratingModel?: ReviewRatingModel;
|
|
29
30
|
recommendationType?: string;
|
|
@@ -4431,7 +4431,44 @@ angular.module('otrBackendService', [])
|
|
|
4431
4431
|
}
|
|
4432
4432
|
var deferred = $q.defer();
|
|
4433
4433
|
var domain = this.domain,
|
|
4434
|
-
path = '/api/v1/connect/
|
|
4434
|
+
path = '/api/v1/connect/Apple';
|
|
4435
|
+
var body = {},
|
|
4436
|
+
queryParameters = {},
|
|
4437
|
+
headers = {},
|
|
4438
|
+
form = {};
|
|
4439
|
+
|
|
4440
|
+
headers['Accept'] = ['*/*'];
|
|
4441
|
+
headers['Content-Type'] = ['application/json'];
|
|
4442
|
+
|
|
4443
|
+
if (parameters['request'] !== undefined) {
|
|
4444
|
+
body = parameters['request'];
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
if (parameters['request'] === undefined) {
|
|
4448
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
4449
|
+
return deferred.promise;
|
|
4450
|
+
}
|
|
4451
|
+
|
|
4452
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4453
|
+
|
|
4454
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4455
|
+
|
|
4456
|
+
return deferred.promise;
|
|
4457
|
+
};
|
|
4458
|
+
/**
|
|
4459
|
+
* facebookConnect
|
|
4460
|
+
* @method
|
|
4461
|
+
* @name OtrService#facebookConnectUsingPOST
|
|
4462
|
+
* @param {object} parameters - method options and parameters
|
|
4463
|
+
* @param {} parameters.request - request
|
|
4464
|
+
*/
|
|
4465
|
+
OtrService.prototype.facebookConnectUsingPOST = function(parameters) {
|
|
4466
|
+
if (parameters === undefined) {
|
|
4467
|
+
parameters = {};
|
|
4468
|
+
}
|
|
4469
|
+
var deferred = $q.defer();
|
|
4470
|
+
var domain = this.domain,
|
|
4471
|
+
path = '/api/v1/connect/Facebook';
|
|
4435
4472
|
var body = {},
|
|
4436
4473
|
queryParameters = {},
|
|
4437
4474
|
headers = {},
|
|
@@ -4468,7 +4505,44 @@ angular.module('otrBackendService', [])
|
|
|
4468
4505
|
}
|
|
4469
4506
|
var deferred = $q.defer();
|
|
4470
4507
|
var domain = this.domain,
|
|
4471
|
-
path = '/api/v1/connect/
|
|
4508
|
+
path = '/api/v1/connect/Google';
|
|
4509
|
+
var body = {},
|
|
4510
|
+
queryParameters = {},
|
|
4511
|
+
headers = {},
|
|
4512
|
+
form = {};
|
|
4513
|
+
|
|
4514
|
+
headers['Accept'] = ['*/*'];
|
|
4515
|
+
headers['Content-Type'] = ['application/json'];
|
|
4516
|
+
|
|
4517
|
+
if (parameters['request'] !== undefined) {
|
|
4518
|
+
body = parameters['request'];
|
|
4519
|
+
}
|
|
4520
|
+
|
|
4521
|
+
if (parameters['request'] === undefined) {
|
|
4522
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
4523
|
+
return deferred.promise;
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4526
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4527
|
+
|
|
4528
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4529
|
+
|
|
4530
|
+
return deferred.promise;
|
|
4531
|
+
};
|
|
4532
|
+
/**
|
|
4533
|
+
* appleConnect
|
|
4534
|
+
* @method
|
|
4535
|
+
* @name OtrService#appleConnectUsingPOST_1
|
|
4536
|
+
* @param {object} parameters - method options and parameters
|
|
4537
|
+
* @param {} parameters.request - request
|
|
4538
|
+
*/
|
|
4539
|
+
OtrService.prototype.appleConnectUsingPOST_1 = function(parameters) {
|
|
4540
|
+
if (parameters === undefined) {
|
|
4541
|
+
parameters = {};
|
|
4542
|
+
}
|
|
4543
|
+
var deferred = $q.defer();
|
|
4544
|
+
var domain = this.domain,
|
|
4545
|
+
path = '/api/v1/connect/apple';
|
|
4472
4546
|
var body = {},
|
|
4473
4547
|
queryParameters = {},
|
|
4474
4548
|
headers = {},
|
|
@@ -4495,18 +4569,17 @@ angular.module('otrBackendService', [])
|
|
|
4495
4569
|
/**
|
|
4496
4570
|
* facebookConnect
|
|
4497
4571
|
* @method
|
|
4498
|
-
* @name OtrService#
|
|
4572
|
+
* @name OtrService#facebookConnectUsingPOST_1
|
|
4499
4573
|
* @param {object} parameters - method options and parameters
|
|
4500
|
-
* @param {string} parameters.providerId - providerId
|
|
4501
4574
|
* @param {} parameters.request - request
|
|
4502
4575
|
*/
|
|
4503
|
-
OtrService.prototype.
|
|
4576
|
+
OtrService.prototype.facebookConnectUsingPOST_1 = function(parameters) {
|
|
4504
4577
|
if (parameters === undefined) {
|
|
4505
4578
|
parameters = {};
|
|
4506
4579
|
}
|
|
4507
4580
|
var deferred = $q.defer();
|
|
4508
4581
|
var domain = this.domain,
|
|
4509
|
-
path = '/api/v1/connect/
|
|
4582
|
+
path = '/api/v1/connect/facebook';
|
|
4510
4583
|
var body = {},
|
|
4511
4584
|
queryParameters = {},
|
|
4512
4585
|
headers = {},
|
|
@@ -4515,13 +4588,43 @@ angular.module('otrBackendService', [])
|
|
|
4515
4588
|
headers['Accept'] = ['*/*'];
|
|
4516
4589
|
headers['Content-Type'] = ['application/json'];
|
|
4517
4590
|
|
|
4518
|
-
|
|
4591
|
+
if (parameters['request'] !== undefined) {
|
|
4592
|
+
body = parameters['request'];
|
|
4593
|
+
}
|
|
4519
4594
|
|
|
4520
|
-
if (parameters['
|
|
4521
|
-
deferred.reject(new Error('Missing required parameter:
|
|
4595
|
+
if (parameters['request'] === undefined) {
|
|
4596
|
+
deferred.reject(new Error('Missing required parameter: request'));
|
|
4522
4597
|
return deferred.promise;
|
|
4523
4598
|
}
|
|
4524
4599
|
|
|
4600
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
4601
|
+
|
|
4602
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
4603
|
+
|
|
4604
|
+
return deferred.promise;
|
|
4605
|
+
};
|
|
4606
|
+
/**
|
|
4607
|
+
* googleConnect
|
|
4608
|
+
* @method
|
|
4609
|
+
* @name OtrService#googleConnectUsingPOST_1
|
|
4610
|
+
* @param {object} parameters - method options and parameters
|
|
4611
|
+
* @param {} parameters.request - request
|
|
4612
|
+
*/
|
|
4613
|
+
OtrService.prototype.googleConnectUsingPOST_1 = function(parameters) {
|
|
4614
|
+
if (parameters === undefined) {
|
|
4615
|
+
parameters = {};
|
|
4616
|
+
}
|
|
4617
|
+
var deferred = $q.defer();
|
|
4618
|
+
var domain = this.domain,
|
|
4619
|
+
path = '/api/v1/connect/google';
|
|
4620
|
+
var body = {},
|
|
4621
|
+
queryParameters = {},
|
|
4622
|
+
headers = {},
|
|
4623
|
+
form = {};
|
|
4624
|
+
|
|
4625
|
+
headers['Accept'] = ['*/*'];
|
|
4626
|
+
headers['Content-Type'] = ['application/json'];
|
|
4627
|
+
|
|
4525
4628
|
if (parameters['request'] !== undefined) {
|
|
4526
4629
|
body = parameters['request'];
|
|
4527
4630
|
}
|