@commonpub/schema 0.9.10 → 0.9.12
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/dist/enums.d.ts +1 -0
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +10 -0
- package/dist/enums.js.map +1 -1
- package/dist/federation.d.ts +439 -0
- package/dist/federation.d.ts.map +1 -1
- package/dist/federation.js +39 -0
- package/dist/federation.js.map +1 -1
- package/dist/files.d.ts.map +1 -1
- package/dist/files.js +1 -0
- package/dist/files.js.map +1 -1
- package/dist/hub.d.ts +186 -0
- package/dist/hub.d.ts.map +1 -1
- package/dist/hub.js +22 -1
- package/dist/hub.js.map +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/validators.d.ts +49 -3
- package/dist/validators.d.ts.map +1 -1
- package/dist/validators.js +15 -0
- package/dist/validators.js.map +1 -1
- package/package.json +1 -1
package/dist/enums.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export declare const hubRoleEnum: import("drizzle-orm/pg-core").PgEnum<["owner",
|
|
|
18
18
|
export declare const hubJoinPolicyEnum: import("drizzle-orm/pg-core").PgEnum<["open", "approval", "invite"]>;
|
|
19
19
|
export declare const hubMemberStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "active"]>;
|
|
20
20
|
export declare const postTypeEnum: import("drizzle-orm/pg-core").PgEnum<["text", "link", "share", "poll", "discussion", "question", "showcase", "announcement"]>;
|
|
21
|
+
export declare const resourceCategoryEnum: import("drizzle-orm/pg-core").PgEnum<["documentation", "tools", "tutorials", "community", "hardware", "software", "other"]>;
|
|
21
22
|
export declare const productStatusEnum: import("drizzle-orm/pg-core").PgEnum<["active", "discontinued", "preview"]>;
|
|
22
23
|
export declare const productCategoryEnum: import("drizzle-orm/pg-core").PgEnum<["microcontroller", "sbc", "sensor", "actuator", "display", "communication", "power", "mechanical", "software", "tool", "other"]>;
|
|
23
24
|
export declare const lessonTypeEnum: import("drizzle-orm/pg-core").PgEnum<["article", "video", "quiz", "project", "explainer"]>;
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uFAAuE,CAAC;AACjG,eAAO,MAAM,cAAc,0EAA4D,CAAC;AACxF,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,iBAAiB,0EAA+D,CAAC;AAC9F,eAAO,MAAM,eAAe,mFAK1B,CAAC;AACH,eAAO,MAAM,cAAc,gFAAiE,CAAC;AAC7F,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,kBAAkB,+GAQ7B,CAAC;AACH,eAAO,MAAM,qBAAqB,8GAQhC,CAAC;AACH,eAAO,MAAM,sBAAsB,oGAMjC,CAAC;AACH,eAAO,MAAM,oBAAoB,8GAQ/B,CAAC;AACH,eAAO,MAAM,gBAAgB,qGAM3B,CAAC;AACH,eAAO,MAAM,gBAAgB,wFAK3B,CAAC;AACH,eAAO,MAAM,oBAAoB,4IAW/B,CAAC;AAGH,eAAO,MAAM,WAAW,2EAA0D,CAAC;AACnF,eAAO,MAAM,cAAc,yEAA2D,CAAC;AACvF,eAAO,MAAM,WAAW,iFAKtB,CAAC;AACH,eAAO,MAAM,iBAAiB,sEAI5B,CAAC;AACH,eAAO,MAAM,mBAAmB,6DAAqD,CAAC;AACtF,eAAO,MAAM,YAAY,+HAA+G,CAAC;AAGzI,eAAO,MAAM,iBAAiB,6EAAkE,CAAC;AACjG,eAAO,MAAM,mBAAmB,wKAY9B,CAAC;AAGH,eAAO,MAAM,cAAc,4FAMzB,CAAC;AAGH,eAAO,MAAM,iBAAiB,mGAM5B,CAAC;AAGH,eAAO,MAAM,iBAAiB,qEAA0D,CAAC;AAGzF,eAAO,MAAM,eAAe,8FAM1B,CAAC;AAGH,eAAO,MAAM,qBAAqB,+DAAwD,CAAC;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kE,CAAC;AACjG,eAAO,MAAM,mBAAmB,wKAY9B,CAAC;AAGH,eAAO,MAAM,cAAc,4FAMzB,CAAC;AAGH,eAAO,MAAM,iBAAiB,mGAM5B,CAAC;AAGH,eAAO,MAAM,iBAAiB,qEAA0D,CAAC;AAGzF,eAAO,MAAM,eAAe,8FAM1B,CAAC;AAGH,eAAO,MAAM,qBAAqB,+DAAwD,CAAC;AAC3F,eAAO,MAAM,kBAAkB,uFAK7B,CAAC;AACH,eAAO,MAAM,4BAA4B,2EAIvC,CAAC;AACH,eAAO,MAAM,gBAAgB,iFAK3B,CAAC;AACH,eAAO,MAAM,mBAAmB,wDAA+C,CAAC;AAGhF,eAAO,MAAM,kBAAkB,0EAAiE,CAAC;AAGjG,eAAO,MAAM,mBAAmB,6DAAqD,CAAC;AAGtF,eAAO,MAAM,eAAe,iGAM1B,CAAC"}
|
package/dist/enums.js
CHANGED
|
@@ -89,6 +89,16 @@ export const hubJoinPolicyEnum = pgEnum('hub_join_policy', [
|
|
|
89
89
|
]);
|
|
90
90
|
export const hubMemberStatusEnum = pgEnum('hub_member_status', ['pending', 'active']);
|
|
91
91
|
export const postTypeEnum = pgEnum('post_type', ['text', 'link', 'share', 'poll', 'discussion', 'question', 'showcase', 'announcement']);
|
|
92
|
+
// --- Hub Resources ---
|
|
93
|
+
export const resourceCategoryEnum = pgEnum('resource_category', [
|
|
94
|
+
'documentation',
|
|
95
|
+
'tools',
|
|
96
|
+
'tutorials',
|
|
97
|
+
'community',
|
|
98
|
+
'hardware',
|
|
99
|
+
'software',
|
|
100
|
+
'other',
|
|
101
|
+
]);
|
|
92
102
|
// --- Products ---
|
|
93
103
|
export const productStatusEnum = pgEnum('product_status', ['active', 'discontinued', 'preview']);
|
|
94
104
|
export const productCategoryEnum = pgEnum('product_category', [
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA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;IACR,QAAQ;IACR,YAAY;CACb,CAAC,CAAC;AAEH,qBAAqB;AACrB,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,iBAAiB,EAAE;IAC1D,SAAS;IACT,WAAW;IACX,QAAQ;IACR,WAAW;CACZ,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,MAAM,CAAC,4BAA4B,EAAE;IAC/E,SAAS;IACT,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,eAAe,EAAE;IACtD,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhF,eAAe;AACf,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC;AAEjG,wCAAwC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEtF,eAAe;AACf,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,EAAE;IACpD,UAAU;IACV,UAAU;IACV,WAAW;IACX,OAAO;IACP,SAAS;CACV,CAAC,CAAC"}
|
package/dist/federation.d.ts
CHANGED
|
@@ -2869,6 +2869,441 @@ export declare const instanceHealth: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
2869
2869
|
};
|
|
2870
2870
|
dialect: "pg";
|
|
2871
2871
|
}>;
|
|
2872
|
+
export declare const federatedHubResources: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2873
|
+
name: "federated_hub_resources";
|
|
2874
|
+
schema: undefined;
|
|
2875
|
+
columns: {
|
|
2876
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2877
|
+
name: "id";
|
|
2878
|
+
tableName: "federated_hub_resources";
|
|
2879
|
+
dataType: "string";
|
|
2880
|
+
columnType: "PgUUID";
|
|
2881
|
+
data: string;
|
|
2882
|
+
driverParam: string;
|
|
2883
|
+
notNull: true;
|
|
2884
|
+
hasDefault: true;
|
|
2885
|
+
isPrimaryKey: true;
|
|
2886
|
+
isAutoincrement: false;
|
|
2887
|
+
hasRuntimeDefault: false;
|
|
2888
|
+
enumValues: undefined;
|
|
2889
|
+
baseColumn: never;
|
|
2890
|
+
identity: undefined;
|
|
2891
|
+
generated: undefined;
|
|
2892
|
+
}, {}, {}>;
|
|
2893
|
+
federatedHubId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2894
|
+
name: "federated_hub_id";
|
|
2895
|
+
tableName: "federated_hub_resources";
|
|
2896
|
+
dataType: "string";
|
|
2897
|
+
columnType: "PgUUID";
|
|
2898
|
+
data: string;
|
|
2899
|
+
driverParam: string;
|
|
2900
|
+
notNull: true;
|
|
2901
|
+
hasDefault: false;
|
|
2902
|
+
isPrimaryKey: false;
|
|
2903
|
+
isAutoincrement: false;
|
|
2904
|
+
hasRuntimeDefault: false;
|
|
2905
|
+
enumValues: undefined;
|
|
2906
|
+
baseColumn: never;
|
|
2907
|
+
identity: undefined;
|
|
2908
|
+
generated: undefined;
|
|
2909
|
+
}, {}, {}>;
|
|
2910
|
+
objectUri: import("drizzle-orm/pg-core").PgColumn<{
|
|
2911
|
+
name: "object_uri";
|
|
2912
|
+
tableName: "federated_hub_resources";
|
|
2913
|
+
dataType: "string";
|
|
2914
|
+
columnType: "PgText";
|
|
2915
|
+
data: string;
|
|
2916
|
+
driverParam: string;
|
|
2917
|
+
notNull: true;
|
|
2918
|
+
hasDefault: false;
|
|
2919
|
+
isPrimaryKey: false;
|
|
2920
|
+
isAutoincrement: false;
|
|
2921
|
+
hasRuntimeDefault: false;
|
|
2922
|
+
enumValues: [string, ...string[]];
|
|
2923
|
+
baseColumn: never;
|
|
2924
|
+
identity: undefined;
|
|
2925
|
+
generated: undefined;
|
|
2926
|
+
}, {}, {}>;
|
|
2927
|
+
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
2928
|
+
name: "title";
|
|
2929
|
+
tableName: "federated_hub_resources";
|
|
2930
|
+
dataType: "string";
|
|
2931
|
+
columnType: "PgVarchar";
|
|
2932
|
+
data: string;
|
|
2933
|
+
driverParam: string;
|
|
2934
|
+
notNull: true;
|
|
2935
|
+
hasDefault: false;
|
|
2936
|
+
isPrimaryKey: false;
|
|
2937
|
+
isAutoincrement: false;
|
|
2938
|
+
hasRuntimeDefault: false;
|
|
2939
|
+
enumValues: [string, ...string[]];
|
|
2940
|
+
baseColumn: never;
|
|
2941
|
+
identity: undefined;
|
|
2942
|
+
generated: undefined;
|
|
2943
|
+
}, {}, {
|
|
2944
|
+
length: 255;
|
|
2945
|
+
}>;
|
|
2946
|
+
url: import("drizzle-orm/pg-core").PgColumn<{
|
|
2947
|
+
name: "url";
|
|
2948
|
+
tableName: "federated_hub_resources";
|
|
2949
|
+
dataType: "string";
|
|
2950
|
+
columnType: "PgText";
|
|
2951
|
+
data: string;
|
|
2952
|
+
driverParam: string;
|
|
2953
|
+
notNull: true;
|
|
2954
|
+
hasDefault: false;
|
|
2955
|
+
isPrimaryKey: false;
|
|
2956
|
+
isAutoincrement: false;
|
|
2957
|
+
hasRuntimeDefault: false;
|
|
2958
|
+
enumValues: [string, ...string[]];
|
|
2959
|
+
baseColumn: never;
|
|
2960
|
+
identity: undefined;
|
|
2961
|
+
generated: undefined;
|
|
2962
|
+
}, {}, {}>;
|
|
2963
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
2964
|
+
name: "description";
|
|
2965
|
+
tableName: "federated_hub_resources";
|
|
2966
|
+
dataType: "string";
|
|
2967
|
+
columnType: "PgText";
|
|
2968
|
+
data: string;
|
|
2969
|
+
driverParam: string;
|
|
2970
|
+
notNull: false;
|
|
2971
|
+
hasDefault: false;
|
|
2972
|
+
isPrimaryKey: false;
|
|
2973
|
+
isAutoincrement: false;
|
|
2974
|
+
hasRuntimeDefault: false;
|
|
2975
|
+
enumValues: [string, ...string[]];
|
|
2976
|
+
baseColumn: never;
|
|
2977
|
+
identity: undefined;
|
|
2978
|
+
generated: undefined;
|
|
2979
|
+
}, {}, {}>;
|
|
2980
|
+
category: import("drizzle-orm/pg-core").PgColumn<{
|
|
2981
|
+
name: "category";
|
|
2982
|
+
tableName: "federated_hub_resources";
|
|
2983
|
+
dataType: "string";
|
|
2984
|
+
columnType: "PgVarchar";
|
|
2985
|
+
data: string;
|
|
2986
|
+
driverParam: string;
|
|
2987
|
+
notNull: true;
|
|
2988
|
+
hasDefault: true;
|
|
2989
|
+
isPrimaryKey: false;
|
|
2990
|
+
isAutoincrement: false;
|
|
2991
|
+
hasRuntimeDefault: false;
|
|
2992
|
+
enumValues: [string, ...string[]];
|
|
2993
|
+
baseColumn: never;
|
|
2994
|
+
identity: undefined;
|
|
2995
|
+
generated: undefined;
|
|
2996
|
+
}, {}, {
|
|
2997
|
+
length: 32;
|
|
2998
|
+
}>;
|
|
2999
|
+
sortOrder: import("drizzle-orm/pg-core").PgColumn<{
|
|
3000
|
+
name: "sort_order";
|
|
3001
|
+
tableName: "federated_hub_resources";
|
|
3002
|
+
dataType: "number";
|
|
3003
|
+
columnType: "PgInteger";
|
|
3004
|
+
data: number;
|
|
3005
|
+
driverParam: string | number;
|
|
3006
|
+
notNull: true;
|
|
3007
|
+
hasDefault: true;
|
|
3008
|
+
isPrimaryKey: false;
|
|
3009
|
+
isAutoincrement: false;
|
|
3010
|
+
hasRuntimeDefault: false;
|
|
3011
|
+
enumValues: undefined;
|
|
3012
|
+
baseColumn: never;
|
|
3013
|
+
identity: undefined;
|
|
3014
|
+
generated: undefined;
|
|
3015
|
+
}, {}, {}>;
|
|
3016
|
+
receivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3017
|
+
name: "received_at";
|
|
3018
|
+
tableName: "federated_hub_resources";
|
|
3019
|
+
dataType: "date";
|
|
3020
|
+
columnType: "PgTimestamp";
|
|
3021
|
+
data: Date;
|
|
3022
|
+
driverParam: string;
|
|
3023
|
+
notNull: true;
|
|
3024
|
+
hasDefault: true;
|
|
3025
|
+
isPrimaryKey: false;
|
|
3026
|
+
isAutoincrement: false;
|
|
3027
|
+
hasRuntimeDefault: false;
|
|
3028
|
+
enumValues: undefined;
|
|
3029
|
+
baseColumn: never;
|
|
3030
|
+
identity: undefined;
|
|
3031
|
+
generated: undefined;
|
|
3032
|
+
}, {}, {}>;
|
|
3033
|
+
};
|
|
3034
|
+
dialect: "pg";
|
|
3035
|
+
}>;
|
|
3036
|
+
export declare const federatedHubResourcesRelations: import("drizzle-orm").Relations<"federated_hub_resources", {
|
|
3037
|
+
federatedHub: import("drizzle-orm").One<"federated_hubs", true>;
|
|
3038
|
+
}>;
|
|
3039
|
+
export declare const federatedHubProducts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
3040
|
+
name: "federated_hub_products";
|
|
3041
|
+
schema: undefined;
|
|
3042
|
+
columns: {
|
|
3043
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
3044
|
+
name: "id";
|
|
3045
|
+
tableName: "federated_hub_products";
|
|
3046
|
+
dataType: "string";
|
|
3047
|
+
columnType: "PgUUID";
|
|
3048
|
+
data: string;
|
|
3049
|
+
driverParam: string;
|
|
3050
|
+
notNull: true;
|
|
3051
|
+
hasDefault: true;
|
|
3052
|
+
isPrimaryKey: true;
|
|
3053
|
+
isAutoincrement: false;
|
|
3054
|
+
hasRuntimeDefault: false;
|
|
3055
|
+
enumValues: undefined;
|
|
3056
|
+
baseColumn: never;
|
|
3057
|
+
identity: undefined;
|
|
3058
|
+
generated: undefined;
|
|
3059
|
+
}, {}, {}>;
|
|
3060
|
+
federatedHubId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3061
|
+
name: "federated_hub_id";
|
|
3062
|
+
tableName: "federated_hub_products";
|
|
3063
|
+
dataType: "string";
|
|
3064
|
+
columnType: "PgUUID";
|
|
3065
|
+
data: string;
|
|
3066
|
+
driverParam: string;
|
|
3067
|
+
notNull: true;
|
|
3068
|
+
hasDefault: false;
|
|
3069
|
+
isPrimaryKey: false;
|
|
3070
|
+
isAutoincrement: false;
|
|
3071
|
+
hasRuntimeDefault: false;
|
|
3072
|
+
enumValues: undefined;
|
|
3073
|
+
baseColumn: never;
|
|
3074
|
+
identity: undefined;
|
|
3075
|
+
generated: undefined;
|
|
3076
|
+
}, {}, {}>;
|
|
3077
|
+
objectUri: import("drizzle-orm/pg-core").PgColumn<{
|
|
3078
|
+
name: "object_uri";
|
|
3079
|
+
tableName: "federated_hub_products";
|
|
3080
|
+
dataType: "string";
|
|
3081
|
+
columnType: "PgText";
|
|
3082
|
+
data: string;
|
|
3083
|
+
driverParam: string;
|
|
3084
|
+
notNull: true;
|
|
3085
|
+
hasDefault: false;
|
|
3086
|
+
isPrimaryKey: false;
|
|
3087
|
+
isAutoincrement: false;
|
|
3088
|
+
hasRuntimeDefault: false;
|
|
3089
|
+
enumValues: [string, ...string[]];
|
|
3090
|
+
baseColumn: never;
|
|
3091
|
+
identity: undefined;
|
|
3092
|
+
generated: undefined;
|
|
3093
|
+
}, {}, {}>;
|
|
3094
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
3095
|
+
name: "name";
|
|
3096
|
+
tableName: "federated_hub_products";
|
|
3097
|
+
dataType: "string";
|
|
3098
|
+
columnType: "PgVarchar";
|
|
3099
|
+
data: string;
|
|
3100
|
+
driverParam: string;
|
|
3101
|
+
notNull: true;
|
|
3102
|
+
hasDefault: false;
|
|
3103
|
+
isPrimaryKey: false;
|
|
3104
|
+
isAutoincrement: false;
|
|
3105
|
+
hasRuntimeDefault: false;
|
|
3106
|
+
enumValues: [string, ...string[]];
|
|
3107
|
+
baseColumn: never;
|
|
3108
|
+
identity: undefined;
|
|
3109
|
+
generated: undefined;
|
|
3110
|
+
}, {}, {
|
|
3111
|
+
length: 255;
|
|
3112
|
+
}>;
|
|
3113
|
+
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
3114
|
+
name: "slug";
|
|
3115
|
+
tableName: "federated_hub_products";
|
|
3116
|
+
dataType: "string";
|
|
3117
|
+
columnType: "PgVarchar";
|
|
3118
|
+
data: string;
|
|
3119
|
+
driverParam: string;
|
|
3120
|
+
notNull: true;
|
|
3121
|
+
hasDefault: false;
|
|
3122
|
+
isPrimaryKey: false;
|
|
3123
|
+
isAutoincrement: false;
|
|
3124
|
+
hasRuntimeDefault: false;
|
|
3125
|
+
enumValues: [string, ...string[]];
|
|
3126
|
+
baseColumn: never;
|
|
3127
|
+
identity: undefined;
|
|
3128
|
+
generated: undefined;
|
|
3129
|
+
}, {}, {
|
|
3130
|
+
length: 255;
|
|
3131
|
+
}>;
|
|
3132
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
3133
|
+
name: "description";
|
|
3134
|
+
tableName: "federated_hub_products";
|
|
3135
|
+
dataType: "string";
|
|
3136
|
+
columnType: "PgText";
|
|
3137
|
+
data: string;
|
|
3138
|
+
driverParam: string;
|
|
3139
|
+
notNull: false;
|
|
3140
|
+
hasDefault: false;
|
|
3141
|
+
isPrimaryKey: false;
|
|
3142
|
+
isAutoincrement: false;
|
|
3143
|
+
hasRuntimeDefault: false;
|
|
3144
|
+
enumValues: [string, ...string[]];
|
|
3145
|
+
baseColumn: never;
|
|
3146
|
+
identity: undefined;
|
|
3147
|
+
generated: undefined;
|
|
3148
|
+
}, {}, {}>;
|
|
3149
|
+
category: import("drizzle-orm/pg-core").PgColumn<{
|
|
3150
|
+
name: "category";
|
|
3151
|
+
tableName: "federated_hub_products";
|
|
3152
|
+
dataType: "string";
|
|
3153
|
+
columnType: "PgVarchar";
|
|
3154
|
+
data: string;
|
|
3155
|
+
driverParam: string;
|
|
3156
|
+
notNull: false;
|
|
3157
|
+
hasDefault: false;
|
|
3158
|
+
isPrimaryKey: false;
|
|
3159
|
+
isAutoincrement: false;
|
|
3160
|
+
hasRuntimeDefault: false;
|
|
3161
|
+
enumValues: [string, ...string[]];
|
|
3162
|
+
baseColumn: never;
|
|
3163
|
+
identity: undefined;
|
|
3164
|
+
generated: undefined;
|
|
3165
|
+
}, {}, {
|
|
3166
|
+
length: 32;
|
|
3167
|
+
}>;
|
|
3168
|
+
imageUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
3169
|
+
name: "image_url";
|
|
3170
|
+
tableName: "federated_hub_products";
|
|
3171
|
+
dataType: "string";
|
|
3172
|
+
columnType: "PgText";
|
|
3173
|
+
data: string;
|
|
3174
|
+
driverParam: string;
|
|
3175
|
+
notNull: false;
|
|
3176
|
+
hasDefault: false;
|
|
3177
|
+
isPrimaryKey: false;
|
|
3178
|
+
isAutoincrement: false;
|
|
3179
|
+
hasRuntimeDefault: false;
|
|
3180
|
+
enumValues: [string, ...string[]];
|
|
3181
|
+
baseColumn: never;
|
|
3182
|
+
identity: undefined;
|
|
3183
|
+
generated: undefined;
|
|
3184
|
+
}, {}, {}>;
|
|
3185
|
+
purchaseUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
3186
|
+
name: "purchase_url";
|
|
3187
|
+
tableName: "federated_hub_products";
|
|
3188
|
+
dataType: "string";
|
|
3189
|
+
columnType: "PgText";
|
|
3190
|
+
data: string;
|
|
3191
|
+
driverParam: string;
|
|
3192
|
+
notNull: false;
|
|
3193
|
+
hasDefault: false;
|
|
3194
|
+
isPrimaryKey: false;
|
|
3195
|
+
isAutoincrement: false;
|
|
3196
|
+
hasRuntimeDefault: false;
|
|
3197
|
+
enumValues: [string, ...string[]];
|
|
3198
|
+
baseColumn: never;
|
|
3199
|
+
identity: undefined;
|
|
3200
|
+
generated: undefined;
|
|
3201
|
+
}, {}, {}>;
|
|
3202
|
+
datasheetUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
3203
|
+
name: "datasheet_url";
|
|
3204
|
+
tableName: "federated_hub_products";
|
|
3205
|
+
dataType: "string";
|
|
3206
|
+
columnType: "PgText";
|
|
3207
|
+
data: string;
|
|
3208
|
+
driverParam: string;
|
|
3209
|
+
notNull: false;
|
|
3210
|
+
hasDefault: false;
|
|
3211
|
+
isPrimaryKey: false;
|
|
3212
|
+
isAutoincrement: false;
|
|
3213
|
+
hasRuntimeDefault: false;
|
|
3214
|
+
enumValues: [string, ...string[]];
|
|
3215
|
+
baseColumn: never;
|
|
3216
|
+
identity: undefined;
|
|
3217
|
+
generated: undefined;
|
|
3218
|
+
}, {}, {}>;
|
|
3219
|
+
specs: import("drizzle-orm/pg-core").PgColumn<{
|
|
3220
|
+
name: "specs";
|
|
3221
|
+
tableName: "federated_hub_products";
|
|
3222
|
+
dataType: "json";
|
|
3223
|
+
columnType: "PgJsonb";
|
|
3224
|
+
data: Record<string, string>;
|
|
3225
|
+
driverParam: unknown;
|
|
3226
|
+
notNull: false;
|
|
3227
|
+
hasDefault: false;
|
|
3228
|
+
isPrimaryKey: false;
|
|
3229
|
+
isAutoincrement: false;
|
|
3230
|
+
hasRuntimeDefault: false;
|
|
3231
|
+
enumValues: undefined;
|
|
3232
|
+
baseColumn: never;
|
|
3233
|
+
identity: undefined;
|
|
3234
|
+
generated: undefined;
|
|
3235
|
+
}, {}, {
|
|
3236
|
+
$type: Record<string, string>;
|
|
3237
|
+
}>;
|
|
3238
|
+
pricing: import("drizzle-orm/pg-core").PgColumn<{
|
|
3239
|
+
name: "pricing";
|
|
3240
|
+
tableName: "federated_hub_products";
|
|
3241
|
+
dataType: "json";
|
|
3242
|
+
columnType: "PgJsonb";
|
|
3243
|
+
data: {
|
|
3244
|
+
min?: number;
|
|
3245
|
+
max?: number;
|
|
3246
|
+
currency?: string;
|
|
3247
|
+
};
|
|
3248
|
+
driverParam: unknown;
|
|
3249
|
+
notNull: false;
|
|
3250
|
+
hasDefault: false;
|
|
3251
|
+
isPrimaryKey: false;
|
|
3252
|
+
isAutoincrement: false;
|
|
3253
|
+
hasRuntimeDefault: false;
|
|
3254
|
+
enumValues: undefined;
|
|
3255
|
+
baseColumn: never;
|
|
3256
|
+
identity: undefined;
|
|
3257
|
+
generated: undefined;
|
|
3258
|
+
}, {}, {
|
|
3259
|
+
$type: {
|
|
3260
|
+
min?: number;
|
|
3261
|
+
max?: number;
|
|
3262
|
+
currency?: string;
|
|
3263
|
+
};
|
|
3264
|
+
}>;
|
|
3265
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
3266
|
+
name: "status";
|
|
3267
|
+
tableName: "federated_hub_products";
|
|
3268
|
+
dataType: "string";
|
|
3269
|
+
columnType: "PgVarchar";
|
|
3270
|
+
data: string;
|
|
3271
|
+
driverParam: string;
|
|
3272
|
+
notNull: true;
|
|
3273
|
+
hasDefault: true;
|
|
3274
|
+
isPrimaryKey: false;
|
|
3275
|
+
isAutoincrement: false;
|
|
3276
|
+
hasRuntimeDefault: false;
|
|
3277
|
+
enumValues: [string, ...string[]];
|
|
3278
|
+
baseColumn: never;
|
|
3279
|
+
identity: undefined;
|
|
3280
|
+
generated: undefined;
|
|
3281
|
+
}, {}, {
|
|
3282
|
+
length: 32;
|
|
3283
|
+
}>;
|
|
3284
|
+
receivedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
3285
|
+
name: "received_at";
|
|
3286
|
+
tableName: "federated_hub_products";
|
|
3287
|
+
dataType: "date";
|
|
3288
|
+
columnType: "PgTimestamp";
|
|
3289
|
+
data: Date;
|
|
3290
|
+
driverParam: string;
|
|
3291
|
+
notNull: true;
|
|
3292
|
+
hasDefault: true;
|
|
3293
|
+
isPrimaryKey: false;
|
|
3294
|
+
isAutoincrement: false;
|
|
3295
|
+
hasRuntimeDefault: false;
|
|
3296
|
+
enumValues: undefined;
|
|
3297
|
+
baseColumn: never;
|
|
3298
|
+
identity: undefined;
|
|
3299
|
+
generated: undefined;
|
|
3300
|
+
}, {}, {}>;
|
|
3301
|
+
};
|
|
3302
|
+
dialect: "pg";
|
|
3303
|
+
}>;
|
|
3304
|
+
export declare const federatedHubProductsRelations: import("drizzle-orm").Relations<"federated_hub_products", {
|
|
3305
|
+
federatedHub: import("drizzle-orm").One<"federated_hubs", true>;
|
|
3306
|
+
}>;
|
|
2872
3307
|
export type RemoteActorRow = typeof remoteActors.$inferSelect;
|
|
2873
3308
|
export type NewRemoteActorRow = typeof remoteActors.$inferInsert;
|
|
2874
3309
|
export type ActivityRow = typeof activities.$inferSelect;
|
|
@@ -2891,4 +3326,8 @@ export type UserFederatedHubFollowRow = typeof userFederatedHubFollows.$inferSel
|
|
|
2891
3326
|
export type NewUserFederatedHubFollowRow = typeof userFederatedHubFollows.$inferInsert;
|
|
2892
3327
|
export type FederatedHubPostReplyRow = typeof federatedHubPostReplies.$inferSelect;
|
|
2893
3328
|
export type NewFederatedHubPostReplyRow = typeof federatedHubPostReplies.$inferInsert;
|
|
3329
|
+
export type FederatedHubResourceRow = typeof federatedHubResources.$inferSelect;
|
|
3330
|
+
export type NewFederatedHubResourceRow = typeof federatedHubResources.$inferInsert;
|
|
3331
|
+
export type FederatedHubProductRow = typeof federatedHubProducts.$inferSelect;
|
|
3332
|
+
export type NewFederatedHubProductRow = typeof federatedHubProducts.$inferInsert;
|
|
2894
3333
|
//# sourceMappingURL=federation.d.ts.map
|
package/dist/federation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"federation.d.ts","sourceRoot":"","sources":["../src/federation.ts"],"names":[],"mappings":"AAKA,kDAAkD;AAClD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,YAAY,CAAC;AACtF,MAAM,MAAM,uBAAuB,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAC;AAChF,MAAM,MAAM,0BAA0B,GAAG,OAAO,qBAAqB,CAAC,YAAY,CAAC;AACnF,MAAM,MAAM,sBAAsB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAC;AAC9E,MAAM,MAAM,yBAAyB,GAAG,OAAO,oBAAoB,CAAC,YAAY,CAAC"}
|
package/dist/federation.js
CHANGED
|
@@ -382,4 +382,43 @@ export const instanceHealth = pgTable('instance_health', {
|
|
|
382
382
|
lastFailureAt: timestamp('last_failure_at', { withTimezone: true }),
|
|
383
383
|
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull(),
|
|
384
384
|
});
|
|
385
|
+
// --- Federated Hub Resources (mirrored from remote hubs) ---
|
|
386
|
+
export const federatedHubResources = pgTable('federated_hub_resources', {
|
|
387
|
+
id: uuid('id').defaultRandom().primaryKey(),
|
|
388
|
+
federatedHubId: uuid('federated_hub_id').notNull().references(() => federatedHubs.id, { onDelete: 'cascade' }),
|
|
389
|
+
objectUri: text('object_uri').notNull().unique(),
|
|
390
|
+
title: varchar('title', { length: 255 }).notNull(),
|
|
391
|
+
url: text('url').notNull(),
|
|
392
|
+
description: text('description'),
|
|
393
|
+
category: varchar('category', { length: 32 }).default('other').notNull(),
|
|
394
|
+
sortOrder: integer('sort_order').default(0).notNull(),
|
|
395
|
+
receivedAt: timestamp('received_at', { withTimezone: true }).defaultNow().notNull(),
|
|
396
|
+
}, (t) => [
|
|
397
|
+
index('idx_fed_hub_resources_hub').on(t.federatedHubId),
|
|
398
|
+
]);
|
|
399
|
+
export const federatedHubResourcesRelations = relations(federatedHubResources, ({ one }) => ({
|
|
400
|
+
federatedHub: one(federatedHubs, { fields: [federatedHubResources.federatedHubId], references: [federatedHubs.id] }),
|
|
401
|
+
}));
|
|
402
|
+
// --- Federated Hub Products (mirrored from remote hubs) ---
|
|
403
|
+
export const federatedHubProducts = pgTable('federated_hub_products', {
|
|
404
|
+
id: uuid('id').defaultRandom().primaryKey(),
|
|
405
|
+
federatedHubId: uuid('federated_hub_id').notNull().references(() => federatedHubs.id, { onDelete: 'cascade' }),
|
|
406
|
+
objectUri: text('object_uri').notNull().unique(),
|
|
407
|
+
name: varchar('name', { length: 255 }).notNull(),
|
|
408
|
+
slug: varchar('slug', { length: 255 }).notNull(),
|
|
409
|
+
description: text('description'),
|
|
410
|
+
category: varchar('category', { length: 32 }),
|
|
411
|
+
imageUrl: text('image_url'),
|
|
412
|
+
purchaseUrl: text('purchase_url'),
|
|
413
|
+
datasheetUrl: text('datasheet_url'),
|
|
414
|
+
specs: jsonb('specs').$type(),
|
|
415
|
+
pricing: jsonb('pricing').$type(),
|
|
416
|
+
status: varchar('status', { length: 32 }).default('active').notNull(),
|
|
417
|
+
receivedAt: timestamp('received_at', { withTimezone: true }).defaultNow().notNull(),
|
|
418
|
+
}, (t) => [
|
|
419
|
+
index('idx_fed_hub_products_hub').on(t.federatedHubId),
|
|
420
|
+
]);
|
|
421
|
+
export const federatedHubProductsRelations = relations(federatedHubProducts, ({ one }) => ({
|
|
422
|
+
federatedHub: one(federatedHubs, { fields: [federatedHubProducts.federatedHubId], references: [federatedHubs.id] }),
|
|
423
|
+
}));
|
|
385
424
|
//# sourceMappingURL=federation.js.map
|