@friggframework/core 2.0.0--canary.622.16ee19d.0 → 2.0.0--canary.622.faffe5f.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/application/commands/usage-commands.js +5 -4
- package/application/index.js +9 -18
- package/core/create-handler.js +17 -6
- package/generated/prisma-mongodb/edge.js +3 -3
- package/generated/prisma-mongodb/index.d.ts +80 -55
- package/generated/prisma-mongodb/index.js +3 -3
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +5 -3
- package/generated/prisma-mongodb/wasm.js +3 -3
- package/generated/prisma-postgresql/edge.js +3 -3
- package/generated/prisma-postgresql/index.d.ts +92 -16
- package/generated/prisma-postgresql/index.js +3 -3
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +5 -3
- package/generated/prisma-postgresql/wasm.js +3 -3
- package/handlers/integration-event-dispatcher.js +1 -1
- package/index.js +1 -1
- package/integrations/integration-base.js +23 -4
- package/modules/requester/requester.js +12 -2
- package/package.json +5 -5
- package/prisma-mongodb/schema.prisma +5 -3
- package/prisma-postgresql/migrations/20260705000000_create_usage_counter/migration.sql +3 -3
- package/prisma-postgresql/schema.prisma +5 -3
- package/reporting/reporting-router.js +1 -1
- package/reporting/use-cases/list-integrations-report.js +2 -2
- package/telemetry/README.md +22 -6
- package/telemetry/bind-telemetry-context.js +1 -1
- package/telemetry/canonical-counters.js +1 -1
- package/telemetry/exporters/exporter-factory.js +2 -2
- package/telemetry/instrument-handler.js +1 -1
- package/telemetry/no-op-telemetry.js +1 -1
- package/telemetry/north-star.js +1 -1
- package/telemetry/otel-telemetry.js +1 -1
- package/telemetry/plugin-subscribers-singleton.js +2 -2
- package/telemetry/plugin-subscribers.js +1 -1
- package/telemetry/telemetry-config.js +1 -1
- package/telemetry/telemetry-context.js +1 -1
- package/telemetry/telemetry-event-bus.js +2 -2
- package/telemetry/telemetry-service.js +3 -3
- package/telemetry/telemetry-singleton.js +1 -1
- package/telemetry/usage-rollup-singleton.js +1 -1
- package/telemetry/usage-rollup-subscriber.js +3 -3
- package/telemetry/usage-windows.js +1 -1
- package/usage/README.md +6 -4
- package/usage/repositories/usage-repository-documentdb.js +193 -9
- package/usage/repositories/usage-repository-interface.js +1 -1
- package/usage/repositories/usage-repository-postgres.js +22 -12
- package/usage/tracked-metrics.js +1 -1
|
@@ -18058,7 +18058,7 @@ export namespace Prisma {
|
|
|
18058
18058
|
}
|
|
18059
18059
|
|
|
18060
18060
|
export type UsageCounterSumAggregateOutputType = {
|
|
18061
|
-
value:
|
|
18061
|
+
value: bigint | null
|
|
18062
18062
|
}
|
|
18063
18063
|
|
|
18064
18064
|
export type UsageCounterMinAggregateOutputType = {
|
|
@@ -18067,7 +18067,7 @@ export namespace Prisma {
|
|
|
18067
18067
|
integrationType: string | null
|
|
18068
18068
|
metric: string | null
|
|
18069
18069
|
window: string | null
|
|
18070
|
-
value:
|
|
18070
|
+
value: bigint | null
|
|
18071
18071
|
createdAt: Date | null
|
|
18072
18072
|
updatedAt: Date | null
|
|
18073
18073
|
}
|
|
@@ -18078,7 +18078,7 @@ export namespace Prisma {
|
|
|
18078
18078
|
integrationType: string | null
|
|
18079
18079
|
metric: string | null
|
|
18080
18080
|
window: string | null
|
|
18081
|
-
value:
|
|
18081
|
+
value: bigint | null
|
|
18082
18082
|
createdAt: Date | null
|
|
18083
18083
|
updatedAt: Date | null
|
|
18084
18084
|
}
|
|
@@ -18230,7 +18230,7 @@ export namespace Prisma {
|
|
|
18230
18230
|
integrationType: string
|
|
18231
18231
|
metric: string
|
|
18232
18232
|
window: string
|
|
18233
|
-
value:
|
|
18233
|
+
value: bigint
|
|
18234
18234
|
createdAt: Date
|
|
18235
18235
|
updatedAt: Date
|
|
18236
18236
|
_count: UsageCounterCountAggregateOutputType | null
|
|
@@ -18289,7 +18289,7 @@ export namespace Prisma {
|
|
|
18289
18289
|
integrationType: string
|
|
18290
18290
|
metric: string
|
|
18291
18291
|
window: string
|
|
18292
|
-
value:
|
|
18292
|
+
value: bigint
|
|
18293
18293
|
createdAt: Date
|
|
18294
18294
|
updatedAt: Date
|
|
18295
18295
|
}, ExtArgs["result"]["usageCounter"]>
|
|
@@ -18689,7 +18689,7 @@ export namespace Prisma {
|
|
|
18689
18689
|
readonly integrationType: FieldRef<"UsageCounter", 'String'>
|
|
18690
18690
|
readonly metric: FieldRef<"UsageCounter", 'String'>
|
|
18691
18691
|
readonly window: FieldRef<"UsageCounter", 'String'>
|
|
18692
|
-
readonly value: FieldRef<"UsageCounter", '
|
|
18692
|
+
readonly value: FieldRef<"UsageCounter", 'BigInt'>
|
|
18693
18693
|
readonly createdAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
18694
18694
|
readonly updatedAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
18695
18695
|
}
|
|
@@ -19377,6 +19377,20 @@ export namespace Prisma {
|
|
|
19377
19377
|
|
|
19378
19378
|
|
|
19379
19379
|
|
|
19380
|
+
/**
|
|
19381
|
+
* Reference to a field of type 'BigInt'
|
|
19382
|
+
*/
|
|
19383
|
+
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
|
19384
|
+
|
|
19385
|
+
|
|
19386
|
+
|
|
19387
|
+
/**
|
|
19388
|
+
* Reference to a field of type 'BigInt[]'
|
|
19389
|
+
*/
|
|
19390
|
+
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
|
19391
|
+
|
|
19392
|
+
|
|
19393
|
+
|
|
19380
19394
|
/**
|
|
19381
19395
|
* Reference to a field of type 'Int'
|
|
19382
19396
|
*/
|
|
@@ -20476,7 +20490,7 @@ export namespace Prisma {
|
|
|
20476
20490
|
integrationType?: StringFilter<"UsageCounter"> | string
|
|
20477
20491
|
metric?: StringFilter<"UsageCounter"> | string
|
|
20478
20492
|
window?: StringFilter<"UsageCounter"> | string
|
|
20479
|
-
value?:
|
|
20493
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
20480
20494
|
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20481
20495
|
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20482
20496
|
}
|
|
@@ -20502,7 +20516,7 @@ export namespace Prisma {
|
|
|
20502
20516
|
integrationType?: StringFilter<"UsageCounter"> | string
|
|
20503
20517
|
metric?: StringFilter<"UsageCounter"> | string
|
|
20504
20518
|
window?: StringFilter<"UsageCounter"> | string
|
|
20505
|
-
value?:
|
|
20519
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
20506
20520
|
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20507
20521
|
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
20508
20522
|
}, "id" | "integrationId_integrationType_metric_window">
|
|
@@ -20532,7 +20546,7 @@ export namespace Prisma {
|
|
|
20532
20546
|
integrationType?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20533
20547
|
metric?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20534
20548
|
window?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
20535
|
-
value?:
|
|
20549
|
+
value?: BigIntWithAggregatesFilter<"UsageCounter"> | bigint | number
|
|
20536
20550
|
createdAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
20537
20551
|
updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
20538
20552
|
}
|
|
@@ -21617,7 +21631,7 @@ export namespace Prisma {
|
|
|
21617
21631
|
integrationType: string
|
|
21618
21632
|
metric: string
|
|
21619
21633
|
window: string
|
|
21620
|
-
value?: number
|
|
21634
|
+
value?: bigint | number
|
|
21621
21635
|
createdAt?: Date | string
|
|
21622
21636
|
updatedAt?: Date | string
|
|
21623
21637
|
}
|
|
@@ -21628,7 +21642,7 @@ export namespace Prisma {
|
|
|
21628
21642
|
integrationType: string
|
|
21629
21643
|
metric: string
|
|
21630
21644
|
window: string
|
|
21631
|
-
value?: number
|
|
21645
|
+
value?: bigint | number
|
|
21632
21646
|
createdAt?: Date | string
|
|
21633
21647
|
updatedAt?: Date | string
|
|
21634
21648
|
}
|
|
@@ -21638,7 +21652,7 @@ export namespace Prisma {
|
|
|
21638
21652
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21639
21653
|
metric?: StringFieldUpdateOperationsInput | string
|
|
21640
21654
|
window?: StringFieldUpdateOperationsInput | string
|
|
21641
|
-
value?:
|
|
21655
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21642
21656
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21643
21657
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21644
21658
|
}
|
|
@@ -21648,7 +21662,7 @@ export namespace Prisma {
|
|
|
21648
21662
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21649
21663
|
metric?: StringFieldUpdateOperationsInput | string
|
|
21650
21664
|
window?: StringFieldUpdateOperationsInput | string
|
|
21651
|
-
value?:
|
|
21665
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21652
21666
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21653
21667
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21654
21668
|
}
|
|
@@ -21659,7 +21673,7 @@ export namespace Prisma {
|
|
|
21659
21673
|
integrationType: string
|
|
21660
21674
|
metric: string
|
|
21661
21675
|
window: string
|
|
21662
|
-
value?: number
|
|
21676
|
+
value?: bigint | number
|
|
21663
21677
|
createdAt?: Date | string
|
|
21664
21678
|
updatedAt?: Date | string
|
|
21665
21679
|
}
|
|
@@ -21669,7 +21683,7 @@ export namespace Prisma {
|
|
|
21669
21683
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21670
21684
|
metric?: StringFieldUpdateOperationsInput | string
|
|
21671
21685
|
window?: StringFieldUpdateOperationsInput | string
|
|
21672
|
-
value?:
|
|
21686
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21673
21687
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21674
21688
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21675
21689
|
}
|
|
@@ -21679,7 +21693,7 @@ export namespace Prisma {
|
|
|
21679
21693
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
21680
21694
|
metric?: StringFieldUpdateOperationsInput | string
|
|
21681
21695
|
window?: StringFieldUpdateOperationsInput | string
|
|
21682
|
-
value?:
|
|
21696
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
21683
21697
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21684
21698
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
21685
21699
|
}
|
|
@@ -22543,15 +22557,15 @@ export namespace Prisma {
|
|
|
22543
22557
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
22544
22558
|
}
|
|
22545
22559
|
|
|
22546
|
-
export type
|
|
22547
|
-
equals?: number |
|
|
22548
|
-
in?: number[] |
|
|
22549
|
-
notIn?: number[] |
|
|
22550
|
-
lt?: number |
|
|
22551
|
-
lte?: number |
|
|
22552
|
-
gt?: number |
|
|
22553
|
-
gte?: number |
|
|
22554
|
-
not?:
|
|
22560
|
+
export type BigIntFilter<$PrismaModel = never> = {
|
|
22561
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22562
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22563
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22564
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22565
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22566
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22567
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22568
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
22555
22569
|
}
|
|
22556
22570
|
|
|
22557
22571
|
export type UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput = {
|
|
@@ -22602,20 +22616,20 @@ export namespace Prisma {
|
|
|
22602
22616
|
value?: SortOrder
|
|
22603
22617
|
}
|
|
22604
22618
|
|
|
22605
|
-
export type
|
|
22606
|
-
equals?: number |
|
|
22607
|
-
in?: number[] |
|
|
22608
|
-
notIn?: number[] |
|
|
22609
|
-
lt?: number |
|
|
22610
|
-
lte?: number |
|
|
22611
|
-
gt?: number |
|
|
22612
|
-
gte?: number |
|
|
22613
|
-
not?:
|
|
22619
|
+
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
22620
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22621
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22622
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
22623
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22624
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22625
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22626
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
22627
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
22614
22628
|
_count?: NestedIntFilter<$PrismaModel>
|
|
22615
22629
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
22616
|
-
_sum?:
|
|
22617
|
-
_min?:
|
|
22618
|
-
_max?:
|
|
22630
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
22631
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
22632
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
22619
22633
|
}
|
|
22620
22634
|
|
|
22621
22635
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
@@ -23721,12 +23735,12 @@ export namespace Prisma {
|
|
|
23721
23735
|
set?: boolean
|
|
23722
23736
|
}
|
|
23723
23737
|
|
|
23724
|
-
export type
|
|
23725
|
-
set?: number
|
|
23726
|
-
increment?: number
|
|
23727
|
-
decrement?: number
|
|
23728
|
-
multiply?: number
|
|
23729
|
-
divide?: number
|
|
23738
|
+
export type BigIntFieldUpdateOperationsInput = {
|
|
23739
|
+
set?: bigint | number
|
|
23740
|
+
increment?: bigint | number
|
|
23741
|
+
decrement?: bigint | number
|
|
23742
|
+
multiply?: bigint | number
|
|
23743
|
+
divide?: bigint | number
|
|
23730
23744
|
}
|
|
23731
23745
|
|
|
23732
23746
|
export type NestedStringFilter<$PrismaModel = never> = {
|
|
@@ -23987,20 +24001,31 @@ export namespace Prisma {
|
|
|
23987
24001
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
23988
24002
|
}
|
|
23989
24003
|
|
|
23990
|
-
export type
|
|
23991
|
-
equals?: number |
|
|
23992
|
-
in?: number[] |
|
|
23993
|
-
notIn?: number[] |
|
|
23994
|
-
lt?: number |
|
|
23995
|
-
lte?: number |
|
|
23996
|
-
gt?: number |
|
|
23997
|
-
gte?: number |
|
|
23998
|
-
not?:
|
|
24004
|
+
export type NestedBigIntFilter<$PrismaModel = never> = {
|
|
24005
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24006
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24007
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24008
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24009
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24010
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24011
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24012
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
24013
|
+
}
|
|
24014
|
+
|
|
24015
|
+
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
24016
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24017
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24018
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24019
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24020
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24021
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24022
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24023
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
23999
24024
|
_count?: NestedIntFilter<$PrismaModel>
|
|
24000
24025
|
_avg?: NestedFloatFilter<$PrismaModel>
|
|
24001
|
-
_sum?:
|
|
24002
|
-
_min?:
|
|
24003
|
-
_max?:
|
|
24026
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
24027
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
24028
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
24004
24029
|
}
|
|
24005
24030
|
|
|
24006
24031
|
export type NestedFloatFilter<$PrismaModel = never> = {
|