@devrev/typescript-sdk 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgEnvironment = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.CustomSchemaFragmentsSetRequestType = exports.ConversationsCreateRequestTypeValue = void 0;
36
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.ConversationsCreateRequestTypeValue = void 0;
37
37
  var ConversationsCreateRequestTypeValue;
38
38
  (function (ConversationsCreateRequestTypeValue) {
39
39
  ConversationsCreateRequestTypeValue["Support"] = "support";
@@ -44,10 +44,34 @@ var CustomSchemaFragmentsSetRequestType;
44
44
  CustomSchemaFragmentsSetRequestType["CustomTypeFragment"] = "custom_type_fragment";
45
45
  CustomSchemaFragmentsSetRequestType["TenantFragment"] = "tenant_fragment";
46
46
  })(CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsSetRequestType || (exports.CustomSchemaFragmentsSetRequestType = {}));
47
+ /** Type of date filter. */
48
+ var DateFilterType;
49
+ (function (DateFilterType) {
50
+ DateFilterType["Preset"] = "preset";
51
+ DateFilterType["Range"] = "range";
52
+ })(DateFilterType = exports.DateFilterType || (exports.DateFilterType = {}));
53
+ /** Type of date preset. */
54
+ var DateTimePresetType;
55
+ (function (DateTimePresetType) {
56
+ DateTimePresetType["LastNDays"] = "last_n_days";
57
+ DateTimePresetType["NextNDays"] = "next_n_days";
58
+ })(DateTimePresetType = exports.DateTimePresetType || (exports.DateTimePresetType = {}));
59
+ /** Type of engagement. */
60
+ var EngagementType;
61
+ (function (EngagementType) {
62
+ EngagementType["Call"] = "call";
63
+ EngagementType["Default"] = "default";
64
+ EngagementType["Email"] = "email";
65
+ EngagementType["LinkedIn"] = "linked_in";
66
+ EngagementType["Meeting"] = "meeting";
67
+ EngagementType["Offline"] = "offline";
68
+ EngagementType["Survey"] = "survey";
69
+ })(EngagementType = exports.EngagementType || (exports.EngagementType = {}));
47
70
  /** The type of engagement. */
48
71
  var EngagementsCreateRequestEngagementType;
49
72
  (function (EngagementsCreateRequestEngagementType) {
50
73
  EngagementsCreateRequestEngagementType["Call"] = "call";
74
+ EngagementsCreateRequestEngagementType["Default"] = "default";
51
75
  EngagementsCreateRequestEngagementType["Email"] = "email";
52
76
  EngagementsCreateRequestEngagementType["LinkedIn"] = "linked_in";
53
77
  EngagementsCreateRequestEngagementType["Offline"] = "offline";
@@ -102,6 +126,7 @@ var LinkEndpointType;
102
126
  LinkEndpointType["Issue"] = "issue";
103
127
  LinkEndpointType["Opportunity"] = "opportunity";
104
128
  LinkEndpointType["Product"] = "product";
129
+ LinkEndpointType["Task"] = "task";
105
130
  LinkEndpointType["Ticket"] = "ticket";
106
131
  })(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
107
132
  /** Type of link used to define the relationship. */
@@ -157,6 +182,24 @@ var MetricDefinitionMetricType;
157
182
  MetricDefinitionMetricType["Time"] = "time";
158
183
  MetricDefinitionMetricType["Value"] = "value";
159
184
  })(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
185
+ /** Forecast category of the opportunity. */
186
+ var OpportunityForecastCategory;
187
+ (function (OpportunityForecastCategory) {
188
+ OpportunityForecastCategory["BestCase"] = "best_case";
189
+ OpportunityForecastCategory["Commit"] = "commit";
190
+ OpportunityForecastCategory["MostLikely"] = "most_likely";
191
+ OpportunityForecastCategory["Omitted"] = "omitted";
192
+ OpportunityForecastCategory["Pipeline"] = "pipeline";
193
+ OpportunityForecastCategory["Won"] = "won";
194
+ })(OpportunityForecastCategory = exports.OpportunityForecastCategory || (exports.OpportunityForecastCategory = {}));
195
+ /** Priority of the opportunity. */
196
+ var OpportunityPriority;
197
+ (function (OpportunityPriority) {
198
+ OpportunityPriority["P0"] = "p0";
199
+ OpportunityPriority["P1"] = "p1";
200
+ OpportunityPriority["P2"] = "p2";
201
+ OpportunityPriority["P3"] = "p3";
202
+ })(OpportunityPriority = exports.OpportunityPriority || (exports.OpportunityPriority = {}));
160
203
  /** The environment of the Org. Defaults to 'production' if not specified. */
161
204
  var OrgEnvironment;
162
205
  (function (OrgEnvironment) {
@@ -164,8 +207,31 @@ var OrgEnvironment;
164
207
  OrgEnvironment["Staging"] = "staging";
165
208
  OrgEnvironment["Test"] = "test";
166
209
  })(OrgEnvironment = exports.OrgEnvironment || (exports.OrgEnvironment = {}));
210
+ /**
211
+ * Status determines how an item can be used. In 'draft' status an item
212
+ * can be edited but can't be used. When 'published' the item can longer
213
+ * be edited but can be used. 'Archived' is read-only.
214
+ */
215
+ var OrgScheduleFragmentStatus;
216
+ (function (OrgScheduleFragmentStatus) {
217
+ OrgScheduleFragmentStatus["Archived"] = "archived";
218
+ OrgScheduleFragmentStatus["Draft"] = "draft";
219
+ OrgScheduleFragmentStatus["Published"] = "published";
220
+ })(OrgScheduleFragmentStatus = exports.OrgScheduleFragmentStatus || (exports.OrgScheduleFragmentStatus = {}));
221
+ /**
222
+ * Status determines how an item can be used. In 'draft' status an item
223
+ * can be edited but can't be used. When 'published' the item can longer
224
+ * be edited but can be used. 'Archived' is read-only.
225
+ */
226
+ var OrgScheduleStatus;
227
+ (function (OrgScheduleStatus) {
228
+ OrgScheduleStatus["Archived"] = "archived";
229
+ OrgScheduleStatus["Draft"] = "draft";
230
+ OrgScheduleStatus["Published"] = "published";
231
+ })(OrgScheduleStatus = exports.OrgScheduleStatus || (exports.OrgScheduleStatus = {}));
167
232
  var OrgType;
168
233
  (function (OrgType) {
234
+ OrgType["Account"] = "account";
169
235
  OrgType["RevOrg"] = "rev_org";
170
236
  })(OrgType = exports.OrgType || (exports.OrgType = {}));
171
237
  var PartType;
@@ -179,6 +245,7 @@ var SchemaFieldDescriptorArrayTypeBaseType;
179
245
  (function (SchemaFieldDescriptorArrayTypeBaseType) {
180
246
  SchemaFieldDescriptorArrayTypeBaseType["Bool"] = "bool";
181
247
  SchemaFieldDescriptorArrayTypeBaseType["Composite"] = "composite";
248
+ SchemaFieldDescriptorArrayTypeBaseType["Date"] = "date";
182
249
  SchemaFieldDescriptorArrayTypeBaseType["Double"] = "double";
183
250
  SchemaFieldDescriptorArrayTypeBaseType["Enum"] = "enum";
184
251
  SchemaFieldDescriptorArrayTypeBaseType["Id"] = "id";
@@ -193,6 +260,7 @@ var SchemaFieldDescriptorFieldType;
193
260
  SchemaFieldDescriptorFieldType["Array"] = "array";
194
261
  SchemaFieldDescriptorFieldType["Bool"] = "bool";
195
262
  SchemaFieldDescriptorFieldType["Composite"] = "composite";
263
+ SchemaFieldDescriptorFieldType["Date"] = "date";
196
264
  SchemaFieldDescriptorFieldType["Double"] = "double";
197
265
  SchemaFieldDescriptorFieldType["Enum"] = "enum";
198
266
  SchemaFieldDescriptorFieldType["Id"] = "id";
@@ -281,6 +349,23 @@ var TimelineEntriesCreateRequestType;
281
349
  (function (TimelineEntriesCreateRequestType) {
282
350
  TimelineEntriesCreateRequestType["TimelineComment"] = "timeline_comment";
283
351
  })(TimelineEntriesCreateRequestType = exports.TimelineEntriesCreateRequestType || (exports.TimelineEntriesCreateRequestType = {}));
352
+ /** The type of object that the Timeline entry belongs to. */
353
+ var TimelineEntryObjectType;
354
+ (function (TimelineEntryObjectType) {
355
+ TimelineEntryObjectType["Account"] = "account";
356
+ TimelineEntryObjectType["Capability"] = "capability";
357
+ TimelineEntryObjectType["Conversation"] = "conversation";
358
+ TimelineEntryObjectType["Enhancement"] = "enhancement";
359
+ TimelineEntryObjectType["Feature"] = "feature";
360
+ TimelineEntryObjectType["Issue"] = "issue";
361
+ TimelineEntryObjectType["Opportunity"] = "opportunity";
362
+ TimelineEntryObjectType["Product"] = "product";
363
+ TimelineEntryObjectType["RevOrg"] = "rev_org";
364
+ TimelineEntryObjectType["RevUser"] = "rev_user";
365
+ TimelineEntryObjectType["Task"] = "task";
366
+ TimelineEntryObjectType["Ticket"] = "ticket";
367
+ TimelineEntryObjectType["TimelineComment"] = "timeline_comment";
368
+ })(TimelineEntryObjectType = exports.TimelineEntryObjectType || (exports.TimelineEntryObjectType = {}));
284
369
  var TimelineEntryType;
285
370
  (function (TimelineEntryType) {
286
371
  TimelineEntryType["TimelineComment"] = "timeline_comment";
@@ -312,12 +397,14 @@ var UserType;
312
397
  (function (UserType) {
313
398
  UserType["DevUser"] = "dev_user";
314
399
  UserType["RevUser"] = "rev_user";
400
+ UserType["ServiceAccount"] = "service_account";
315
401
  UserType["SysUser"] = "sys_user";
316
402
  })(UserType = exports.UserType || (exports.UserType = {}));
317
403
  var WorkType;
318
404
  (function (WorkType) {
319
405
  WorkType["Issue"] = "issue";
320
406
  WorkType["Opportunity"] = "opportunity";
407
+ WorkType["Task"] = "task";
321
408
  WorkType["Ticket"] = "ticket";
322
409
  })(WorkType = exports.WorkType || (exports.WorkType = {}));
323
410
  const axios_1 = __importDefault(require("axios"));
@@ -337,7 +424,7 @@ class HttpClient {
337
424
  };
338
425
  this.request = (_b) => __awaiter(this, void 0, void 0, function* () {
339
426
  var { secure, path, type, query, format, body } = _b, params = __rest(_b, ["secure", "path", "type", "query", "format", "body"]);
340
- const secureParams = ((typeof secure === "boolean" ? secure : this.secure) &&
427
+ const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
341
428
  this.securityWorker &&
342
429
  (yield this.securityWorker(this.securityData))) ||
343
430
  {};
@@ -346,20 +433,20 @@ class HttpClient {
346
433
  if (type === ContentType.FormData &&
347
434
  body &&
348
435
  body !== null &&
349
- typeof body === "object") {
436
+ typeof body === 'object') {
350
437
  body = this.createFormData(body);
351
438
  }
352
439
  if (type === ContentType.Text &&
353
440
  body &&
354
441
  body !== null &&
355
- typeof body !== "string") {
442
+ typeof body !== 'string') {
356
443
  body = JSON.stringify(body);
357
444
  }
358
445
  return this.instance.request(Object.assign(Object.assign({}, requestParams), { headers: Object.assign(Object.assign({}, (requestParams.headers || {})), (type && type !== ContentType.FormData
359
- ? { "Content-Type": type }
446
+ ? { 'Content-Type': type }
360
447
  : {})), params: query, responseType: responseFormat, data: body, url: path }));
361
448
  });
362
- this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || "{protocol}://{hostname}" }));
449
+ this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || '{protocol}://{hostname}' }));
363
450
  this.secure = secure;
364
451
  this.format = format;
365
452
  this.securityWorker = securityWorker;
@@ -371,7 +458,7 @@ class HttpClient {
371
458
  {})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
372
459
  }
373
460
  stringifyFormItem(formItem) {
374
- if (typeof formItem === "object" && formItem !== null) {
461
+ if (typeof formItem === 'object' && formItem !== null) {
375
462
  return JSON.stringify(formItem);
376
463
  }
377
464
  else {
@@ -409,7 +496,7 @@ class Api extends HttpClient {
409
496
  * @request POST:/accounts.create
410
497
  * @secure
411
498
  */
412
- this.accountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
499
+ this.accountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
413
500
  /**
414
501
  * @description Deletes an account.
415
502
  *
@@ -418,7 +505,7 @@ class Api extends HttpClient {
418
505
  * @request POST:/accounts.delete
419
506
  * @secure
420
507
  */
421
- this.accountsDelete = (data, params = {}) => this.request(Object.assign({ path: `/accounts.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
508
+ this.accountsDelete = (data, params = {}) => this.request(Object.assign({ path: `/accounts.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
422
509
  /**
423
510
  * @description Exports a collection of accounts.
424
511
  *
@@ -427,7 +514,16 @@ class Api extends HttpClient {
427
514
  * @request GET:/accounts.export
428
515
  * @secure
429
516
  */
430
- this.accountsExport = (query, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method: "GET", query: query, secure: true, format: "json" }, params));
517
+ this.accountsExport = (query, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
518
+ /**
519
+ * @description Exports a collection of accounts.
520
+ *
521
+ * @tags accounts
522
+ * @name AccountsExportPost
523
+ * @request POST:/accounts.export
524
+ * @secure
525
+ */
526
+ this.accountsExportPost = (data, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
431
527
  /**
432
528
  * @description Retrieves an account's information.
433
529
  *
@@ -436,7 +532,16 @@ class Api extends HttpClient {
436
532
  * @request GET:/accounts.get
437
533
  * @secure
438
534
  */
439
- this.accountsGet = (query, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method: "GET", query: query, secure: true, format: "json" }, params));
535
+ this.accountsGet = (query, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
536
+ /**
537
+ * @description Retrieves an account's information.
538
+ *
539
+ * @tags accounts
540
+ * @name AccountsGetPost
541
+ * @request POST:/accounts.get
542
+ * @secure
543
+ */
544
+ this.accountsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
440
545
  /**
441
546
  * @description Gets a list of accounts.
442
547
  *
@@ -445,7 +550,16 @@ class Api extends HttpClient {
445
550
  * @request GET:/accounts.list
446
551
  * @secure
447
552
  */
448
- this.accountsList = (query, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method: "GET", query: query, secure: true, format: "json" }, params));
553
+ this.accountsList = (query, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
554
+ /**
555
+ * @description Gets a list of accounts.
556
+ *
557
+ * @tags accounts
558
+ * @name AccountsListPost
559
+ * @request POST:/accounts.list
560
+ * @secure
561
+ */
562
+ this.accountsListPost = (data, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
449
563
  /**
450
564
  * @description Updates an account's information.
451
565
  *
@@ -454,7 +568,7 @@ class Api extends HttpClient {
454
568
  * @request POST:/accounts.update
455
569
  * @secure
456
570
  */
457
- this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
571
+ this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
458
572
  /**
459
573
  * @description Creates a conversation.
460
574
  *
@@ -463,7 +577,7 @@ class Api extends HttpClient {
463
577
  * @request POST:/conversations.create
464
578
  * @secure
465
579
  */
466
- this.conversationsCreate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
580
+ this.conversationsCreate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
467
581
  /**
468
582
  * @description Deletes the requested conversation.
469
583
  *
@@ -472,7 +586,7 @@ class Api extends HttpClient {
472
586
  * @request POST:/conversations.delete
473
587
  * @secure
474
588
  */
475
- this.conversationsDelete = (data, params = {}) => this.request(Object.assign({ path: `/conversations.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
589
+ this.conversationsDelete = (data, params = {}) => this.request(Object.assign({ path: `/conversations.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
476
590
  /**
477
591
  * @description Exports a collection of conversation items.
478
592
  *
@@ -481,7 +595,16 @@ class Api extends HttpClient {
481
595
  * @request GET:/conversations.export
482
596
  * @secure
483
597
  */
484
- this.conversationsExport = (query, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method: "GET", query: query, secure: true, format: "json" }, params));
598
+ this.conversationsExport = (query, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
599
+ /**
600
+ * @description Exports a collection of conversation items.
601
+ *
602
+ * @tags conversations
603
+ * @name ConversationsExportPost
604
+ * @request POST:/conversations.export
605
+ * @secure
606
+ */
607
+ this.conversationsExportPost = (data, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
485
608
  /**
486
609
  * @description Gets the requested conversation's information.
487
610
  *
@@ -490,7 +613,16 @@ class Api extends HttpClient {
490
613
  * @request GET:/conversations.get
491
614
  * @secure
492
615
  */
493
- this.conversationsGet = (query, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method: "GET", query: query, secure: true, format: "json" }, params));
616
+ this.conversationsGet = (query, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
617
+ /**
618
+ * @description Gets the requested conversation's information.
619
+ *
620
+ * @tags conversations
621
+ * @name ConversationsGetPost
622
+ * @request POST:/conversations.get
623
+ * @secure
624
+ */
625
+ this.conversationsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
494
626
  /**
495
627
  * @description Lists the available conversations.
496
628
  *
@@ -499,7 +631,16 @@ class Api extends HttpClient {
499
631
  * @request GET:/conversations.list
500
632
  * @secure
501
633
  */
502
- this.conversationsList = (query, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method: "GET", query: query, secure: true, format: "json" }, params));
634
+ this.conversationsList = (query, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
635
+ /**
636
+ * @description Lists the available conversations.
637
+ *
638
+ * @tags conversations
639
+ * @name ConversationsListPost
640
+ * @request POST:/conversations.list
641
+ * @secure
642
+ */
643
+ this.conversationsListPost = (data, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
503
644
  /**
504
645
  * @description Updates the requested conversation.
505
646
  *
@@ -508,7 +649,7 @@ class Api extends HttpClient {
508
649
  * @request POST:/conversations.update
509
650
  * @secure
510
651
  */
511
- this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
652
+ this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
512
653
  /**
513
654
  * @description Counts the engagement records.
514
655
  *
@@ -517,7 +658,16 @@ class Api extends HttpClient {
517
658
  * @request GET:/engagements.count
518
659
  * @secure
519
660
  */
520
- this.engagementsCount = (query, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method: "GET", query: query, secure: true, format: "json" }, params));
661
+ this.engagementsCount = (query, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method: 'GET', query: query, secure: true, format: 'json' }, params));
662
+ /**
663
+ * @description Counts the engagement records.
664
+ *
665
+ * @tags engagements
666
+ * @name EngagementsCountPost
667
+ * @request POST:/engagements.count
668
+ * @secure
669
+ */
670
+ this.engagementsCountPost = (data, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
521
671
  /**
522
672
  * @description Creates a new engagement record.
523
673
  *
@@ -526,7 +676,7 @@ class Api extends HttpClient {
526
676
  * @request POST:/engagements.create
527
677
  * @secure
528
678
  */
529
- this.engagementsCreate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
679
+ this.engagementsCreate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
530
680
  /**
531
681
  * @description Deletes the engagement record.
532
682
  *
@@ -535,7 +685,7 @@ class Api extends HttpClient {
535
685
  * @request POST:/engagements.delete
536
686
  * @secure
537
687
  */
538
- this.engagementsDelete = (data, params = {}) => this.request(Object.assign({ path: `/engagements.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
688
+ this.engagementsDelete = (data, params = {}) => this.request(Object.assign({ path: `/engagements.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
539
689
  /**
540
690
  * @description Gets the engagement record.
541
691
  *
@@ -544,7 +694,16 @@ class Api extends HttpClient {
544
694
  * @request GET:/engagements.get
545
695
  * @secure
546
696
  */
547
- this.engagementsGet = (query, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method: "GET", query: query, secure: true, format: "json" }, params));
697
+ this.engagementsGet = (query, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
698
+ /**
699
+ * @description Gets the engagement record.
700
+ *
701
+ * @tags engagements
702
+ * @name EngagementsGetPost
703
+ * @request POST:/engagements.get
704
+ * @secure
705
+ */
706
+ this.engagementsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
548
707
  /**
549
708
  * @description Lists the engagement records.
550
709
  *
@@ -553,7 +712,16 @@ class Api extends HttpClient {
553
712
  * @request GET:/engagements.list
554
713
  * @secure
555
714
  */
556
- this.engagementsList = (query, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method: "GET", query: query, secure: true, format: "json" }, params));
715
+ this.engagementsList = (query, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
716
+ /**
717
+ * @description Lists the engagement records.
718
+ *
719
+ * @tags engagements
720
+ * @name EngagementsListPost
721
+ * @request POST:/engagements.list
722
+ * @secure
723
+ */
724
+ this.engagementsListPost = (data, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
557
725
  /**
558
726
  * @description Updates the engagement record.
559
727
  *
@@ -562,7 +730,7 @@ class Api extends HttpClient {
562
730
  * @request POST:/engagements.update
563
731
  * @secure
564
732
  */
565
- this.engagementsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
733
+ this.engagementsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
566
734
  /**
567
735
  * @description Schedules an event to be published to the specified event source.
568
736
  *
@@ -571,7 +739,7 @@ class Api extends HttpClient {
571
739
  * @request POST:/event-sources.schedule
572
740
  * @secure
573
741
  */
574
- this.eventSourcesScheduleEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.schedule`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
742
+ this.eventSourcesScheduleEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.schedule`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
575
743
  /**
576
744
  * @description Deletes an event scheduled for the specified event source.
577
745
  *
@@ -580,7 +748,7 @@ class Api extends HttpClient {
580
748
  * @request POST:/event-sources.unschedule
581
749
  * @secure
582
750
  */
583
- this.eventSourcesDeleteScheduledEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.unschedule`, method: "POST", body: data, secure: true, type: ContentType.Json }, params));
751
+ this.eventSourcesDeleteScheduledEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.unschedule`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
584
752
  /**
585
753
  * @description Creates a link between two objects to indicate a relationship.
586
754
  *
@@ -589,7 +757,7 @@ class Api extends HttpClient {
589
757
  * @request POST:/links.create
590
758
  * @secure
591
759
  */
592
- this.linksCreate = (data, params = {}) => this.request(Object.assign({ path: `/links.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
760
+ this.linksCreate = (data, params = {}) => this.request(Object.assign({ path: `/links.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
593
761
  /**
594
762
  * @description Deletes a link.
595
763
  *
@@ -598,7 +766,7 @@ class Api extends HttpClient {
598
766
  * @request POST:/links.delete
599
767
  * @secure
600
768
  */
601
- this.linksDelete = (data, params = {}) => this.request(Object.assign({ path: `/links.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
769
+ this.linksDelete = (data, params = {}) => this.request(Object.assign({ path: `/links.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
602
770
  /**
603
771
  * @description Gets the requested link's information.
604
772
  *
@@ -607,7 +775,16 @@ class Api extends HttpClient {
607
775
  * @request GET:/links.get
608
776
  * @secure
609
777
  */
610
- this.linksGet = (query, params = {}) => this.request(Object.assign({ path: `/links.get`, method: "GET", query: query, secure: true, format: "json" }, params));
778
+ this.linksGet = (query, params = {}) => this.request(Object.assign({ path: `/links.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
779
+ /**
780
+ * @description Gets the requested link's information.
781
+ *
782
+ * @tags links
783
+ * @name LinksGetPost
784
+ * @request POST:/links.get
785
+ * @secure
786
+ */
787
+ this.linksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/links.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
611
788
  /**
612
789
  * @description Lists the available links.
613
790
  *
@@ -616,7 +793,16 @@ class Api extends HttpClient {
616
793
  * @request GET:/links.list
617
794
  * @secure
618
795
  */
619
- this.linksList = (query, params = {}) => this.request(Object.assign({ path: `/links.list`, method: "GET", query: query, secure: true, format: "json" }, params));
796
+ this.linksList = (query, params = {}) => this.request(Object.assign({ path: `/links.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
797
+ /**
798
+ * @description Lists the available links.
799
+ *
800
+ * @tags links
801
+ * @name LinksListPost
802
+ * @request POST:/links.list
803
+ * @secure
804
+ */
805
+ this.linksListPost = (data, params = {}) => this.request(Object.assign({ path: `/links.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
620
806
  /**
621
807
  * @description Lists metric definitions matching a filter.
622
808
  *
@@ -625,7 +811,124 @@ class Api extends HttpClient {
625
811
  * @request GET:/metric-definitions.list
626
812
  * @secure
627
813
  */
628
- this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: "GET", query: query, secure: true, format: "json" }, params));
814
+ this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
815
+ /**
816
+ * @description Lists metric definitions matching a filter.
817
+ *
818
+ * @tags slas
819
+ * @name MetricDefinitionsListPost
820
+ * @request POST:/metric-definitions.list
821
+ * @secure
822
+ */
823
+ this.metricDefinitionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
824
+ /**
825
+ * @description Creates an organization schedule fragment.
826
+ *
827
+ * @tags schedules
828
+ * @name OrgScheduleFragmentsCreate
829
+ * @request POST:/org-schedule-fragments.create
830
+ * @secure
831
+ */
832
+ this.orgScheduleFragmentsCreate = (data, params = {}) => this.request(Object.assign({ path: `/org-schedule-fragments.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
833
+ /**
834
+ * @description Gets an organization schedule fragment.
835
+ *
836
+ * @tags schedules
837
+ * @name OrgScheduleFragmentsGet
838
+ * @request GET:/org-schedule-fragments.get
839
+ * @secure
840
+ */
841
+ this.orgScheduleFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/org-schedule-fragments.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
842
+ /**
843
+ * @description Gets an organization schedule fragment.
844
+ *
845
+ * @tags schedules
846
+ * @name OrgScheduleFragmentsGetPost
847
+ * @request POST:/org-schedule-fragments.get
848
+ * @secure
849
+ */
850
+ this.orgScheduleFragmentsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/org-schedule-fragments.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
851
+ /**
852
+ * @description Changes stage of an organization schedule fragment.
853
+ *
854
+ * @tags schedules
855
+ * @name OrgScheduleFragmentsTransition
856
+ * @request POST:/org-schedule-fragments.transition
857
+ * @secure
858
+ */
859
+ this.orgScheduleFragmentsTransition = (data, params = {}) => this.request(Object.assign({ path: `/org-schedule-fragments.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
860
+ /**
861
+ * @description Creates an organization schedule with a default weekly organization schedule and a list of organization schedule fragments.
862
+ *
863
+ * @tags schedules
864
+ * @name OrgSchedulesCreate
865
+ * @request POST:/org-schedules.create
866
+ * @secure
867
+ */
868
+ this.orgSchedulesCreate = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
869
+ /**
870
+ * @description Gets an organization schedule.
871
+ *
872
+ * @tags schedules
873
+ * @name OrgSchedulesGet
874
+ * @request GET:/org-schedules.get
875
+ * @secure
876
+ */
877
+ this.orgSchedulesGet = (query, params = {}) => this.request(Object.assign({ path: `/org-schedules.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
878
+ /**
879
+ * @description Gets an organization schedule.
880
+ *
881
+ * @tags schedules
882
+ * @name OrgSchedulesGetPost
883
+ * @request POST:/org-schedules.get
884
+ * @secure
885
+ */
886
+ this.orgSchedulesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
887
+ /**
888
+ * @description Gets list of organization schedules.
889
+ *
890
+ * @tags schedules
891
+ * @name OrgSchedulesList
892
+ * @request GET:/org-schedules.list
893
+ * @secure
894
+ */
895
+ this.orgSchedulesList = (query, params = {}) => this.request(Object.assign({ path: `/org-schedules.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
896
+ /**
897
+ * @description Gets list of organization schedules.
898
+ *
899
+ * @tags schedules
900
+ * @name OrgSchedulesListPost
901
+ * @request POST:/org-schedules.list
902
+ * @secure
903
+ */
904
+ this.orgSchedulesListPost = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
905
+ /**
906
+ * @description Sets next organization schedule fragment which must begin the day the last existing fragment ends.
907
+ *
908
+ * @tags schedules
909
+ * @name OrgSchedulesSetFuture
910
+ * @request POST:/org-schedules.set-future
911
+ * @secure
912
+ */
913
+ this.orgSchedulesSetFuture = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.set-future`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
914
+ /**
915
+ * @description Publishes or archives an organization schedule.
916
+ *
917
+ * @tags schedules
918
+ * @name OrgSchedulesTransition
919
+ * @request POST:/org-schedules.transition
920
+ * @secure
921
+ */
922
+ this.orgSchedulesTransition = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
923
+ /**
924
+ * @description Updates an organization schedule.
925
+ *
926
+ * @tags schedules
927
+ * @name OrgSchedulesUpdate
928
+ * @request POST:/org-schedules.update
929
+ * @secure
930
+ */
931
+ this.orgSchedulesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
629
932
  /**
630
933
  * @description Creates a Rev organization in the authenticated user's Dev organization.
631
934
  *
@@ -634,7 +937,7 @@ class Api extends HttpClient {
634
937
  * @request POST:/rev-orgs.create
635
938
  * @secure
636
939
  */
637
- this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
940
+ this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
638
941
  /**
639
942
  * @description Retrieves the Rev organization's information.
640
943
  *
@@ -643,7 +946,16 @@ class Api extends HttpClient {
643
946
  * @request GET:/rev-orgs.get
644
947
  * @secure
645
948
  */
646
- this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: "GET", query: query, secure: true, format: "json" }, params));
949
+ this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
950
+ /**
951
+ * @description Retrieves the Rev organization's information.
952
+ *
953
+ * @tags rev-orgs
954
+ * @name RevOrgsGetPost
955
+ * @request POST:/rev-orgs.get
956
+ * @secure
957
+ */
958
+ this.revOrgsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
647
959
  /**
648
960
  * @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
649
961
  *
@@ -652,7 +964,16 @@ class Api extends HttpClient {
652
964
  * @request GET:/rev-orgs.list
653
965
  * @secure
654
966
  */
655
- this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: "GET", query: query, secure: true, format: "json" }, params));
967
+ this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
968
+ /**
969
+ * @description Gets the list of Rev organizations' information belonging to the authenticated user's Dev Organization which the user is also authorized to access.
970
+ *
971
+ * @tags rev-orgs
972
+ * @name RevOrgsListPost
973
+ * @request POST:/rev-orgs.list
974
+ * @secure
975
+ */
976
+ this.revOrgsListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
656
977
  /**
657
978
  * @description Updates the Rev organization's information.
658
979
  *
@@ -661,7 +982,7 @@ class Api extends HttpClient {
661
982
  * @request POST:/rev-orgs.update
662
983
  * @secure
663
984
  */
664
- this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
985
+ this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
665
986
  /**
666
987
  * @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
667
988
  *
@@ -670,7 +991,7 @@ class Api extends HttpClient {
670
991
  * @request POST:/rev-users.create
671
992
  * @secure
672
993
  */
673
- this.revUsersCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
994
+ this.revUsersCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
674
995
  /**
675
996
  * @description Deletes a Rev user.
676
997
  *
@@ -679,7 +1000,7 @@ class Api extends HttpClient {
679
1000
  * @request POST:/rev-users.delete
680
1001
  * @secure
681
1002
  */
682
- this.revUsersDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1003
+ this.revUsersDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
683
1004
  /**
684
1005
  * @description Returns the Rev user of a Rev organization by its ID.
685
1006
  *
@@ -688,7 +1009,16 @@ class Api extends HttpClient {
688
1009
  * @request GET:/rev-users.get
689
1010
  * @secure
690
1011
  */
691
- this.revUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method: "GET", query: query, secure: true, format: "json" }, params));
1012
+ this.revUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1013
+ /**
1014
+ * @description Returns the Rev user of a Rev organization by its ID.
1015
+ *
1016
+ * @tags rev-users
1017
+ * @name RevUsersGetPost
1018
+ * @request POST:/rev-users.get
1019
+ * @secure
1020
+ */
1021
+ this.revUsersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
692
1022
  /**
693
1023
  * @description Links a rev user to a rev org.
694
1024
  *
@@ -697,7 +1027,7 @@ class Api extends HttpClient {
697
1027
  * @request POST:/rev-users.link
698
1028
  * @secure
699
1029
  */
700
- this.linkRevUserToRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.link`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1030
+ this.linkRevUserToRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.link`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
701
1031
  /**
702
1032
  * @description Returns a list of all Rev Users belonging to the authenticated user's Dev Organization.
703
1033
  *
@@ -706,7 +1036,16 @@ class Api extends HttpClient {
706
1036
  * @request GET:/rev-users.list
707
1037
  * @secure
708
1038
  */
709
- this.revUsersList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1039
+ this.revUsersList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1040
+ /**
1041
+ * @description Returns a list of all Rev Users belonging to the authenticated user's Dev Organization.
1042
+ *
1043
+ * @tags rev-users
1044
+ * @name RevUsersListPost
1045
+ * @request POST:/rev-users.list
1046
+ * @secure
1047
+ */
1048
+ this.revUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
710
1049
  /**
711
1050
  * @description Unlinks a rev user from a rev org.
712
1051
  *
@@ -715,7 +1054,7 @@ class Api extends HttpClient {
715
1054
  * @request POST:/rev-users.unlink
716
1055
  * @secure
717
1056
  */
718
- this.unlinkRevUserFromRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.unlink`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1057
+ this.unlinkRevUserFromRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.unlink`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
719
1058
  /**
720
1059
  * @description Updates a Rev user.
721
1060
  *
@@ -724,7 +1063,7 @@ class Api extends HttpClient {
724
1063
  * @request POST:/rev-users.update
725
1064
  * @secure
726
1065
  */
727
- this.revUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1066
+ this.revUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
728
1067
  /**
729
1068
  * @description Gets the aggregated schema.
730
1069
  *
@@ -733,7 +1072,16 @@ class Api extends HttpClient {
733
1072
  * @request GET:/schemas.aggregated.get
734
1073
  * @secure
735
1074
  */
736
- this.aggregatedSchemaGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method: "GET", query: query, secure: true, format: "json" }, params));
1075
+ this.aggregatedSchemaGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1076
+ /**
1077
+ * @description Gets the aggregated schema.
1078
+ *
1079
+ * @tags customization
1080
+ * @name AggregatedSchemaGetPost
1081
+ * @request POST:/schemas.aggregated.get
1082
+ * @secure
1083
+ */
1084
+ this.aggregatedSchemaGetPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
737
1085
  /**
738
1086
  * @description Gets a custom schema fragment.
739
1087
  *
@@ -742,7 +1090,16 @@ class Api extends HttpClient {
742
1090
  * @request GET:/schemas.custom.get
743
1091
  * @secure
744
1092
  */
745
- this.customSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method: "GET", query: query, secure: true, format: "json" }, params));
1093
+ this.customSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1094
+ /**
1095
+ * @description Gets a custom schema fragment.
1096
+ *
1097
+ * @tags customization
1098
+ * @name CustomSchemaFragmentsGetPost
1099
+ * @request POST:/schemas.custom.get
1100
+ * @secure
1101
+ */
1102
+ this.customSchemaFragmentsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
746
1103
  /**
747
1104
  * @description Lists custom schema fragments.
748
1105
  *
@@ -751,7 +1108,16 @@ class Api extends HttpClient {
751
1108
  * @request GET:/schemas.custom.list
752
1109
  * @secure
753
1110
  */
754
- this.customSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1111
+ this.customSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1112
+ /**
1113
+ * @description Lists custom schema fragments.
1114
+ *
1115
+ * @tags customization
1116
+ * @name CustomSchemaFragmentsListPost
1117
+ * @request POST:/schemas.custom.list
1118
+ * @secure
1119
+ */
1120
+ this.customSchemaFragmentsListPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
755
1121
  /**
756
1122
  * @description Creates or updates a custom schema fragment.
757
1123
  *
@@ -760,7 +1126,7 @@ class Api extends HttpClient {
760
1126
  * @request POST:/schemas.custom.set
761
1127
  * @secure
762
1128
  */
763
- this.customSchemaFragmentsSet = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.set`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1129
+ this.customSchemaFragmentsSet = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.set`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
764
1130
  /**
765
1131
  * @description Lists subtypes.
766
1132
  *
@@ -769,7 +1135,34 @@ class Api extends HttpClient {
769
1135
  * @request GET:/schemas.subtypes.list
770
1136
  * @secure
771
1137
  */
772
- this.subtypesList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1138
+ this.subtypesList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1139
+ /**
1140
+ * @description Lists subtypes.
1141
+ *
1142
+ * @tags customization
1143
+ * @name SubtypesListPost
1144
+ * @request POST:/schemas.subtypes.list
1145
+ * @secure
1146
+ */
1147
+ this.subtypesListPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1148
+ /**
1149
+ * @description Gets a service account.
1150
+ *
1151
+ * @tags service-accounts
1152
+ * @name ServiceAccountsGet
1153
+ * @request GET:/service-accounts.get
1154
+ * @secure
1155
+ */
1156
+ this.serviceAccountsGet = (query, params = {}) => this.request(Object.assign({ path: `/service-accounts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1157
+ /**
1158
+ * @description Gets a service account.
1159
+ *
1160
+ * @tags service-accounts
1161
+ * @name ServiceAccountsGetPost
1162
+ * @request POST:/service-accounts.get
1163
+ * @secure
1164
+ */
1165
+ this.serviceAccountsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/service-accounts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
773
1166
  /**
774
1167
  * @description Assigns the SLA to a set of Rev organizations.
775
1168
  *
@@ -778,7 +1171,7 @@ class Api extends HttpClient {
778
1171
  * @request POST:/slas.assign
779
1172
  * @secure
780
1173
  */
781
- this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1174
+ this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
782
1175
  /**
783
1176
  * @description Creates an SLA in draft status.
784
1177
  *
@@ -787,7 +1180,7 @@ class Api extends HttpClient {
787
1180
  * @request POST:/slas.create
788
1181
  * @secure
789
1182
  */
790
- this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1183
+ this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
791
1184
  /**
792
1185
  * @description Gets an SLA.
793
1186
  *
@@ -796,7 +1189,16 @@ class Api extends HttpClient {
796
1189
  * @request GET:/slas.get
797
1190
  * @secure
798
1191
  */
799
- this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: "GET", query: query, secure: true, format: "json" }, params));
1192
+ this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1193
+ /**
1194
+ * @description Gets an SLA.
1195
+ *
1196
+ * @tags slas
1197
+ * @name SlasGetPost
1198
+ * @request POST:/slas.get
1199
+ * @secure
1200
+ */
1201
+ this.slasGetPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
800
1202
  /**
801
1203
  * @description Lists SLAs matching a filter.
802
1204
  *
@@ -805,7 +1207,16 @@ class Api extends HttpClient {
805
1207
  * @request GET:/slas.list
806
1208
  * @secure
807
1209
  */
808
- this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1210
+ this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1211
+ /**
1212
+ * @description Lists SLAs matching a filter.
1213
+ *
1214
+ * @tags slas
1215
+ * @name SlasListPost
1216
+ * @request POST:/slas.list
1217
+ * @secure
1218
+ */
1219
+ this.slasListPost = (data, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
809
1220
  /**
810
1221
  * @description Changes the status of an SLA.
811
1222
  *
@@ -814,7 +1225,7 @@ class Api extends HttpClient {
814
1225
  * @request POST:/slas.transition
815
1226
  * @secure
816
1227
  */
817
- this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1228
+ this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
818
1229
  /**
819
1230
  * @description Updates a draft SLA.
820
1231
  *
@@ -823,7 +1234,7 @@ class Api extends HttpClient {
823
1234
  * @request POST:/slas.update
824
1235
  * @secure
825
1236
  */
826
- this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1237
+ this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
827
1238
  /**
828
1239
  * @description Lists system users within your organization.
829
1240
  *
@@ -832,7 +1243,16 @@ class Api extends HttpClient {
832
1243
  * @request GET:/sys-users.list
833
1244
  * @secure
834
1245
  */
835
- this.sysUsersList = (query, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1246
+ this.sysUsersList = (query, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1247
+ /**
1248
+ * @description Lists system users within your organization.
1249
+ *
1250
+ * @tags sys-users
1251
+ * @name SysUsersListPost
1252
+ * @request POST:/sys-users.list
1253
+ * @secure
1254
+ */
1255
+ this.sysUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
836
1256
  /**
837
1257
  * @description Updates the system user.
838
1258
  *
@@ -841,7 +1261,7 @@ class Api extends HttpClient {
841
1261
  * @request POST:/sys-users.update
842
1262
  * @secure
843
1263
  */
844
- this.sysUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1264
+ this.sysUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
845
1265
  /**
846
1266
  * @description Creates a new entry on an object's timeline.
847
1267
  *
@@ -850,7 +1270,7 @@ class Api extends HttpClient {
850
1270
  * @request POST:/timeline-entries.create
851
1271
  * @secure
852
1272
  */
853
- this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1273
+ this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
854
1274
  /**
855
1275
  * @description Lists the timeline entries for an object.
856
1276
  *
@@ -859,7 +1279,16 @@ class Api extends HttpClient {
859
1279
  * @request GET:/timeline-entries.list
860
1280
  * @secure
861
1281
  */
862
- this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1282
+ this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1283
+ /**
1284
+ * @description Lists the timeline entries for an object.
1285
+ *
1286
+ * @tags timeline-entries
1287
+ * @name TimelineEntriesListPost
1288
+ * @request POST:/timeline-entries.list
1289
+ * @secure
1290
+ */
1291
+ this.timelineEntriesListPost = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
863
1292
  /**
864
1293
  * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
865
1294
  *
@@ -868,7 +1297,7 @@ class Api extends HttpClient {
868
1297
  * @request POST:/works.create
869
1298
  * @secure
870
1299
  */
871
- this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1300
+ this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
872
1301
  /**
873
1302
  * @description Deletes a work item.
874
1303
  *
@@ -877,7 +1306,7 @@ class Api extends HttpClient {
877
1306
  * @request POST:/works.delete
878
1307
  * @secure
879
1308
  */
880
- this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1309
+ this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
881
1310
  /**
882
1311
  * @description Exports a collection of work items.
883
1312
  *
@@ -886,7 +1315,16 @@ class Api extends HttpClient {
886
1315
  * @request GET:/works.export
887
1316
  * @secure
888
1317
  */
889
- this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: "GET", query: query, secure: true, format: "json" }, params));
1318
+ this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1319
+ /**
1320
+ * @description Exports a collection of work items.
1321
+ *
1322
+ * @tags works
1323
+ * @name WorksExportPost
1324
+ * @request POST:/works.export
1325
+ * @secure
1326
+ */
1327
+ this.worksExportPost = (data, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
890
1328
  /**
891
1329
  * @description Gets a work item's information.
892
1330
  *
@@ -895,7 +1333,16 @@ class Api extends HttpClient {
895
1333
  * @request GET:/works.get
896
1334
  * @secure
897
1335
  */
898
- this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: "GET", query: query, secure: true, format: "json" }, params));
1336
+ this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1337
+ /**
1338
+ * @description Gets a work item's information.
1339
+ *
1340
+ * @tags works
1341
+ * @name WorksGetPost
1342
+ * @request POST:/works.get
1343
+ * @secure
1344
+ */
1345
+ this.worksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
899
1346
  /**
900
1347
  * @description Lists a collection of work items.
901
1348
  *
@@ -904,7 +1351,16 @@ class Api extends HttpClient {
904
1351
  * @request GET:/works.list
905
1352
  * @secure
906
1353
  */
907
- this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: "GET", query: query, secure: true, format: "json" }, params));
1354
+ this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1355
+ /**
1356
+ * @description Lists a collection of work items.
1357
+ *
1358
+ * @tags works
1359
+ * @name WorksListPost
1360
+ * @request POST:/works.list
1361
+ * @secure
1362
+ */
1363
+ this.worksListPost = (data, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
908
1364
  /**
909
1365
  * @description Updates a work item's information.
910
1366
  *
@@ -913,7 +1369,7 @@ class Api extends HttpClient {
913
1369
  * @request POST:/works.update
914
1370
  * @secure
915
1371
  */
916
- this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
1372
+ this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
917
1373
  }
918
1374
  }
919
1375
  exports.Api = Api;