@parra/parra-js-sdk 0.3.119 → 0.3.121

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/ParraAPI.js CHANGED
@@ -1,4 +1,15 @@
1
1
  "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
2
13
  Object.defineProperty(exports, "__esModule", { value: true });
3
14
  exports.IntegrationScope = exports.IntegrationConnectionStatus = exports.IntegrationType = exports.ConnectedAppConnectionStatus = exports.ConnectedAppType = exports.ApplicationType = exports.RefreshTokenRotationType = exports.RefreshTokenExpirationType = exports.JwtAlgorithm = exports.GrantType = exports.ApnsPushType = exports.ApnsEnvironment = exports.ChannelType = exports.AppVersionStatus = exports.TicketDisplayStatus = exports.UserNoteStatus = exports.ReleaseType = exports.ReleaseStatus = exports.TicketIconType = exports.TicketPriority = exports.TicketStatus = exports.TicketType = exports.TemplateType = exports.CampaignStatus = exports.CampaignActionDisplayType = exports.CampaignActionType = exports.CardItemDisplayType = exports.CardItemType = exports.QuestionKind = exports.QuestionType = exports.FeedbackFormFieldType = exports.SubscriptionStatus = exports.Currency = exports.Interval = exports.IdentityType = void 0;
4
15
  var IdentityType;
@@ -235,1007 +246,718 @@ var ParraAPI = /** @class */ (function () {
235
246
  var _this = this;
236
247
  this.http = http;
237
248
  this.options = options;
238
- this.checkAuthorization = function (body) {
239
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/authorization/check"), {
240
- method: "post",
241
- body: JSON.stringify(body),
242
- headers: {
249
+ this.checkAuthorization = function (body, options) {
250
+ if (options === void 0) { options = {}; }
251
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/authorization/check"), __assign({ method: "post", body: JSON.stringify(body), headers: {
243
252
  "content-type": "application/json",
244
- },
245
- });
253
+ } }, options));
246
254
  };
247
- this.getUserInfo = function () {
248
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/user-info"), {
249
- method: "get",
250
- });
255
+ this.getUserInfo = function (options) {
256
+ if (options === void 0) { options = {}; }
257
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/user-info"), __assign({ method: "get" }, options));
251
258
  };
252
- this.getParraAuthToken = function () {
253
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/parra/auth/token"), {
254
- method: "post",
255
- });
259
+ this.getParraAuthToken = function (options) {
260
+ if (options === void 0) { options = {}; }
261
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/parra/auth/token"), __assign({ method: "post" }, options));
256
262
  };
257
- this.uploadImageAssetForTenantById = function (tenant_id, body) {
263
+ this.uploadImageAssetForTenantById = function (tenant_id, body, options) {
264
+ if (options === void 0) { options = {}; }
258
265
  var formData = new FormData();
259
266
  Object.entries(body).forEach(function (_a) {
260
267
  var key = _a[0], value = _a[1];
261
268
  formData.append(key, value);
262
269
  });
263
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), {
264
- method: "post",
265
- body: formData,
266
- headers: {},
267
- });
270
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/assets/images"), __assign({ method: "post", body: formData, headers: {} }, options));
268
271
  };
269
- this.uploadAvatarForUser = function (body) {
272
+ this.uploadAvatarForUser = function (body, options) {
273
+ if (options === void 0) { options = {}; }
270
274
  var formData = new FormData();
271
275
  Object.entries(body).forEach(function (_a) {
272
276
  var key = _a[0], value = _a[1];
273
277
  formData.append(key, value);
274
278
  });
275
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/avatar"), {
276
- method: "post",
277
- body: formData,
278
- headers: {},
279
- });
279
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/avatar"), __assign({ method: "post", body: formData, headers: {} }, options));
280
280
  };
281
- this.uploadAvatarForTenantUser = function (tenant_id, body) {
281
+ this.uploadAvatarForTenantUser = function (tenant_id, body, options) {
282
+ if (options === void 0) { options = {}; }
282
283
  var formData = new FormData();
283
284
  Object.entries(body).forEach(function (_a) {
284
285
  var key = _a[0], value = _a[1];
285
286
  formData.append(key, value);
286
287
  });
287
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/avatar"), {
288
- method: "post",
289
- body: formData,
290
- headers: {},
291
- });
288
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/avatar"), __assign({ method: "post", body: formData, headers: {} }, options));
292
289
  };
293
- this.uploadIconForTenantApplication = function (tenant_id, application_id, body) {
290
+ this.uploadIconForTenantApplication = function (tenant_id, application_id, body, options) {
291
+ if (options === void 0) { options = {}; }
294
292
  var formData = new FormData();
295
293
  Object.entries(body).forEach(function (_a) {
296
294
  var key = _a[0], value = _a[1];
297
295
  formData.append(key, value);
298
296
  });
299
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/icon"), {
300
- method: "post",
301
- body: formData,
302
- headers: {},
303
- });
297
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/icon"), __assign({ method: "post", body: formData, headers: {} }, options));
304
298
  };
305
- this.uploadHeaderForTenantRelease = function (tenant_id, release_id, body) {
299
+ this.uploadHeaderForTenantRelease = function (tenant_id, release_id, body, options) {
300
+ if (options === void 0) { options = {}; }
306
301
  var formData = new FormData();
307
302
  Object.entries(body).forEach(function (_a) {
308
303
  var key = _a[0], value = _a[1];
309
304
  formData.append(key, value);
310
305
  });
311
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/header"), {
312
- method: "post",
313
- body: formData,
314
- headers: {},
315
- });
306
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/header"), __assign({ method: "post", body: formData, headers: {} }, options));
316
307
  };
317
- this.uploadAttachmentForTicketById = function (tenant_id, ticket_id, body) {
308
+ this.uploadAttachmentForTicketById = function (tenant_id, ticket_id, body, options) {
309
+ if (options === void 0) { options = {}; }
318
310
  var formData = new FormData();
319
311
  Object.entries(body).forEach(function (_a) {
320
312
  var key = _a[0], value = _a[1];
321
313
  formData.append(key, value);
322
314
  });
323
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments"), {
324
- method: "post",
325
- body: formData,
326
- headers: {},
327
- });
315
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments"), __assign({ method: "post", body: formData, headers: {} }, options));
328
316
  };
329
- this.uploadLogoForTenantById = function (tenant_id, body) {
317
+ this.uploadLogoForTenantById = function (tenant_id, body, options) {
318
+ if (options === void 0) { options = {}; }
330
319
  var formData = new FormData();
331
320
  Object.entries(body).forEach(function (_a) {
332
321
  var key = _a[0], value = _a[1];
333
322
  formData.append(key, value);
334
323
  });
335
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/logo"), {
336
- method: "post",
337
- body: formData,
338
- headers: {},
339
- });
324
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/logo"), __assign({ method: "post", body: formData, headers: {} }, options));
340
325
  };
341
- this.createCheckoutSession = function (body) {
342
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/checkout/sessions"), {
343
- method: "post",
344
- body: JSON.stringify(body),
345
- headers: {
326
+ this.createCheckoutSession = function (body, options) {
327
+ if (options === void 0) { options = {}; }
328
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/checkout/sessions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
346
329
  "content-type": "application/json",
347
- },
348
- });
330
+ } }, options));
349
331
  };
350
- this.getPlansForTenantById = function (tenant_id) {
351
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), {
352
- method: "post",
353
- });
332
+ this.getPlansForTenantById = function (tenant_id, options) {
333
+ if (options === void 0) { options = {}; }
334
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/plans"), __assign({ method: "post" }, options));
354
335
  };
355
- this.createBillingPortalSession = function (tenant_id) {
356
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), {
357
- method: "post",
358
- });
336
+ this.createBillingPortalSession = function (tenant_id, options) {
337
+ if (options === void 0) { options = {}; }
338
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/billing-portal/sessions"), __assign({ method: "post" }, options));
359
339
  };
360
- this.createSubscriberForAudienceById = function (audience_id, body) {
361
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/email/audiences/").concat(audience_id, "/subscribers"), {
362
- method: "post",
363
- body: JSON.stringify(body),
364
- headers: {
340
+ this.createSubscriberForAudienceById = function (audience_id, body, options) {
341
+ if (options === void 0) { options = {}; }
342
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/email/audiences/").concat(audience_id, "/subscribers"), __assign({ method: "post", body: JSON.stringify(body), headers: {
365
343
  "content-type": "application/json",
366
- },
367
- raw: true,
368
- });
344
+ }, raw: true }, options));
369
345
  };
370
- this.getFormById = function (feedback_form_id) {
371
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), {
372
- method: "get",
373
- });
346
+ this.getFormById = function (feedback_form_id, options) {
347
+ if (options === void 0) { options = {}; }
348
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id), __assign({ method: "get" }, options));
374
349
  };
375
- this.submitFormById = function (feedback_form_id, body) {
376
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id, "/submit"), {
377
- method: "post",
378
- body: JSON.stringify(body),
379
- headers: {
350
+ this.submitFormById = function (feedback_form_id, body, options) {
351
+ if (options === void 0) { options = {}; }
352
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/feedback/forms/").concat(feedback_form_id, "/submit"), __assign({ method: "post", body: JSON.stringify(body), headers: {
380
353
  "content-type": "application/json",
381
- },
382
- raw: true,
383
- });
354
+ }, raw: true }, options));
384
355
  };
385
- this.createQuestion = function (body) {
386
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions"), {
387
- method: "post",
388
- body: JSON.stringify(body),
389
- headers: {
356
+ this.createQuestion = function (body, options) {
357
+ if (options === void 0) { options = {}; }
358
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
390
359
  "content-type": "application/json",
391
- },
392
- });
360
+ } }, options));
393
361
  };
394
- this.paginateQuestions = function (query) {
395
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions"), {
396
- method: "get",
397
- query: query,
398
- });
362
+ this.paginateQuestions = function (query, options) {
363
+ if (options === void 0) { options = {}; }
364
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions"), __assign({ method: "get", query: query }, options));
399
365
  };
400
- this.getQuestionById = function (question_id, query) {
401
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), {
402
- method: "get",
403
- query: query,
404
- });
366
+ this.getQuestionById = function (question_id, query, options) {
367
+ if (options === void 0) { options = {}; }
368
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "get", query: query }, options));
405
369
  };
406
- this.updateQuestionById = function (question_id, body) {
407
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), {
408
- method: "put",
409
- body: JSON.stringify(body),
410
- headers: {
370
+ this.updateQuestionById = function (question_id, body, options) {
371
+ if (options === void 0) { options = {}; }
372
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
411
373
  "content-type": "application/json",
412
- },
413
- });
374
+ } }, options));
414
375
  };
415
- this.deleteQuestionById = function (question_id) {
416
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), {
417
- method: "delete",
418
- });
376
+ this.deleteQuestionById = function (question_id, options) {
377
+ if (options === void 0) { options = {}; }
378
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id), __assign({ method: "delete" }, options));
419
379
  };
420
- this.paginateAnswersForQuestionById = function (question_id, query) {
421
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answers"), {
422
- method: "get",
423
- query: query,
424
- });
380
+ this.paginateAnswersForQuestionById = function (question_id, query, options) {
381
+ if (options === void 0) { options = {}; }
382
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answers"), __assign({ method: "get", query: query }, options));
425
383
  };
426
- this.answerQuestionById = function (question_id, body) {
427
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answer"), {
428
- method: "put",
429
- body: JSON.stringify(body),
430
- headers: {
384
+ this.answerQuestionById = function (question_id, body, options) {
385
+ if (options === void 0) { options = {}; }
386
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/questions/").concat(question_id, "/answer"), __assign({ method: "put", body: JSON.stringify(body), headers: {
431
387
  "content-type": "application/json",
432
- },
433
- raw: true,
434
- });
388
+ }, raw: true }, options));
435
389
  };
436
- this.bulkAnswerQuestions = function (body) {
437
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/bulk/questions/answer"), {
438
- method: "post",
439
- body: JSON.stringify(body),
440
- headers: {
390
+ this.bulkAnswerQuestions = function (body, options) {
391
+ if (options === void 0) { options = {}; }
392
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/bulk/questions/answer"), __assign({ method: "post", body: JSON.stringify(body), headers: {
441
393
  "content-type": "application/json",
442
- },
443
- raw: true,
444
- });
394
+ }, raw: true }, options));
445
395
  };
446
- this.getCardsForTenantById = function (tenant_id, query) {
447
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/cards"), {
448
- method: "get",
449
- query: query,
450
- });
396
+ this.getCardsForTenantById = function (tenant_id, query, options) {
397
+ if (options === void 0) { options = {}; }
398
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/cards"), __assign({ method: "get", query: query }, options));
451
399
  };
452
- this.paginateFeedbackFormsForTenantById = function (tenant_id, query) {
453
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
454
- method: "get",
455
- query: query,
456
- });
400
+ this.paginateFeedbackFormsForTenantById = function (tenant_id, query, options) {
401
+ if (options === void 0) { options = {}; }
402
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), __assign({ method: "get", query: query }, options));
457
403
  };
458
- this.createFeedbackFormForTenantById = function (tenant_id, body) {
459
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), {
460
- method: "post",
461
- body: JSON.stringify(body),
462
- headers: {
404
+ this.createFeedbackFormForTenantById = function (tenant_id, body, options) {
405
+ if (options === void 0) { options = {}; }
406
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms"), __assign({ method: "post", body: JSON.stringify(body), headers: {
463
407
  "content-type": "application/json",
464
- },
465
- });
408
+ } }, options));
466
409
  };
467
- this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query) {
468
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
469
- method: "get",
470
- query: query,
471
- });
410
+ this.getFeedbackFormForTenantById = function (tenant_id, feedback_form_id, query, options) {
411
+ if (options === void 0) { options = {}; }
412
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "get", query: query }, options));
472
413
  };
473
- this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body) {
474
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
475
- method: "put",
476
- body: JSON.stringify(body),
477
- headers: {
414
+ this.updateFeedbackFormForTenantById = function (tenant_id, feedback_form_id, body, options) {
415
+ if (options === void 0) { options = {}; }
416
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
478
417
  "content-type": "application/json",
479
- },
480
- });
418
+ } }, options));
481
419
  };
482
- this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id) {
483
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), {
484
- method: "delete",
485
- });
420
+ this.deleteFeedbackFormForTenantById = function (tenant_id, feedback_form_id, options) {
421
+ if (options === void 0) { options = {}; }
422
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id), __assign({ method: "delete" }, options));
486
423
  };
487
- this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query) {
488
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), {
489
- method: "get",
490
- query: query,
491
- });
424
+ this.paginateFeedbackFormResponsesForTenantById = function (tenant_id, feedback_form_id, query, options) {
425
+ if (options === void 0) { options = {}; }
426
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/feedback/forms/").concat(feedback_form_id, "/responses"), __assign({ method: "get", query: query }, options));
492
427
  };
493
- this.createAnalyticEventTypeForTenantById = function (tenant_id, body) {
494
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
495
- method: "post",
496
- body: JSON.stringify(body),
497
- headers: {
428
+ this.createAnalyticEventTypeForTenantById = function (tenant_id, body, options) {
429
+ if (options === void 0) { options = {}; }
430
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), __assign({ method: "post", body: JSON.stringify(body), headers: {
498
431
  "content-type": "application/json",
499
- },
500
- });
432
+ } }, options));
501
433
  };
502
- this.paginateAnalyticEventTypesForTenantById = function (tenant_id, query) {
503
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), {
504
- method: "get",
505
- query: query,
506
- });
434
+ this.paginateAnalyticEventTypesForTenantById = function (tenant_id, query, options) {
435
+ if (options === void 0) { options = {}; }
436
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/analytics/events/types"), __assign({ method: "get", query: query }, options));
507
437
  };
508
- this.createAppArea = function (tenant_id, body) {
509
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), {
510
- method: "post",
511
- body: JSON.stringify(body),
512
- headers: {
438
+ this.createAppArea = function (tenant_id, body, options) {
439
+ if (options === void 0) { options = {}; }
440
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), __assign({ method: "post", body: JSON.stringify(body), headers: {
513
441
  "content-type": "application/json",
514
- },
515
- });
442
+ } }, options));
516
443
  };
517
- this.listAppAreas = function (tenant_id) {
518
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), {
519
- method: "get",
520
- });
444
+ this.listAppAreas = function (tenant_id, options) {
445
+ if (options === void 0) { options = {}; }
446
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas"), __assign({ method: "get" }, options));
521
447
  };
522
- this.getAppAreaById = function (tenant_id, app_area_id) {
523
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), {
524
- method: "get",
525
- });
448
+ this.getAppAreaById = function (tenant_id, app_area_id, options) {
449
+ if (options === void 0) { options = {}; }
450
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "get" }, options));
526
451
  };
527
- this.updateAppAreaById = function (tenant_id, app_area_id, body) {
528
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), {
529
- method: "put",
530
- body: JSON.stringify(body),
531
- headers: {
452
+ this.updateAppAreaById = function (tenant_id, app_area_id, body, options) {
453
+ if (options === void 0) { options = {}; }
454
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
532
455
  "content-type": "application/json",
533
- },
534
- });
456
+ } }, options));
535
457
  };
536
- this.deleteAppAreaById = function (tenant_id, app_area_id) {
537
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), {
538
- method: "delete",
539
- });
458
+ this.deleteAppAreaById = function (tenant_id, app_area_id, options) {
459
+ if (options === void 0) { options = {}; }
460
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/app-areas/").concat(app_area_id), __assign({ method: "delete" }, options));
540
461
  };
541
- this.createCampaign = function (tenant_id, body) {
542
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), {
543
- method: "post",
544
- body: JSON.stringify(body),
545
- headers: {
462
+ this.createCampaign = function (tenant_id, body, options) {
463
+ if (options === void 0) { options = {}; }
464
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), __assign({ method: "post", body: JSON.stringify(body), headers: {
546
465
  "content-type": "application/json",
547
- },
548
- });
466
+ } }, options));
549
467
  };
550
- this.paginateCampaignsForTenantById = function (tenant_id, query) {
551
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), {
552
- method: "get",
553
- query: query,
554
- });
468
+ this.paginateCampaignsForTenantById = function (tenant_id, query, options) {
469
+ if (options === void 0) { options = {}; }
470
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns"), __assign({ method: "get", query: query }, options));
555
471
  };
556
- this.getCampaignById = function (tenant_id, campaign_id, query) {
557
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), {
558
- method: "get",
559
- query: query,
560
- });
472
+ this.getCampaignById = function (tenant_id, campaign_id, query, options) {
473
+ if (options === void 0) { options = {}; }
474
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "get", query: query }, options));
561
475
  };
562
- this.updateCampaignById = function (tenant_id, campaign_id, body) {
563
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), {
564
- method: "put",
565
- body: JSON.stringify(body),
566
- headers: {
476
+ this.updateCampaignById = function (tenant_id, campaign_id, body, options) {
477
+ if (options === void 0) { options = {}; }
478
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
567
479
  "content-type": "application/json",
568
- },
569
- });
480
+ } }, options));
570
481
  };
571
- this.deleteCampaignById = function (tenant_id, campaign_id) {
572
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), {
573
- method: "delete",
574
- });
482
+ this.deleteCampaignById = function (tenant_id, campaign_id, options) {
483
+ if (options === void 0) { options = {}; }
484
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id), __assign({ method: "delete" }, options));
575
485
  };
576
- this.closeCampaignById = function (tenant_id, campaign_id) {
577
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/close"), {
578
- method: "post",
579
- });
486
+ this.closeCampaignById = function (tenant_id, campaign_id, options) {
487
+ if (options === void 0) { options = {}; }
488
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/close"), __assign({ method: "post" }, options));
580
489
  };
581
- this.publishCampaignById = function (tenant_id, campaign_id, body) {
582
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/publish"), {
583
- method: "post",
584
- body: JSON.stringify(body),
585
- headers: {
490
+ this.publishCampaignById = function (tenant_id, campaign_id, body, options) {
491
+ if (options === void 0) { options = {}; }
492
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/campaigns/").concat(campaign_id, "/publish"), __assign({ method: "post", body: JSON.stringify(body), headers: {
586
493
  "content-type": "application/json",
587
- },
588
- });
494
+ } }, options));
589
495
  };
590
- this.paginateTemplatesForTenantById = function (tenant_id, query) {
591
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates"), {
592
- method: "get",
593
- query: query,
594
- });
496
+ this.paginateTemplatesForTenantById = function (tenant_id, query, options) {
497
+ if (options === void 0) { options = {}; }
498
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates"), __assign({ method: "get", query: query }, options));
595
499
  };
596
- this.cloneTemplateForTenantById = function (tenant_id, template_id) {
597
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates/").concat(template_id, "/clone"), {
598
- method: "post",
599
- });
500
+ this.cloneTemplateForTenantById = function (tenant_id, template_id, options) {
501
+ if (options === void 0) { options = {}; }
502
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/templates/").concat(template_id, "/clone"), __assign({ method: "post" }, options));
600
503
  };
601
- this.paginateTemplateTags = function (query) {
602
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/templates/tags"), {
603
- method: "get",
604
- query: query,
605
- });
504
+ this.paginateTemplateTags = function (query, options) {
505
+ if (options === void 0) { options = {}; }
506
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/templates/tags"), __assign({ method: "get", query: query }, options));
606
507
  };
607
- this.createBoardForTenantById = function (tenant_id, body) {
608
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
609
- method: "post",
610
- body: JSON.stringify(body),
611
- headers: {
508
+ this.createBoardForTenantById = function (tenant_id, body, options) {
509
+ if (options === void 0) { options = {}; }
510
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "post", body: JSON.stringify(body), headers: {
612
511
  "content-type": "application/json",
613
- },
614
- });
512
+ } }, options));
615
513
  };
616
- this.listBoardsForTenantById = function (tenant_id) {
617
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), {
618
- method: "get",
619
- });
514
+ this.listBoardsForTenantById = function (tenant_id, options) {
515
+ if (options === void 0) { options = {}; }
516
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards"), __assign({ method: "get" }, options));
620
517
  };
621
- this.createTicketForBoard = function (tenant_id, board_id, body) {
622
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), {
623
- method: "post",
624
- body: JSON.stringify(body),
625
- headers: {
518
+ this.createTicketForBoard = function (tenant_id, board_id, body, options) {
519
+ if (options === void 0) { options = {}; }
520
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), __assign({ method: "post", body: JSON.stringify(body), headers: {
626
521
  "content-type": "application/json",
627
- },
628
- });
522
+ } }, options));
629
523
  };
630
- this.paginateTicketsForBoard = function (tenant_id, board_id, query) {
631
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), {
632
- method: "get",
633
- query: query,
634
- });
524
+ this.paginateTicketsForBoard = function (tenant_id, board_id, query, options) {
525
+ if (options === void 0) { options = {}; }
526
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/tickets"), __assign({ method: "get", query: query }, options));
635
527
  };
636
- this.createUserNoteForBoard = function (tenant_id, board_id, body) {
637
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
638
- method: "post",
639
- body: JSON.stringify(body),
640
- headers: {
528
+ this.createUserNoteForBoard = function (tenant_id, board_id, body, options) {
529
+ if (options === void 0) { options = {}; }
530
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), __assign({ method: "post", body: JSON.stringify(body), headers: {
641
531
  "content-type": "application/json",
642
- },
643
- });
532
+ } }, options));
644
533
  };
645
- this.paginateUserNotesForBoard = function (tenant_id, board_id, query) {
646
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), {
647
- method: "get",
648
- query: query,
649
- });
534
+ this.paginateUserNotesForBoard = function (tenant_id, board_id, query, options) {
535
+ if (options === void 0) { options = {}; }
536
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes"), __assign({ method: "get", query: query }, options));
650
537
  };
651
- this.generateUserNoteMetricsForBoard = function (tenant_id, board_id) {
652
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes/metrics"), {
653
- method: "post",
654
- });
538
+ this.generateUserNoteMetricsForBoard = function (tenant_id, board_id, options) {
539
+ if (options === void 0) { options = {}; }
540
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/boards/").concat(board_id, "/notes/metrics"), __assign({ method: "post" }, options));
655
541
  };
656
- this.deleteUserNoteById = function (tenant_id, user_note_id) {
657
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), {
658
- method: "delete",
659
- });
542
+ this.deleteUserNoteById = function (tenant_id, user_note_id, options) {
543
+ if (options === void 0) { options = {}; }
544
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id), __assign({ method: "delete" }, options));
660
545
  };
661
- this.linkUserNoteToTicket = function (tenant_id, user_note_id, body) {
662
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), {
663
- method: "post",
664
- body: JSON.stringify(body),
665
- headers: {
546
+ this.linkUserNoteToTicket = function (tenant_id, user_note_id, body, options) {
547
+ if (options === void 0) { options = {}; }
548
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notes/").concat(user_note_id, "/link"), __assign({ method: "post", body: JSON.stringify(body), headers: {
666
549
  "content-type": "application/json",
667
- },
668
- raw: true,
669
- });
550
+ }, raw: true }, options));
670
551
  };
671
- this.bulkUpdateTickets = function (tenant_id, body) {
672
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/bulk/tickets"), {
673
- method: "put",
674
- body: JSON.stringify(body),
675
- headers: {
552
+ this.bulkUpdateTickets = function (tenant_id, body, options) {
553
+ if (options === void 0) { options = {}; }
554
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/bulk/tickets"), __assign({ method: "put", body: JSON.stringify(body), headers: {
676
555
  "content-type": "application/json",
677
- },
678
- raw: true,
679
- });
556
+ }, raw: true }, options));
680
557
  };
681
- this.getTicketById = function (tenant_id, ticket_id) {
682
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
683
- method: "get",
684
- });
558
+ this.getTicketById = function (tenant_id, ticket_id, options) {
559
+ if (options === void 0) { options = {}; }
560
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "get" }, options));
685
561
  };
686
- this.updateTicketById = function (tenant_id, ticket_id, body) {
687
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
688
- method: "put",
689
- body: JSON.stringify(body),
690
- headers: {
562
+ this.updateTicketById = function (tenant_id, ticket_id, body, options) {
563
+ if (options === void 0) { options = {}; }
564
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
691
565
  "content-type": "application/json",
692
- },
693
- });
566
+ } }, options));
694
567
  };
695
- this.deleteTicketById = function (tenant_id, ticket_id) {
696
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), {
697
- method: "delete",
698
- });
568
+ this.deleteTicketById = function (tenant_id, ticket_id, options) {
569
+ if (options === void 0) { options = {}; }
570
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id), __assign({ method: "delete" }, options));
699
571
  };
700
- this.deleteAttachmentForTicketById = function (tenant_id, ticket_id, ticket_attachment_id) {
701
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments/").concat(ticket_attachment_id), {
702
- method: "delete",
703
- });
572
+ this.deleteAttachmentForTicketById = function (tenant_id, ticket_id, ticket_attachment_id, options) {
573
+ if (options === void 0) { options = {}; }
574
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/attachments/").concat(ticket_attachment_id), __assign({ method: "delete" }, options));
704
575
  };
705
- this.updateReleaseForTicketById = function (tenant_id, ticket_id, body) {
706
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), {
707
- method: "put",
708
- body: JSON.stringify(body),
709
- headers: {
576
+ this.updateReleaseForTicketById = function (tenant_id, ticket_id, body, options) {
577
+ if (options === void 0) { options = {}; }
578
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), __assign({ method: "put", body: JSON.stringify(body), headers: {
710
579
  "content-type": "application/json",
711
- },
712
- });
580
+ } }, options));
713
581
  };
714
- this.removeReleaseFromTicketById = function (tenant_id, ticket_id) {
715
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), {
716
- method: "delete",
717
- });
582
+ this.removeReleaseFromTicketById = function (tenant_id, ticket_id, options) {
583
+ if (options === void 0) { options = {}; }
584
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/release"), __assign({ method: "delete" }, options));
718
585
  };
719
- this.voteForTicketById = function (tenant_id, ticket_id) {
720
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), {
721
- method: "post",
722
- });
586
+ this.voteForTicketById = function (tenant_id, ticket_id, options) {
587
+ if (options === void 0) { options = {}; }
588
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), __assign({ method: "post" }, options));
723
589
  };
724
- this.removeVoteForTicketById = function (tenant_id, ticket_id) {
725
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), {
726
- method: "delete",
727
- });
590
+ this.removeVoteForTicketById = function (tenant_id, ticket_id, options) {
591
+ if (options === void 0) { options = {}; }
592
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/tickets/").concat(ticket_id, "/vote"), __assign({ method: "delete" }, options));
728
593
  };
729
- this.generateNextReleaseVersionInfoForTenantById = function (tenant_id, body) {
730
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), {
731
- method: "post",
732
- body: JSON.stringify(body),
733
- headers: {
594
+ this.generateNextReleaseVersionInfoForTenantById = function (tenant_id, body, options) {
595
+ if (options === void 0) { options = {}; }
596
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/version-info"), __assign({ method: "post", body: JSON.stringify(body), headers: {
734
597
  "content-type": "application/json",
735
- },
736
- });
598
+ } }, options));
737
599
  };
738
- this.createReleaseForTenantById = function (tenant_id, body) {
739
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
740
- method: "post",
741
- body: JSON.stringify(body),
742
- headers: {
600
+ this.createReleaseForTenantById = function (tenant_id, body, options) {
601
+ if (options === void 0) { options = {}; }
602
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), __assign({ method: "post", body: JSON.stringify(body), headers: {
743
603
  "content-type": "application/json",
744
- },
745
- });
604
+ } }, options));
746
605
  };
747
- this.paginateReleasesForTenantById = function (tenant_id, query) {
748
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), {
749
- method: "get",
750
- query: query,
751
- });
606
+ this.paginateReleasesForTenantById = function (tenant_id, query, options) {
607
+ if (options === void 0) { options = {}; }
608
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases"), __assign({ method: "get", query: query }, options));
752
609
  };
753
- this.getReleaseForTenantById = function (tenant_id, release_id) {
754
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
755
- method: "get",
756
- });
610
+ this.getReleaseForTenantById = function (tenant_id, release_id, options) {
611
+ if (options === void 0) { options = {}; }
612
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "get" }, options));
757
613
  };
758
- this.updateReleaseForTenantById = function (tenant_id, release_id, body) {
759
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
760
- method: "put",
761
- body: JSON.stringify(body),
762
- headers: {
614
+ this.updateReleaseForTenantById = function (tenant_id, release_id, body, options) {
615
+ if (options === void 0) { options = {}; }
616
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
763
617
  "content-type": "application/json",
764
- },
765
- });
618
+ } }, options));
766
619
  };
767
- this.deleteReleaseForTenantById = function (tenant_id, release_id) {
768
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), {
769
- method: "delete",
770
- });
620
+ this.deleteReleaseForTenantById = function (tenant_id, release_id, options) {
621
+ if (options === void 0) { options = {}; }
622
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id), __assign({ method: "delete" }, options));
771
623
  };
772
- this.cutReleaseForTenantById = function (tenant_id, release_id) {
773
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/release"), {
774
- method: "post",
775
- });
624
+ this.cutReleaseForTenantById = function (tenant_id, release_id, options) {
625
+ if (options === void 0) { options = {}; }
626
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/release"), __assign({ method: "post" }, options));
776
627
  };
777
- this.createReleaseItemForReleaseById = function (tenant_id, release_id, body) {
778
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/items"), {
779
- method: "post",
780
- body: JSON.stringify(body),
781
- headers: {
628
+ this.createReleaseItemForReleaseById = function (tenant_id, release_id, body, options) {
629
+ if (options === void 0) { options = {}; }
630
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/releases/").concat(release_id, "/items"), __assign({ method: "post", body: JSON.stringify(body), headers: {
782
631
  "content-type": "application/json",
783
- },
784
- });
632
+ } }, options));
785
633
  };
786
- this.getAppInfoForTenantApplication = function (tenant_id, application_id, query) {
787
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), {
788
- method: "get",
789
- query: query,
790
- });
634
+ this.getAppInfoForTenantApplication = function (tenant_id, application_id, query, options) {
635
+ if (options === void 0) { options = {}; }
636
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/app-info"), __assign({ method: "get", query: query }, options));
791
637
  };
792
- this.paginateTicketsForApplication = function (tenant_id, application_id, query) {
793
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), {
794
- method: "get",
795
- query: query,
796
- });
638
+ this.paginateTicketsForApplication = function (tenant_id, application_id, query, options) {
639
+ if (options === void 0) { options = {}; }
640
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/tickets"), __assign({ method: "get", query: query }, options));
797
641
  };
798
- this.getRoadmapForTenantApplication = function (tenant_id, application_id) {
799
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/roadmap"), {
800
- method: "get",
801
- });
642
+ this.getRoadmapForTenantApplication = function (tenant_id, application_id, options) {
643
+ if (options === void 0) { options = {}; }
644
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/roadmap"), __assign({ method: "get" }, options));
802
645
  };
803
- this.paginateReleasesForTenantApplication = function (tenant_id, application_id, query) {
804
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), {
805
- method: "get",
806
- query: query,
807
- });
646
+ this.paginateReleasesForTenantApplication = function (tenant_id, application_id, query, options) {
647
+ if (options === void 0) { options = {}; }
648
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases"), __assign({ method: "get", query: query }, options));
808
649
  };
809
- this.getReleaseForTenantApplication = function (tenant_id, application_id, release_id) {
810
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), {
811
- method: "get",
812
- });
650
+ this.getReleaseForTenantApplication = function (tenant_id, application_id, release_id, options) {
651
+ if (options === void 0) { options = {}; }
652
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/releases/").concat(release_id), __assign({ method: "get" }, options));
813
653
  };
814
- this.createVersionForTenantApplication = function (tenant_id, application_id, body) {
815
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
816
- method: "post",
817
- body: JSON.stringify(body),
818
- headers: {
654
+ this.createVersionForTenantApplication = function (tenant_id, application_id, body, options) {
655
+ if (options === void 0) { options = {}; }
656
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), __assign({ method: "post", body: JSON.stringify(body), headers: {
819
657
  "content-type": "application/json",
820
- },
821
- });
658
+ } }, options));
822
659
  };
823
- this.listVersionsForTenantApplication = function (tenant_id, application_id) {
824
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), {
825
- method: "get",
826
- });
660
+ this.listVersionsForTenantApplication = function (tenant_id, application_id, options) {
661
+ if (options === void 0) { options = {}; }
662
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions"), __assign({ method: "get" }, options));
827
663
  };
828
- this.getTenantApplicationVersionById = function (tenant_id, application_id, app_version_id) {
829
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
830
- method: "get",
831
- });
664
+ this.getTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, options) {
665
+ if (options === void 0) { options = {}; }
666
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "get" }, options));
832
667
  };
833
- this.updateTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, body) {
834
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
835
- method: "put",
836
- body: JSON.stringify(body),
837
- headers: {
668
+ this.updateTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, body, options) {
669
+ if (options === void 0) { options = {}; }
670
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
838
671
  "content-type": "application/json",
839
- },
840
- });
672
+ } }, options));
841
673
  };
842
- this.deleteTenantApplicationVersionById = function (tenant_id, application_id, app_version_id) {
843
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), {
844
- method: "delete",
845
- });
674
+ this.deleteTenantApplicationVersionById = function (tenant_id, application_id, app_version_id, options) {
675
+ if (options === void 0) { options = {}; }
676
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/versions/").concat(app_version_id), __assign({ method: "delete" }, options));
846
677
  };
847
- this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body) {
848
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), {
849
- method: "post",
850
- body: JSON.stringify(body),
851
- headers: {
678
+ this.updateApnsConfigurationForTenantApplication = function (tenant_id, application_id, body, options) {
679
+ if (options === void 0) { options = {}; }
680
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), __assign({ method: "post", body: JSON.stringify(body), headers: {
852
681
  "content-type": "application/json",
853
- },
854
- });
682
+ } }, options));
855
683
  };
856
- this.getApnsConfigurationForTenantApplication = function (tenant_id, application_id) {
857
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), {
858
- method: "get",
859
- });
684
+ this.getApnsConfigurationForTenantApplication = function (tenant_id, application_id, options) {
685
+ if (options === void 0) { options = {}; }
686
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/apns"), __assign({ method: "get" }, options));
860
687
  };
861
- this.getInboxItemsForTenantUser = function (tenant_id, query) {
862
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items"), {
863
- method: "get",
864
- query: query,
865
- });
688
+ this.getInboxItemsForTenantUser = function (tenant_id, query, options) {
689
+ if (options === void 0) { options = {}; }
690
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items"), __assign({ method: "get", query: query }, options));
866
691
  };
867
- this.readInboxItemsForTenantUser = function (tenant_id, body) {
868
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items/read"), {
869
- method: "post",
870
- body: JSON.stringify(body),
871
- headers: {
692
+ this.readInboxItemsForTenantUser = function (tenant_id, body, options) {
693
+ if (options === void 0) { options = {}; }
694
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/inbox/items/read"), __assign({ method: "post", body: JSON.stringify(body), headers: {
872
695
  "content-type": "application/json",
873
- },
874
- raw: true,
875
- });
696
+ }, raw: true }, options));
876
697
  };
877
- this.createNotificationTemplate = function (tenant_id, body) {
878
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), {
879
- method: "post",
880
- body: JSON.stringify(body),
881
- headers: {
698
+ this.createNotificationTemplate = function (tenant_id, body, options) {
699
+ if (options === void 0) { options = {}; }
700
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), __assign({ method: "post", body: JSON.stringify(body), headers: {
882
701
  "content-type": "application/json",
883
- },
884
- });
702
+ } }, options));
885
703
  };
886
- this.paginateNotificationTemplatesForTenantById = function (tenant_id, query) {
887
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), {
888
- method: "get",
889
- query: query,
890
- });
704
+ this.paginateNotificationTemplatesForTenantById = function (tenant_id, query, options) {
705
+ if (options === void 0) { options = {}; }
706
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates"), __assign({ method: "get", query: query }, options));
891
707
  };
892
- this.getNotificationTemplateById = function (tenant_id, notification_template_id, query) {
893
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
894
- method: "get",
895
- query: query,
896
- });
708
+ this.getNotificationTemplateById = function (tenant_id, notification_template_id, query, options) {
709
+ if (options === void 0) { options = {}; }
710
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "get", query: query }, options));
897
711
  };
898
- this.updateNotificationTemplateById = function (tenant_id, notification_template_id, body) {
899
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
900
- method: "put",
901
- body: JSON.stringify(body),
902
- headers: {
712
+ this.updateNotificationTemplateById = function (tenant_id, notification_template_id, body, options) {
713
+ if (options === void 0) { options = {}; }
714
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
903
715
  "content-type": "application/json",
904
- },
905
- });
716
+ } }, options));
906
717
  };
907
- this.deleteNotificationTemplateById = function (tenant_id, notification_template_id) {
908
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), {
909
- method: "delete",
910
- });
718
+ this.deleteNotificationTemplateById = function (tenant_id, notification_template_id, options) {
719
+ if (options === void 0) { options = {}; }
720
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id), __assign({ method: "delete" }, options));
911
721
  };
912
- this.createChannelForNotificationTemplate = function (tenant_id, notification_template_id, body) {
913
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels"), {
914
- method: "post",
915
- body: JSON.stringify(body),
916
- headers: {
722
+ this.createChannelForNotificationTemplate = function (tenant_id, notification_template_id, body, options) {
723
+ if (options === void 0) { options = {}; }
724
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels"), __assign({ method: "post", body: JSON.stringify(body), headers: {
917
725
  "content-type": "application/json",
918
- },
919
- });
726
+ } }, options));
920
727
  };
921
- this.updateChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, body) {
922
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
923
- method: "put",
924
- body: JSON.stringify(body),
925
- headers: {
728
+ this.updateChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, body, options) {
729
+ if (options === void 0) { options = {}; }
730
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
926
731
  "content-type": "application/json",
927
- },
928
- });
732
+ } }, options));
929
733
  };
930
- this.deleteChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id) {
931
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), {
932
- method: "delete",
933
- });
734
+ this.deleteChannelForNotificationTemplate = function (tenant_id, notification_template_id, channel_id, options) {
735
+ if (options === void 0) { options = {}; }
736
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/notifications/templates/").concat(notification_template_id, "/channels/").concat(channel_id), __assign({ method: "delete" }, options));
934
737
  };
935
- this.loginUserForTenant = function (tenant_id) {
936
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/login"), {
937
- method: "post",
938
- });
738
+ this.checkSubdomainAvailability = function (body, options) {
739
+ if (options === void 0) { options = {}; }
740
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/subdomains/availability"), __assign({ method: "post", body: JSON.stringify(body), headers: {
741
+ "content-type": "application/json",
742
+ } }, options));
939
743
  };
940
- this.getTenantUserInfo = function (tenant_id) {
941
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/user-info"), {
942
- method: "get",
943
- });
744
+ this.loginUserForTenant = function (tenant_id, options) {
745
+ if (options === void 0) { options = {}; }
746
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/login"), __assign({ method: "post" }, options));
944
747
  };
945
- this.logoutUserForTenant = function (tenant_id) {
946
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/logout"), {
947
- method: "post",
948
- });
748
+ this.getTenantUserInfo = function (tenant_id, options) {
749
+ if (options === void 0) { options = {}; }
750
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/user-info"), __assign({ method: "get" }, options));
949
751
  };
950
- this.getClientForTenantApplication = function (tenant_id, application_id) {
951
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), {
952
- method: "get",
953
- });
752
+ this.logoutUserForTenant = function (tenant_id, options) {
753
+ if (options === void 0) { options = {}; }
754
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/auth/logout"), __assign({ method: "post" }, options));
954
755
  };
955
- this.createClientForTenantApplication = function (tenant_id, application_id) {
956
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), {
957
- method: "post",
958
- });
756
+ this.getClientForTenantApplication = function (tenant_id, application_id, options) {
757
+ if (options === void 0) { options = {}; }
758
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "get" }, options));
959
759
  };
960
- this.updateClientForTenantApplication = function (tenant_id, application_id, body) {
961
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), {
962
- method: "put",
963
- body: JSON.stringify(body),
964
- headers: {
760
+ this.createClientForTenantApplication = function (tenant_id, application_id, options) {
761
+ if (options === void 0) { options = {}; }
762
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "post" }, options));
763
+ };
764
+ this.updateClientForTenantApplication = function (tenant_id, application_id, body, options) {
765
+ if (options === void 0) { options = {}; }
766
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "put", body: JSON.stringify(body), headers: {
965
767
  "content-type": "application/json",
966
- },
967
- });
768
+ } }, options));
968
769
  };
969
- this.deleteClientForTenantApplication = function (tenant_id, application_id) {
970
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), {
971
- method: "delete",
972
- });
770
+ this.deleteClientForTenantApplication = function (tenant_id, application_id, options) {
771
+ if (options === void 0) { options = {}; }
772
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id, "/client"), __assign({ method: "delete" }, options));
973
773
  };
974
- this.createApplicationForTenantById = function (tenant_id, body) {
975
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
976
- method: "post",
977
- body: JSON.stringify(body),
978
- headers: {
774
+ this.createApplicationForTenantById = function (tenant_id, body, options) {
775
+ if (options === void 0) { options = {}; }
776
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __assign({ method: "post", body: JSON.stringify(body), headers: {
979
777
  "content-type": "application/json",
980
- },
981
- });
778
+ } }, options));
982
779
  };
983
- this.paginateApplicationsForTenantById = function (tenant_id, query) {
984
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), {
985
- method: "get",
986
- query: query,
987
- });
780
+ this.paginateApplicationsForTenantById = function (tenant_id, query, options) {
781
+ if (options === void 0) { options = {}; }
782
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications"), __assign({ method: "get", query: query }, options));
988
783
  };
989
- this.getApplicationByIdForTenantById = function (tenant_id, application_id) {
990
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
991
- method: "get",
992
- });
784
+ this.getApplicationByIdForTenantById = function (tenant_id, application_id, options) {
785
+ if (options === void 0) { options = {}; }
786
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "get" }, options));
993
787
  };
994
- this.updateApplicationByIdForTenantById = function (tenant_id, application_id, body) {
995
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
996
- method: "put",
997
- body: JSON.stringify(body),
998
- headers: {
788
+ this.updateApplicationByIdForTenantById = function (tenant_id, application_id, body, options) {
789
+ if (options === void 0) { options = {}; }
790
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
999
791
  "content-type": "application/json",
1000
- },
1001
- });
792
+ } }, options));
1002
793
  };
1003
- this.deleteApplicationByIdForTenantById = function (tenant_id, application_id) {
1004
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), {
1005
- method: "delete",
1006
- });
794
+ this.deleteApplicationByIdForTenantById = function (tenant_id, application_id, options) {
795
+ if (options === void 0) { options = {}; }
796
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/applications/").concat(application_id), __assign({ method: "delete" }, options));
1007
797
  };
1008
- this.getTenantForApiKeyById = function (api_key_id) {
1009
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/tenant"), {
1010
- method: "get",
1011
- });
798
+ this.getTenantForApiKeyById = function (api_key_id, options) {
799
+ if (options === void 0) { options = {}; }
800
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/api-keys/").concat(api_key_id, "/tenant"), __assign({ method: "get" }, options));
1012
801
  };
1013
- this.acceptInvitationByCode = function (invitation_code) {
1014
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/invitations/").concat(invitation_code, "/accept"), {
1015
- method: "post",
1016
- });
802
+ this.acceptInvitationByCode = function (invitation_code, options) {
803
+ if (options === void 0) { options = {}; }
804
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/invitations/").concat(invitation_code, "/accept"), __assign({ method: "post" }, options));
1017
805
  };
1018
- this.deleteApiKeyForTenantById = function (tenant_id, api_key_id) {
1019
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys/").concat(api_key_id), {
1020
- method: "delete",
1021
- });
806
+ this.deleteApiKeyForTenantById = function (tenant_id, api_key_id, options) {
807
+ if (options === void 0) { options = {}; }
808
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys/").concat(api_key_id), __assign({ method: "delete" }, options));
1022
809
  };
1023
- this.createApiKeyForTenantById = function (tenant_id, body) {
1024
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), {
1025
- method: "post",
1026
- body: JSON.stringify(body),
1027
- headers: {
810
+ this.createApiKeyForTenantById = function (tenant_id, body, options) {
811
+ if (options === void 0) { options = {}; }
812
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1028
813
  "content-type": "application/json",
1029
- },
1030
- });
814
+ } }, options));
1031
815
  };
1032
- this.getApiKeysForTenantById = function (tenant_id) {
1033
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), {
1034
- method: "get",
1035
- });
816
+ this.getApiKeysForTenantById = function (tenant_id, options) {
817
+ if (options === void 0) { options = {}; }
818
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/api-keys"), __assign({ method: "get" }, options));
1036
819
  };
1037
- this.listConnectedAppsForTenantById = function (tenant_id, query) {
1038
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps"), {
1039
- method: "get",
1040
- query: query,
1041
- });
820
+ this.listConnectedAppsForTenantById = function (tenant_id, query, options) {
821
+ if (options === void 0) { options = {}; }
822
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps"), __assign({ method: "get", query: query }, options));
1042
823
  };
1043
- this.updateConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, body) {
1044
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), {
1045
- method: "put",
1046
- body: JSON.stringify(body),
1047
- headers: {
824
+ this.updateConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, body, options) {
825
+ if (options === void 0) { options = {}; }
826
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1048
827
  "content-type": "application/json",
1049
- },
1050
- });
828
+ } }, options));
1051
829
  };
1052
- this.deleteConnectedAppConnectionById = function (tenant_id, connected_app_connection_id) {
1053
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), {
1054
- method: "delete",
1055
- });
830
+ this.deleteConnectedAppConnectionById = function (tenant_id, connected_app_connection_id, options) {
831
+ if (options === void 0) { options = {}; }
832
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/connections/").concat(connected_app_connection_id), __assign({ method: "delete" }, options));
1056
833
  };
1057
- this.createConnectionForConnectedApp = function (tenant_id, connected_app_id, body) {
1058
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), {
1059
- method: "post",
1060
- body: JSON.stringify(body),
1061
- headers: {
834
+ this.createConnectionForConnectedApp = function (tenant_id, connected_app_id, body, options) {
835
+ if (options === void 0) { options = {}; }
836
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/connected-apps/").concat(connected_app_id, "/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1062
837
  "content-type": "application/json",
1063
- },
1064
- });
838
+ } }, options));
1065
839
  };
1066
- this.listIntegrationsForTenantById = function (tenant_id, query) {
1067
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations"), {
1068
- method: "get",
1069
- query: query,
1070
- });
840
+ this.listIntegrationsForTenantById = function (tenant_id, query, options) {
841
+ if (options === void 0) { options = {}; }
842
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations"), __assign({ method: "get", query: query }, options));
1071
843
  };
1072
- this.updateIntegrationConnectionById = function (tenant_id, integration_connection_id, body) {
1073
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), {
1074
- method: "put",
1075
- body: JSON.stringify(body),
1076
- headers: {
844
+ this.updateIntegrationConnectionById = function (tenant_id, integration_connection_id, body, options) {
845
+ if (options === void 0) { options = {}; }
846
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1077
847
  "content-type": "application/json",
1078
- },
1079
- });
848
+ } }, options));
1080
849
  };
1081
- this.deleteIntegrationConnectionById = function (tenant_id, integration_connection_id) {
1082
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), {
1083
- method: "delete",
1084
- });
850
+ this.deleteIntegrationConnectionById = function (tenant_id, integration_connection_id, options) {
851
+ if (options === void 0) { options = {}; }
852
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id), __assign({ method: "delete" }, options));
1085
853
  };
1086
- this.updateDataForIntegrationConnectionById = function (tenant_id, integration_connection_id, body) {
1087
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id, "/data"), {
1088
- method: "put",
1089
- body: JSON.stringify(body),
1090
- headers: {
854
+ this.updateDataForIntegrationConnectionById = function (tenant_id, integration_connection_id, body, options) {
855
+ if (options === void 0) { options = {}; }
856
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/connections/").concat(integration_connection_id, "/data"), __assign({ method: "put", body: JSON.stringify(body), headers: {
1091
857
  "content-type": "application/json",
1092
- },
1093
- });
858
+ } }, options));
1094
859
  };
1095
- this.createConnectionForIntegration = function (tenant_id, integration_id, body) {
1096
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/").concat(integration_id, "/connections"), {
1097
- method: "post",
1098
- body: JSON.stringify(body),
1099
- headers: {
860
+ this.createConnectionForIntegration = function (tenant_id, integration_id, body, options) {
861
+ if (options === void 0) { options = {}; }
862
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/integrations/").concat(integration_id, "/connections"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1100
863
  "content-type": "application/json",
1101
- },
1102
- });
864
+ } }, options));
1103
865
  };
1104
- this.getInvitationsForTenantById = function (tenant_id) {
1105
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
1106
- method: "get",
1107
- });
866
+ this.getInvitationsForTenantById = function (tenant_id, options) {
867
+ if (options === void 0) { options = {}; }
868
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), __assign({ method: "get" }, options));
1108
869
  };
1109
- this.createInvitationForTenantById = function (tenant_id, body) {
1110
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), {
1111
- method: "post",
1112
- body: JSON.stringify(body),
1113
- headers: {
870
+ this.createInvitationForTenantById = function (tenant_id, body, options) {
871
+ if (options === void 0) { options = {}; }
872
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/invitations"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1114
873
  "content-type": "application/json",
1115
- },
1116
- });
874
+ } }, options));
1117
875
  };
1118
- this.getTeamMembersForTenantById = function (tenant_id) {
1119
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), {
1120
- method: "get",
1121
- });
876
+ this.getTeamMembersForTenantById = function (tenant_id, options) {
877
+ if (options === void 0) { options = {}; }
878
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members"), __assign({ method: "get" }, options));
1122
879
  };
1123
- this.deleteTeamMemberForTenantById = function (tenant_id, team_member_id) {
1124
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), {
1125
- method: "delete",
1126
- });
880
+ this.deleteTeamMemberForTenantById = function (tenant_id, team_member_id, options) {
881
+ if (options === void 0) { options = {}; }
882
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/team-members/").concat(team_member_id), __assign({ method: "delete" }, options));
1127
883
  };
1128
- this.getUserForTenantById = function (tenant_id, user_id, query) {
1129
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), {
1130
- method: "get",
1131
- query: query,
1132
- });
884
+ this.getUserForTenantById = function (tenant_id, user_id, query, options) {
885
+ if (options === void 0) { options = {}; }
886
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "get", query: query }, options));
1133
887
  };
1134
- this.updateUserForTenantById = function (tenant_id, user_id, body) {
1135
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), {
1136
- method: "put",
1137
- body: JSON.stringify(body),
1138
- headers: {
888
+ this.updateUserForTenantById = function (tenant_id, user_id, body, options) {
889
+ if (options === void 0) { options = {}; }
890
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1139
891
  "content-type": "application/json",
1140
- },
1141
- });
892
+ } }, options));
1142
893
  };
1143
- this.deleteUserForTenantById = function (tenant_id, user_id) {
1144
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), {
1145
- method: "delete",
1146
- });
894
+ this.deleteUserForTenantById = function (tenant_id, user_id, options) {
895
+ if (options === void 0) { options = {}; }
896
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users/").concat(user_id), __assign({ method: "delete" }, options));
1147
897
  };
1148
- this.createUserForTenantById = function (tenant_id, body) {
1149
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), {
1150
- method: "post",
1151
- body: JSON.stringify(body),
1152
- headers: {
898
+ this.createUserForTenantById = function (tenant_id, body, options) {
899
+ if (options === void 0) { options = {}; }
900
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1153
901
  "content-type": "application/json",
1154
- },
1155
- });
902
+ } }, options));
1156
903
  };
1157
- this.paginateTenantUsersForTenantById = function (tenant_id, query) {
1158
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), {
1159
- method: "get",
1160
- query: query,
1161
- });
904
+ this.paginateTenantUsersForTenantById = function (tenant_id, query, options) {
905
+ if (options === void 0) { options = {}; }
906
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id, "/users"), __assign({ method: "get", query: query }, options));
1162
907
  };
1163
- this.getTenantById = function (tenant_id, query) {
1164
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), {
1165
- method: "get",
1166
- query: query,
1167
- });
908
+ this.getTenantById = function (tenant_id, query, options) {
909
+ if (options === void 0) { options = {}; }
910
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "get", query: query }, options));
1168
911
  };
1169
- this.updateTenantById = function (tenant_id, body) {
1170
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), {
1171
- method: "put",
1172
- body: JSON.stringify(body),
1173
- headers: {
912
+ this.updateTenantById = function (tenant_id, body, options) {
913
+ if (options === void 0) { options = {}; }
914
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1174
915
  "content-type": "application/json",
1175
- },
1176
- });
916
+ } }, options));
1177
917
  };
1178
- this.deleteTenantById = function (tenant_id) {
1179
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), {
1180
- method: "delete",
1181
- });
918
+ this.deleteTenantById = function (tenant_id, options) {
919
+ if (options === void 0) { options = {}; }
920
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants/").concat(tenant_id), __assign({ method: "delete" }, options));
1182
921
  };
1183
- this.createTenant = function (body) {
1184
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants"), {
1185
- method: "post",
1186
- body: JSON.stringify(body),
1187
- headers: {
922
+ this.createTenant = function (body, options) {
923
+ if (options === void 0) { options = {}; }
924
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/tenants"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1188
925
  "content-type": "application/json",
1189
- },
1190
- });
926
+ } }, options));
1191
927
  };
1192
- this.createTenantForUserById = function (user_id, body) {
1193
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), {
1194
- method: "post",
1195
- body: JSON.stringify(body),
1196
- headers: {
928
+ this.createTenantForUserById = function (user_id, body, options) {
929
+ if (options === void 0) { options = {}; }
930
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1197
931
  "content-type": "application/json",
1198
- },
1199
- });
932
+ } }, options));
1200
933
  };
1201
- this.getTenantsForUserById = function (user_id) {
1202
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), {
1203
- method: "get",
1204
- });
934
+ this.getTenantsForUserById = function (user_id, options) {
935
+ if (options === void 0) { options = {}; }
936
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id, "/tenants"), __assign({ method: "get" }, options));
1205
937
  };
1206
- this.getUserById = function (user_id) {
1207
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), {
1208
- method: "get",
1209
- });
938
+ this.getUserById = function (user_id, options) {
939
+ if (options === void 0) { options = {}; }
940
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "get" }, options));
1210
941
  };
1211
- this.updateUserById = function (user_id, body) {
1212
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), {
1213
- method: "put",
1214
- body: JSON.stringify(body),
1215
- headers: {
942
+ this.updateUserById = function (user_id, body, options) {
943
+ if (options === void 0) { options = {}; }
944
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "put", body: JSON.stringify(body), headers: {
1216
945
  "content-type": "application/json",
1217
- },
1218
- });
946
+ } }, options));
1219
947
  };
1220
- this.deleteUserById = function (user_id) {
1221
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), {
1222
- method: "delete",
1223
- });
948
+ this.deleteUserById = function (user_id, options) {
949
+ if (options === void 0) { options = {}; }
950
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users/").concat(user_id), __assign({ method: "delete" }, options));
1224
951
  };
1225
- this.createUser = function (body) {
1226
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
1227
- method: "post",
1228
- body: JSON.stringify(body),
1229
- headers: {
952
+ this.createUser = function (body, options) {
953
+ if (options === void 0) { options = {}; }
954
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), __assign({ method: "post", body: JSON.stringify(body), headers: {
1230
955
  "content-type": "application/json",
1231
- },
1232
- });
956
+ } }, options));
1233
957
  };
1234
- this.listUsers = function (query) {
1235
- return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), {
1236
- method: "get",
1237
- query: query,
1238
- });
958
+ this.listUsers = function (query, options) {
959
+ if (options === void 0) { options = {}; }
960
+ return _this.http.execute("".concat(_this.options.baseUrl, "/v1/users"), __assign({ method: "get", query: query }, options));
1239
961
  };
1240
962
  }
1241
963
  return ParraAPI;