@devrev/typescript-sdk 1.1.25 → 1.1.27

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,8 +33,9 @@ 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.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = void 0;
36
+ exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = void 0;
38
+ exports.Api = exports.HttpClient = exports.ContentType = void 0;
38
39
  var AccessLevel;
39
40
  (function (AccessLevel) {
40
41
  AccessLevel["External"] = "external";
@@ -292,6 +293,7 @@ var EngagementsCreateRequestEngagementType;
292
293
  })(EngagementsCreateRequestEngagementType = exports.EngagementsCreateRequestEngagementType || (exports.EngagementsCreateRequestEngagementType = {}));
293
294
  var ErrorBadRequestType;
294
295
  (function (ErrorBadRequestType) {
296
+ ErrorBadRequestType["ArtifactAlreadyAttachedToAParent"] = "artifact_already_attached_to_a_parent";
295
297
  ErrorBadRequestType["BadRequest"] = "bad_request";
296
298
  ErrorBadRequestType["InvalidApiVersion"] = "invalid_api_version";
297
299
  ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
@@ -433,6 +435,7 @@ var MemberType;
433
435
  var MetricDefinitionAppliesTo;
434
436
  (function (MetricDefinitionAppliesTo) {
435
437
  MetricDefinitionAppliesTo["Conversation"] = "conversation";
438
+ MetricDefinitionAppliesTo["Issue"] = "issue";
436
439
  MetricDefinitionAppliesTo["Ticket"] = "ticket";
437
440
  })(MetricDefinitionAppliesTo = exports.MetricDefinitionAppliesTo || (exports.MetricDefinitionAppliesTo = {}));
438
441
  /**
@@ -446,6 +449,16 @@ var MetricDefinitionMetricType;
446
449
  MetricDefinitionMetricType["Time"] = "time";
447
450
  MetricDefinitionMetricType["Value"] = "value";
448
451
  })(MetricDefinitionMetricType = exports.MetricDefinitionMetricType || (exports.MetricDefinitionMetricType = {}));
452
+ /**
453
+ * The status of the metric. 'active' metrics can be used to create new
454
+ * SLAs, while 'inactive' metrics can not be used in new SLAs. Metrics can
455
+ * be updated between 'active' and 'inactive' states.
456
+ */
457
+ var MetricDefinitionStatus;
458
+ (function (MetricDefinitionStatus) {
459
+ MetricDefinitionStatus["Active"] = "active";
460
+ MetricDefinitionStatus["Inactive"] = "inactive";
461
+ })(MetricDefinitionStatus = exports.MetricDefinitionStatus || (exports.MetricDefinitionStatus = {}));
449
462
  /** Forecast category of the opportunity. */
450
463
  var OpportunityForecastCategory;
451
464
  (function (OpportunityForecastCategory) {
@@ -509,6 +522,7 @@ var PartType;
509
522
  var QuestionAnswerStatus;
510
523
  (function (QuestionAnswerStatus) {
511
524
  QuestionAnswerStatus["Archived"] = "archived";
525
+ QuestionAnswerStatus["Discarded"] = "discarded";
512
526
  QuestionAnswerStatus["Draft"] = "draft";
513
527
  QuestionAnswerStatus["Published"] = "published";
514
528
  QuestionAnswerStatus["ReviewNeeded"] = "review_needed";
@@ -620,6 +634,17 @@ var SearchSortOrderParam;
620
634
  SearchSortOrderParam["Asc"] = "asc";
621
635
  SearchSortOrderParam["Desc"] = "desc";
622
636
  })(SearchSortOrderParam = exports.SearchSortOrderParam || (exports.SearchSortOrderParam = {}));
637
+ /**
638
+ * The object types on which the SLA applies. An external SLA can apply to
639
+ * multiple object types, but an internal SLA can apply to only one object
640
+ * type.
641
+ */
642
+ var SlaAppliesTo;
643
+ (function (SlaAppliesTo) {
644
+ SlaAppliesTo["Conversation"] = "conversation";
645
+ SlaAppliesTo["Issue"] = "issue";
646
+ SlaAppliesTo["Ticket"] = "ticket";
647
+ })(SlaAppliesTo = exports.SlaAppliesTo || (exports.SlaAppliesTo = {}));
623
648
  /**
624
649
  * Specifies the frequency of when the contractually-meaningful evaluation
625
650
  * of the SLA happens. The organization for their own information might
@@ -639,9 +664,10 @@ var SlaEvaluationPeriod;
639
664
  var SlaSelectorAppliesTo;
640
665
  (function (SlaSelectorAppliesTo) {
641
666
  SlaSelectorAppliesTo["Conversation"] = "conversation";
667
+ SlaSelectorAppliesTo["Issue"] = "issue";
642
668
  SlaSelectorAppliesTo["Ticket"] = "ticket";
643
669
  })(SlaSelectorAppliesTo = exports.SlaSelectorAppliesTo || (exports.SlaSelectorAppliesTo = {}));
644
- /** Th SLA policy applies to conversations with these priorities. */
670
+ /** The SLA policy applies to conversations with these priorities. */
645
671
  var SlaSelectorPriority;
646
672
  (function (SlaSelectorPriority) {
647
673
  SlaSelectorPriority["P0"] = "p0";
@@ -679,6 +705,17 @@ var SlaSummaryStage;
679
705
  SlaSummaryStage["Running"] = "running";
680
706
  SlaSummaryStage["Warning"] = "warning";
681
707
  })(SlaSummaryStage = exports.SlaSummaryStage || (exports.SlaSummaryStage = {}));
708
+ /** Type of the SLA. */
709
+ var SlaType;
710
+ (function (SlaType) {
711
+ SlaType["External"] = "external";
712
+ SlaType["Internal"] = "internal";
713
+ })(SlaType = exports.SlaType || (exports.SlaType = {}));
714
+ var SlasFilterAppliesToOperatorType;
715
+ (function (SlasFilterAppliesToOperatorType) {
716
+ SlasFilterAppliesToOperatorType["All"] = "all";
717
+ SlasFilterAppliesToOperatorType["Any"] = "any";
718
+ })(SlasFilterAppliesToOperatorType = exports.SlasFilterAppliesToOperatorType || (exports.SlasFilterAppliesToOperatorType = {}));
682
719
  /** Logical grouping of snap widgets. Useful for filtering. */
683
720
  var SnapWidgetNamespace;
684
721
  (function (SnapWidgetNamespace) {
@@ -747,6 +784,7 @@ var TicketChannels;
747
784
  TicketChannels["Email"] = "email";
748
785
  TicketChannels["Plug"] = "plug";
749
786
  TicketChannels["Slack"] = "slack";
787
+ TicketChannels["Twilio"] = "twilio";
750
788
  })(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
751
789
  /** Severity of the ticket. */
752
790
  var TicketSeverity;
@@ -1535,6 +1573,24 @@ class Api extends HttpClient {
1535
1573
  * @secure
1536
1574
  */
1537
1575
  this.devUsersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1576
+ /**
1577
+ * @description Links an external/secondary identity to the Dev user.
1578
+ *
1579
+ * @tags dev-users
1580
+ * @name DevUsersIdentitiesLink
1581
+ * @request POST:/dev-users.identities.link
1582
+ * @secure
1583
+ */
1584
+ this.devUsersIdentitiesLink = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.identities.link`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1585
+ /**
1586
+ * @description Unlinks an external/secondary identity from the Dev user.
1587
+ *
1588
+ * @tags dev-users
1589
+ * @name DevUsersIdentitiesUnlink
1590
+ * @request POST:/dev-users.identities.unlink
1591
+ * @secure
1592
+ */
1593
+ this.devUsersIdentitiesUnlink = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.identities.unlink`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1538
1594
  /**
1539
1595
  * @description Lists users within your organization.
1540
1596
  *
@@ -1006,8 +1006,18 @@ export interface DevOrgAuthConnectionsUpdateResponse {
1006
1006
  }
1007
1007
  /** dev-user */
1008
1008
  export type DevUser = UserBase & {
1009
+ /**
1010
+ * Start date of the user's employment.
1011
+ * @format date-time
1012
+ * @example "2023-01-01T12:00:00.000Z"
1013
+ */
1014
+ experience_start_date?: string;
1009
1015
  /** IDs of the Dev User outside the DevRev SOR. */
1010
1016
  external_identities?: ExternalIdentity[];
1017
+ /** Job history of the user. */
1018
+ job_history?: JobHistoryItem[];
1019
+ /** Array of skills of the user. */
1020
+ skills?: UserSkill[];
1011
1021
  };
1012
1022
  /** dev-user-external-identity-filter */
1013
1023
  export interface DevUserExternalIdentityFilter {
@@ -1101,10 +1111,35 @@ export type Empty = object;
1101
1111
  export type Enhancement = PartBase;
1102
1112
  /** enhancement-summary */
1103
1113
  export type EnhancementSummary = PartBaseSummary;
1114
+ /**
1115
+ * enum-value
1116
+ * Enum Value defines the structure for an enum.
1117
+ */
1118
+ export interface EnumValue {
1119
+ /**
1120
+ * Unique ID of the enum value. This is immutable.
1121
+ * @format int64
1122
+ */
1123
+ id: number;
1124
+ /** Display label of the enum value. This is mutable. */
1125
+ label: string;
1126
+ /**
1127
+ * Order number of the enum value. This is mutable.
1128
+ * @format int64
1129
+ */
1130
+ ordinal: number;
1131
+ }
1104
1132
  /** error-bad-request */
1105
- export type ErrorBadRequest = ErrorBase & (ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1133
+ export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1106
1134
  type: ErrorBadRequestType;
1107
1135
  };
1136
+ /** error-bad-request-artifact-already-attached-to-a-parent */
1137
+ export interface ErrorBadRequestArtifactAlreadyAttachedToAParent {
1138
+ /** The existing parent attached to the artifact. */
1139
+ existing_parent: string;
1140
+ /** Whether the existing parent is the same as the new parent. */
1141
+ is_same: boolean;
1142
+ }
1108
1143
  /** error-bad-request-bad-request */
1109
1144
  export type ErrorBadRequestBadRequest = object;
1110
1145
  /** error-bad-request-invalid-api-version */
@@ -1163,6 +1198,7 @@ export type ErrorBadRequestParseError = object;
1163
1198
  */
1164
1199
  export type ErrorBadRequestStaleSchemaFragments = object;
1165
1200
  export declare enum ErrorBadRequestType {
1201
+ ArtifactAlreadyAttachedToAParent = "artifact_already_attached_to_a_parent",
1166
1202
  BadRequest = "bad_request",
1167
1203
  InvalidApiVersion = "invalid_api_version",
1168
1204
  InvalidEnumValue = "invalid_enum_value",
@@ -1472,6 +1508,8 @@ export type Issue = WorkBase & {
1472
1508
  developed_with?: PartSummary[];
1473
1509
  /** Priority of the work based upon impact and criticality. */
1474
1510
  priority?: IssuePriority;
1511
+ /** Vista group item. */
1512
+ sprint?: VistaGroupItemSummary;
1475
1513
  /**
1476
1514
  * Target start date for the object.
1477
1515
  * @format date-time
@@ -1486,6 +1524,32 @@ export declare enum IssuePriority {
1486
1524
  P2 = "p2",
1487
1525
  P3 = "p3"
1488
1526
  }
1527
+ /**
1528
+ * job-history-item
1529
+ * Defines a job history line item.
1530
+ */
1531
+ export interface JobHistoryItem {
1532
+ /** Enum Value defines the structure for an enum. */
1533
+ employment_status?: EnumValue;
1534
+ /**
1535
+ * The end date of the job, or not specified if current.
1536
+ * @format date-time
1537
+ * @example "2023-01-01T12:00:00.000Z"
1538
+ */
1539
+ end_date?: string;
1540
+ /** Is this the current active job for the user. */
1541
+ is_current?: boolean;
1542
+ /** The job location for the user. */
1543
+ location?: string;
1544
+ /**
1545
+ * The start date of the job.
1546
+ * @format date-time
1547
+ * @example "2023-01-01T12:00:00.000Z"
1548
+ */
1549
+ start_date?: string;
1550
+ /** The job title for the user. */
1551
+ title?: string;
1552
+ }
1489
1553
  /**
1490
1554
  * legacy-stage
1491
1555
  * Describes the current stage of a work item.
@@ -2161,6 +2225,7 @@ export type SurveyResponse = AtomBase & {
2161
2225
  dispatch_id?: string;
2162
2226
  /** The ID of the object for which survey is taken. */
2163
2227
  object?: string;
2228
+ recipient?: UserSummary;
2164
2229
  /** Response for the survey. */
2165
2230
  response?: object;
2166
2231
  /** The ID of the survey for which response is taken. */
@@ -2391,7 +2456,8 @@ export type Ticket = WorkBase & {
2391
2456
  export declare enum TicketChannels {
2392
2457
  Email = "email",
2393
2458
  Plug = "plug",
2394
- Slack = "slack"
2459
+ Slack = "slack",
2460
+ Twilio = "twilio"
2395
2461
  }
2396
2462
  /** Severity of the ticket. */
2397
2463
  export declare enum TicketSeverity {
@@ -2719,6 +2785,14 @@ export type UserBaseSummary = AtomBaseSummary & {
2719
2785
  /** State of the user. */
2720
2786
  state?: UserState;
2721
2787
  };
2788
+ /**
2789
+ * user-skill
2790
+ * Skill associated with the user.
2791
+ */
2792
+ export interface UserSkill {
2793
+ /** Name of the skill. */
2794
+ name?: string;
2795
+ }
2722
2796
  /** State of the user. */
2723
2797
  export declare enum UserState {
2724
2798
  Active = "active",
@@ -2737,6 +2811,11 @@ export declare enum UserType {
2737
2811
  RevUser = "rev_user",
2738
2812
  SysUser = "sys_user"
2739
2813
  }
2814
+ /**
2815
+ * vista-group-item-summary
2816
+ * Vista group item.
2817
+ */
2818
+ export type VistaGroupItemSummary = object;
2740
2819
  /** webhook */
2741
2820
  export type Webhook = AtomBase & {
2742
2821
  /** The event types that the webhook will receive. */
@@ -3208,6 +3287,8 @@ export interface WorksFilterIssue {
3208
3287
  * @example ["REV-AbCdEfGh"]
3209
3288
  */
3210
3289
  rev_orgs?: string[];
3290
+ /** Filters for issues with any of the sprint. */
3291
+ sprint?: string[];
3211
3292
  /** Provides ways to specify date ranges on objects. */
3212
3293
  target_start_date?: DateFilter;
3213
3294
  }
@@ -4601,6 +4682,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4601
4682
  * @example ["REV-AbCdEfGh"]
4602
4683
  */
4603
4684
  'issue.rev_orgs'?: string[];
4685
+ /** Filters for issues with any of the sprint. */
4686
+ 'issue.sprint'?: string[];
4604
4687
  /**
4605
4688
  * Filters for work owned by any of these users.
4606
4689
  * @example ["DEVU-12345"]
@@ -4724,6 +4807,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4724
4807
  * @example ["REV-AbCdEfGh"]
4725
4808
  */
4726
4809
  'issue.rev_orgs'?: string[];
4810
+ /** Filters for issues with any of the sprint. */
4811
+ 'issue.sprint'?: string[];
4727
4812
  /**
4728
4813
  * The maximum number of works to return. The default is '50'.
4729
4814
  * @format int32
@@ -141,6 +141,7 @@ var DevOrgAuthConnectionsUpdateRequestType;
141
141
  })(DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsUpdateRequestType || (exports.DevOrgAuthConnectionsUpdateRequestType = {}));
142
142
  var ErrorBadRequestType;
143
143
  (function (ErrorBadRequestType) {
144
+ ErrorBadRequestType["ArtifactAlreadyAttachedToAParent"] = "artifact_already_attached_to_a_parent";
144
145
  ErrorBadRequestType["BadRequest"] = "bad_request";
145
146
  ErrorBadRequestType["InvalidApiVersion"] = "invalid_api_version";
146
147
  ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
@@ -289,6 +290,7 @@ var TicketChannels;
289
290
  TicketChannels["Email"] = "email";
290
291
  TicketChannels["Plug"] = "plug";
291
292
  TicketChannels["Slack"] = "slack";
293
+ TicketChannels["Twilio"] = "twilio";
292
294
  })(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
293
295
  /** Severity of the ticket. */
294
296
  var TicketSeverity;
@@ -0,0 +1,4 @@
1
+ export * from './interfaces';
2
+ export * from './schema.pb';
3
+ export * from './stock_objects';
4
+ export * from './types';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interfaces"), exports);
18
+ __exportStar(require("./schema.pb"), exports);
19
+ __exportStar(require("./stock_objects"), exports);
20
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,15 @@
1
+ import { OperationOutput } from './schema.pb';
2
+ import { OperationContext } from './types';
3
+ /**
4
+ * Interface for the operation base class. Contains the GetContext method.
5
+ */
6
+ export interface OperationBaseIfc {
7
+ GetContext: (...args: any[]) => OperationContext;
8
+ }
9
+ /**
10
+ * Interface for the operation class. All operations should implement this interface.
11
+ * Extends the OperationBaseIfc interface.
12
+ */
13
+ export interface OperationIfc extends OperationBaseIfc {
14
+ run(metadata: OperationContext, input: Record<string, any>, resources: Record<string, any>): Promise<OperationOutput>;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });