@lightdash/common 2.380.1 → 2.381.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.
@@ -1,2 +1,3 @@
1
1
  export * from './rateCard';
2
+ export * from './types';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ee/aiCredits/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ee/aiCredits/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './rateCard';
2
+ export * from './types';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ee/aiCredits/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ee/aiCredits/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const AI_CREDIT_HOLD_REASONS: readonly ['allowance_exhausted', 'admin_cap_reached', 'manual_pause', 'trial_ended'];
2
+ export type AiCreditHoldReason = (typeof AI_CREDIT_HOLD_REASONS)[number];
3
+ export type AiCreditPeriod = {
4
+ periodStart: Date;
5
+ periodEnd: Date;
6
+ };
7
+ export type AiCreditEntitlement = AiCreditPeriod & {
8
+ uuid: string;
9
+ organizationUuid: string;
10
+ allowanceCredits: number | null;
11
+ };
12
+ export type AiCreditHold = {
13
+ uuid: string;
14
+ organizationUuid: string;
15
+ userUuid: string | null;
16
+ entitlementUuid: string | null;
17
+ reason: AiCreditHoldReason;
18
+ notes: string | null;
19
+ placedBy: string;
20
+ placedAt: Date;
21
+ expiresAt: Date | null;
22
+ releasedAt: Date | null;
23
+ };
24
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/ee/aiCredits/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,YAC/B,qBAAqB,EACrB,mBAAmB,EACnB,cAAc,EACd,aAAa,CACP,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,MAAM,cAAc,GAAG;IACzB,WAAW,EAAE,IAAI,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IAEzB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAExB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAE3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;IACf,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,7 @@
1
+ export const AI_CREDIT_HOLD_REASONS = [
2
+ 'allowance_exhausted',
3
+ 'admin_cap_reached',
4
+ 'manual_pause',
5
+ 'trial_ended',
6
+ ];
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ee/aiCredits/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,qBAAqB;IACrB,mBAAmB;IACnB,cAAc;IACd,aAAa;CACP,CAAC"}