@devrev/typescript-sdk 1.1.4 → 1.1.5
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.CustomSchemaFragmentsSetRequestType = exports.ConversationsCreateRequestTypeValue = void 0;
|
|
37
37
|
var ConversationsCreateRequestTypeValue;
|
|
38
38
|
(function (ConversationsCreateRequestTypeValue) {
|
|
39
39
|
ConversationsCreateRequestTypeValue["Support"] = "support";
|
|
@@ -44,10 +44,22 @@ 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 engagement. */
|
|
48
|
+
var EngagementType;
|
|
49
|
+
(function (EngagementType) {
|
|
50
|
+
EngagementType["Call"] = "call";
|
|
51
|
+
EngagementType["Default"] = "default";
|
|
52
|
+
EngagementType["Email"] = "email";
|
|
53
|
+
EngagementType["LinkedIn"] = "linked_in";
|
|
54
|
+
EngagementType["Meeting"] = "meeting";
|
|
55
|
+
EngagementType["Offline"] = "offline";
|
|
56
|
+
EngagementType["Survey"] = "survey";
|
|
57
|
+
})(EngagementType = exports.EngagementType || (exports.EngagementType = {}));
|
|
47
58
|
/** The type of engagement. */
|
|
48
59
|
var EngagementsCreateRequestEngagementType;
|
|
49
60
|
(function (EngagementsCreateRequestEngagementType) {
|
|
50
61
|
EngagementsCreateRequestEngagementType["Call"] = "call";
|
|
62
|
+
EngagementsCreateRequestEngagementType["Default"] = "default";
|
|
51
63
|
EngagementsCreateRequestEngagementType["Email"] = "email";
|
|
52
64
|
EngagementsCreateRequestEngagementType["LinkedIn"] = "linked_in";
|
|
53
65
|
EngagementsCreateRequestEngagementType["Offline"] = "offline";
|
|
@@ -102,6 +114,7 @@ var LinkEndpointType;
|
|
|
102
114
|
LinkEndpointType["Issue"] = "issue";
|
|
103
115
|
LinkEndpointType["Opportunity"] = "opportunity";
|
|
104
116
|
LinkEndpointType["Product"] = "product";
|
|
117
|
+
LinkEndpointType["Task"] = "task";
|
|
105
118
|
LinkEndpointType["Ticket"] = "ticket";
|
|
106
119
|
})(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
|
|
107
120
|
/** Type of link used to define the relationship. */
|
|
@@ -157,6 +170,24 @@ var MetricDefinitionMetricType;
|
|
|
157
170
|
MetricDefinitionMetricType["Time"] = "time";
|
|
158
171
|
MetricDefinitionMetricType["Value"] = "value";
|
|
159
172
|
})(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
|
|
173
|
+
/** Forecast category of the opportunity. */
|
|
174
|
+
var OpportunityForecastCategory;
|
|
175
|
+
(function (OpportunityForecastCategory) {
|
|
176
|
+
OpportunityForecastCategory["BestCase"] = "best_case";
|
|
177
|
+
OpportunityForecastCategory["Commit"] = "commit";
|
|
178
|
+
OpportunityForecastCategory["MostLikely"] = "most_likely";
|
|
179
|
+
OpportunityForecastCategory["Omitted"] = "omitted";
|
|
180
|
+
OpportunityForecastCategory["Pipeline"] = "pipeline";
|
|
181
|
+
OpportunityForecastCategory["Won"] = "won";
|
|
182
|
+
})(OpportunityForecastCategory = exports.OpportunityForecastCategory || (exports.OpportunityForecastCategory = {}));
|
|
183
|
+
/** Priority of the opportunity. */
|
|
184
|
+
var OpportunityPriority;
|
|
185
|
+
(function (OpportunityPriority) {
|
|
186
|
+
OpportunityPriority["P0"] = "p0";
|
|
187
|
+
OpportunityPriority["P1"] = "p1";
|
|
188
|
+
OpportunityPriority["P2"] = "p2";
|
|
189
|
+
OpportunityPriority["P3"] = "p3";
|
|
190
|
+
})(OpportunityPriority = exports.OpportunityPriority || (exports.OpportunityPriority = {}));
|
|
160
191
|
/** The environment of the Org. Defaults to 'production' if not specified. */
|
|
161
192
|
var OrgEnvironment;
|
|
162
193
|
(function (OrgEnvironment) {
|
|
@@ -164,8 +195,31 @@ var OrgEnvironment;
|
|
|
164
195
|
OrgEnvironment["Staging"] = "staging";
|
|
165
196
|
OrgEnvironment["Test"] = "test";
|
|
166
197
|
})(OrgEnvironment = exports.OrgEnvironment || (exports.OrgEnvironment = {}));
|
|
198
|
+
/**
|
|
199
|
+
* Status determines how an item can be used. In 'draft' status an item
|
|
200
|
+
* can be edited but can't be used. When 'published' the item can longer
|
|
201
|
+
* be edited but can be used. 'Archived' is read-only.
|
|
202
|
+
*/
|
|
203
|
+
var OrgScheduleFragmentStatus;
|
|
204
|
+
(function (OrgScheduleFragmentStatus) {
|
|
205
|
+
OrgScheduleFragmentStatus["Archived"] = "archived";
|
|
206
|
+
OrgScheduleFragmentStatus["Draft"] = "draft";
|
|
207
|
+
OrgScheduleFragmentStatus["Published"] = "published";
|
|
208
|
+
})(OrgScheduleFragmentStatus = exports.OrgScheduleFragmentStatus || (exports.OrgScheduleFragmentStatus = {}));
|
|
209
|
+
/**
|
|
210
|
+
* Status determines how an item can be used. In 'draft' status an item
|
|
211
|
+
* can be edited but can't be used. When 'published' the item can longer
|
|
212
|
+
* be edited but can be used. 'Archived' is read-only.
|
|
213
|
+
*/
|
|
214
|
+
var OrgScheduleStatus;
|
|
215
|
+
(function (OrgScheduleStatus) {
|
|
216
|
+
OrgScheduleStatus["Archived"] = "archived";
|
|
217
|
+
OrgScheduleStatus["Draft"] = "draft";
|
|
218
|
+
OrgScheduleStatus["Published"] = "published";
|
|
219
|
+
})(OrgScheduleStatus = exports.OrgScheduleStatus || (exports.OrgScheduleStatus = {}));
|
|
167
220
|
var OrgType;
|
|
168
221
|
(function (OrgType) {
|
|
222
|
+
OrgType["Account"] = "account";
|
|
169
223
|
OrgType["RevOrg"] = "rev_org";
|
|
170
224
|
})(OrgType = exports.OrgType || (exports.OrgType = {}));
|
|
171
225
|
var PartType;
|
|
@@ -179,6 +233,7 @@ var SchemaFieldDescriptorArrayTypeBaseType;
|
|
|
179
233
|
(function (SchemaFieldDescriptorArrayTypeBaseType) {
|
|
180
234
|
SchemaFieldDescriptorArrayTypeBaseType["Bool"] = "bool";
|
|
181
235
|
SchemaFieldDescriptorArrayTypeBaseType["Composite"] = "composite";
|
|
236
|
+
SchemaFieldDescriptorArrayTypeBaseType["Date"] = "date";
|
|
182
237
|
SchemaFieldDescriptorArrayTypeBaseType["Double"] = "double";
|
|
183
238
|
SchemaFieldDescriptorArrayTypeBaseType["Enum"] = "enum";
|
|
184
239
|
SchemaFieldDescriptorArrayTypeBaseType["Id"] = "id";
|
|
@@ -193,6 +248,7 @@ var SchemaFieldDescriptorFieldType;
|
|
|
193
248
|
SchemaFieldDescriptorFieldType["Array"] = "array";
|
|
194
249
|
SchemaFieldDescriptorFieldType["Bool"] = "bool";
|
|
195
250
|
SchemaFieldDescriptorFieldType["Composite"] = "composite";
|
|
251
|
+
SchemaFieldDescriptorFieldType["Date"] = "date";
|
|
196
252
|
SchemaFieldDescriptorFieldType["Double"] = "double";
|
|
197
253
|
SchemaFieldDescriptorFieldType["Enum"] = "enum";
|
|
198
254
|
SchemaFieldDescriptorFieldType["Id"] = "id";
|
|
@@ -281,6 +337,23 @@ var TimelineEntriesCreateRequestType;
|
|
|
281
337
|
(function (TimelineEntriesCreateRequestType) {
|
|
282
338
|
TimelineEntriesCreateRequestType["TimelineComment"] = "timeline_comment";
|
|
283
339
|
})(TimelineEntriesCreateRequestType = exports.TimelineEntriesCreateRequestType || (exports.TimelineEntriesCreateRequestType = {}));
|
|
340
|
+
/** The type of object that the Timeline entry belongs to. */
|
|
341
|
+
var TimelineEntryObjectType;
|
|
342
|
+
(function (TimelineEntryObjectType) {
|
|
343
|
+
TimelineEntryObjectType["Account"] = "account";
|
|
344
|
+
TimelineEntryObjectType["Capability"] = "capability";
|
|
345
|
+
TimelineEntryObjectType["Conversation"] = "conversation";
|
|
346
|
+
TimelineEntryObjectType["Enhancement"] = "enhancement";
|
|
347
|
+
TimelineEntryObjectType["Feature"] = "feature";
|
|
348
|
+
TimelineEntryObjectType["Issue"] = "issue";
|
|
349
|
+
TimelineEntryObjectType["Opportunity"] = "opportunity";
|
|
350
|
+
TimelineEntryObjectType["Product"] = "product";
|
|
351
|
+
TimelineEntryObjectType["RevOrg"] = "rev_org";
|
|
352
|
+
TimelineEntryObjectType["RevUser"] = "rev_user";
|
|
353
|
+
TimelineEntryObjectType["Task"] = "task";
|
|
354
|
+
TimelineEntryObjectType["Ticket"] = "ticket";
|
|
355
|
+
TimelineEntryObjectType["TimelineComment"] = "timeline_comment";
|
|
356
|
+
})(TimelineEntryObjectType = exports.TimelineEntryObjectType || (exports.TimelineEntryObjectType = {}));
|
|
284
357
|
var TimelineEntryType;
|
|
285
358
|
(function (TimelineEntryType) {
|
|
286
359
|
TimelineEntryType["TimelineComment"] = "timeline_comment";
|
|
@@ -318,6 +391,7 @@ var WorkType;
|
|
|
318
391
|
(function (WorkType) {
|
|
319
392
|
WorkType["Issue"] = "issue";
|
|
320
393
|
WorkType["Opportunity"] = "opportunity";
|
|
394
|
+
WorkType["Task"] = "task";
|
|
321
395
|
WorkType["Ticket"] = "ticket";
|
|
322
396
|
})(WorkType = exports.WorkType || (exports.WorkType = {}));
|
|
323
397
|
const axios_1 = __importDefault(require("axios"));
|
|
@@ -337,7 +411,7 @@ class HttpClient {
|
|
|
337
411
|
};
|
|
338
412
|
this.request = (_b) => __awaiter(this, void 0, void 0, function* () {
|
|
339
413
|
var { secure, path, type, query, format, body } = _b, params = __rest(_b, ["secure", "path", "type", "query", "format", "body"]);
|
|
340
|
-
const secureParams = ((typeof secure ===
|
|
414
|
+
const secureParams = ((typeof secure === 'boolean' ? secure : this.secure) &&
|
|
341
415
|
this.securityWorker &&
|
|
342
416
|
(yield this.securityWorker(this.securityData))) ||
|
|
343
417
|
{};
|
|
@@ -346,20 +420,20 @@ class HttpClient {
|
|
|
346
420
|
if (type === ContentType.FormData &&
|
|
347
421
|
body &&
|
|
348
422
|
body !== null &&
|
|
349
|
-
typeof body ===
|
|
423
|
+
typeof body === 'object') {
|
|
350
424
|
body = this.createFormData(body);
|
|
351
425
|
}
|
|
352
426
|
if (type === ContentType.Text &&
|
|
353
427
|
body &&
|
|
354
428
|
body !== null &&
|
|
355
|
-
typeof body !==
|
|
429
|
+
typeof body !== 'string') {
|
|
356
430
|
body = JSON.stringify(body);
|
|
357
431
|
}
|
|
358
432
|
return this.instance.request(Object.assign(Object.assign({}, requestParams), { headers: Object.assign(Object.assign({}, (requestParams.headers || {})), (type && type !== ContentType.FormData
|
|
359
|
-
? {
|
|
433
|
+
? { 'Content-Type': type }
|
|
360
434
|
: {})), params: query, responseType: responseFormat, data: body, url: path }));
|
|
361
435
|
});
|
|
362
|
-
this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL ||
|
|
436
|
+
this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || '{protocol}://{hostname}' }));
|
|
363
437
|
this.secure = secure;
|
|
364
438
|
this.format = format;
|
|
365
439
|
this.securityWorker = securityWorker;
|
|
@@ -371,7 +445,7 @@ class HttpClient {
|
|
|
371
445
|
{})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
|
|
372
446
|
}
|
|
373
447
|
stringifyFormItem(formItem) {
|
|
374
|
-
if (typeof formItem ===
|
|
448
|
+
if (typeof formItem === 'object' && formItem !== null) {
|
|
375
449
|
return JSON.stringify(formItem);
|
|
376
450
|
}
|
|
377
451
|
else {
|
|
@@ -409,7 +483,7 @@ class Api extends HttpClient {
|
|
|
409
483
|
* @request POST:/accounts.create
|
|
410
484
|
* @secure
|
|
411
485
|
*/
|
|
412
|
-
this.accountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.create`, method:
|
|
486
|
+
this.accountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
413
487
|
/**
|
|
414
488
|
* @description Deletes an account.
|
|
415
489
|
*
|
|
@@ -418,7 +492,7 @@ class Api extends HttpClient {
|
|
|
418
492
|
* @request POST:/accounts.delete
|
|
419
493
|
* @secure
|
|
420
494
|
*/
|
|
421
|
-
this.accountsDelete = (data, params = {}) => this.request(Object.assign({ path: `/accounts.delete`, method:
|
|
495
|
+
this.accountsDelete = (data, params = {}) => this.request(Object.assign({ path: `/accounts.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
422
496
|
/**
|
|
423
497
|
* @description Exports a collection of accounts.
|
|
424
498
|
*
|
|
@@ -427,7 +501,7 @@ class Api extends HttpClient {
|
|
|
427
501
|
* @request GET:/accounts.export
|
|
428
502
|
* @secure
|
|
429
503
|
*/
|
|
430
|
-
this.accountsExport = (query, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method:
|
|
504
|
+
this.accountsExport = (query, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
431
505
|
/**
|
|
432
506
|
* @description Retrieves an account's information.
|
|
433
507
|
*
|
|
@@ -436,7 +510,7 @@ class Api extends HttpClient {
|
|
|
436
510
|
* @request GET:/accounts.get
|
|
437
511
|
* @secure
|
|
438
512
|
*/
|
|
439
|
-
this.accountsGet = (query, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method:
|
|
513
|
+
this.accountsGet = (query, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
440
514
|
/**
|
|
441
515
|
* @description Gets a list of accounts.
|
|
442
516
|
*
|
|
@@ -445,7 +519,7 @@ class Api extends HttpClient {
|
|
|
445
519
|
* @request GET:/accounts.list
|
|
446
520
|
* @secure
|
|
447
521
|
*/
|
|
448
|
-
this.accountsList = (query, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method:
|
|
522
|
+
this.accountsList = (query, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
449
523
|
/**
|
|
450
524
|
* @description Updates an account's information.
|
|
451
525
|
*
|
|
@@ -454,7 +528,7 @@ class Api extends HttpClient {
|
|
|
454
528
|
* @request POST:/accounts.update
|
|
455
529
|
* @secure
|
|
456
530
|
*/
|
|
457
|
-
this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method:
|
|
531
|
+
this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
458
532
|
/**
|
|
459
533
|
* @description Creates a conversation.
|
|
460
534
|
*
|
|
@@ -463,7 +537,7 @@ class Api extends HttpClient {
|
|
|
463
537
|
* @request POST:/conversations.create
|
|
464
538
|
* @secure
|
|
465
539
|
*/
|
|
466
|
-
this.conversationsCreate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.create`, method:
|
|
540
|
+
this.conversationsCreate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
467
541
|
/**
|
|
468
542
|
* @description Deletes the requested conversation.
|
|
469
543
|
*
|
|
@@ -472,7 +546,7 @@ class Api extends HttpClient {
|
|
|
472
546
|
* @request POST:/conversations.delete
|
|
473
547
|
* @secure
|
|
474
548
|
*/
|
|
475
|
-
this.conversationsDelete = (data, params = {}) => this.request(Object.assign({ path: `/conversations.delete`, method:
|
|
549
|
+
this.conversationsDelete = (data, params = {}) => this.request(Object.assign({ path: `/conversations.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
476
550
|
/**
|
|
477
551
|
* @description Exports a collection of conversation items.
|
|
478
552
|
*
|
|
@@ -481,7 +555,7 @@ class Api extends HttpClient {
|
|
|
481
555
|
* @request GET:/conversations.export
|
|
482
556
|
* @secure
|
|
483
557
|
*/
|
|
484
|
-
this.conversationsExport = (query, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method:
|
|
558
|
+
this.conversationsExport = (query, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
485
559
|
/**
|
|
486
560
|
* @description Gets the requested conversation's information.
|
|
487
561
|
*
|
|
@@ -490,7 +564,7 @@ class Api extends HttpClient {
|
|
|
490
564
|
* @request GET:/conversations.get
|
|
491
565
|
* @secure
|
|
492
566
|
*/
|
|
493
|
-
this.conversationsGet = (query, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method:
|
|
567
|
+
this.conversationsGet = (query, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
494
568
|
/**
|
|
495
569
|
* @description Lists the available conversations.
|
|
496
570
|
*
|
|
@@ -499,7 +573,7 @@ class Api extends HttpClient {
|
|
|
499
573
|
* @request GET:/conversations.list
|
|
500
574
|
* @secure
|
|
501
575
|
*/
|
|
502
|
-
this.conversationsList = (query, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method:
|
|
576
|
+
this.conversationsList = (query, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
503
577
|
/**
|
|
504
578
|
* @description Updates the requested conversation.
|
|
505
579
|
*
|
|
@@ -508,7 +582,7 @@ class Api extends HttpClient {
|
|
|
508
582
|
* @request POST:/conversations.update
|
|
509
583
|
* @secure
|
|
510
584
|
*/
|
|
511
|
-
this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method:
|
|
585
|
+
this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
512
586
|
/**
|
|
513
587
|
* @description Counts the engagement records.
|
|
514
588
|
*
|
|
@@ -517,7 +591,7 @@ class Api extends HttpClient {
|
|
|
517
591
|
* @request GET:/engagements.count
|
|
518
592
|
* @secure
|
|
519
593
|
*/
|
|
520
|
-
this.engagementsCount = (query, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method:
|
|
594
|
+
this.engagementsCount = (query, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
521
595
|
/**
|
|
522
596
|
* @description Creates a new engagement record.
|
|
523
597
|
*
|
|
@@ -526,7 +600,7 @@ class Api extends HttpClient {
|
|
|
526
600
|
* @request POST:/engagements.create
|
|
527
601
|
* @secure
|
|
528
602
|
*/
|
|
529
|
-
this.engagementsCreate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.create`, method:
|
|
603
|
+
this.engagementsCreate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
530
604
|
/**
|
|
531
605
|
* @description Deletes the engagement record.
|
|
532
606
|
*
|
|
@@ -535,7 +609,7 @@ class Api extends HttpClient {
|
|
|
535
609
|
* @request POST:/engagements.delete
|
|
536
610
|
* @secure
|
|
537
611
|
*/
|
|
538
|
-
this.engagementsDelete = (data, params = {}) => this.request(Object.assign({ path: `/engagements.delete`, method:
|
|
612
|
+
this.engagementsDelete = (data, params = {}) => this.request(Object.assign({ path: `/engagements.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
539
613
|
/**
|
|
540
614
|
* @description Gets the engagement record.
|
|
541
615
|
*
|
|
@@ -544,7 +618,7 @@ class Api extends HttpClient {
|
|
|
544
618
|
* @request GET:/engagements.get
|
|
545
619
|
* @secure
|
|
546
620
|
*/
|
|
547
|
-
this.engagementsGet = (query, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method:
|
|
621
|
+
this.engagementsGet = (query, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
548
622
|
/**
|
|
549
623
|
* @description Lists the engagement records.
|
|
550
624
|
*
|
|
@@ -553,7 +627,7 @@ class Api extends HttpClient {
|
|
|
553
627
|
* @request GET:/engagements.list
|
|
554
628
|
* @secure
|
|
555
629
|
*/
|
|
556
|
-
this.engagementsList = (query, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method:
|
|
630
|
+
this.engagementsList = (query, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
557
631
|
/**
|
|
558
632
|
* @description Updates the engagement record.
|
|
559
633
|
*
|
|
@@ -562,7 +636,7 @@ class Api extends HttpClient {
|
|
|
562
636
|
* @request POST:/engagements.update
|
|
563
637
|
* @secure
|
|
564
638
|
*/
|
|
565
|
-
this.engagementsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.update`, method:
|
|
639
|
+
this.engagementsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
566
640
|
/**
|
|
567
641
|
* @description Schedules an event to be published to the specified event source.
|
|
568
642
|
*
|
|
@@ -571,7 +645,7 @@ class Api extends HttpClient {
|
|
|
571
645
|
* @request POST:/event-sources.schedule
|
|
572
646
|
* @secure
|
|
573
647
|
*/
|
|
574
|
-
this.eventSourcesScheduleEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.schedule`, method:
|
|
648
|
+
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
649
|
/**
|
|
576
650
|
* @description Deletes an event scheduled for the specified event source.
|
|
577
651
|
*
|
|
@@ -580,7 +654,7 @@ class Api extends HttpClient {
|
|
|
580
654
|
* @request POST:/event-sources.unschedule
|
|
581
655
|
* @secure
|
|
582
656
|
*/
|
|
583
|
-
this.eventSourcesDeleteScheduledEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.unschedule`, method:
|
|
657
|
+
this.eventSourcesDeleteScheduledEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.unschedule`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
584
658
|
/**
|
|
585
659
|
* @description Creates a link between two objects to indicate a relationship.
|
|
586
660
|
*
|
|
@@ -589,7 +663,7 @@ class Api extends HttpClient {
|
|
|
589
663
|
* @request POST:/links.create
|
|
590
664
|
* @secure
|
|
591
665
|
*/
|
|
592
|
-
this.linksCreate = (data, params = {}) => this.request(Object.assign({ path: `/links.create`, method:
|
|
666
|
+
this.linksCreate = (data, params = {}) => this.request(Object.assign({ path: `/links.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
593
667
|
/**
|
|
594
668
|
* @description Deletes a link.
|
|
595
669
|
*
|
|
@@ -598,7 +672,7 @@ class Api extends HttpClient {
|
|
|
598
672
|
* @request POST:/links.delete
|
|
599
673
|
* @secure
|
|
600
674
|
*/
|
|
601
|
-
this.linksDelete = (data, params = {}) => this.request(Object.assign({ path: `/links.delete`, method:
|
|
675
|
+
this.linksDelete = (data, params = {}) => this.request(Object.assign({ path: `/links.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
602
676
|
/**
|
|
603
677
|
* @description Gets the requested link's information.
|
|
604
678
|
*
|
|
@@ -607,7 +681,7 @@ class Api extends HttpClient {
|
|
|
607
681
|
* @request GET:/links.get
|
|
608
682
|
* @secure
|
|
609
683
|
*/
|
|
610
|
-
this.linksGet = (query, params = {}) => this.request(Object.assign({ path: `/links.get`, method:
|
|
684
|
+
this.linksGet = (query, params = {}) => this.request(Object.assign({ path: `/links.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
611
685
|
/**
|
|
612
686
|
* @description Lists the available links.
|
|
613
687
|
*
|
|
@@ -616,7 +690,7 @@ class Api extends HttpClient {
|
|
|
616
690
|
* @request GET:/links.list
|
|
617
691
|
* @secure
|
|
618
692
|
*/
|
|
619
|
-
this.linksList = (query, params = {}) => this.request(Object.assign({ path: `/links.list`, method:
|
|
693
|
+
this.linksList = (query, params = {}) => this.request(Object.assign({ path: `/links.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
620
694
|
/**
|
|
621
695
|
* @description Lists metric definitions matching a filter.
|
|
622
696
|
*
|
|
@@ -625,7 +699,88 @@ class Api extends HttpClient {
|
|
|
625
699
|
* @request GET:/metric-definitions.list
|
|
626
700
|
* @secure
|
|
627
701
|
*/
|
|
628
|
-
this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method:
|
|
702
|
+
this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
703
|
+
/**
|
|
704
|
+
* @description Creates an organization schedule fragment.
|
|
705
|
+
*
|
|
706
|
+
* @tags schedules
|
|
707
|
+
* @name OrgScheduleFragmentsCreate
|
|
708
|
+
* @request POST:/org-schedule-fragments.create
|
|
709
|
+
* @secure
|
|
710
|
+
*/
|
|
711
|
+
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));
|
|
712
|
+
/**
|
|
713
|
+
* @description Gets an organization schedule fragment.
|
|
714
|
+
*
|
|
715
|
+
* @tags schedules
|
|
716
|
+
* @name OrgScheduleFragmentsGet
|
|
717
|
+
* @request GET:/org-schedule-fragments.get
|
|
718
|
+
* @secure
|
|
719
|
+
*/
|
|
720
|
+
this.orgScheduleFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/org-schedule-fragments.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
721
|
+
/**
|
|
722
|
+
* @description Changes stage of an organization schedule fragment.
|
|
723
|
+
*
|
|
724
|
+
* @tags schedules
|
|
725
|
+
* @name OrgScheduleFragmentsTransition
|
|
726
|
+
* @request POST:/org-schedule-fragments.transition
|
|
727
|
+
* @secure
|
|
728
|
+
*/
|
|
729
|
+
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));
|
|
730
|
+
/**
|
|
731
|
+
* @description Creates an organization schedule with a default weekly organization schedule and a list of organization schedule fragments.
|
|
732
|
+
*
|
|
733
|
+
* @tags schedules
|
|
734
|
+
* @name OrgSchedulesCreate
|
|
735
|
+
* @request POST:/org-schedules.create
|
|
736
|
+
* @secure
|
|
737
|
+
*/
|
|
738
|
+
this.orgSchedulesCreate = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
739
|
+
/**
|
|
740
|
+
* @description Gets an organization schedule.
|
|
741
|
+
*
|
|
742
|
+
* @tags schedules
|
|
743
|
+
* @name OrgSchedulesGet
|
|
744
|
+
* @request GET:/org-schedules.get
|
|
745
|
+
* @secure
|
|
746
|
+
*/
|
|
747
|
+
this.orgSchedulesGet = (query, params = {}) => this.request(Object.assign({ path: `/org-schedules.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
748
|
+
/**
|
|
749
|
+
* @description Gets list of organization schedules.
|
|
750
|
+
*
|
|
751
|
+
* @tags schedules
|
|
752
|
+
* @name OrgSchedulesList
|
|
753
|
+
* @request GET:/org-schedules.list
|
|
754
|
+
* @secure
|
|
755
|
+
*/
|
|
756
|
+
this.orgSchedulesList = (query, params = {}) => this.request(Object.assign({ path: `/org-schedules.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
757
|
+
/**
|
|
758
|
+
* @description Sets next organization schedule fragment which must begin the day the last existing fragment ends.
|
|
759
|
+
*
|
|
760
|
+
* @tags schedules
|
|
761
|
+
* @name OrgSchedulesSetFuture
|
|
762
|
+
* @request POST:/org-schedules.set-future
|
|
763
|
+
* @secure
|
|
764
|
+
*/
|
|
765
|
+
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));
|
|
766
|
+
/**
|
|
767
|
+
* @description Publishes or archives an organization schedule.
|
|
768
|
+
*
|
|
769
|
+
* @tags schedules
|
|
770
|
+
* @name OrgSchedulesTransition
|
|
771
|
+
* @request POST:/org-schedules.transition
|
|
772
|
+
* @secure
|
|
773
|
+
*/
|
|
774
|
+
this.orgSchedulesTransition = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
775
|
+
/**
|
|
776
|
+
* @description Updates an organization schedule.
|
|
777
|
+
*
|
|
778
|
+
* @tags schedules
|
|
779
|
+
* @name OrgSchedulesUpdate
|
|
780
|
+
* @request POST:/org-schedules.update
|
|
781
|
+
* @secure
|
|
782
|
+
*/
|
|
783
|
+
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
784
|
/**
|
|
630
785
|
* @description Creates a Rev organization in the authenticated user's Dev organization.
|
|
631
786
|
*
|
|
@@ -634,7 +789,7 @@ class Api extends HttpClient {
|
|
|
634
789
|
* @request POST:/rev-orgs.create
|
|
635
790
|
* @secure
|
|
636
791
|
*/
|
|
637
|
-
this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method:
|
|
792
|
+
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
793
|
/**
|
|
639
794
|
* @description Retrieves the Rev organization's information.
|
|
640
795
|
*
|
|
@@ -643,7 +798,7 @@ class Api extends HttpClient {
|
|
|
643
798
|
* @request GET:/rev-orgs.get
|
|
644
799
|
* @secure
|
|
645
800
|
*/
|
|
646
|
-
this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method:
|
|
801
|
+
this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
647
802
|
/**
|
|
648
803
|
* @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
804
|
*
|
|
@@ -652,7 +807,7 @@ class Api extends HttpClient {
|
|
|
652
807
|
* @request GET:/rev-orgs.list
|
|
653
808
|
* @secure
|
|
654
809
|
*/
|
|
655
|
-
this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method:
|
|
810
|
+
this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
656
811
|
/**
|
|
657
812
|
* @description Updates the Rev organization's information.
|
|
658
813
|
*
|
|
@@ -661,7 +816,7 @@ class Api extends HttpClient {
|
|
|
661
816
|
* @request POST:/rev-orgs.update
|
|
662
817
|
* @secure
|
|
663
818
|
*/
|
|
664
|
-
this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method:
|
|
819
|
+
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
820
|
/**
|
|
666
821
|
* @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
|
|
667
822
|
*
|
|
@@ -670,7 +825,7 @@ class Api extends HttpClient {
|
|
|
670
825
|
* @request POST:/rev-users.create
|
|
671
826
|
* @secure
|
|
672
827
|
*/
|
|
673
|
-
this.revUsersCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.create`, method:
|
|
828
|
+
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
829
|
/**
|
|
675
830
|
* @description Deletes a Rev user.
|
|
676
831
|
*
|
|
@@ -679,7 +834,7 @@ class Api extends HttpClient {
|
|
|
679
834
|
* @request POST:/rev-users.delete
|
|
680
835
|
* @secure
|
|
681
836
|
*/
|
|
682
|
-
this.revUsersDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.delete`, method:
|
|
837
|
+
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
838
|
/**
|
|
684
839
|
* @description Returns the Rev user of a Rev organization by its ID.
|
|
685
840
|
*
|
|
@@ -688,7 +843,7 @@ class Api extends HttpClient {
|
|
|
688
843
|
* @request GET:/rev-users.get
|
|
689
844
|
* @secure
|
|
690
845
|
*/
|
|
691
|
-
this.revUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method:
|
|
846
|
+
this.revUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
692
847
|
/**
|
|
693
848
|
* @description Links a rev user to a rev org.
|
|
694
849
|
*
|
|
@@ -697,7 +852,7 @@ class Api extends HttpClient {
|
|
|
697
852
|
* @request POST:/rev-users.link
|
|
698
853
|
* @secure
|
|
699
854
|
*/
|
|
700
|
-
this.linkRevUserToRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.link`, method:
|
|
855
|
+
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
856
|
/**
|
|
702
857
|
* @description Returns a list of all Rev Users belonging to the authenticated user's Dev Organization.
|
|
703
858
|
*
|
|
@@ -706,7 +861,7 @@ class Api extends HttpClient {
|
|
|
706
861
|
* @request GET:/rev-users.list
|
|
707
862
|
* @secure
|
|
708
863
|
*/
|
|
709
|
-
this.revUsersList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method:
|
|
864
|
+
this.revUsersList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
710
865
|
/**
|
|
711
866
|
* @description Unlinks a rev user from a rev org.
|
|
712
867
|
*
|
|
@@ -715,7 +870,7 @@ class Api extends HttpClient {
|
|
|
715
870
|
* @request POST:/rev-users.unlink
|
|
716
871
|
* @secure
|
|
717
872
|
*/
|
|
718
|
-
this.unlinkRevUserFromRevOrg = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.unlink`, method:
|
|
873
|
+
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
874
|
/**
|
|
720
875
|
* @description Updates a Rev user.
|
|
721
876
|
*
|
|
@@ -724,7 +879,7 @@ class Api extends HttpClient {
|
|
|
724
879
|
* @request POST:/rev-users.update
|
|
725
880
|
* @secure
|
|
726
881
|
*/
|
|
727
|
-
this.revUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.update`, method:
|
|
882
|
+
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
883
|
/**
|
|
729
884
|
* @description Gets the aggregated schema.
|
|
730
885
|
*
|
|
@@ -733,7 +888,7 @@ class Api extends HttpClient {
|
|
|
733
888
|
* @request GET:/schemas.aggregated.get
|
|
734
889
|
* @secure
|
|
735
890
|
*/
|
|
736
|
-
this.aggregatedSchemaGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method:
|
|
891
|
+
this.aggregatedSchemaGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
737
892
|
/**
|
|
738
893
|
* @description Gets a custom schema fragment.
|
|
739
894
|
*
|
|
@@ -742,7 +897,7 @@ class Api extends HttpClient {
|
|
|
742
897
|
* @request GET:/schemas.custom.get
|
|
743
898
|
* @secure
|
|
744
899
|
*/
|
|
745
|
-
this.customSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method:
|
|
900
|
+
this.customSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
746
901
|
/**
|
|
747
902
|
* @description Lists custom schema fragments.
|
|
748
903
|
*
|
|
@@ -751,7 +906,7 @@ class Api extends HttpClient {
|
|
|
751
906
|
* @request GET:/schemas.custom.list
|
|
752
907
|
* @secure
|
|
753
908
|
*/
|
|
754
|
-
this.customSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method:
|
|
909
|
+
this.customSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
755
910
|
/**
|
|
756
911
|
* @description Creates or updates a custom schema fragment.
|
|
757
912
|
*
|
|
@@ -760,7 +915,7 @@ class Api extends HttpClient {
|
|
|
760
915
|
* @request POST:/schemas.custom.set
|
|
761
916
|
* @secure
|
|
762
917
|
*/
|
|
763
|
-
this.customSchemaFragmentsSet = (data, params = {}) => this.request(Object.assign({ path: `/schemas.custom.set`, method:
|
|
918
|
+
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
919
|
/**
|
|
765
920
|
* @description Lists subtypes.
|
|
766
921
|
*
|
|
@@ -769,7 +924,7 @@ class Api extends HttpClient {
|
|
|
769
924
|
* @request GET:/schemas.subtypes.list
|
|
770
925
|
* @secure
|
|
771
926
|
*/
|
|
772
|
-
this.subtypesList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method:
|
|
927
|
+
this.subtypesList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
773
928
|
/**
|
|
774
929
|
* @description Assigns the SLA to a set of Rev organizations.
|
|
775
930
|
*
|
|
@@ -778,7 +933,7 @@ class Api extends HttpClient {
|
|
|
778
933
|
* @request POST:/slas.assign
|
|
779
934
|
* @secure
|
|
780
935
|
*/
|
|
781
|
-
this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method:
|
|
936
|
+
this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
782
937
|
/**
|
|
783
938
|
* @description Creates an SLA in draft status.
|
|
784
939
|
*
|
|
@@ -787,7 +942,7 @@ class Api extends HttpClient {
|
|
|
787
942
|
* @request POST:/slas.create
|
|
788
943
|
* @secure
|
|
789
944
|
*/
|
|
790
|
-
this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method:
|
|
945
|
+
this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
791
946
|
/**
|
|
792
947
|
* @description Gets an SLA.
|
|
793
948
|
*
|
|
@@ -796,7 +951,7 @@ class Api extends HttpClient {
|
|
|
796
951
|
* @request GET:/slas.get
|
|
797
952
|
* @secure
|
|
798
953
|
*/
|
|
799
|
-
this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method:
|
|
954
|
+
this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
800
955
|
/**
|
|
801
956
|
* @description Lists SLAs matching a filter.
|
|
802
957
|
*
|
|
@@ -805,7 +960,7 @@ class Api extends HttpClient {
|
|
|
805
960
|
* @request GET:/slas.list
|
|
806
961
|
* @secure
|
|
807
962
|
*/
|
|
808
|
-
this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method:
|
|
963
|
+
this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
809
964
|
/**
|
|
810
965
|
* @description Changes the status of an SLA.
|
|
811
966
|
*
|
|
@@ -814,7 +969,7 @@ class Api extends HttpClient {
|
|
|
814
969
|
* @request POST:/slas.transition
|
|
815
970
|
* @secure
|
|
816
971
|
*/
|
|
817
|
-
this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method:
|
|
972
|
+
this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
818
973
|
/**
|
|
819
974
|
* @description Updates a draft SLA.
|
|
820
975
|
*
|
|
@@ -823,7 +978,7 @@ class Api extends HttpClient {
|
|
|
823
978
|
* @request POST:/slas.update
|
|
824
979
|
* @secure
|
|
825
980
|
*/
|
|
826
|
-
this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method:
|
|
981
|
+
this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
827
982
|
/**
|
|
828
983
|
* @description Lists system users within your organization.
|
|
829
984
|
*
|
|
@@ -832,7 +987,7 @@ class Api extends HttpClient {
|
|
|
832
987
|
* @request GET:/sys-users.list
|
|
833
988
|
* @secure
|
|
834
989
|
*/
|
|
835
|
-
this.sysUsersList = (query, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method:
|
|
990
|
+
this.sysUsersList = (query, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
836
991
|
/**
|
|
837
992
|
* @description Updates the system user.
|
|
838
993
|
*
|
|
@@ -841,7 +996,7 @@ class Api extends HttpClient {
|
|
|
841
996
|
* @request POST:/sys-users.update
|
|
842
997
|
* @secure
|
|
843
998
|
*/
|
|
844
|
-
this.sysUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.update`, method:
|
|
999
|
+
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
1000
|
/**
|
|
846
1001
|
* @description Creates a new entry on an object's timeline.
|
|
847
1002
|
*
|
|
@@ -850,7 +1005,7 @@ class Api extends HttpClient {
|
|
|
850
1005
|
* @request POST:/timeline-entries.create
|
|
851
1006
|
* @secure
|
|
852
1007
|
*/
|
|
853
|
-
this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method:
|
|
1008
|
+
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
1009
|
/**
|
|
855
1010
|
* @description Lists the timeline entries for an object.
|
|
856
1011
|
*
|
|
@@ -859,7 +1014,7 @@ class Api extends HttpClient {
|
|
|
859
1014
|
* @request GET:/timeline-entries.list
|
|
860
1015
|
* @secure
|
|
861
1016
|
*/
|
|
862
|
-
this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method:
|
|
1017
|
+
this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
863
1018
|
/**
|
|
864
1019
|
* @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
1020
|
*
|
|
@@ -868,7 +1023,7 @@ class Api extends HttpClient {
|
|
|
868
1023
|
* @request POST:/works.create
|
|
869
1024
|
* @secure
|
|
870
1025
|
*/
|
|
871
|
-
this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method:
|
|
1026
|
+
this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
872
1027
|
/**
|
|
873
1028
|
* @description Deletes a work item.
|
|
874
1029
|
*
|
|
@@ -877,7 +1032,7 @@ class Api extends HttpClient {
|
|
|
877
1032
|
* @request POST:/works.delete
|
|
878
1033
|
* @secure
|
|
879
1034
|
*/
|
|
880
|
-
this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method:
|
|
1035
|
+
this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
881
1036
|
/**
|
|
882
1037
|
* @description Exports a collection of work items.
|
|
883
1038
|
*
|
|
@@ -886,7 +1041,7 @@ class Api extends HttpClient {
|
|
|
886
1041
|
* @request GET:/works.export
|
|
887
1042
|
* @secure
|
|
888
1043
|
*/
|
|
889
|
-
this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method:
|
|
1044
|
+
this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
890
1045
|
/**
|
|
891
1046
|
* @description Gets a work item's information.
|
|
892
1047
|
*
|
|
@@ -895,7 +1050,7 @@ class Api extends HttpClient {
|
|
|
895
1050
|
* @request GET:/works.get
|
|
896
1051
|
* @secure
|
|
897
1052
|
*/
|
|
898
|
-
this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method:
|
|
1053
|
+
this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
899
1054
|
/**
|
|
900
1055
|
* @description Lists a collection of work items.
|
|
901
1056
|
*
|
|
@@ -904,7 +1059,7 @@ class Api extends HttpClient {
|
|
|
904
1059
|
* @request GET:/works.list
|
|
905
1060
|
* @secure
|
|
906
1061
|
*/
|
|
907
|
-
this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method:
|
|
1062
|
+
this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
908
1063
|
/**
|
|
909
1064
|
* @description Updates a work item's information.
|
|
910
1065
|
*
|
|
@@ -913,7 +1068,7 @@ class Api extends HttpClient {
|
|
|
913
1068
|
* @request POST:/works.update
|
|
914
1069
|
* @secure
|
|
915
1070
|
*/
|
|
916
|
-
this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method:
|
|
1071
|
+
this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
917
1072
|
}
|
|
918
1073
|
}
|
|
919
1074
|
exports.Api = Api;
|