@devrev/typescript-sdk 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,919 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ /* tslint:disable */
4
+ /*
5
+ * ---------------------------------------------------------------
6
+ * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
+ * ## ##
8
+ * ## AUTHOR: acacode ##
9
+ * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
+ * ---------------------------------------------------------------
11
+ */
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __rest = (this && this.__rest) || function (s, e) {
22
+ var t = {};
23
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
24
+ t[p] = s[p];
25
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
26
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
27
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
28
+ t[p[i]] = s[p[i]];
29
+ }
30
+ return t;
31
+ };
32
+ var __importDefault = (this && this.__importDefault) || function (mod) {
33
+ return (mod && mod.__esModule) ? mod : { "default": mod };
34
+ };
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;
37
+ var ConversationsCreateRequestTypeValue;
38
+ (function (ConversationsCreateRequestTypeValue) {
39
+ ConversationsCreateRequestTypeValue["Support"] = "support";
40
+ })(ConversationsCreateRequestTypeValue = exports.ConversationsCreateRequestTypeValue || (exports.ConversationsCreateRequestTypeValue = {}));
41
+ var CustomSchemaFragmentsSetRequestType;
42
+ (function (CustomSchemaFragmentsSetRequestType) {
43
+ CustomSchemaFragmentsSetRequestType["AppFragment"] = "app_fragment";
44
+ CustomSchemaFragmentsSetRequestType["CustomTypeFragment"] = "custom_type_fragment";
45
+ CustomSchemaFragmentsSetRequestType["TenantFragment"] = "tenant_fragment";
46
+ })(CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsSetRequestType || (exports.CustomSchemaFragmentsSetRequestType = {}));
47
+ /** The type of engagement. */
48
+ var EngagementsCreateRequestEngagementType;
49
+ (function (EngagementsCreateRequestEngagementType) {
50
+ EngagementsCreateRequestEngagementType["Call"] = "call";
51
+ EngagementsCreateRequestEngagementType["Email"] = "email";
52
+ EngagementsCreateRequestEngagementType["LinkedIn"] = "linked_in";
53
+ EngagementsCreateRequestEngagementType["Offline"] = "offline";
54
+ })(EngagementsCreateRequestEngagementType = exports.EngagementsCreateRequestEngagementType || (exports.EngagementsCreateRequestEngagementType = {}));
55
+ var ErrorBadRequestType;
56
+ (function (ErrorBadRequestType) {
57
+ ErrorBadRequestType["BadRequest"] = "bad_request";
58
+ ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
59
+ ErrorBadRequestType["InvalidField"] = "invalid_field";
60
+ ErrorBadRequestType["MissingRequiredField"] = "missing_required_field";
61
+ ErrorBadRequestType["ParseError"] = "parse_error";
62
+ ErrorBadRequestType["ValueNotPermitted"] = "value_not_permitted";
63
+ })(ErrorBadRequestType = exports.ErrorBadRequestType || (exports.ErrorBadRequestType = {}));
64
+ var ErrorForbiddenType;
65
+ (function (ErrorForbiddenType) {
66
+ ErrorForbiddenType["Forbidden"] = "forbidden";
67
+ })(ErrorForbiddenType = exports.ErrorForbiddenType || (exports.ErrorForbiddenType = {}));
68
+ var ErrorInternalServerErrorType;
69
+ (function (ErrorInternalServerErrorType) {
70
+ ErrorInternalServerErrorType["InternalError"] = "internal_error";
71
+ })(ErrorInternalServerErrorType = exports.ErrorInternalServerErrorType || (exports.ErrorInternalServerErrorType = {}));
72
+ var ErrorNotFoundType;
73
+ (function (ErrorNotFoundType) {
74
+ ErrorNotFoundType["NotFound"] = "not_found";
75
+ })(ErrorNotFoundType = exports.ErrorNotFoundType || (exports.ErrorNotFoundType = {}));
76
+ var ErrorServiceUnavailableType;
77
+ (function (ErrorServiceUnavailableType) {
78
+ ErrorServiceUnavailableType["ServiceUnavailable"] = "service_unavailable";
79
+ })(ErrorServiceUnavailableType = exports.ErrorServiceUnavailableType || (exports.ErrorServiceUnavailableType = {}));
80
+ var ErrorTooManyRequestsType;
81
+ (function (ErrorTooManyRequestsType) {
82
+ ErrorTooManyRequestsType["TooManyRequests"] = "too_many_requests";
83
+ })(ErrorTooManyRequestsType = exports.ErrorTooManyRequestsType || (exports.ErrorTooManyRequestsType = {}));
84
+ var ErrorUnauthorizedType;
85
+ (function (ErrorUnauthorizedType) {
86
+ ErrorUnauthorizedType["Unauthenticated"] = "unauthenticated";
87
+ })(ErrorUnauthorizedType = exports.ErrorUnauthorizedType || (exports.ErrorUnauthorizedType = {}));
88
+ /** Priority of the work based upon impact and criticality. */
89
+ var IssuePriority;
90
+ (function (IssuePriority) {
91
+ IssuePriority["P0"] = "p0";
92
+ IssuePriority["P1"] = "p1";
93
+ IssuePriority["P2"] = "p2";
94
+ IssuePriority["P3"] = "p3";
95
+ })(IssuePriority = exports.IssuePriority || (exports.IssuePriority = {}));
96
+ var LinkEndpointType;
97
+ (function (LinkEndpointType) {
98
+ LinkEndpointType["Capability"] = "capability";
99
+ LinkEndpointType["Conversation"] = "conversation";
100
+ LinkEndpointType["Enhancement"] = "enhancement";
101
+ LinkEndpointType["Feature"] = "feature";
102
+ LinkEndpointType["Issue"] = "issue";
103
+ LinkEndpointType["Opportunity"] = "opportunity";
104
+ LinkEndpointType["Product"] = "product";
105
+ LinkEndpointType["Ticket"] = "ticket";
106
+ })(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
107
+ /** Type of link used to define the relationship. */
108
+ var LinkType;
109
+ (function (LinkType) {
110
+ LinkType["DevelopedWith"] = "developed_with";
111
+ LinkType["Imports"] = "imports";
112
+ LinkType["IsDependentOn"] = "is_dependent_on";
113
+ LinkType["IsDuplicateOf"] = "is_duplicate_of";
114
+ LinkType["IsParentOf"] = "is_parent_of";
115
+ LinkType["IsPartOf"] = "is_part_of";
116
+ LinkType["IsRelatedTo"] = "is_related_to";
117
+ LinkType["Serves"] = "serves";
118
+ })(LinkType = exports.LinkType || (exports.LinkType = {}));
119
+ /**
120
+ * The direction of link, which can either be outbound such that the
121
+ * object is the source of the link, otherwise inbound where the object is
122
+ * the target of the link.
123
+ */
124
+ var LinksDirection;
125
+ (function (LinksDirection) {
126
+ LinksDirection["IsSource"] = "is_source";
127
+ LinksDirection["IsTarget"] = "is_target";
128
+ })(LinksDirection = exports.LinksDirection || (exports.LinksDirection = {}));
129
+ /**
130
+ * The iteration mode to use. If "after", then entries after the provided
131
+ * cursor will be returned, or if no cursor is provided, then from the
132
+ * beginning. If "before", then entries before the provided cursor will be
133
+ * returned, or if no cursor is provided, then from the end. Entries will
134
+ * always be returned in the specified sort-by order.
135
+ */
136
+ var ListMode;
137
+ (function (ListMode) {
138
+ ListMode["After"] = "after";
139
+ ListMode["Before"] = "before";
140
+ })(ListMode = exports.ListMode || (exports.ListMode = {}));
141
+ /** The list of item types on which the metric might be applied. */
142
+ var MetricDefinitionAppliesTo;
143
+ (function (MetricDefinitionAppliesTo) {
144
+ MetricDefinitionAppliesTo["Conversation"] = "conversation";
145
+ MetricDefinitionAppliesTo["Issue"] = "issue";
146
+ MetricDefinitionAppliesTo["Task"] = "task";
147
+ MetricDefinitionAppliesTo["Ticket"] = "ticket";
148
+ })(MetricDefinitionAppliesTo = exports.MetricDefinitionAppliesTo || (exports.MetricDefinitionAppliesTo = {}));
149
+ /**
150
+ * The type of the metric. 'time' metrics track the time spent in some
151
+ * state, supporting operations like 'start', 'stop', 'pause', 'resume'.
152
+ * 'value' metrics track a value, supporting operations like 'set',
153
+ * 'increment', 'decrement'.
154
+ */
155
+ var MetricDefinitionMetricType;
156
+ (function (MetricDefinitionMetricType) {
157
+ MetricDefinitionMetricType["Time"] = "time";
158
+ MetricDefinitionMetricType["Value"] = "value";
159
+ })(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
160
+ /** The environment of the Org. Defaults to 'production' if not specified. */
161
+ var OrgEnvironment;
162
+ (function (OrgEnvironment) {
163
+ OrgEnvironment["Production"] = "production";
164
+ OrgEnvironment["Staging"] = "staging";
165
+ OrgEnvironment["Test"] = "test";
166
+ })(OrgEnvironment = exports.OrgEnvironment || (exports.OrgEnvironment = {}));
167
+ var OrgType;
168
+ (function (OrgType) {
169
+ OrgType["RevOrg"] = "rev_org";
170
+ })(OrgType = exports.OrgType || (exports.OrgType = {}));
171
+ var PartType;
172
+ (function (PartType) {
173
+ PartType["Capability"] = "capability";
174
+ PartType["Enhancement"] = "enhancement";
175
+ PartType["Feature"] = "feature";
176
+ PartType["Product"] = "product";
177
+ })(PartType = exports.PartType || (exports.PartType = {}));
178
+ var SchemaFieldDescriptorArrayTypeBaseType;
179
+ (function (SchemaFieldDescriptorArrayTypeBaseType) {
180
+ SchemaFieldDescriptorArrayTypeBaseType["Bool"] = "bool";
181
+ SchemaFieldDescriptorArrayTypeBaseType["Composite"] = "composite";
182
+ SchemaFieldDescriptorArrayTypeBaseType["Double"] = "double";
183
+ SchemaFieldDescriptorArrayTypeBaseType["Enum"] = "enum";
184
+ SchemaFieldDescriptorArrayTypeBaseType["Id"] = "id";
185
+ SchemaFieldDescriptorArrayTypeBaseType["Int"] = "int";
186
+ SchemaFieldDescriptorArrayTypeBaseType["RichText"] = "rich_text";
187
+ SchemaFieldDescriptorArrayTypeBaseType["Text"] = "text";
188
+ SchemaFieldDescriptorArrayTypeBaseType["Timestamp"] = "timestamp";
189
+ SchemaFieldDescriptorArrayTypeBaseType["Tokens"] = "tokens";
190
+ })(SchemaFieldDescriptorArrayTypeBaseType = exports.SchemaFieldDescriptorArrayTypeBaseType || (exports.SchemaFieldDescriptorArrayTypeBaseType = {}));
191
+ var SchemaFieldDescriptorFieldType;
192
+ (function (SchemaFieldDescriptorFieldType) {
193
+ SchemaFieldDescriptorFieldType["Array"] = "array";
194
+ SchemaFieldDescriptorFieldType["Bool"] = "bool";
195
+ SchemaFieldDescriptorFieldType["Composite"] = "composite";
196
+ SchemaFieldDescriptorFieldType["Double"] = "double";
197
+ SchemaFieldDescriptorFieldType["Enum"] = "enum";
198
+ SchemaFieldDescriptorFieldType["Id"] = "id";
199
+ SchemaFieldDescriptorFieldType["Int"] = "int";
200
+ SchemaFieldDescriptorFieldType["RichText"] = "rich_text";
201
+ SchemaFieldDescriptorFieldType["Text"] = "text";
202
+ SchemaFieldDescriptorFieldType["Timestamp"] = "timestamp";
203
+ SchemaFieldDescriptorFieldType["Tokens"] = "tokens";
204
+ })(SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorFieldType || (exports.SchemaFieldDescriptorFieldType = {}));
205
+ /**
206
+ * Specifies the frequency of when the contractually-meaningful evaluation
207
+ * of the SLA happens. The organization for their own information might
208
+ * evaluate the various metrics contained in the policy as often as we can
209
+ * make it feasible for them, but only the evaluation at the end of the
210
+ * evaluation period triggers a compensation and needs to be shared with
211
+ * the customer.
212
+ */
213
+ var SlaEvaluationPeriod;
214
+ (function (SlaEvaluationPeriod) {
215
+ SlaEvaluationPeriod["Monthly"] = "monthly";
216
+ SlaEvaluationPeriod["Quarterly"] = "quarterly";
217
+ SlaEvaluationPeriod["Weekly"] = "weekly";
218
+ SlaEvaluationPeriod["Yearly"] = "yearly";
219
+ })(SlaEvaluationPeriod = exports.SlaEvaluationPeriod || (exports.SlaEvaluationPeriod = {}));
220
+ /** The item type for which the SLA policy applies. */
221
+ var SlaSelectorAppliesTo;
222
+ (function (SlaSelectorAppliesTo) {
223
+ SlaSelectorAppliesTo["Conversation"] = "conversation";
224
+ SlaSelectorAppliesTo["Ticket"] = "ticket";
225
+ })(SlaSelectorAppliesTo = exports.SlaSelectorAppliesTo || (exports.SlaSelectorAppliesTo = {}));
226
+ /** Th SLA policy applies to conversations with these priorities. */
227
+ var SlaSelectorPriority;
228
+ (function (SlaSelectorPriority) {
229
+ SlaSelectorPriority["P0"] = "p0";
230
+ SlaSelectorPriority["P1"] = "p1";
231
+ SlaSelectorPriority["P2"] = "p2";
232
+ })(SlaSelectorPriority = exports.SlaSelectorPriority || (exports.SlaSelectorPriority = {}));
233
+ /** The SLA policy applies to tickets with these severities. */
234
+ var SlaSelectorSeverity;
235
+ (function (SlaSelectorSeverity) {
236
+ SlaSelectorSeverity["Blocker"] = "blocker";
237
+ SlaSelectorSeverity["High"] = "high";
238
+ SlaSelectorSeverity["Low"] = "low";
239
+ SlaSelectorSeverity["Medium"] = "medium";
240
+ })(SlaSelectorSeverity = exports.SlaSelectorSeverity || (exports.SlaSelectorSeverity = {}));
241
+ /**
242
+ * Status determines how an item can be used. In 'draft' status an item
243
+ * can be edited but can't be used. When 'published' the item can longer
244
+ * be edited but can be used. 'Archived' is read-only.
245
+ */
246
+ var SlaStatus;
247
+ (function (SlaStatus) {
248
+ SlaStatus["Archived"] = "archived";
249
+ SlaStatus["Draft"] = "draft";
250
+ SlaStatus["Published"] = "published";
251
+ })(SlaStatus = exports.SlaStatus || (exports.SlaStatus = {}));
252
+ /** Priority of the work based upon impact and criticality. */
253
+ var TaskPriority;
254
+ (function (TaskPriority) {
255
+ TaskPriority["P0"] = "p0";
256
+ TaskPriority["P1"] = "p1";
257
+ TaskPriority["P2"] = "p2";
258
+ TaskPriority["P3"] = "p3";
259
+ })(TaskPriority = exports.TaskPriority || (exports.TaskPriority = {}));
260
+ /** Severity of the ticket. */
261
+ var TicketSeverity;
262
+ (function (TicketSeverity) {
263
+ TicketSeverity["Blocker"] = "blocker";
264
+ TicketSeverity["High"] = "high";
265
+ TicketSeverity["Low"] = "low";
266
+ TicketSeverity["Medium"] = "medium";
267
+ })(TicketSeverity = exports.TicketSeverity || (exports.TicketSeverity = {}));
268
+ /** The type of the body to use for the comment. */
269
+ var TimelineCommentBodyType;
270
+ (function (TimelineCommentBodyType) {
271
+ TimelineCommentBodyType["SnapKit"] = "snap_kit";
272
+ TimelineCommentBodyType["Text"] = "text";
273
+ })(TimelineCommentBodyType = exports.TimelineCommentBodyType || (exports.TimelineCommentBodyType = {}));
274
+ /** Describes collections of timeline entries. */
275
+ var TimelineEntriesCollection;
276
+ (function (TimelineEntriesCollection) {
277
+ TimelineEntriesCollection["Discussions"] = "discussions";
278
+ TimelineEntriesCollection["Events"] = "events";
279
+ })(TimelineEntriesCollection = exports.TimelineEntriesCollection || (exports.TimelineEntriesCollection = {}));
280
+ var TimelineEntriesCreateRequestType;
281
+ (function (TimelineEntriesCreateRequestType) {
282
+ TimelineEntriesCreateRequestType["TimelineComment"] = "timeline_comment";
283
+ })(TimelineEntriesCreateRequestType = exports.TimelineEntriesCreateRequestType || (exports.TimelineEntriesCreateRequestType = {}));
284
+ var TimelineEntryType;
285
+ (function (TimelineEntryType) {
286
+ TimelineEntryType["TimelineComment"] = "timeline_comment";
287
+ })(TimelineEntryType = exports.TimelineEntryType || (exports.TimelineEntryType = {}));
288
+ /**
289
+ * The visibility of the entry. If 'private', then the entry is only
290
+ * visible to the creator, 'internal' is visible with the Dev
291
+ * organization, 'external' is visible to the Dev organzation and Rev
292
+ * users, and 'public' is visible to all. If not set, then the default
293
+ * visibility is 'external'.
294
+ */
295
+ var TimelineEntryVisibility;
296
+ (function (TimelineEntryVisibility) {
297
+ TimelineEntryVisibility["External"] = "external";
298
+ TimelineEntryVisibility["Internal"] = "internal";
299
+ TimelineEntryVisibility["Private"] = "private";
300
+ TimelineEntryVisibility["Public"] = "public";
301
+ })(TimelineEntryVisibility = exports.TimelineEntryVisibility || (exports.TimelineEntryVisibility = {}));
302
+ /** State of the user. */
303
+ var UserState;
304
+ (function (UserState) {
305
+ UserState["Active"] = "active";
306
+ UserState["Deactivated"] = "deactivated";
307
+ UserState["Locked"] = "locked";
308
+ UserState["Shadow"] = "shadow";
309
+ UserState["Unassigned"] = "unassigned";
310
+ })(UserState = exports.UserState || (exports.UserState = {}));
311
+ var UserType;
312
+ (function (UserType) {
313
+ UserType["DevUser"] = "dev_user";
314
+ UserType["RevUser"] = "rev_user";
315
+ UserType["SysUser"] = "sys_user";
316
+ })(UserType = exports.UserType || (exports.UserType = {}));
317
+ var WorkType;
318
+ (function (WorkType) {
319
+ WorkType["Issue"] = "issue";
320
+ WorkType["Opportunity"] = "opportunity";
321
+ WorkType["Ticket"] = "ticket";
322
+ })(WorkType = exports.WorkType || (exports.WorkType = {}));
323
+ const axios_1 = __importDefault(require("axios"));
324
+ var ContentType;
325
+ (function (ContentType) {
326
+ ContentType["Json"] = "application/json";
327
+ ContentType["FormData"] = "multipart/form-data";
328
+ ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
329
+ ContentType["Text"] = "text/plain";
330
+ })(ContentType = exports.ContentType || (exports.ContentType = {}));
331
+ class HttpClient {
332
+ constructor(_a = {}) {
333
+ var { securityWorker, secure, format } = _a, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
334
+ this.securityData = null;
335
+ this.setSecurityData = (data) => {
336
+ this.securityData = data;
337
+ };
338
+ this.request = (_b) => __awaiter(this, void 0, void 0, function* () {
339
+ 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) &&
341
+ this.securityWorker &&
342
+ (yield this.securityWorker(this.securityData))) ||
343
+ {};
344
+ const requestParams = this.mergeRequestParams(params, secureParams);
345
+ const responseFormat = format || this.format || undefined;
346
+ if (type === ContentType.FormData &&
347
+ body &&
348
+ body !== null &&
349
+ typeof body === "object") {
350
+ body = this.createFormData(body);
351
+ }
352
+ if (type === ContentType.Text &&
353
+ body &&
354
+ body !== null &&
355
+ typeof body !== "string") {
356
+ body = JSON.stringify(body);
357
+ }
358
+ return this.instance.request(Object.assign(Object.assign({}, requestParams), { headers: Object.assign(Object.assign({}, (requestParams.headers || {})), (type && type !== ContentType.FormData
359
+ ? { "Content-Type": type }
360
+ : {})), params: query, responseType: responseFormat, data: body, url: path }));
361
+ });
362
+ this.instance = axios_1.default.create(Object.assign(Object.assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || "{protocol}://{hostname}" }));
363
+ this.secure = secure;
364
+ this.format = format;
365
+ this.securityWorker = securityWorker;
366
+ }
367
+ mergeRequestParams(params1, params2) {
368
+ const method = params1.method || (params2 && params2.method);
369
+ return Object.assign(Object.assign(Object.assign(Object.assign({}, this.instance.defaults), params1), (params2 || {})), { headers: Object.assign(Object.assign(Object.assign({}, ((method &&
370
+ this.instance.defaults.headers[method.toLowerCase()]) ||
371
+ {})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
372
+ }
373
+ stringifyFormItem(formItem) {
374
+ if (typeof formItem === "object" && formItem !== null) {
375
+ return JSON.stringify(formItem);
376
+ }
377
+ else {
378
+ return `${formItem}`;
379
+ }
380
+ }
381
+ createFormData(input) {
382
+ return Object.keys(input || {}).reduce((formData, key) => {
383
+ const property = input[key];
384
+ const propertyContent = property instanceof Array ? property : [property];
385
+ for (const formItem of propertyContent) {
386
+ const isFileType = formItem instanceof Blob || formItem instanceof File;
387
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
388
+ }
389
+ return formData;
390
+ }, new FormData());
391
+ }
392
+ }
393
+ exports.HttpClient = HttpClient;
394
+ /**
395
+ * @title DevRev Beta REST API
396
+ * @version BETA
397
+ * @baseUrl {protocol}://{hostname}
398
+ *
399
+ * DevRev's BETA REST API Specification.
400
+ */
401
+ class Api extends HttpClient {
402
+ constructor() {
403
+ super(...arguments);
404
+ /**
405
+ * @description Creates an account, which is a record representing a customer or an organization.
406
+ *
407
+ * @tags accounts
408
+ * @name AccountsCreate
409
+ * @request POST:/accounts.create
410
+ * @secure
411
+ */
412
+ this.accountsCreate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
413
+ /**
414
+ * @description Deletes an account.
415
+ *
416
+ * @tags accounts
417
+ * @name AccountsDelete
418
+ * @request POST:/accounts.delete
419
+ * @secure
420
+ */
421
+ this.accountsDelete = (data, params = {}) => this.request(Object.assign({ path: `/accounts.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
422
+ /**
423
+ * @description Exports a collection of accounts.
424
+ *
425
+ * @tags accounts
426
+ * @name AccountsExport
427
+ * @request GET:/accounts.export
428
+ * @secure
429
+ */
430
+ this.accountsExport = (query, params = {}) => this.request(Object.assign({ path: `/accounts.export`, method: "GET", query: query, secure: true, format: "json" }, params));
431
+ /**
432
+ * @description Retrieves an account's information.
433
+ *
434
+ * @tags accounts
435
+ * @name AccountsGet
436
+ * @request GET:/accounts.get
437
+ * @secure
438
+ */
439
+ this.accountsGet = (query, params = {}) => this.request(Object.assign({ path: `/accounts.get`, method: "GET", query: query, secure: true, format: "json" }, params));
440
+ /**
441
+ * @description Gets a list of accounts.
442
+ *
443
+ * @tags accounts
444
+ * @name AccountsList
445
+ * @request GET:/accounts.list
446
+ * @secure
447
+ */
448
+ this.accountsList = (query, params = {}) => this.request(Object.assign({ path: `/accounts.list`, method: "GET", query: query, secure: true, format: "json" }, params));
449
+ /**
450
+ * @description Updates an account's information.
451
+ *
452
+ * @tags accounts
453
+ * @name AccountsUpdate
454
+ * @request POST:/accounts.update
455
+ * @secure
456
+ */
457
+ this.accountsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/accounts.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
458
+ /**
459
+ * @description Creates a conversation.
460
+ *
461
+ * @tags conversations
462
+ * @name ConversationsCreate
463
+ * @request POST:/conversations.create
464
+ * @secure
465
+ */
466
+ this.conversationsCreate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
467
+ /**
468
+ * @description Deletes the requested conversation.
469
+ *
470
+ * @tags conversations
471
+ * @name ConversationsDelete
472
+ * @request POST:/conversations.delete
473
+ * @secure
474
+ */
475
+ this.conversationsDelete = (data, params = {}) => this.request(Object.assign({ path: `/conversations.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
476
+ /**
477
+ * @description Exports a collection of conversation items.
478
+ *
479
+ * @tags conversations
480
+ * @name ConversationsExport
481
+ * @request GET:/conversations.export
482
+ * @secure
483
+ */
484
+ this.conversationsExport = (query, params = {}) => this.request(Object.assign({ path: `/conversations.export`, method: "GET", query: query, secure: true, format: "json" }, params));
485
+ /**
486
+ * @description Gets the requested conversation's information.
487
+ *
488
+ * @tags conversations
489
+ * @name ConversationsGet
490
+ * @request GET:/conversations.get
491
+ * @secure
492
+ */
493
+ this.conversationsGet = (query, params = {}) => this.request(Object.assign({ path: `/conversations.get`, method: "GET", query: query, secure: true, format: "json" }, params));
494
+ /**
495
+ * @description Lists the available conversations.
496
+ *
497
+ * @tags conversations
498
+ * @name ConversationsList
499
+ * @request GET:/conversations.list
500
+ * @secure
501
+ */
502
+ this.conversationsList = (query, params = {}) => this.request(Object.assign({ path: `/conversations.list`, method: "GET", query: query, secure: true, format: "json" }, params));
503
+ /**
504
+ * @description Updates the requested conversation.
505
+ *
506
+ * @tags conversations
507
+ * @name ConversationsUpdate
508
+ * @request POST:/conversations.update
509
+ * @secure
510
+ */
511
+ this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
512
+ /**
513
+ * @description Counts the engagement records.
514
+ *
515
+ * @tags engagements
516
+ * @name EngagementsCount
517
+ * @request GET:/engagements.count
518
+ * @secure
519
+ */
520
+ this.engagementsCount = (query, params = {}) => this.request(Object.assign({ path: `/engagements.count`, method: "GET", query: query, secure: true, format: "json" }, params));
521
+ /**
522
+ * @description Creates a new engagement record.
523
+ *
524
+ * @tags engagements
525
+ * @name EngagementsCreate
526
+ * @request POST:/engagements.create
527
+ * @secure
528
+ */
529
+ this.engagementsCreate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
530
+ /**
531
+ * @description Deletes the engagement record.
532
+ *
533
+ * @tags engagements
534
+ * @name EngagementsDelete
535
+ * @request POST:/engagements.delete
536
+ * @secure
537
+ */
538
+ this.engagementsDelete = (data, params = {}) => this.request(Object.assign({ path: `/engagements.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
539
+ /**
540
+ * @description Gets the engagement record.
541
+ *
542
+ * @tags engagements
543
+ * @name EngagementsGet
544
+ * @request GET:/engagements.get
545
+ * @secure
546
+ */
547
+ this.engagementsGet = (query, params = {}) => this.request(Object.assign({ path: `/engagements.get`, method: "GET", query: query, secure: true, format: "json" }, params));
548
+ /**
549
+ * @description Lists the engagement records.
550
+ *
551
+ * @tags engagements
552
+ * @name EngagementsList
553
+ * @request GET:/engagements.list
554
+ * @secure
555
+ */
556
+ this.engagementsList = (query, params = {}) => this.request(Object.assign({ path: `/engagements.list`, method: "GET", query: query, secure: true, format: "json" }, params));
557
+ /**
558
+ * @description Updates the engagement record.
559
+ *
560
+ * @tags engagements
561
+ * @name EngagementsUpdate
562
+ * @request POST:/engagements.update
563
+ * @secure
564
+ */
565
+ this.engagementsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/engagements.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
566
+ /**
567
+ * @description Schedules an event to be published to the specified event source.
568
+ *
569
+ * @tags event-source
570
+ * @name EventSourcesScheduleEvent
571
+ * @request POST:/event-sources.schedule
572
+ * @secure
573
+ */
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));
575
+ /**
576
+ * @description Deletes an event scheduled for the specified event source.
577
+ *
578
+ * @tags event-source
579
+ * @name EventSourcesDeleteScheduledEvent
580
+ * @request POST:/event-sources.unschedule
581
+ * @secure
582
+ */
583
+ this.eventSourcesDeleteScheduledEvent = (data, params = {}) => this.request(Object.assign({ path: `/event-sources.unschedule`, method: "POST", body: data, secure: true, type: ContentType.Json }, params));
584
+ /**
585
+ * @description Creates a link between two objects to indicate a relationship.
586
+ *
587
+ * @tags links
588
+ * @name LinksCreate
589
+ * @request POST:/links.create
590
+ * @secure
591
+ */
592
+ this.linksCreate = (data, params = {}) => this.request(Object.assign({ path: `/links.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
593
+ /**
594
+ * @description Deletes a link.
595
+ *
596
+ * @tags links
597
+ * @name LinksDelete
598
+ * @request POST:/links.delete
599
+ * @secure
600
+ */
601
+ this.linksDelete = (data, params = {}) => this.request(Object.assign({ path: `/links.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
602
+ /**
603
+ * @description Gets the requested link's information.
604
+ *
605
+ * @tags links
606
+ * @name LinksGet
607
+ * @request GET:/links.get
608
+ * @secure
609
+ */
610
+ this.linksGet = (query, params = {}) => this.request(Object.assign({ path: `/links.get`, method: "GET", query: query, secure: true, format: "json" }, params));
611
+ /**
612
+ * @description Lists the available links.
613
+ *
614
+ * @tags links
615
+ * @name LinksList
616
+ * @request GET:/links.list
617
+ * @secure
618
+ */
619
+ this.linksList = (query, params = {}) => this.request(Object.assign({ path: `/links.list`, method: "GET", query: query, secure: true, format: "json" }, params));
620
+ /**
621
+ * @description Lists metric definitions matching a filter.
622
+ *
623
+ * @tags slas
624
+ * @name MetricDefinitionsList
625
+ * @request GET:/metric-definitions.list
626
+ * @secure
627
+ */
628
+ this.metricDefinitionsList = (query, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: "GET", query: query, secure: true, format: "json" }, params));
629
+ /**
630
+ * @description Creates a Rev organization in the authenticated user's Dev organization.
631
+ *
632
+ * @tags rev-orgs
633
+ * @name RevOrgsCreate
634
+ * @request POST:/rev-orgs.create
635
+ * @secure
636
+ */
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));
638
+ /**
639
+ * @description Retrieves the Rev organization's information.
640
+ *
641
+ * @tags rev-orgs
642
+ * @name RevOrgsGet
643
+ * @request GET:/rev-orgs.get
644
+ * @secure
645
+ */
646
+ this.revOrgsGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.get`, method: "GET", query: query, secure: true, format: "json" }, params));
647
+ /**
648
+ * @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
+ *
650
+ * @tags rev-orgs
651
+ * @name RevOrgsList
652
+ * @request GET:/rev-orgs.list
653
+ * @secure
654
+ */
655
+ this.revOrgsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-orgs.list`, method: "GET", query: query, secure: true, format: "json" }, params));
656
+ /**
657
+ * @description Updates the Rev organization's information.
658
+ *
659
+ * @tags rev-orgs
660
+ * @name RevOrgsUpdate
661
+ * @request POST:/rev-orgs.update
662
+ * @secure
663
+ */
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));
665
+ /**
666
+ * @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
667
+ *
668
+ * @tags rev-users
669
+ * @name RevUsersCreate
670
+ * @request POST:/rev-users.create
671
+ * @secure
672
+ */
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));
674
+ /**
675
+ * @description Deletes a Rev user.
676
+ *
677
+ * @tags rev-users
678
+ * @name RevUsersDelete
679
+ * @request POST:/rev-users.delete
680
+ * @secure
681
+ */
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));
683
+ /**
684
+ * @description Returns the Rev user of a Rev organization by its ID.
685
+ *
686
+ * @tags rev-users
687
+ * @name RevUsersGet
688
+ * @request GET:/rev-users.get
689
+ * @secure
690
+ */
691
+ this.revUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.get`, method: "GET", query: query, secure: true, format: "json" }, params));
692
+ /**
693
+ * @description Links a rev user to a rev org.
694
+ *
695
+ * @tags rev-users
696
+ * @name LinkRevUserToRevOrg
697
+ * @request POST:/rev-users.link
698
+ * @secure
699
+ */
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));
701
+ /**
702
+ * @description Returns a list of all Rev Users belonging to the authenticated user's Dev Organization.
703
+ *
704
+ * @tags rev-users
705
+ * @name RevUsersList
706
+ * @request GET:/rev-users.list
707
+ * @secure
708
+ */
709
+ this.revUsersList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: "GET", query: query, secure: true, format: "json" }, params));
710
+ /**
711
+ * @description Unlinks a rev user from a rev org.
712
+ *
713
+ * @tags rev-users
714
+ * @name UnlinkRevUserFromRevOrg
715
+ * @request POST:/rev-users.unlink
716
+ * @secure
717
+ */
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));
719
+ /**
720
+ * @description Updates a Rev user.
721
+ *
722
+ * @tags rev-users
723
+ * @name RevUsersUpdate
724
+ * @request POST:/rev-users.update
725
+ * @secure
726
+ */
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));
728
+ /**
729
+ * @description Gets the aggregated schema.
730
+ *
731
+ * @tags customization
732
+ * @name AggregatedSchemaGet
733
+ * @request GET:/schemas.aggregated.get
734
+ * @secure
735
+ */
736
+ this.aggregatedSchemaGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.aggregated.get`, method: "GET", query: query, secure: true, format: "json" }, params));
737
+ /**
738
+ * @description Gets a custom schema fragment.
739
+ *
740
+ * @tags customization
741
+ * @name CustomSchemaFragmentsGet
742
+ * @request GET:/schemas.custom.get
743
+ * @secure
744
+ */
745
+ this.customSchemaFragmentsGet = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.get`, method: "GET", query: query, secure: true, format: "json" }, params));
746
+ /**
747
+ * @description Lists custom schema fragments.
748
+ *
749
+ * @tags customization
750
+ * @name CustomSchemaFragmentsList
751
+ * @request GET:/schemas.custom.list
752
+ * @secure
753
+ */
754
+ this.customSchemaFragmentsList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.custom.list`, method: "GET", query: query, secure: true, format: "json" }, params));
755
+ /**
756
+ * @description Creates or updates a custom schema fragment.
757
+ *
758
+ * @tags customization
759
+ * @name CustomSchemaFragmentsSet
760
+ * @request POST:/schemas.custom.set
761
+ * @secure
762
+ */
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));
764
+ /**
765
+ * @description Lists subtypes.
766
+ *
767
+ * @tags customization
768
+ * @name SubtypesList
769
+ * @request GET:/schemas.subtypes.list
770
+ * @secure
771
+ */
772
+ this.subtypesList = (query, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: "GET", query: query, secure: true, format: "json" }, params));
773
+ /**
774
+ * @description Assigns the SLA to a set of Rev organizations.
775
+ *
776
+ * @tags slas
777
+ * @name SlasAssign
778
+ * @request POST:/slas.assign
779
+ * @secure
780
+ */
781
+ this.slasAssign = (data, params = {}) => this.request(Object.assign({ path: `/slas.assign`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
782
+ /**
783
+ * @description Creates an SLA in draft status.
784
+ *
785
+ * @tags slas
786
+ * @name SlasCreate
787
+ * @request POST:/slas.create
788
+ * @secure
789
+ */
790
+ this.slasCreate = (data, params = {}) => this.request(Object.assign({ path: `/slas.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
791
+ /**
792
+ * @description Gets an SLA.
793
+ *
794
+ * @tags slas
795
+ * @name SlasGet
796
+ * @request GET:/slas.get
797
+ * @secure
798
+ */
799
+ this.slasGet = (query, params = {}) => this.request(Object.assign({ path: `/slas.get`, method: "GET", query: query, secure: true, format: "json" }, params));
800
+ /**
801
+ * @description Lists SLAs matching a filter.
802
+ *
803
+ * @tags slas
804
+ * @name SlasList
805
+ * @request GET:/slas.list
806
+ * @secure
807
+ */
808
+ this.slasList = (query, params = {}) => this.request(Object.assign({ path: `/slas.list`, method: "GET", query: query, secure: true, format: "json" }, params));
809
+ /**
810
+ * @description Changes the status of an SLA.
811
+ *
812
+ * @tags slas
813
+ * @name SlasTransition
814
+ * @request POST:/slas.transition
815
+ * @secure
816
+ */
817
+ this.slasTransition = (data, params = {}) => this.request(Object.assign({ path: `/slas.transition`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
818
+ /**
819
+ * @description Updates a draft SLA.
820
+ *
821
+ * @tags slas
822
+ * @name SlasUpdate
823
+ * @request POST:/slas.update
824
+ * @secure
825
+ */
826
+ this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
827
+ /**
828
+ * @description Lists system users within your organization.
829
+ *
830
+ * @tags sys-users
831
+ * @name SysUsersList
832
+ * @request GET:/sys-users.list
833
+ * @secure
834
+ */
835
+ this.sysUsersList = (query, params = {}) => this.request(Object.assign({ path: `/sys-users.list`, method: "GET", query: query, secure: true, format: "json" }, params));
836
+ /**
837
+ * @description Updates the system user.
838
+ *
839
+ * @tags sys-users
840
+ * @name SysUsersUpdate
841
+ * @request POST:/sys-users.update
842
+ * @secure
843
+ */
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));
845
+ /**
846
+ * @description Creates a new entry on an object's timeline.
847
+ *
848
+ * @tags timeline-entries
849
+ * @name TimelineEntriesCreate
850
+ * @request POST:/timeline-entries.create
851
+ * @secure
852
+ */
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));
854
+ /**
855
+ * @description Lists the timeline entries for an object.
856
+ *
857
+ * @tags timeline-entries
858
+ * @name TimelineEntriesList
859
+ * @request GET:/timeline-entries.list
860
+ * @secure
861
+ */
862
+ this.timelineEntriesList = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.list`, method: "GET", query: query, secure: true, format: "json" }, params));
863
+ /**
864
+ * @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
+ *
866
+ * @tags works
867
+ * @name WorksCreate
868
+ * @request POST:/works.create
869
+ * @secure
870
+ */
871
+ this.worksCreate = (data, params = {}) => this.request(Object.assign({ path: `/works.create`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
872
+ /**
873
+ * @description Deletes a work item.
874
+ *
875
+ * @tags works
876
+ * @name WorksDelete
877
+ * @request POST:/works.delete
878
+ * @secure
879
+ */
880
+ this.worksDelete = (data, params = {}) => this.request(Object.assign({ path: `/works.delete`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
881
+ /**
882
+ * @description Exports a collection of work items.
883
+ *
884
+ * @tags works
885
+ * @name WorksExport
886
+ * @request GET:/works.export
887
+ * @secure
888
+ */
889
+ this.worksExport = (query, params = {}) => this.request(Object.assign({ path: `/works.export`, method: "GET", query: query, secure: true, format: "json" }, params));
890
+ /**
891
+ * @description Gets a work item's information.
892
+ *
893
+ * @tags works
894
+ * @name WorksGet
895
+ * @request GET:/works.get
896
+ * @secure
897
+ */
898
+ this.worksGet = (query, params = {}) => this.request(Object.assign({ path: `/works.get`, method: "GET", query: query, secure: true, format: "json" }, params));
899
+ /**
900
+ * @description Lists a collection of work items.
901
+ *
902
+ * @tags works
903
+ * @name WorksList
904
+ * @request GET:/works.list
905
+ * @secure
906
+ */
907
+ this.worksList = (query, params = {}) => this.request(Object.assign({ path: `/works.list`, method: "GET", query: query, secure: true, format: "json" }, params));
908
+ /**
909
+ * @description Updates a work item's information.
910
+ *
911
+ * @tags works
912
+ * @name WorksUpdate
913
+ * @request POST:/works.update
914
+ * @secure
915
+ */
916
+ this.worksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/works.update`, method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
917
+ }
918
+ }
919
+ exports.Api = Api;