@miradorlabs/web-grpc 4.2.0 → 4.3.0
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.
package/package.json
CHANGED
|
@@ -1944,6 +1944,61 @@ export function issueCostSortToJSON(object: IssueCostSort): string {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
|
+
/**
|
|
1948
|
+
* IssueCostAttributionMethod mirrors ai.api.v1.IssueCostAttributionMethod: how ListIssueCosts splits a session's cost
|
|
1949
|
+
* across the issues its pull requests are attached to. Every method gives the issues and the unattributed buckets
|
|
1950
|
+
* exactly the session's cost. On ListIssueCostsRequest, unspecified is PER_PR.
|
|
1951
|
+
*/
|
|
1952
|
+
export enum IssueCostAttributionMethod {
|
|
1953
|
+
ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED = 0,
|
|
1954
|
+
/**
|
|
1955
|
+
* ISSUE_COST_ATTRIBUTION_METHOD_PER_PR - Evenly across the session's pull requests, then each pull request's share evenly across its issues; a pull request
|
|
1956
|
+
* with no issue keeps its share unattributed. A remainder goes one nanodollar at a time to the first pull requests by
|
|
1957
|
+
* link id, then within a pull request to the first issues by id. The default.
|
|
1958
|
+
*/
|
|
1959
|
+
ISSUE_COST_ATTRIBUTION_METHOD_PER_PR = 1,
|
|
1960
|
+
/**
|
|
1961
|
+
* ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET - Evenly across slots: one per distinct issue of all the session's pull requests, so an issue reached through two
|
|
1962
|
+
* pull requests counts once, and one per pull request attached to no served issue, whose share is unattributed
|
|
1963
|
+
* ($12 over PR A with MIR-1 and PR B with none: $6 and $6). A remainder goes one nanodollar at a time to the first
|
|
1964
|
+
* issues by id, then to the unattributed slots.
|
|
1965
|
+
*/
|
|
1966
|
+
ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET = 2,
|
|
1967
|
+
UNRECOGNIZED = -1,
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
export function issueCostAttributionMethodFromJSON(object: any): IssueCostAttributionMethod {
|
|
1971
|
+
switch (object) {
|
|
1972
|
+
case 0:
|
|
1973
|
+
case "ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED":
|
|
1974
|
+
return IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED;
|
|
1975
|
+
case 1:
|
|
1976
|
+
case "ISSUE_COST_ATTRIBUTION_METHOD_PER_PR":
|
|
1977
|
+
return IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_PER_PR;
|
|
1978
|
+
case 2:
|
|
1979
|
+
case "ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET":
|
|
1980
|
+
return IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET;
|
|
1981
|
+
case -1:
|
|
1982
|
+
case "UNRECOGNIZED":
|
|
1983
|
+
default:
|
|
1984
|
+
return IssueCostAttributionMethod.UNRECOGNIZED;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
export function issueCostAttributionMethodToJSON(object: IssueCostAttributionMethod): string {
|
|
1989
|
+
switch (object) {
|
|
1990
|
+
case IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED:
|
|
1991
|
+
return "ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED";
|
|
1992
|
+
case IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_PER_PR:
|
|
1993
|
+
return "ISSUE_COST_ATTRIBUTION_METHOD_PER_PR";
|
|
1994
|
+
case IssueCostAttributionMethod.ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET:
|
|
1995
|
+
return "ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET";
|
|
1996
|
+
case IssueCostAttributionMethod.UNRECOGNIZED:
|
|
1997
|
+
default:
|
|
1998
|
+
return "UNRECOGNIZED";
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
|
|
1947
2002
|
/** TrackerSyncState mirrors ai.api.v1.TrackerSyncState. */
|
|
1948
2003
|
export enum TrackerSyncState {
|
|
1949
2004
|
TRACKER_SYNC_STATE_UNSPECIFIED = 0,
|
|
@@ -4086,6 +4141,11 @@ export interface ListIssueCostsRequest {
|
|
|
4086
4141
|
tracker: Tracker;
|
|
4087
4142
|
/** What each row is; UNSPECIFIED is a validation error. */
|
|
4088
4143
|
groupBy: IssueCostGroupBy;
|
|
4144
|
+
/**
|
|
4145
|
+
* How the cost is split. Unspecified is PER_PR; nothing is stored per organization, so a client that offers a choice
|
|
4146
|
+
* sends it on every call. A number the backend does not know is a validation error.
|
|
4147
|
+
*/
|
|
4148
|
+
attributionMethod: IssueCostAttributionMethod;
|
|
4089
4149
|
filter:
|
|
4090
4150
|
| IssueCostFilter
|
|
4091
4151
|
| undefined;
|
|
@@ -4140,7 +4200,14 @@ export interface ListIssueCostsResponse {
|
|
|
4140
4200
|
lastSyncError: TrackerSyncError;
|
|
4141
4201
|
groups: IssueCostGroup[];
|
|
4142
4202
|
pagination: IssueCostPagination | undefined;
|
|
4143
|
-
totals:
|
|
4203
|
+
totals:
|
|
4204
|
+
| IssueCostTotals
|
|
4205
|
+
| undefined;
|
|
4206
|
+
/**
|
|
4207
|
+
* The method the split used: the request's, or PER_PR when the request left it unspecified. Never unspecified on
|
|
4208
|
+
* success, served or not.
|
|
4209
|
+
*/
|
|
4210
|
+
attributionMethod: IssueCostAttributionMethod;
|
|
4144
4211
|
}
|
|
4145
4212
|
|
|
4146
4213
|
/**
|
|
@@ -4159,7 +4226,10 @@ export interface IssueCostGroup {
|
|
|
4159
4226
|
costUsdNanos: string;
|
|
4160
4227
|
/** The distinct sessions that gave the group a share. */
|
|
4161
4228
|
sessionCount: number;
|
|
4162
|
-
/**
|
|
4229
|
+
/**
|
|
4230
|
+
* The distinct pull requests a share reached the group through: under PER_TICKET, every pull request of the session
|
|
4231
|
+
* the tracker attaches to the issue.
|
|
4232
|
+
*/
|
|
4163
4233
|
pullRequestCount: number;
|
|
4164
4234
|
/** On ISSUE, the issue as the last sync read it; absent otherwise. */
|
|
4165
4235
|
issue: TrackerIssue | undefined;
|
|
@@ -4202,7 +4272,10 @@ export interface IssueCostTotals {
|
|
|
4202
4272
|
attributedCostUsdNanos: string;
|
|
4203
4273
|
/** Sessions that link to no pull request. */
|
|
4204
4274
|
noPullRequestCostUsdNanos: string;
|
|
4205
|
-
/**
|
|
4275
|
+
/**
|
|
4276
|
+
* Shares of pull requests the tracker attaches to no served issue (a private team's issues are never served): under
|
|
4277
|
+
* PER_PR each such pull request's share, under PER_TICKET each such pull request's slot.
|
|
4278
|
+
*/
|
|
4206
4279
|
unlinkedPullRequestCostUsdNanos: string;
|
|
4207
4280
|
/** Every group the filter keeps, across pages: attributed when parent_ids and iteration_ids are unset. */
|
|
4208
4281
|
filteredCostUsdNanos: string;
|
|
@@ -28505,7 +28578,16 @@ export const RelayHeartbeatFilter: MessageFns<RelayHeartbeatFilter> = {
|
|
|
28505
28578
|
};
|
|
28506
28579
|
|
|
28507
28580
|
function createBaseListIssueCostsRequest(): ListIssueCostsRequest {
|
|
28508
|
-
return {
|
|
28581
|
+
return {
|
|
28582
|
+
organizationId: "",
|
|
28583
|
+
tracker: 0,
|
|
28584
|
+
groupBy: 0,
|
|
28585
|
+
attributionMethod: 0,
|
|
28586
|
+
filter: undefined,
|
|
28587
|
+
sort: 0,
|
|
28588
|
+
page: 0,
|
|
28589
|
+
perPage: 0,
|
|
28590
|
+
};
|
|
28509
28591
|
}
|
|
28510
28592
|
|
|
28511
28593
|
export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
@@ -28519,6 +28601,9 @@ export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
|
28519
28601
|
if (message.groupBy !== 0) {
|
|
28520
28602
|
writer.uint32(24).int32(message.groupBy);
|
|
28521
28603
|
}
|
|
28604
|
+
if (message.attributionMethod !== 0) {
|
|
28605
|
+
writer.uint32(64).int32(message.attributionMethod);
|
|
28606
|
+
}
|
|
28522
28607
|
if (message.filter !== undefined) {
|
|
28523
28608
|
IssueCostFilter.encode(message.filter, writer.uint32(34).fork()).join();
|
|
28524
28609
|
}
|
|
@@ -28571,6 +28656,14 @@ export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
|
28571
28656
|
message.groupBy = reader.int32() as any;
|
|
28572
28657
|
continue;
|
|
28573
28658
|
}
|
|
28659
|
+
case 8: {
|
|
28660
|
+
if (tag !== 64) {
|
|
28661
|
+
break;
|
|
28662
|
+
}
|
|
28663
|
+
|
|
28664
|
+
message.attributionMethod = reader.int32() as any;
|
|
28665
|
+
continue;
|
|
28666
|
+
}
|
|
28574
28667
|
case 4: {
|
|
28575
28668
|
if (tag !== 34) {
|
|
28576
28669
|
break;
|
|
@@ -28628,6 +28721,11 @@ export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
|
28628
28721
|
: isSet(object.group_by)
|
|
28629
28722
|
? issueCostGroupByFromJSON(object.group_by)
|
|
28630
28723
|
: 0,
|
|
28724
|
+
attributionMethod: isSet(object.attributionMethod)
|
|
28725
|
+
? issueCostAttributionMethodFromJSON(object.attributionMethod)
|
|
28726
|
+
: isSet(object.attribution_method)
|
|
28727
|
+
? issueCostAttributionMethodFromJSON(object.attribution_method)
|
|
28728
|
+
: 0,
|
|
28631
28729
|
filter: isSet(object.filter) ? IssueCostFilter.fromJSON(object.filter) : undefined,
|
|
28632
28730
|
sort: isSet(object.sort) ? issueCostSortFromJSON(object.sort) : 0,
|
|
28633
28731
|
page: isSet(object.page) ? globalThis.Number(object.page) : 0,
|
|
@@ -28650,6 +28748,9 @@ export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
|
28650
28748
|
if (message.groupBy !== 0) {
|
|
28651
28749
|
obj.groupBy = issueCostGroupByToJSON(message.groupBy);
|
|
28652
28750
|
}
|
|
28751
|
+
if (message.attributionMethod !== 0) {
|
|
28752
|
+
obj.attributionMethod = issueCostAttributionMethodToJSON(message.attributionMethod);
|
|
28753
|
+
}
|
|
28653
28754
|
if (message.filter !== undefined) {
|
|
28654
28755
|
obj.filter = IssueCostFilter.toJSON(message.filter);
|
|
28655
28756
|
}
|
|
@@ -28673,6 +28774,7 @@ export const ListIssueCostsRequest: MessageFns<ListIssueCostsRequest> = {
|
|
|
28673
28774
|
message.organizationId = object.organizationId ?? "";
|
|
28674
28775
|
message.tracker = object.tracker ?? 0;
|
|
28675
28776
|
message.groupBy = object.groupBy ?? 0;
|
|
28777
|
+
message.attributionMethod = object.attributionMethod ?? 0;
|
|
28676
28778
|
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
28677
28779
|
? IssueCostFilter.fromPartial(object.filter)
|
|
28678
28780
|
: undefined;
|
|
@@ -28825,6 +28927,7 @@ function createBaseListIssueCostsResponse(): ListIssueCostsResponse {
|
|
|
28825
28927
|
groups: [],
|
|
28826
28928
|
pagination: undefined,
|
|
28827
28929
|
totals: undefined,
|
|
28930
|
+
attributionMethod: 0,
|
|
28828
28931
|
};
|
|
28829
28932
|
}
|
|
28830
28933
|
|
|
@@ -28851,6 +28954,9 @@ export const ListIssueCostsResponse: MessageFns<ListIssueCostsResponse> = {
|
|
|
28851
28954
|
if (message.totals !== undefined) {
|
|
28852
28955
|
IssueCostTotals.encode(message.totals, writer.uint32(58).fork()).join();
|
|
28853
28956
|
}
|
|
28957
|
+
if (message.attributionMethod !== 0) {
|
|
28958
|
+
writer.uint32(64).int32(message.attributionMethod);
|
|
28959
|
+
}
|
|
28854
28960
|
return writer;
|
|
28855
28961
|
},
|
|
28856
28962
|
|
|
@@ -28923,6 +29029,14 @@ export const ListIssueCostsResponse: MessageFns<ListIssueCostsResponse> = {
|
|
|
28923
29029
|
message.totals = IssueCostTotals.decode(reader, reader.uint32());
|
|
28924
29030
|
continue;
|
|
28925
29031
|
}
|
|
29032
|
+
case 8: {
|
|
29033
|
+
if (tag !== 64) {
|
|
29034
|
+
break;
|
|
29035
|
+
}
|
|
29036
|
+
|
|
29037
|
+
message.attributionMethod = reader.int32() as any;
|
|
29038
|
+
continue;
|
|
29039
|
+
}
|
|
28926
29040
|
}
|
|
28927
29041
|
if ((tag & 7) === 4 || tag === 0) {
|
|
28928
29042
|
break;
|
|
@@ -28956,6 +29070,11 @@ export const ListIssueCostsResponse: MessageFns<ListIssueCostsResponse> = {
|
|
|
28956
29070
|
groups: globalThis.Array.isArray(object?.groups) ? object.groups.map((e: any) => IssueCostGroup.fromJSON(e)) : [],
|
|
28957
29071
|
pagination: isSet(object.pagination) ? IssueCostPagination.fromJSON(object.pagination) : undefined,
|
|
28958
29072
|
totals: isSet(object.totals) ? IssueCostTotals.fromJSON(object.totals) : undefined,
|
|
29073
|
+
attributionMethod: isSet(object.attributionMethod)
|
|
29074
|
+
? issueCostAttributionMethodFromJSON(object.attributionMethod)
|
|
29075
|
+
: isSet(object.attribution_method)
|
|
29076
|
+
? issueCostAttributionMethodFromJSON(object.attribution_method)
|
|
29077
|
+
: 0,
|
|
28959
29078
|
};
|
|
28960
29079
|
},
|
|
28961
29080
|
|
|
@@ -28982,6 +29101,9 @@ export const ListIssueCostsResponse: MessageFns<ListIssueCostsResponse> = {
|
|
|
28982
29101
|
if (message.totals !== undefined) {
|
|
28983
29102
|
obj.totals = IssueCostTotals.toJSON(message.totals);
|
|
28984
29103
|
}
|
|
29104
|
+
if (message.attributionMethod !== 0) {
|
|
29105
|
+
obj.attributionMethod = issueCostAttributionMethodToJSON(message.attributionMethod);
|
|
29106
|
+
}
|
|
28985
29107
|
return obj;
|
|
28986
29108
|
},
|
|
28987
29109
|
|
|
@@ -29003,6 +29125,7 @@ export const ListIssueCostsResponse: MessageFns<ListIssueCostsResponse> = {
|
|
|
29003
29125
|
message.totals = (object.totals !== undefined && object.totals !== null)
|
|
29004
29126
|
? IssueCostTotals.fromPartial(object.totals)
|
|
29005
29127
|
: undefined;
|
|
29128
|
+
message.attributionMethod = object.attributionMethod ?? 0;
|
|
29006
29129
|
return message;
|
|
29007
29130
|
},
|
|
29008
29131
|
};
|
|
@@ -29833,9 +29956,11 @@ export interface AIGatewayService {
|
|
|
29833
29956
|
*/
|
|
29834
29957
|
ListRelayHeartbeats(request: ListRelayHeartbeatsRequest, metadata?: Metadata): Promise<ListRelayHeartbeatsResponse>;
|
|
29835
29958
|
/**
|
|
29836
|
-
* The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
29837
|
-
*
|
|
29838
|
-
* links to, then each pull request's share evenly across the issues the
|
|
29959
|
+
* The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
29960
|
+
* by attribution_method (PER_PR when unspecified): PER_PR splits each session's
|
|
29961
|
+
* cost evenly across the pull requests it links to, then each pull request's share evenly across the issues the
|
|
29962
|
+
* tracker attaches it to; PER_TICKET splits it evenly across the distinct issues of all its pull requests plus one
|
|
29963
|
+
* unattributed slot per pull request with no issue. Integer
|
|
29839
29964
|
* nanodollars, over the whole organization before parent_ids and iteration_ids narrow the groups, so a shared
|
|
29840
29965
|
* session never counts twice. An issue counts under its parent and iteration as last synced. One row per issue,
|
|
29841
29966
|
* parent or iteration, highest cost first, numbered pages; totals add up to the window's recorded cost to the
|
|
@@ -1125,9 +1125,11 @@ listRelayHeartbeats: {
|
|
|
1125
1125
|
responseSerialize: serialize_gateway_web_v1_ListRelayHeartbeatsResponse,
|
|
1126
1126
|
responseDeserialize: deserialize_gateway_web_v1_ListRelayHeartbeatsResponse,
|
|
1127
1127
|
},
|
|
1128
|
-
// The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
1129
|
-
//
|
|
1130
|
-
// links to, then each pull request's share evenly across the issues the
|
|
1128
|
+
// The organization's recorded AI cost (provider cost, gross of any subscription) attributed to its tracker's issues
|
|
1129
|
+
// by attribution_method (PER_PR when unspecified): PER_PR splits each session's
|
|
1130
|
+
// cost evenly across the pull requests it links to, then each pull request's share evenly across the issues the
|
|
1131
|
+
// tracker attaches it to; PER_TICKET splits it evenly across the distinct issues of all its pull requests plus one
|
|
1132
|
+
// unattributed slot per pull request with no issue. Integer
|
|
1131
1133
|
// nanodollars, over the whole organization before parent_ids and iteration_ids narrow the groups, so a shared
|
|
1132
1134
|
// session never counts twice. An issue counts under its parent and iteration as last synced. One row per issue,
|
|
1133
1135
|
// parent or iteration, highest cost first, numbered pages; totals add up to the window's recorded cost to the
|
|
@@ -125,6 +125,7 @@ goog.exportSymbol('proto.gateway.web.v1.GitActivitySummary', null, global);
|
|
|
125
125
|
goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryBucket', null, global);
|
|
126
126
|
goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryGroup', null, global);
|
|
127
127
|
goog.exportSymbol('proto.gateway.web.v1.GitActivitySummaryRequest', null, global);
|
|
128
|
+
goog.exportSymbol('proto.gateway.web.v1.IssueCostAttributionMethod', null, global);
|
|
128
129
|
goog.exportSymbol('proto.gateway.web.v1.IssueCostFilter', null, global);
|
|
129
130
|
goog.exportSymbol('proto.gateway.web.v1.IssueCostGroup', null, global);
|
|
130
131
|
goog.exportSymbol('proto.gateway.web.v1.IssueCostGroupBy', null, global);
|
|
@@ -50195,6 +50196,7 @@ proto.gateway.web.v1.ListIssueCostsRequest.toObject = function(includeInstance,
|
|
|
50195
50196
|
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
50196
50197
|
tracker: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
50197
50198
|
groupBy: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
50199
|
+
attributionMethod: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
50198
50200
|
filter: (f = msg.getFilter()) && proto.gateway.web.v1.IssueCostFilter.toObject(includeInstance, f),
|
|
50199
50201
|
sort: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
50200
50202
|
page: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
@@ -50247,6 +50249,10 @@ proto.gateway.web.v1.ListIssueCostsRequest.deserializeBinaryFromReader = functio
|
|
|
50247
50249
|
var value = /** @type {!proto.gateway.web.v1.IssueCostGroupBy} */ (reader.readEnum());
|
|
50248
50250
|
msg.setGroupBy(value);
|
|
50249
50251
|
break;
|
|
50252
|
+
case 8:
|
|
50253
|
+
var value = /** @type {!proto.gateway.web.v1.IssueCostAttributionMethod} */ (reader.readEnum());
|
|
50254
|
+
msg.setAttributionMethod(value);
|
|
50255
|
+
break;
|
|
50250
50256
|
case 4:
|
|
50251
50257
|
var value = new proto.gateway.web.v1.IssueCostFilter;
|
|
50252
50258
|
reader.readMessage(value,proto.gateway.web.v1.IssueCostFilter.deserializeBinaryFromReader);
|
|
@@ -50314,6 +50320,13 @@ proto.gateway.web.v1.ListIssueCostsRequest.serializeBinaryToWriter = function(me
|
|
|
50314
50320
|
f
|
|
50315
50321
|
);
|
|
50316
50322
|
}
|
|
50323
|
+
f = message.getAttributionMethod();
|
|
50324
|
+
if (f !== 0.0) {
|
|
50325
|
+
writer.writeEnum(
|
|
50326
|
+
8,
|
|
50327
|
+
f
|
|
50328
|
+
);
|
|
50329
|
+
}
|
|
50317
50330
|
f = message.getFilter();
|
|
50318
50331
|
if (f != null) {
|
|
50319
50332
|
writer.writeMessage(
|
|
@@ -50400,6 +50413,24 @@ proto.gateway.web.v1.ListIssueCostsRequest.prototype.setGroupBy = function(value
|
|
|
50400
50413
|
};
|
|
50401
50414
|
|
|
50402
50415
|
|
|
50416
|
+
/**
|
|
50417
|
+
* optional IssueCostAttributionMethod attribution_method = 8;
|
|
50418
|
+
* @return {!proto.gateway.web.v1.IssueCostAttributionMethod}
|
|
50419
|
+
*/
|
|
50420
|
+
proto.gateway.web.v1.ListIssueCostsRequest.prototype.getAttributionMethod = function() {
|
|
50421
|
+
return /** @type {!proto.gateway.web.v1.IssueCostAttributionMethod} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
50422
|
+
};
|
|
50423
|
+
|
|
50424
|
+
|
|
50425
|
+
/**
|
|
50426
|
+
* @param {!proto.gateway.web.v1.IssueCostAttributionMethod} value
|
|
50427
|
+
* @return {!proto.gateway.web.v1.ListIssueCostsRequest} returns this
|
|
50428
|
+
*/
|
|
50429
|
+
proto.gateway.web.v1.ListIssueCostsRequest.prototype.setAttributionMethod = function(value) {
|
|
50430
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
50431
|
+
};
|
|
50432
|
+
|
|
50433
|
+
|
|
50403
50434
|
/**
|
|
50404
50435
|
* optional IssueCostFilter filter = 4;
|
|
50405
50436
|
* @return {?proto.gateway.web.v1.IssueCostFilter}
|
|
@@ -50844,7 +50875,8 @@ lastSyncError: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
|
50844
50875
|
groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
|
|
50845
50876
|
proto.gateway.web.v1.IssueCostGroup.toObject, includeInstance),
|
|
50846
50877
|
pagination: (f = msg.getPagination()) && proto.gateway.web.v1.IssueCostPagination.toObject(includeInstance, f),
|
|
50847
|
-
totals: (f = msg.getTotals()) && proto.gateway.web.v1.IssueCostTotals.toObject(includeInstance, f)
|
|
50878
|
+
totals: (f = msg.getTotals()) && proto.gateway.web.v1.IssueCostTotals.toObject(includeInstance, f),
|
|
50879
|
+
attributionMethod: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
50848
50880
|
};
|
|
50849
50881
|
|
|
50850
50882
|
if (includeInstance) {
|
|
@@ -50914,6 +50946,10 @@ proto.gateway.web.v1.ListIssueCostsResponse.deserializeBinaryFromReader = functi
|
|
|
50914
50946
|
reader.readMessage(value,proto.gateway.web.v1.IssueCostTotals.deserializeBinaryFromReader);
|
|
50915
50947
|
msg.setTotals(value);
|
|
50916
50948
|
break;
|
|
50949
|
+
case 8:
|
|
50950
|
+
var value = /** @type {!proto.gateway.web.v1.IssueCostAttributionMethod} */ (reader.readEnum());
|
|
50951
|
+
msg.setAttributionMethod(value);
|
|
50952
|
+
break;
|
|
50917
50953
|
default:
|
|
50918
50954
|
reader.skipField();
|
|
50919
50955
|
break;
|
|
@@ -50997,6 +51033,13 @@ proto.gateway.web.v1.ListIssueCostsResponse.serializeBinaryToWriter = function(m
|
|
|
50997
51033
|
proto.gateway.web.v1.IssueCostTotals.serializeBinaryToWriter
|
|
50998
51034
|
);
|
|
50999
51035
|
}
|
|
51036
|
+
f = message.getAttributionMethod();
|
|
51037
|
+
if (f !== 0.0) {
|
|
51038
|
+
writer.writeEnum(
|
|
51039
|
+
8,
|
|
51040
|
+
f
|
|
51041
|
+
);
|
|
51042
|
+
}
|
|
51000
51043
|
};
|
|
51001
51044
|
|
|
51002
51045
|
|
|
@@ -51222,6 +51265,24 @@ proto.gateway.web.v1.ListIssueCostsResponse.prototype.hasTotals = function() {
|
|
|
51222
51265
|
};
|
|
51223
51266
|
|
|
51224
51267
|
|
|
51268
|
+
/**
|
|
51269
|
+
* optional IssueCostAttributionMethod attribution_method = 8;
|
|
51270
|
+
* @return {!proto.gateway.web.v1.IssueCostAttributionMethod}
|
|
51271
|
+
*/
|
|
51272
|
+
proto.gateway.web.v1.ListIssueCostsResponse.prototype.getAttributionMethod = function() {
|
|
51273
|
+
return /** @type {!proto.gateway.web.v1.IssueCostAttributionMethod} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
51274
|
+
};
|
|
51275
|
+
|
|
51276
|
+
|
|
51277
|
+
/**
|
|
51278
|
+
* @param {!proto.gateway.web.v1.IssueCostAttributionMethod} value
|
|
51279
|
+
* @return {!proto.gateway.web.v1.ListIssueCostsResponse} returns this
|
|
51280
|
+
*/
|
|
51281
|
+
proto.gateway.web.v1.ListIssueCostsResponse.prototype.setAttributionMethod = function(value) {
|
|
51282
|
+
return jspb.Message.setProto3EnumField(this, 8, value);
|
|
51283
|
+
};
|
|
51284
|
+
|
|
51285
|
+
|
|
51225
51286
|
|
|
51226
51287
|
|
|
51227
51288
|
|
|
@@ -52740,6 +52801,15 @@ proto.gateway.web.v1.IssueCostSort = {
|
|
|
52740
52801
|
ISSUE_COST_SORT_COST_DESC: 1
|
|
52741
52802
|
};
|
|
52742
52803
|
|
|
52804
|
+
/**
|
|
52805
|
+
* @enum {number}
|
|
52806
|
+
*/
|
|
52807
|
+
proto.gateway.web.v1.IssueCostAttributionMethod = {
|
|
52808
|
+
ISSUE_COST_ATTRIBUTION_METHOD_UNSPECIFIED: 0,
|
|
52809
|
+
ISSUE_COST_ATTRIBUTION_METHOD_PER_PR: 1,
|
|
52810
|
+
ISSUE_COST_ATTRIBUTION_METHOD_PER_TICKET: 2
|
|
52811
|
+
};
|
|
52812
|
+
|
|
52743
52813
|
/**
|
|
52744
52814
|
* @enum {number}
|
|
52745
52815
|
*/
|