@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
|
@@ -20072,7 +20072,7 @@ export namespace Prisma {
|
|
|
20072
20072
|
|
|
20073
20073
|
export type UsageCounterSumAggregateOutputType = {
|
|
20074
20074
|
id: number | null
|
|
20075
|
-
value:
|
|
20075
|
+
value: bigint | null
|
|
20076
20076
|
}
|
|
20077
20077
|
|
|
20078
20078
|
export type UsageCounterMinAggregateOutputType = {
|
|
@@ -20081,7 +20081,7 @@ export namespace Prisma {
|
|
|
20081
20081
|
integrationType: string | null
|
|
20082
20082
|
metric: string | null
|
|
20083
20083
|
window: string | null
|
|
20084
|
-
value:
|
|
20084
|
+
value: bigint | null
|
|
20085
20085
|
createdAt: Date | null
|
|
20086
20086
|
updatedAt: Date | null
|
|
20087
20087
|
}
|
|
@@ -20092,7 +20092,7 @@ export namespace Prisma {
|
|
|
20092
20092
|
integrationType: string | null
|
|
20093
20093
|
metric: string | null
|
|
20094
20094
|
window: string | null
|
|
20095
|
-
value:
|
|
20095
|
+
value: bigint | null
|
|
20096
20096
|
createdAt: Date | null
|
|
20097
20097
|
updatedAt: Date | null
|
|
20098
20098
|
}
|
|
@@ -20246,7 +20246,7 @@ export namespace Prisma {
|
|
|
20246
20246
|
integrationType: string
|
|
20247
20247
|
metric: string
|
|
20248
20248
|
window: string
|
|
20249
|
-
value:
|
|
20249
|
+
value: bigint
|
|
20250
20250
|
createdAt: Date
|
|
20251
20251
|
updatedAt: Date
|
|
20252
20252
|
_count: UsageCounterCountAggregateOutputType | null
|
|
@@ -20325,7 +20325,7 @@ export namespace Prisma {
|
|
|
20325
20325
|
integrationType: string
|
|
20326
20326
|
metric: string
|
|
20327
20327
|
window: string
|
|
20328
|
-
value:
|
|
20328
|
+
value: bigint
|
|
20329
20329
|
createdAt: Date
|
|
20330
20330
|
updatedAt: Date
|
|
20331
20331
|
}, ExtArgs["result"]["usageCounter"]>
|
|
@@ -20756,7 +20756,7 @@ export namespace Prisma {
|
|
|
20756
20756
|
readonly integrationType: FieldRef<"UsageCounter", 'String'>
|
|
20757
20757
|
readonly metric: FieldRef<"UsageCounter", 'String'>
|
|
20758
20758
|
readonly window: FieldRef<"UsageCounter", 'String'>
|
|
20759
|
-
readonly value: FieldRef<"UsageCounter", '
|
|
20759
|
+
readonly value: FieldRef<"UsageCounter", 'BigInt'>
|
|
20760
20760
|
readonly createdAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
20761
20761
|
readonly updatedAt: FieldRef<"UsageCounter", 'DateTime'>
|
|
20762
20762
|
}
|
|
@@ -21519,6 +21519,20 @@ export namespace Prisma {
|
|
|
21519
21519
|
|
|
21520
21520
|
|
|
21521
21521
|
|
|
21522
|
+
/**
|
|
21523
|
+
* Reference to a field of type 'BigInt'
|
|
21524
|
+
*/
|
|
21525
|
+
export type BigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt'>
|
|
21526
|
+
|
|
21527
|
+
|
|
21528
|
+
|
|
21529
|
+
/**
|
|
21530
|
+
* Reference to a field of type 'BigInt[]'
|
|
21531
|
+
*/
|
|
21532
|
+
export type ListBigIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'BigInt[]'>
|
|
21533
|
+
|
|
21534
|
+
|
|
21535
|
+
|
|
21522
21536
|
/**
|
|
21523
21537
|
* Reference to a field of type 'Float'
|
|
21524
21538
|
*/
|
|
@@ -22616,7 +22630,7 @@ export namespace Prisma {
|
|
|
22616
22630
|
integrationType?: StringFilter<"UsageCounter"> | string
|
|
22617
22631
|
metric?: StringFilter<"UsageCounter"> | string
|
|
22618
22632
|
window?: StringFilter<"UsageCounter"> | string
|
|
22619
|
-
value?:
|
|
22633
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
22620
22634
|
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22621
22635
|
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22622
22636
|
}
|
|
@@ -22642,7 +22656,7 @@ export namespace Prisma {
|
|
|
22642
22656
|
integrationType?: StringFilter<"UsageCounter"> | string
|
|
22643
22657
|
metric?: StringFilter<"UsageCounter"> | string
|
|
22644
22658
|
window?: StringFilter<"UsageCounter"> | string
|
|
22645
|
-
value?:
|
|
22659
|
+
value?: BigIntFilter<"UsageCounter"> | bigint | number
|
|
22646
22660
|
createdAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22647
22661
|
updatedAt?: DateTimeFilter<"UsageCounter"> | Date | string
|
|
22648
22662
|
}, "id" | "integrationId_integrationType_metric_window">
|
|
@@ -22672,7 +22686,7 @@ export namespace Prisma {
|
|
|
22672
22686
|
integrationType?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22673
22687
|
metric?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22674
22688
|
window?: StringWithAggregatesFilter<"UsageCounter"> | string
|
|
22675
|
-
value?:
|
|
22689
|
+
value?: BigIntWithAggregatesFilter<"UsageCounter"> | bigint | number
|
|
22676
22690
|
createdAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
22677
22691
|
updatedAt?: DateTimeWithAggregatesFilter<"UsageCounter"> | Date | string
|
|
22678
22692
|
}
|
|
@@ -23747,7 +23761,7 @@ export namespace Prisma {
|
|
|
23747
23761
|
integrationType: string
|
|
23748
23762
|
metric: string
|
|
23749
23763
|
window: string
|
|
23750
|
-
value?: number
|
|
23764
|
+
value?: bigint | number
|
|
23751
23765
|
createdAt?: Date | string
|
|
23752
23766
|
updatedAt?: Date | string
|
|
23753
23767
|
}
|
|
@@ -23758,7 +23772,7 @@ export namespace Prisma {
|
|
|
23758
23772
|
integrationType: string
|
|
23759
23773
|
metric: string
|
|
23760
23774
|
window: string
|
|
23761
|
-
value?: number
|
|
23775
|
+
value?: bigint | number
|
|
23762
23776
|
createdAt?: Date | string
|
|
23763
23777
|
updatedAt?: Date | string
|
|
23764
23778
|
}
|
|
@@ -23768,7 +23782,7 @@ export namespace Prisma {
|
|
|
23768
23782
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23769
23783
|
metric?: StringFieldUpdateOperationsInput | string
|
|
23770
23784
|
window?: StringFieldUpdateOperationsInput | string
|
|
23771
|
-
value?:
|
|
23785
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23772
23786
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23773
23787
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23774
23788
|
}
|
|
@@ -23779,7 +23793,7 @@ export namespace Prisma {
|
|
|
23779
23793
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23780
23794
|
metric?: StringFieldUpdateOperationsInput | string
|
|
23781
23795
|
window?: StringFieldUpdateOperationsInput | string
|
|
23782
|
-
value?:
|
|
23796
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23783
23797
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23784
23798
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23785
23799
|
}
|
|
@@ -23790,7 +23804,7 @@ export namespace Prisma {
|
|
|
23790
23804
|
integrationType: string
|
|
23791
23805
|
metric: string
|
|
23792
23806
|
window: string
|
|
23793
|
-
value?: number
|
|
23807
|
+
value?: bigint | number
|
|
23794
23808
|
createdAt?: Date | string
|
|
23795
23809
|
updatedAt?: Date | string
|
|
23796
23810
|
}
|
|
@@ -23800,7 +23814,7 @@ export namespace Prisma {
|
|
|
23800
23814
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23801
23815
|
metric?: StringFieldUpdateOperationsInput | string
|
|
23802
23816
|
window?: StringFieldUpdateOperationsInput | string
|
|
23803
|
-
value?:
|
|
23817
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23804
23818
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23805
23819
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23806
23820
|
}
|
|
@@ -23811,7 +23825,7 @@ export namespace Prisma {
|
|
|
23811
23825
|
integrationType?: StringFieldUpdateOperationsInput | string
|
|
23812
23826
|
metric?: StringFieldUpdateOperationsInput | string
|
|
23813
23827
|
window?: StringFieldUpdateOperationsInput | string
|
|
23814
|
-
value?:
|
|
23828
|
+
value?: BigIntFieldUpdateOperationsInput | bigint | number
|
|
23815
23829
|
createdAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23816
23830
|
updatedAt?: DateTimeFieldUpdateOperationsInput | Date | string
|
|
23817
23831
|
}
|
|
@@ -24934,6 +24948,17 @@ export namespace Prisma {
|
|
|
24934
24948
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
24935
24949
|
}
|
|
24936
24950
|
|
|
24951
|
+
export type BigIntFilter<$PrismaModel = never> = {
|
|
24952
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24953
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24954
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
24955
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24956
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24957
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24958
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
24959
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
24960
|
+
}
|
|
24961
|
+
|
|
24937
24962
|
export type UsageCounterIntegrationIdIntegrationTypeMetricWindowCompoundUniqueInput = {
|
|
24938
24963
|
integrationId: string
|
|
24939
24964
|
integrationType: string
|
|
@@ -24984,6 +25009,22 @@ export namespace Prisma {
|
|
|
24984
25009
|
value?: SortOrder
|
|
24985
25010
|
}
|
|
24986
25011
|
|
|
25012
|
+
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
25013
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25014
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
25015
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
25016
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25017
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25018
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25019
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
25020
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
25021
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
25022
|
+
_avg?: NestedFloatFilter<$PrismaModel>
|
|
25023
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
25024
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
25025
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
25026
|
+
}
|
|
25027
|
+
|
|
24987
25028
|
export type UserCreateNestedOneWithoutMembersInput = {
|
|
24988
25029
|
create?: XOR<UserCreateWithoutMembersInput, UserUncheckedCreateWithoutMembersInput>
|
|
24989
25030
|
connectOrCreate?: UserCreateOrConnectWithoutMembersInput
|
|
@@ -26162,6 +26203,14 @@ export namespace Prisma {
|
|
|
26162
26203
|
set?: boolean
|
|
26163
26204
|
}
|
|
26164
26205
|
|
|
26206
|
+
export type BigIntFieldUpdateOperationsInput = {
|
|
26207
|
+
set?: bigint | number
|
|
26208
|
+
increment?: bigint | number
|
|
26209
|
+
decrement?: bigint | number
|
|
26210
|
+
multiply?: bigint | number
|
|
26211
|
+
divide?: bigint | number
|
|
26212
|
+
}
|
|
26213
|
+
|
|
26165
26214
|
export type NestedIntFilter<$PrismaModel = never> = {
|
|
26166
26215
|
equals?: number | IntFieldRefInput<$PrismaModel>
|
|
26167
26216
|
in?: number[] | ListIntFieldRefInput<$PrismaModel>
|
|
@@ -26490,6 +26539,33 @@ export namespace Prisma {
|
|
|
26490
26539
|
_max?: NestedBoolFilter<$PrismaModel>
|
|
26491
26540
|
}
|
|
26492
26541
|
|
|
26542
|
+
export type NestedBigIntFilter<$PrismaModel = never> = {
|
|
26543
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26544
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26545
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26546
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26547
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26548
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26549
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26550
|
+
not?: NestedBigIntFilter<$PrismaModel> | bigint | number
|
|
26551
|
+
}
|
|
26552
|
+
|
|
26553
|
+
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
26554
|
+
equals?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26555
|
+
in?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26556
|
+
notIn?: bigint[] | number[] | ListBigIntFieldRefInput<$PrismaModel>
|
|
26557
|
+
lt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26558
|
+
lte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26559
|
+
gt?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26560
|
+
gte?: bigint | number | BigIntFieldRefInput<$PrismaModel>
|
|
26561
|
+
not?: NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number
|
|
26562
|
+
_count?: NestedIntFilter<$PrismaModel>
|
|
26563
|
+
_avg?: NestedFloatFilter<$PrismaModel>
|
|
26564
|
+
_sum?: NestedBigIntFilter<$PrismaModel>
|
|
26565
|
+
_min?: NestedBigIntFilter<$PrismaModel>
|
|
26566
|
+
_max?: NestedBigIntFilter<$PrismaModel>
|
|
26567
|
+
}
|
|
26568
|
+
|
|
26493
26569
|
export type UserCreateWithoutMembersInput = {
|
|
26494
26570
|
type: $Enums.UserType
|
|
26495
26571
|
createdAt?: Date | string
|