faros-airbyte-common 0.23.43 → 0.23.45

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.
@@ -137,14 +137,21 @@ export interface WorkItemRevisions {
137
137
  readonly projects: ReadonlyArray<WorkItemProjectRevision>;
138
138
  }
139
139
  export interface WorkItemWithRevisions extends WorkItem {
140
+ updateAdditionalFields?: false;
140
141
  revisions: WorkItemRevisions;
141
142
  additionalFields: ReadonlyArray<AdditionalField>;
142
143
  project: ProjectReference;
143
144
  comments?: ReadonlyArray<Comment>;
144
145
  }
146
+ /** A partial task update that deliberately omits work-item enrichment. */
147
+ export interface WorkItemAdditionalFieldsUpdate extends WorkItem {
148
+ updateAdditionalFields: true;
149
+ additionalFields: ReadonlyArray<AdditionalField>;
150
+ project: ProjectReference;
151
+ }
145
152
  export interface AdditionalField {
146
153
  name: string;
147
- value: string;
154
+ value: string | number | boolean | Record<string, unknown> | unknown[];
148
155
  }
149
156
  export interface Changeset extends TfvcChangeset {
150
157
  project?: ProjectReference;
@@ -219,6 +219,10 @@ export interface EnterpriseAiCreditUsage {
219
219
  product: string;
220
220
  sku: string;
221
221
  model: string;
222
+ organization?: string;
223
+ repository?: string;
224
+ unit_type?: string;
225
+ cost_center_name?: string;
222
226
  quantity?: number;
223
227
  gross_amount?: number;
224
228
  discount_amount?: number;
@@ -227,6 +231,10 @@ export interface EnterpriseAiCreditUsage {
227
231
  output?: number;
228
232
  cache_read?: number;
229
233
  cache_write?: number;
234
+ total_monthly_quota?: number;
235
+ applied_cost_per_quantity?: number;
236
+ aic_quantity?: number;
237
+ aic_gross_amount?: number;
230
238
  }
231
239
  export type CopilotUserUsageRecord = {
232
240
  ai_credits_used?: number;
@@ -432,6 +440,39 @@ export type EnterprisePremiumRequestUsage = {
432
440
  date: string;
433
441
  user: string;
434
442
  } & EnterprisePremiumRequestUsageResponse['usageItems'][number];
443
+ export interface EnterpriseBudget {
444
+ level: 'budget' | 'user_state';
445
+ enterprise: string;
446
+ observed_at: string;
447
+ id: string;
448
+ budget_type: string;
449
+ budget_product_sku: string;
450
+ budget_scope: string;
451
+ budget_entity_name?: string;
452
+ user?: string;
453
+ budget_amount: number;
454
+ consumed_amount?: number;
455
+ prevent_further_usage: boolean;
456
+ expires_at?: string;
457
+ target_amount?: number;
458
+ override_budget_id?: string;
459
+ }
460
+ export interface EnterpriseBillingUsage {
461
+ enterprise: string;
462
+ date: string;
463
+ product: string;
464
+ sku: string;
465
+ quantity: number;
466
+ unitType: string;
467
+ pricePerUnit: number;
468
+ grossAmount: number;
469
+ discountAmount: number;
470
+ netAmount: number;
471
+ organizationName?: string;
472
+ repositoryName?: string;
473
+ costCenterId?: string;
474
+ costCenterName?: string;
475
+ }
435
476
  export declare enum StatsType {
436
477
  MERGED_PRS_PER_MONTH = "merged_prs_per_month"
437
478
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;AAiBtC,MAAM,OAAO,GAAY,IAAI,cAAO,EAAE,CAAC;AA+oBvC,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,0DAA6C,CAAA;AAC/C,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/github/types.ts"],"names":[],"mappings":";;;AAAA,wCAAsC;AAiBtC,MAAM,OAAO,GAAY,IAAI,cAAO,EAAE,CAAC;AA2rBvC,IAAY,SAEX;AAFD,WAAY,SAAS;IACnB,0DAA6C,CAAA;AAC/C,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB"}