@devrev/typescript-sdk 1.1.19 → 1.1.20
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.
|
@@ -744,6 +744,97 @@ export interface AtomBaseSummary {
|
|
|
744
744
|
export type Capability = PartBase;
|
|
745
745
|
/** capability-summary */
|
|
746
746
|
export type CapabilitySummary = PartBaseSummary;
|
|
747
|
+
/** code-change */
|
|
748
|
+
export type CodeChange = AtomBase & {
|
|
749
|
+
/** Name of the code branch in the repo. */
|
|
750
|
+
branch?: string;
|
|
751
|
+
/** Detailed description of the contents of this change. */
|
|
752
|
+
description?: string;
|
|
753
|
+
/** Unique external identifier for this change.e.g Pull Request URL. */
|
|
754
|
+
external_identifier?: string;
|
|
755
|
+
/** URL pointing to the repo this change was on. */
|
|
756
|
+
repo_url?: string;
|
|
757
|
+
/** Source of the code change object. */
|
|
758
|
+
source?: CodeChangeSource;
|
|
759
|
+
/** Title describing in brief the contents of this change. */
|
|
760
|
+
title?: string;
|
|
761
|
+
};
|
|
762
|
+
/** Source of the code change object. */
|
|
763
|
+
export declare enum CodeChangeSource {
|
|
764
|
+
Github = "github"
|
|
765
|
+
}
|
|
766
|
+
/** code-changes-create-request */
|
|
767
|
+
export type CodeChangesCreateRequest = object;
|
|
768
|
+
/** code-changes-create-response */
|
|
769
|
+
export interface CodeChangesCreateResponse {
|
|
770
|
+
code_change: CodeChange;
|
|
771
|
+
}
|
|
772
|
+
/** code-changes-delete-request */
|
|
773
|
+
export interface CodeChangesDeleteRequest {
|
|
774
|
+
/** ID of the code change object which is to be deleted. */
|
|
775
|
+
id: string;
|
|
776
|
+
}
|
|
777
|
+
/** code-changes-delete-response */
|
|
778
|
+
export type CodeChangesDeleteResponse = object;
|
|
779
|
+
/** code-changes-get-request */
|
|
780
|
+
export interface CodeChangesGetRequest {
|
|
781
|
+
/** The code change object ID. */
|
|
782
|
+
id: string;
|
|
783
|
+
}
|
|
784
|
+
/** code-changes-get-response */
|
|
785
|
+
export interface CodeChangesGetResponse {
|
|
786
|
+
code_change: CodeChange;
|
|
787
|
+
}
|
|
788
|
+
/** code-changes-list-request */
|
|
789
|
+
export interface CodeChangesListRequest {
|
|
790
|
+
/** Provides ways to specify date ranges on objects. */
|
|
791
|
+
created_date?: DateFilter;
|
|
792
|
+
/**
|
|
793
|
+
* The cursor to resume iteration from. If not provided, then
|
|
794
|
+
* iteration starts from the beginning.
|
|
795
|
+
*/
|
|
796
|
+
cursor?: string;
|
|
797
|
+
/**
|
|
798
|
+
* The maximum number of code change objects to return. The default is
|
|
799
|
+
* '50'.
|
|
800
|
+
* @format int32
|
|
801
|
+
*/
|
|
802
|
+
limit?: number;
|
|
803
|
+
/**
|
|
804
|
+
* The iteration mode to use. If "after", then entries after the provided
|
|
805
|
+
* cursor will be returned, or if no cursor is provided, then from the
|
|
806
|
+
* beginning. If "before", then entries before the provided cursor will be
|
|
807
|
+
* returned, or if no cursor is provided, then from the end. Entries will
|
|
808
|
+
* always be returned in the specified sort-by order.
|
|
809
|
+
*/
|
|
810
|
+
mode?: ListMode;
|
|
811
|
+
/** Provides ways to specify date ranges on objects. */
|
|
812
|
+
modified_date?: DateFilter;
|
|
813
|
+
}
|
|
814
|
+
/** code-changes-list-response */
|
|
815
|
+
export interface CodeChangesListResponse {
|
|
816
|
+
/** The list of requested code change objects. */
|
|
817
|
+
code_changes: CodeChange[];
|
|
818
|
+
/**
|
|
819
|
+
* The cursor used to iterate subsequent results in accordance to the
|
|
820
|
+
* sort order. If not set, then no later elements exist.
|
|
821
|
+
*/
|
|
822
|
+
next_cursor?: string;
|
|
823
|
+
/**
|
|
824
|
+
* The cursor used to iterate preceding results in accordance to the
|
|
825
|
+
* sort order. If not set, then no prior elements exist.
|
|
826
|
+
*/
|
|
827
|
+
prev_cursor?: string;
|
|
828
|
+
}
|
|
829
|
+
/** code-changes-update-request */
|
|
830
|
+
export interface CodeChangesUpdateRequest {
|
|
831
|
+
/** The ID of the code change object to be updated. */
|
|
832
|
+
id: string;
|
|
833
|
+
}
|
|
834
|
+
/** code-changes-update-response */
|
|
835
|
+
export interface CodeChangesUpdateResponse {
|
|
836
|
+
code_change: CodeChange;
|
|
837
|
+
}
|
|
747
838
|
/** conversation */
|
|
748
839
|
export type Conversation = AtomBase & {
|
|
749
840
|
/** Description of the conversation object. */
|
|
@@ -6153,6 +6244,89 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6153
6244
|
* @secure
|
|
6154
6245
|
*/
|
|
6155
6246
|
artifactsVersionsPrepare: (data: ArtifactsVersionsPrepareRequest, params?: RequestParams) => Promise<AxiosResponse<ArtifactsVersionsPrepareResponse, any>>;
|
|
6247
|
+
/**
|
|
6248
|
+
* @description Create CodeChange object.
|
|
6249
|
+
*
|
|
6250
|
+
* @tags works
|
|
6251
|
+
* @name CodeChangesCreate
|
|
6252
|
+
* @request POST:/code-changes.create
|
|
6253
|
+
* @secure
|
|
6254
|
+
*/
|
|
6255
|
+
codeChangesCreate: (data: CodeChangesCreateRequest, params?: RequestParams) => Promise<AxiosResponse<CodeChangesCreateResponse, any>>;
|
|
6256
|
+
/**
|
|
6257
|
+
* @description Delete CodeChange object.
|
|
6258
|
+
*
|
|
6259
|
+
* @tags works
|
|
6260
|
+
* @name CodeChangesDelete
|
|
6261
|
+
* @request POST:/code-changes.delete
|
|
6262
|
+
* @secure
|
|
6263
|
+
*/
|
|
6264
|
+
codeChangesDelete: (data: CodeChangesDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
|
|
6265
|
+
/**
|
|
6266
|
+
* @description Get CodeChange object.
|
|
6267
|
+
*
|
|
6268
|
+
* @tags works
|
|
6269
|
+
* @name CodeChangesGet
|
|
6270
|
+
* @request GET:/code-changes.get
|
|
6271
|
+
* @secure
|
|
6272
|
+
*/
|
|
6273
|
+
codeChangesGet: (query: {
|
|
6274
|
+
/** The code change object ID. */
|
|
6275
|
+
id: string;
|
|
6276
|
+
}, params?: RequestParams) => Promise<AxiosResponse<CodeChangesGetResponse, any>>;
|
|
6277
|
+
/**
|
|
6278
|
+
* @description Get CodeChange object.
|
|
6279
|
+
*
|
|
6280
|
+
* @tags works
|
|
6281
|
+
* @name CodeChangesGetPost
|
|
6282
|
+
* @request POST:/code-changes.get
|
|
6283
|
+
* @secure
|
|
6284
|
+
*/
|
|
6285
|
+
codeChangesGetPost: (data: CodeChangesGetRequest, params?: RequestParams) => Promise<AxiosResponse<CodeChangesGetResponse, any>>;
|
|
6286
|
+
/**
|
|
6287
|
+
* @description List CodeChange objects.
|
|
6288
|
+
*
|
|
6289
|
+
* @tags works
|
|
6290
|
+
* @name CodeChangesList
|
|
6291
|
+
* @request GET:/code-changes.list
|
|
6292
|
+
* @secure
|
|
6293
|
+
*/
|
|
6294
|
+
codeChangesList: (query?: {
|
|
6295
|
+
/**
|
|
6296
|
+
* The cursor to resume iteration from. If not provided, then iteration
|
|
6297
|
+
* starts from the beginning.
|
|
6298
|
+
*/
|
|
6299
|
+
cursor?: string;
|
|
6300
|
+
/**
|
|
6301
|
+
* The maximum number of code change objects to return. The default is
|
|
6302
|
+
* '50'.
|
|
6303
|
+
* @format int32
|
|
6304
|
+
*/
|
|
6305
|
+
limit?: number;
|
|
6306
|
+
/**
|
|
6307
|
+
* The iteration mode to use, otherwise if not set, then "after" is
|
|
6308
|
+
* used.
|
|
6309
|
+
*/
|
|
6310
|
+
mode?: ListMode;
|
|
6311
|
+
}, params?: RequestParams) => Promise<AxiosResponse<CodeChangesListResponse, any>>;
|
|
6312
|
+
/**
|
|
6313
|
+
* @description List CodeChange objects.
|
|
6314
|
+
*
|
|
6315
|
+
* @tags works
|
|
6316
|
+
* @name CodeChangesListPost
|
|
6317
|
+
* @request POST:/code-changes.list
|
|
6318
|
+
* @secure
|
|
6319
|
+
*/
|
|
6320
|
+
codeChangesListPost: (data: CodeChangesListRequest, params?: RequestParams) => Promise<AxiosResponse<CodeChangesListResponse, any>>;
|
|
6321
|
+
/**
|
|
6322
|
+
* @description Update CodeChange object.
|
|
6323
|
+
*
|
|
6324
|
+
* @tags works
|
|
6325
|
+
* @name CodeChangesUpdate
|
|
6326
|
+
* @request POST:/code-changes.update
|
|
6327
|
+
* @secure
|
|
6328
|
+
*/
|
|
6329
|
+
codeChangesUpdate: (data: CodeChangesUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<CodeChangesUpdateResponse, any>>;
|
|
6156
6330
|
/**
|
|
6157
6331
|
* @description Creates a conversation.
|
|
6158
6332
|
*
|
|
@@ -33,8 +33,8 @@ 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.
|
|
37
|
-
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = void 0;
|
|
36
|
+
exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaSummaryStage = 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.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
|
|
37
|
+
exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = void 0;
|
|
38
38
|
var AccessLevel;
|
|
39
39
|
(function (AccessLevel) {
|
|
40
40
|
AccessLevel["External"] = "external";
|
|
@@ -84,6 +84,11 @@ var ArticleStatus;
|
|
|
84
84
|
ArticleStatus["Published"] = "published";
|
|
85
85
|
ArticleStatus["ReviewNeeded"] = "review_needed";
|
|
86
86
|
})(ArticleStatus = exports.ArticleStatus || (exports.ArticleStatus = {}));
|
|
87
|
+
/** Source of the code change object. */
|
|
88
|
+
var CodeChangeSource;
|
|
89
|
+
(function (CodeChangeSource) {
|
|
90
|
+
CodeChangeSource["Github"] = "github";
|
|
91
|
+
})(CodeChangeSource = exports.CodeChangeSource || (exports.CodeChangeSource = {}));
|
|
87
92
|
var ConversationsCreateRequestTypeValue;
|
|
88
93
|
(function (ConversationsCreateRequestTypeValue) {
|
|
89
94
|
ConversationsCreateRequestTypeValue["Support"] = "support";
|
|
@@ -814,6 +819,69 @@ class Api extends HttpClient {
|
|
|
814
819
|
* @secure
|
|
815
820
|
*/
|
|
816
821
|
this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
822
|
+
/**
|
|
823
|
+
* @description Create CodeChange object.
|
|
824
|
+
*
|
|
825
|
+
* @tags works
|
|
826
|
+
* @name CodeChangesCreate
|
|
827
|
+
* @request POST:/code-changes.create
|
|
828
|
+
* @secure
|
|
829
|
+
*/
|
|
830
|
+
this.codeChangesCreate = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
831
|
+
/**
|
|
832
|
+
* @description Delete CodeChange object.
|
|
833
|
+
*
|
|
834
|
+
* @tags works
|
|
835
|
+
* @name CodeChangesDelete
|
|
836
|
+
* @request POST:/code-changes.delete
|
|
837
|
+
* @secure
|
|
838
|
+
*/
|
|
839
|
+
this.codeChangesDelete = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
840
|
+
/**
|
|
841
|
+
* @description Get CodeChange object.
|
|
842
|
+
*
|
|
843
|
+
* @tags works
|
|
844
|
+
* @name CodeChangesGet
|
|
845
|
+
* @request GET:/code-changes.get
|
|
846
|
+
* @secure
|
|
847
|
+
*/
|
|
848
|
+
this.codeChangesGet = (query, params = {}) => this.request(Object.assign({ path: `/code-changes.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
849
|
+
/**
|
|
850
|
+
* @description Get CodeChange object.
|
|
851
|
+
*
|
|
852
|
+
* @tags works
|
|
853
|
+
* @name CodeChangesGetPost
|
|
854
|
+
* @request POST:/code-changes.get
|
|
855
|
+
* @secure
|
|
856
|
+
*/
|
|
857
|
+
this.codeChangesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
858
|
+
/**
|
|
859
|
+
* @description List CodeChange objects.
|
|
860
|
+
*
|
|
861
|
+
* @tags works
|
|
862
|
+
* @name CodeChangesList
|
|
863
|
+
* @request GET:/code-changes.list
|
|
864
|
+
* @secure
|
|
865
|
+
*/
|
|
866
|
+
this.codeChangesList = (query, params = {}) => this.request(Object.assign({ path: `/code-changes.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
867
|
+
/**
|
|
868
|
+
* @description List CodeChange objects.
|
|
869
|
+
*
|
|
870
|
+
* @tags works
|
|
871
|
+
* @name CodeChangesListPost
|
|
872
|
+
* @request POST:/code-changes.list
|
|
873
|
+
* @secure
|
|
874
|
+
*/
|
|
875
|
+
this.codeChangesListPost = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
876
|
+
/**
|
|
877
|
+
* @description Update CodeChange object.
|
|
878
|
+
*
|
|
879
|
+
* @tags works
|
|
880
|
+
* @name CodeChangesUpdate
|
|
881
|
+
* @request POST:/code-changes.update
|
|
882
|
+
* @secure
|
|
883
|
+
*/
|
|
884
|
+
this.codeChangesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
817
885
|
/**
|
|
818
886
|
* @description Creates a conversation.
|
|
819
887
|
*
|
|
@@ -220,6 +220,7 @@ export declare enum AuthTokenRequestedTokenType {
|
|
|
220
220
|
UrnDevrevParamsOauthTokenTypeAatPublic = "urn:devrev:params:oauth:token-type:aat:public",
|
|
221
221
|
UrnDevrevParamsOauthTokenTypeDev = "urn:devrev:params:oauth:token-type:dev",
|
|
222
222
|
UrnDevrevParamsOauthTokenTypePat = "urn:devrev:params:oauth:token-type:pat",
|
|
223
|
+
UrnDevrevParamsOauthTokenTypePatActAs = "urn:devrev:params:oauth:token-type:pat:act-as",
|
|
223
224
|
UrnDevrevParamsOauthTokenTypeRat = "urn:devrev:params:oauth:token-type:rat",
|
|
224
225
|
UrnDevrevParamsOauthTokenTypeRev = "urn:devrev:params:oauth:token-type:rev",
|
|
225
226
|
UrnDevrevParamsOauthTokenTypeSession = "urn:devrev:params:oauth:token-type:session",
|
|
@@ -256,6 +257,8 @@ export declare enum AuthTokenTokenType {
|
|
|
256
257
|
* type.
|
|
257
258
|
*/
|
|
258
259
|
export interface AuthTokensCreateRequest {
|
|
260
|
+
/** The unique ID of the Dev user to impersonate. */
|
|
261
|
+
act_as?: string;
|
|
259
262
|
/** The expected audience values with respect to the token. */
|
|
260
263
|
aud?: string[];
|
|
261
264
|
/**
|
|
@@ -64,6 +64,7 @@ var AuthTokenRequestedTokenType;
|
|
|
64
64
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeAatPublic"] = "urn:devrev:params:oauth:token-type:aat:public";
|
|
65
65
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeDev"] = "urn:devrev:params:oauth:token-type:dev";
|
|
66
66
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePat"] = "urn:devrev:params:oauth:token-type:pat";
|
|
67
|
+
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePatActAs"] = "urn:devrev:params:oauth:token-type:pat:act-as";
|
|
67
68
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
|
|
68
69
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRev"] = "urn:devrev:params:oauth:token-type:rev";
|
|
69
70
|
AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
|