@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.17.bitstring.sl.2 → 0.34.1-next.3
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/index.cjs +498 -958
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -38
- package/dist/index.d.ts +6 -38
- package/dist/index.js +387 -847
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/src/__tests__/statusList.entities.test.ts +1 -58
- package/src/__tests__/statusList.store.test.ts +1 -63
- package/src/entities/statusList/StatusList2021EntryEntity.ts +2 -2
- package/src/entities/statusList/StatusListEntities.ts +5 -48
- package/src/index.ts +2 -12
- package/src/migrations/generic/index.ts +1 -2
- package/src/statusList/StatusListStore.ts +1 -3
- package/src/types/statusList/statusList.ts +2 -17
- package/src/utils/statusList/MappingUtils.ts +2 -36
- package/src/entities/statusList/BitstringStatusListEntryEntity.ts +0 -83
- package/src/migrations/generic/12-CreateBitstringStatusList.ts +0 -52
- package/src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts +0 -54
- package/src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts +0 -103
package/dist/index.js
CHANGED
|
@@ -2745,7 +2745,7 @@ _ts_decorate26([
|
|
|
2745
2745
|
_ts_metadata25("design:type", Number)
|
|
2746
2746
|
], StatusListEntryEntity.prototype, "statusListIndex", void 0);
|
|
2747
2747
|
_ts_decorate26([
|
|
2748
|
-
ManyToOne11(() =>
|
|
2748
|
+
ManyToOne11(() => StatusListEntity, (statusList) => statusList.statusListEntries),
|
|
2749
2749
|
JoinColumn13({
|
|
2750
2750
|
name: "statusListId"
|
|
2751
2751
|
}),
|
|
@@ -2795,11 +2795,6 @@ StatusListEntryEntity = _ts_decorate26([
|
|
|
2795
2795
|
|
|
2796
2796
|
// src/entities/statusList/StatusListEntities.ts
|
|
2797
2797
|
import { typeOrmDateTime as typeOrmDateTime13 } from "@sphereon/ssi-sdk.agent-config";
|
|
2798
|
-
|
|
2799
|
-
// src/entities/statusList/BitstringStatusListEntryEntity.ts
|
|
2800
|
-
import { Validate as Validate10 } from "class-validator";
|
|
2801
|
-
import { BaseEntity as BaseEntity20, Column as Column24, Entity as Entity22, JoinColumn as JoinColumn14, ManyToOne as ManyToOne12, PrimaryColumn as PrimaryColumn2 } from "typeorm";
|
|
2802
|
-
import { BitstringStatusPurpose } from "@sphereon/ssi-types";
|
|
2803
2798
|
function _ts_decorate27(decorators, target, key, desc) {
|
|
2804
2799
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2805
2800
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -2811,162 +2806,8 @@ function _ts_metadata26(k, v) {
|
|
|
2811
2806
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2812
2807
|
}
|
|
2813
2808
|
__name(_ts_metadata26, "_ts_metadata");
|
|
2814
|
-
var
|
|
2815
|
-
|
|
2816
|
-
__name(this, "BitstringStatusListEntryEntity");
|
|
2817
|
-
}
|
|
2818
|
-
statusListId;
|
|
2819
|
-
statusListIndex;
|
|
2820
|
-
statusList;
|
|
2821
|
-
credentialId;
|
|
2822
|
-
credentialHash;
|
|
2823
|
-
entryCorrelationId;
|
|
2824
|
-
statusPurpose;
|
|
2825
|
-
statusSize;
|
|
2826
|
-
statusMessage;
|
|
2827
|
-
statusReference;
|
|
2828
|
-
};
|
|
2829
|
-
_ts_decorate27([
|
|
2830
|
-
PrimaryColumn2({
|
|
2831
|
-
name: "statusListId",
|
|
2832
|
-
type: "varchar",
|
|
2833
|
-
nullable: false,
|
|
2834
|
-
unique: false
|
|
2835
|
-
}),
|
|
2836
|
-
Validate10(IsNonEmptyStringConstraint, {
|
|
2837
|
-
message: "Status list id is required"
|
|
2838
|
-
}),
|
|
2839
|
-
_ts_metadata26("design:type", String)
|
|
2840
|
-
], BitstringStatusListEntryEntity.prototype, "statusListId", void 0);
|
|
2841
|
-
_ts_decorate27([
|
|
2842
|
-
PrimaryColumn2({
|
|
2843
|
-
name: "statusListIndex",
|
|
2844
|
-
type: "integer",
|
|
2845
|
-
nullable: false,
|
|
2846
|
-
unique: false
|
|
2847
|
-
}),
|
|
2848
|
-
_ts_metadata26("design:type", Number)
|
|
2849
|
-
], BitstringStatusListEntryEntity.prototype, "statusListIndex", void 0);
|
|
2850
|
-
_ts_decorate27([
|
|
2851
|
-
ManyToOne12(() => BitstringStatusListEntity, (statusList) => statusList.statusListEntries),
|
|
2852
|
-
JoinColumn14({
|
|
2853
|
-
name: "statusListId"
|
|
2854
|
-
}),
|
|
2855
|
-
_ts_metadata26("design:type", typeof BitstringStatusListEntity === "undefined" ? Object : BitstringStatusListEntity)
|
|
2856
|
-
], BitstringStatusListEntryEntity.prototype, "statusList", void 0);
|
|
2857
|
-
_ts_decorate27([
|
|
2858
|
-
Column24({
|
|
2859
|
-
name: "credentialId",
|
|
2860
|
-
type: "text",
|
|
2861
|
-
nullable: true
|
|
2862
|
-
}),
|
|
2863
|
-
_ts_metadata26("design:type", String)
|
|
2864
|
-
], BitstringStatusListEntryEntity.prototype, "credentialId", void 0);
|
|
2865
|
-
_ts_decorate27([
|
|
2866
|
-
Column24({
|
|
2867
|
-
name: "credentialHash",
|
|
2868
|
-
length: 128,
|
|
2869
|
-
type: "varchar",
|
|
2870
|
-
nullable: true,
|
|
2871
|
-
unique: false
|
|
2872
|
-
}),
|
|
2873
|
-
_ts_metadata26("design:type", String)
|
|
2874
|
-
], BitstringStatusListEntryEntity.prototype, "credentialHash", void 0);
|
|
2875
|
-
_ts_decorate27([
|
|
2876
|
-
Column24({
|
|
2877
|
-
name: "correlationId",
|
|
2878
|
-
length: 255,
|
|
2879
|
-
type: "varchar",
|
|
2880
|
-
nullable: true,
|
|
2881
|
-
unique: false
|
|
2882
|
-
}),
|
|
2883
|
-
_ts_metadata26("design:type", String)
|
|
2884
|
-
], BitstringStatusListEntryEntity.prototype, "entryCorrelationId", void 0);
|
|
2885
|
-
_ts_decorate27([
|
|
2886
|
-
Column24({
|
|
2887
|
-
type: "varchar",
|
|
2888
|
-
name: "statusPurpose",
|
|
2889
|
-
nullable: false
|
|
2890
|
-
}),
|
|
2891
|
-
_ts_metadata26("design:type", typeof BitstringStatusPurpose === "undefined" ? Object : BitstringStatusPurpose)
|
|
2892
|
-
], BitstringStatusListEntryEntity.prototype, "statusPurpose", void 0);
|
|
2893
|
-
_ts_decorate27([
|
|
2894
|
-
Column24({
|
|
2895
|
-
type: "integer",
|
|
2896
|
-
name: "statusSize",
|
|
2897
|
-
nullable: true,
|
|
2898
|
-
default: 1
|
|
2899
|
-
}),
|
|
2900
|
-
_ts_metadata26("design:type", Number)
|
|
2901
|
-
], BitstringStatusListEntryEntity.prototype, "statusSize", void 0);
|
|
2902
|
-
_ts_decorate27([
|
|
2903
|
-
Column24({
|
|
2904
|
-
type: "text",
|
|
2905
|
-
name: "statusMessage",
|
|
2906
|
-
nullable: true,
|
|
2907
|
-
transformer: {
|
|
2908
|
-
from(value) {
|
|
2909
|
-
if (!value) {
|
|
2910
|
-
return void 0;
|
|
2911
|
-
}
|
|
2912
|
-
return JSON.parse(value);
|
|
2913
|
-
},
|
|
2914
|
-
to(value) {
|
|
2915
|
-
if (!value) {
|
|
2916
|
-
return void 0;
|
|
2917
|
-
}
|
|
2918
|
-
return JSON.stringify(value);
|
|
2919
|
-
}
|
|
2920
|
-
}
|
|
2921
|
-
}),
|
|
2922
|
-
_ts_metadata26("design:type", typeof Array === "undefined" ? Object : Array)
|
|
2923
|
-
], BitstringStatusListEntryEntity.prototype, "statusMessage", void 0);
|
|
2924
|
-
_ts_decorate27([
|
|
2925
|
-
Column24({
|
|
2926
|
-
type: "text",
|
|
2927
|
-
name: "statusReference",
|
|
2928
|
-
nullable: true,
|
|
2929
|
-
transformer: {
|
|
2930
|
-
from(value) {
|
|
2931
|
-
if (!value) {
|
|
2932
|
-
return void 0;
|
|
2933
|
-
}
|
|
2934
|
-
if (value.startsWith("[")) {
|
|
2935
|
-
return JSON.parse(value);
|
|
2936
|
-
}
|
|
2937
|
-
return value;
|
|
2938
|
-
},
|
|
2939
|
-
to(value) {
|
|
2940
|
-
if (!value) {
|
|
2941
|
-
return void 0;
|
|
2942
|
-
}
|
|
2943
|
-
if (Array.isArray(value)) {
|
|
2944
|
-
return JSON.stringify(value);
|
|
2945
|
-
}
|
|
2946
|
-
return value;
|
|
2947
|
-
}
|
|
2948
|
-
}
|
|
2949
|
-
}),
|
|
2950
|
-
_ts_metadata26("design:type", Object)
|
|
2951
|
-
], BitstringStatusListEntryEntity.prototype, "statusReference", void 0);
|
|
2952
|
-
BitstringStatusListEntryEntity = _ts_decorate27([
|
|
2953
|
-
Entity22("BitstringStatusListEntry")
|
|
2954
|
-
], BitstringStatusListEntryEntity);
|
|
2955
|
-
|
|
2956
|
-
// src/entities/statusList/StatusListEntities.ts
|
|
2957
|
-
function _ts_decorate28(decorators, target, key, desc) {
|
|
2958
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2959
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2960
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2961
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2962
|
-
}
|
|
2963
|
-
__name(_ts_decorate28, "_ts_decorate");
|
|
2964
|
-
function _ts_metadata27(k, v) {
|
|
2965
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
2966
|
-
}
|
|
2967
|
-
__name(_ts_metadata27, "_ts_metadata");
|
|
2968
|
-
var { BaseEntity: BaseEntity21, ChildEntity: ChildEntity5, Column: Column25, Entity: Entity23, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn3, TableInheritance: TableInheritance4, Unique } = typeorm9;
|
|
2969
|
-
var StatusListEntity = class extends BaseEntity21 {
|
|
2809
|
+
var { BaseEntity: BaseEntity20, ChildEntity: ChildEntity5, Column: Column24, Entity: Entity22, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn2, TableInheritance: TableInheritance4, Unique } = typeorm9;
|
|
2810
|
+
var StatusListEntity = class extends BaseEntity20 {
|
|
2970
2811
|
static {
|
|
2971
2812
|
__name(this, "StatusListEntity");
|
|
2972
2813
|
}
|
|
@@ -2978,33 +2819,34 @@ var StatusListEntity = class extends BaseEntity21 {
|
|
|
2978
2819
|
credentialIdMode;
|
|
2979
2820
|
proofFormat;
|
|
2980
2821
|
statusListCredential;
|
|
2822
|
+
statusListEntries;
|
|
2981
2823
|
};
|
|
2982
|
-
|
|
2983
|
-
|
|
2824
|
+
_ts_decorate27([
|
|
2825
|
+
PrimaryColumn2({
|
|
2984
2826
|
name: "id",
|
|
2985
2827
|
type: "varchar"
|
|
2986
2828
|
}),
|
|
2987
|
-
|
|
2829
|
+
_ts_metadata26("design:type", String)
|
|
2988
2830
|
], StatusListEntity.prototype, "id", void 0);
|
|
2989
|
-
|
|
2990
|
-
|
|
2831
|
+
_ts_decorate27([
|
|
2832
|
+
Column24({
|
|
2991
2833
|
name: "correlationId",
|
|
2992
2834
|
type: "varchar",
|
|
2993
2835
|
nullable: false
|
|
2994
2836
|
}),
|
|
2995
|
-
|
|
2837
|
+
_ts_metadata26("design:type", String)
|
|
2996
2838
|
], StatusListEntity.prototype, "correlationId", void 0);
|
|
2997
|
-
|
|
2998
|
-
|
|
2839
|
+
_ts_decorate27([
|
|
2840
|
+
Column24({
|
|
2999
2841
|
name: "length",
|
|
3000
2842
|
type: "integer",
|
|
3001
2843
|
nullable: false,
|
|
3002
2844
|
unique: false
|
|
3003
2845
|
}),
|
|
3004
|
-
|
|
2846
|
+
_ts_metadata26("design:type", Number)
|
|
3005
2847
|
], StatusListEntity.prototype, "length", void 0);
|
|
3006
|
-
|
|
3007
|
-
|
|
2848
|
+
_ts_decorate27([
|
|
2849
|
+
Column24({
|
|
3008
2850
|
name: "issuer",
|
|
3009
2851
|
type: "text",
|
|
3010
2852
|
nullable: false,
|
|
@@ -3024,28 +2866,28 @@ _ts_decorate28([
|
|
|
3024
2866
|
}
|
|
3025
2867
|
}
|
|
3026
2868
|
}),
|
|
3027
|
-
|
|
2869
|
+
_ts_metadata26("design:type", Object)
|
|
3028
2870
|
], StatusListEntity.prototype, "issuer", void 0);
|
|
3029
|
-
|
|
3030
|
-
|
|
2871
|
+
_ts_decorate27([
|
|
2872
|
+
Column24("simple-enum", {
|
|
3031
2873
|
name: "driverType",
|
|
3032
2874
|
enum: StatusListDriverType,
|
|
3033
2875
|
nullable: false,
|
|
3034
2876
|
default: StatusListDriverType.AGENT_TYPEORM
|
|
3035
2877
|
}),
|
|
3036
|
-
|
|
2878
|
+
_ts_metadata26("design:type", typeof StatusListDriverType === "undefined" ? Object : StatusListDriverType)
|
|
3037
2879
|
], StatusListEntity.prototype, "driverType", void 0);
|
|
3038
|
-
|
|
3039
|
-
|
|
2880
|
+
_ts_decorate27([
|
|
2881
|
+
Column24("simple-enum", {
|
|
3040
2882
|
name: "credentialIdMode",
|
|
3041
2883
|
enum: StatusListCredentialIdMode,
|
|
3042
2884
|
nullable: false,
|
|
3043
2885
|
default: StatusListCredentialIdMode.ISSUANCE
|
|
3044
2886
|
}),
|
|
3045
|
-
|
|
2887
|
+
_ts_metadata26("design:type", typeof StatusListCredentialIdMode === "undefined" ? Object : StatusListCredentialIdMode)
|
|
3046
2888
|
], StatusListEntity.prototype, "credentialIdMode", void 0);
|
|
3047
|
-
|
|
3048
|
-
|
|
2889
|
+
_ts_decorate27([
|
|
2890
|
+
Column24({
|
|
3049
2891
|
type: "varchar",
|
|
3050
2892
|
name: "proofFormat",
|
|
3051
2893
|
enum: [
|
|
@@ -3055,10 +2897,10 @@ _ts_decorate28([
|
|
|
3055
2897
|
nullable: false,
|
|
3056
2898
|
default: "lds"
|
|
3057
2899
|
}),
|
|
3058
|
-
|
|
2900
|
+
_ts_metadata26("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
|
|
3059
2901
|
], StatusListEntity.prototype, "proofFormat", void 0);
|
|
3060
|
-
|
|
3061
|
-
|
|
2902
|
+
_ts_decorate27([
|
|
2903
|
+
Column24({
|
|
3062
2904
|
name: "statusListCredential",
|
|
3063
2905
|
type: "text",
|
|
3064
2906
|
nullable: true,
|
|
@@ -3078,10 +2920,14 @@ _ts_decorate28([
|
|
|
3078
2920
|
}
|
|
3079
2921
|
}
|
|
3080
2922
|
}),
|
|
3081
|
-
|
|
2923
|
+
_ts_metadata26("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
|
|
3082
2924
|
], StatusListEntity.prototype, "statusListCredential", void 0);
|
|
3083
|
-
|
|
3084
|
-
|
|
2925
|
+
_ts_decorate27([
|
|
2926
|
+
OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
|
|
2927
|
+
_ts_metadata26("design:type", Array)
|
|
2928
|
+
], StatusListEntity.prototype, "statusListEntries", void 0);
|
|
2929
|
+
StatusListEntity = _ts_decorate27([
|
|
2930
|
+
Entity22("StatusList"),
|
|
3085
2931
|
Unique("UQ_correlationId", [
|
|
3086
2932
|
"correlationId"
|
|
3087
2933
|
]),
|
|
@@ -3099,10 +2945,9 @@ var StatusList2021Entity = class extends StatusListEntity {
|
|
|
3099
2945
|
}
|
|
3100
2946
|
indexingDirection;
|
|
3101
2947
|
statusPurpose;
|
|
3102
|
-
statusListEntries;
|
|
3103
2948
|
};
|
|
3104
|
-
|
|
3105
|
-
|
|
2949
|
+
_ts_decorate27([
|
|
2950
|
+
Column24({
|
|
3106
2951
|
type: "varchar",
|
|
3107
2952
|
name: "indexingDirection",
|
|
3108
2953
|
enum: [
|
|
@@ -3111,22 +2956,18 @@ _ts_decorate28([
|
|
|
3111
2956
|
nullable: false,
|
|
3112
2957
|
default: "rightToLeft"
|
|
3113
2958
|
}),
|
|
3114
|
-
|
|
2959
|
+
_ts_metadata26("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
|
|
3115
2960
|
], StatusList2021Entity.prototype, "indexingDirection", void 0);
|
|
3116
|
-
|
|
3117
|
-
|
|
2961
|
+
_ts_decorate27([
|
|
2962
|
+
Column24({
|
|
3118
2963
|
type: "varchar",
|
|
3119
2964
|
name: "statusPurpose",
|
|
3120
2965
|
nullable: false,
|
|
3121
2966
|
default: "revocation"
|
|
3122
2967
|
}),
|
|
3123
|
-
|
|
2968
|
+
_ts_metadata26("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
|
|
3124
2969
|
], StatusList2021Entity.prototype, "statusPurpose", void 0);
|
|
3125
|
-
|
|
3126
|
-
OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
|
|
3127
|
-
_ts_metadata27("design:type", Array)
|
|
3128
|
-
], StatusList2021Entity.prototype, "statusListEntries", void 0);
|
|
3129
|
-
StatusList2021Entity = _ts_decorate28([
|
|
2970
|
+
StatusList2021Entity = _ts_decorate27([
|
|
3130
2971
|
ChildEntity5(StatusListType.StatusList2021)
|
|
3131
2972
|
], StatusList2021Entity);
|
|
3132
2973
|
var OAuthStatusListEntity = class extends StatusListEntity {
|
|
@@ -3136,114 +2977,41 @@ var OAuthStatusListEntity = class extends StatusListEntity {
|
|
|
3136
2977
|
bitsPerStatus;
|
|
3137
2978
|
expiresAt;
|
|
3138
2979
|
};
|
|
3139
|
-
|
|
3140
|
-
|
|
2980
|
+
_ts_decorate27([
|
|
2981
|
+
Column24({
|
|
3141
2982
|
type: "integer",
|
|
3142
2983
|
name: "bitsPerStatus",
|
|
3143
2984
|
nullable: false
|
|
3144
2985
|
}),
|
|
3145
|
-
|
|
2986
|
+
_ts_metadata26("design:type", Number)
|
|
3146
2987
|
], OAuthStatusListEntity.prototype, "bitsPerStatus", void 0);
|
|
3147
|
-
|
|
3148
|
-
|
|
2988
|
+
_ts_decorate27([
|
|
2989
|
+
Column24({
|
|
3149
2990
|
name: "expiresAt",
|
|
3150
2991
|
nullable: true,
|
|
3151
2992
|
type: typeOrmDateTime13()
|
|
3152
2993
|
}),
|
|
3153
|
-
|
|
2994
|
+
_ts_metadata26("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3154
2995
|
], OAuthStatusListEntity.prototype, "expiresAt", void 0);
|
|
3155
|
-
OAuthStatusListEntity =
|
|
2996
|
+
OAuthStatusListEntity = _ts_decorate27([
|
|
3156
2997
|
ChildEntity5(StatusListType.OAuthStatusList)
|
|
3157
2998
|
], OAuthStatusListEntity);
|
|
3158
|
-
var BitstringStatusListEntity = class extends StatusListEntity {
|
|
3159
|
-
static {
|
|
3160
|
-
__name(this, "BitstringStatusListEntity");
|
|
3161
|
-
}
|
|
3162
|
-
statusPurpose;
|
|
3163
|
-
statusSize;
|
|
3164
|
-
validFrom;
|
|
3165
|
-
validUntil;
|
|
3166
|
-
ttl;
|
|
3167
|
-
statusListEntries;
|
|
3168
|
-
};
|
|
3169
|
-
_ts_decorate28([
|
|
3170
|
-
Column25({
|
|
3171
|
-
type: "varchar",
|
|
3172
|
-
name: "statusPurpose",
|
|
3173
|
-
nullable: false,
|
|
3174
|
-
transformer: {
|
|
3175
|
-
from(value) {
|
|
3176
|
-
if (value?.includes(",")) {
|
|
3177
|
-
return value.split(",").map((v) => v.trim());
|
|
3178
|
-
}
|
|
3179
|
-
return value;
|
|
3180
|
-
},
|
|
3181
|
-
to(value) {
|
|
3182
|
-
if (Array.isArray(value)) {
|
|
3183
|
-
return value.join(",");
|
|
3184
|
-
}
|
|
3185
|
-
return value;
|
|
3186
|
-
}
|
|
3187
|
-
}
|
|
3188
|
-
}),
|
|
3189
|
-
_ts_metadata27("design:type", Object)
|
|
3190
|
-
], BitstringStatusListEntity.prototype, "statusPurpose", void 0);
|
|
3191
|
-
_ts_decorate28([
|
|
3192
|
-
Column25({
|
|
3193
|
-
type: "integer",
|
|
3194
|
-
name: "statusSize",
|
|
3195
|
-
nullable: true,
|
|
3196
|
-
default: 1
|
|
3197
|
-
}),
|
|
3198
|
-
_ts_metadata27("design:type", Number)
|
|
3199
|
-
], BitstringStatusListEntity.prototype, "statusSize", void 0);
|
|
3200
|
-
_ts_decorate28([
|
|
3201
|
-
Column25({
|
|
3202
|
-
name: "validFrom",
|
|
3203
|
-
nullable: true,
|
|
3204
|
-
type: typeOrmDateTime13()
|
|
3205
|
-
}),
|
|
3206
|
-
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3207
|
-
], BitstringStatusListEntity.prototype, "validFrom", void 0);
|
|
3208
|
-
_ts_decorate28([
|
|
3209
|
-
Column25({
|
|
3210
|
-
name: "validUntil",
|
|
3211
|
-
nullable: true,
|
|
3212
|
-
type: typeOrmDateTime13()
|
|
3213
|
-
}),
|
|
3214
|
-
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3215
|
-
], BitstringStatusListEntity.prototype, "validUntil", void 0);
|
|
3216
|
-
_ts_decorate28([
|
|
3217
|
-
Column25({
|
|
3218
|
-
type: "integer",
|
|
3219
|
-
name: "ttl",
|
|
3220
|
-
nullable: true
|
|
3221
|
-
}),
|
|
3222
|
-
_ts_metadata27("design:type", Number)
|
|
3223
|
-
], BitstringStatusListEntity.prototype, "ttl", void 0);
|
|
3224
|
-
_ts_decorate28([
|
|
3225
|
-
OneToMany8((type) => BitstringStatusListEntryEntity, (entry) => entry.statusList),
|
|
3226
|
-
_ts_metadata27("design:type", Array)
|
|
3227
|
-
], BitstringStatusListEntity.prototype, "statusListEntries", void 0);
|
|
3228
|
-
BitstringStatusListEntity = _ts_decorate28([
|
|
3229
|
-
ChildEntity5(StatusListType.BitstringStatusList)
|
|
3230
|
-
], BitstringStatusListEntity);
|
|
3231
2999
|
|
|
3232
3000
|
// src/entities/machineState/MachineStateInfoEntity.ts
|
|
3233
|
-
import { BaseEntity as
|
|
3001
|
+
import { BaseEntity as BaseEntity21, Column as Column25, CreateDateColumn as CreateDateColumn11, Entity as Entity23, PrimaryColumn as PrimaryColumn3, UpdateDateColumn as UpdateDateColumn11 } from "typeorm";
|
|
3234
3002
|
import { typeOrmDateTime as typeOrmDateTime14 } from "@sphereon/ssi-sdk.agent-config";
|
|
3235
|
-
function
|
|
3003
|
+
function _ts_decorate28(decorators, target, key, desc) {
|
|
3236
3004
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3237
3005
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3238
3006
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3239
3007
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3240
3008
|
}
|
|
3241
|
-
__name(
|
|
3242
|
-
function
|
|
3009
|
+
__name(_ts_decorate28, "_ts_decorate");
|
|
3010
|
+
function _ts_metadata27(k, v) {
|
|
3243
3011
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3244
3012
|
}
|
|
3245
|
-
__name(
|
|
3246
|
-
var MachineStateInfoEntity = class extends
|
|
3013
|
+
__name(_ts_metadata27, "_ts_metadata");
|
|
3014
|
+
var MachineStateInfoEntity = class extends BaseEntity21 {
|
|
3247
3015
|
static {
|
|
3248
3016
|
__name(this, "MachineStateInfoEntity");
|
|
3249
3017
|
}
|
|
@@ -3261,120 +3029,120 @@ var MachineStateInfoEntity = class extends BaseEntity22 {
|
|
|
3261
3029
|
completedAt;
|
|
3262
3030
|
tenantId;
|
|
3263
3031
|
};
|
|
3264
|
-
|
|
3265
|
-
|
|
3032
|
+
_ts_decorate28([
|
|
3033
|
+
PrimaryColumn3({
|
|
3266
3034
|
name: "instance_id",
|
|
3267
3035
|
type: "varchar",
|
|
3268
3036
|
nullable: false
|
|
3269
3037
|
}),
|
|
3270
|
-
|
|
3038
|
+
_ts_metadata27("design:type", String)
|
|
3271
3039
|
], MachineStateInfoEntity.prototype, "instanceId", void 0);
|
|
3272
|
-
|
|
3273
|
-
|
|
3040
|
+
_ts_decorate28([
|
|
3041
|
+
Column25({
|
|
3274
3042
|
name: "session_id",
|
|
3275
3043
|
type: "varchar",
|
|
3276
3044
|
nullable: true
|
|
3277
3045
|
}),
|
|
3278
|
-
|
|
3046
|
+
_ts_metadata27("design:type", String)
|
|
3279
3047
|
], MachineStateInfoEntity.prototype, "sessionId", void 0);
|
|
3280
|
-
|
|
3281
|
-
|
|
3048
|
+
_ts_decorate28([
|
|
3049
|
+
Column25({
|
|
3282
3050
|
name: "machine_name",
|
|
3283
3051
|
type: "varchar",
|
|
3284
3052
|
nullable: false
|
|
3285
3053
|
}),
|
|
3286
|
-
|
|
3054
|
+
_ts_metadata27("design:type", String)
|
|
3287
3055
|
], MachineStateInfoEntity.prototype, "machineName", void 0);
|
|
3288
|
-
|
|
3289
|
-
|
|
3056
|
+
_ts_decorate28([
|
|
3057
|
+
Column25({
|
|
3290
3058
|
name: "latest_state_name",
|
|
3291
3059
|
type: "varchar",
|
|
3292
3060
|
nullable: true
|
|
3293
3061
|
}),
|
|
3294
|
-
|
|
3062
|
+
_ts_metadata27("design:type", String)
|
|
3295
3063
|
], MachineStateInfoEntity.prototype, "latestStateName", void 0);
|
|
3296
|
-
|
|
3297
|
-
|
|
3064
|
+
_ts_decorate28([
|
|
3065
|
+
Column25({
|
|
3298
3066
|
name: "latest_event_type",
|
|
3299
3067
|
type: "varchar",
|
|
3300
3068
|
nullable: false
|
|
3301
3069
|
}),
|
|
3302
|
-
|
|
3070
|
+
_ts_metadata27("design:type", String)
|
|
3303
3071
|
], MachineStateInfoEntity.prototype, "latestEventType", void 0);
|
|
3304
|
-
|
|
3305
|
-
|
|
3072
|
+
_ts_decorate28([
|
|
3073
|
+
Column25({
|
|
3306
3074
|
name: "state",
|
|
3307
3075
|
type: "text",
|
|
3308
3076
|
nullable: false
|
|
3309
3077
|
}),
|
|
3310
|
-
|
|
3078
|
+
_ts_metadata27("design:type", String)
|
|
3311
3079
|
], MachineStateInfoEntity.prototype, "state", void 0);
|
|
3312
|
-
|
|
3080
|
+
_ts_decorate28([
|
|
3313
3081
|
CreateDateColumn11({
|
|
3314
3082
|
name: "created_at",
|
|
3315
3083
|
nullable: false,
|
|
3316
3084
|
type: typeOrmDateTime14()
|
|
3317
3085
|
}),
|
|
3318
|
-
|
|
3086
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3319
3087
|
], MachineStateInfoEntity.prototype, "createdAt", void 0);
|
|
3320
|
-
|
|
3088
|
+
_ts_decorate28([
|
|
3321
3089
|
UpdateDateColumn11({
|
|
3322
3090
|
name: "updated_at",
|
|
3323
3091
|
nullable: false,
|
|
3324
3092
|
type: typeOrmDateTime14()
|
|
3325
3093
|
}),
|
|
3326
|
-
|
|
3094
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3327
3095
|
], MachineStateInfoEntity.prototype, "updatedAt", void 0);
|
|
3328
|
-
|
|
3329
|
-
|
|
3096
|
+
_ts_decorate28([
|
|
3097
|
+
Column25({
|
|
3330
3098
|
name: "updated_count",
|
|
3331
3099
|
type: "integer",
|
|
3332
3100
|
nullable: false
|
|
3333
3101
|
}),
|
|
3334
|
-
|
|
3102
|
+
_ts_metadata27("design:type", Number)
|
|
3335
3103
|
], MachineStateInfoEntity.prototype, "updatedCount", void 0);
|
|
3336
|
-
|
|
3337
|
-
|
|
3104
|
+
_ts_decorate28([
|
|
3105
|
+
Column25({
|
|
3338
3106
|
name: "expires_at",
|
|
3339
3107
|
nullable: true,
|
|
3340
3108
|
type: typeOrmDateTime14()
|
|
3341
3109
|
}),
|
|
3342
|
-
|
|
3110
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3343
3111
|
], MachineStateInfoEntity.prototype, "expiresAt", void 0);
|
|
3344
|
-
|
|
3345
|
-
|
|
3112
|
+
_ts_decorate28([
|
|
3113
|
+
Column25({
|
|
3346
3114
|
name: "completed_at",
|
|
3347
3115
|
nullable: true,
|
|
3348
3116
|
type: typeOrmDateTime14()
|
|
3349
3117
|
}),
|
|
3350
|
-
|
|
3118
|
+
_ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3351
3119
|
], MachineStateInfoEntity.prototype, "completedAt", void 0);
|
|
3352
|
-
|
|
3353
|
-
|
|
3120
|
+
_ts_decorate28([
|
|
3121
|
+
Column25({
|
|
3354
3122
|
name: "tenant_id",
|
|
3355
3123
|
type: "varchar",
|
|
3356
3124
|
nullable: true
|
|
3357
3125
|
}),
|
|
3358
|
-
|
|
3126
|
+
_ts_metadata27("design:type", String)
|
|
3359
3127
|
], MachineStateInfoEntity.prototype, "tenantId", void 0);
|
|
3360
|
-
MachineStateInfoEntity =
|
|
3361
|
-
|
|
3128
|
+
MachineStateInfoEntity = _ts_decorate28([
|
|
3129
|
+
Entity23("MachineStateInfoEntity")
|
|
3362
3130
|
], MachineStateInfoEntity);
|
|
3363
3131
|
|
|
3364
3132
|
// src/entities/contact/OrganizationEntity.ts
|
|
3365
3133
|
import { IsNotEmpty as IsNotEmpty10, validate as validate16 } from "class-validator";
|
|
3366
|
-
import { BeforeInsert as BeforeInsert18, BeforeUpdate as BeforeUpdate18, ChildEntity as ChildEntity6, Column as
|
|
3367
|
-
function
|
|
3134
|
+
import { BeforeInsert as BeforeInsert18, BeforeUpdate as BeforeUpdate18, ChildEntity as ChildEntity6, Column as Column26 } from "typeorm";
|
|
3135
|
+
function _ts_decorate29(decorators, target, key, desc) {
|
|
3368
3136
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3369
3137
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3370
3138
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3371
3139
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3372
3140
|
}
|
|
3373
|
-
__name(
|
|
3374
|
-
function
|
|
3141
|
+
__name(_ts_decorate29, "_ts_decorate");
|
|
3142
|
+
function _ts_metadata28(k, v) {
|
|
3375
3143
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3376
3144
|
}
|
|
3377
|
-
__name(
|
|
3145
|
+
__name(_ts_metadata28, "_ts_metadata");
|
|
3378
3146
|
var OrganizationEntity = class extends BaseContactEntity {
|
|
3379
3147
|
static {
|
|
3380
3148
|
__name(this, "OrganizationEntity");
|
|
@@ -3394,8 +3162,8 @@ var OrganizationEntity = class extends BaseContactEntity {
|
|
|
3394
3162
|
}
|
|
3395
3163
|
}
|
|
3396
3164
|
};
|
|
3397
|
-
|
|
3398
|
-
|
|
3165
|
+
_ts_decorate29([
|
|
3166
|
+
Column26("varchar", {
|
|
3399
3167
|
name: "legal_name",
|
|
3400
3168
|
length: 255,
|
|
3401
3169
|
nullable: false,
|
|
@@ -3404,10 +3172,10 @@ _ts_decorate30([
|
|
|
3404
3172
|
IsNotEmpty10({
|
|
3405
3173
|
message: "Blank legal names are not allowed"
|
|
3406
3174
|
}),
|
|
3407
|
-
|
|
3175
|
+
_ts_metadata28("design:type", String)
|
|
3408
3176
|
], OrganizationEntity.prototype, "legalName", void 0);
|
|
3409
|
-
|
|
3410
|
-
|
|
3177
|
+
_ts_decorate29([
|
|
3178
|
+
Column26("varchar", {
|
|
3411
3179
|
name: "display_name",
|
|
3412
3180
|
length: 255,
|
|
3413
3181
|
nullable: false,
|
|
@@ -3416,47 +3184,47 @@ _ts_decorate30([
|
|
|
3416
3184
|
IsNotEmpty10({
|
|
3417
3185
|
message: "Blank display names are not allowed"
|
|
3418
3186
|
}),
|
|
3419
|
-
|
|
3187
|
+
_ts_metadata28("design:type", String)
|
|
3420
3188
|
], OrganizationEntity.prototype, "displayName", void 0);
|
|
3421
|
-
|
|
3422
|
-
|
|
3189
|
+
_ts_decorate29([
|
|
3190
|
+
Column26("text", {
|
|
3423
3191
|
name: "owner_id",
|
|
3424
3192
|
nullable: true
|
|
3425
3193
|
}),
|
|
3426
|
-
|
|
3194
|
+
_ts_metadata28("design:type", String)
|
|
3427
3195
|
], OrganizationEntity.prototype, "ownerId", void 0);
|
|
3428
|
-
|
|
3429
|
-
|
|
3196
|
+
_ts_decorate29([
|
|
3197
|
+
Column26("text", {
|
|
3430
3198
|
name: "tenant_id",
|
|
3431
3199
|
nullable: true
|
|
3432
3200
|
}),
|
|
3433
|
-
|
|
3201
|
+
_ts_metadata28("design:type", String)
|
|
3434
3202
|
], OrganizationEntity.prototype, "tenantId", void 0);
|
|
3435
|
-
|
|
3203
|
+
_ts_decorate29([
|
|
3436
3204
|
BeforeInsert18(),
|
|
3437
3205
|
BeforeUpdate18(),
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3206
|
+
_ts_metadata28("design:type", Function),
|
|
3207
|
+
_ts_metadata28("design:paramtypes", []),
|
|
3208
|
+
_ts_metadata28("design:returntype", Promise)
|
|
3441
3209
|
], OrganizationEntity.prototype, "validate", null);
|
|
3442
|
-
OrganizationEntity =
|
|
3210
|
+
OrganizationEntity = _ts_decorate29([
|
|
3443
3211
|
ChildEntity6("Organization")
|
|
3444
3212
|
], OrganizationEntity);
|
|
3445
3213
|
|
|
3446
3214
|
// src/entities/contact/NaturalPersonEntity.ts
|
|
3447
|
-
import { Column as
|
|
3448
|
-
import { validate as validate17, IsNotEmpty as IsNotEmpty11, Validate as
|
|
3449
|
-
function
|
|
3215
|
+
import { Column as Column27, ChildEntity as ChildEntity7, BeforeInsert as BeforeInsert19, BeforeUpdate as BeforeUpdate19 } from "typeorm";
|
|
3216
|
+
import { validate as validate17, IsNotEmpty as IsNotEmpty11, Validate as Validate10 } from "class-validator";
|
|
3217
|
+
function _ts_decorate30(decorators, target, key, desc) {
|
|
3450
3218
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3451
3219
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3452
3220
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3453
3221
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3454
3222
|
}
|
|
3455
|
-
__name(
|
|
3456
|
-
function
|
|
3223
|
+
__name(_ts_decorate30, "_ts_decorate");
|
|
3224
|
+
function _ts_metadata29(k, v) {
|
|
3457
3225
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3458
3226
|
}
|
|
3459
|
-
__name(
|
|
3227
|
+
__name(_ts_metadata29, "_ts_metadata");
|
|
3460
3228
|
var NaturalPersonEntity = class extends BaseContactEntity {
|
|
3461
3229
|
static {
|
|
3462
3230
|
__name(this, "NaturalPersonEntity");
|
|
@@ -3478,8 +3246,8 @@ var NaturalPersonEntity = class extends BaseContactEntity {
|
|
|
3478
3246
|
}
|
|
3479
3247
|
}
|
|
3480
3248
|
};
|
|
3481
|
-
|
|
3482
|
-
|
|
3249
|
+
_ts_decorate30([
|
|
3250
|
+
Column27("varchar", {
|
|
3483
3251
|
name: "first_name",
|
|
3484
3252
|
length: 255,
|
|
3485
3253
|
nullable: false,
|
|
@@ -3488,22 +3256,22 @@ _ts_decorate31([
|
|
|
3488
3256
|
IsNotEmpty11({
|
|
3489
3257
|
message: "Blank first names are not allowed"
|
|
3490
3258
|
}),
|
|
3491
|
-
|
|
3259
|
+
_ts_metadata29("design:type", String)
|
|
3492
3260
|
], NaturalPersonEntity.prototype, "firstName", void 0);
|
|
3493
|
-
|
|
3494
|
-
|
|
3261
|
+
_ts_decorate30([
|
|
3262
|
+
Column27("varchar", {
|
|
3495
3263
|
name: "middle_name",
|
|
3496
3264
|
length: 255,
|
|
3497
3265
|
nullable: true,
|
|
3498
3266
|
unique: false
|
|
3499
3267
|
}),
|
|
3500
|
-
|
|
3268
|
+
Validate10(IsNonEmptyStringConstraint, {
|
|
3501
3269
|
message: "Blank middle names are not allowed"
|
|
3502
3270
|
}),
|
|
3503
|
-
|
|
3271
|
+
_ts_metadata29("design:type", String)
|
|
3504
3272
|
], NaturalPersonEntity.prototype, "middleName", void 0);
|
|
3505
|
-
|
|
3506
|
-
|
|
3273
|
+
_ts_decorate30([
|
|
3274
|
+
Column27("varchar", {
|
|
3507
3275
|
name: "last_name",
|
|
3508
3276
|
length: 255,
|
|
3509
3277
|
nullable: false,
|
|
@@ -3512,10 +3280,10 @@ _ts_decorate31([
|
|
|
3512
3280
|
IsNotEmpty11({
|
|
3513
3281
|
message: "Blank last names are not allowed"
|
|
3514
3282
|
}),
|
|
3515
|
-
|
|
3283
|
+
_ts_metadata29("design:type", String)
|
|
3516
3284
|
], NaturalPersonEntity.prototype, "lastName", void 0);
|
|
3517
|
-
|
|
3518
|
-
|
|
3285
|
+
_ts_decorate30([
|
|
3286
|
+
Column27("varchar", {
|
|
3519
3287
|
name: "display_name",
|
|
3520
3288
|
length: 255,
|
|
3521
3289
|
nullable: false,
|
|
@@ -3524,30 +3292,30 @@ _ts_decorate31([
|
|
|
3524
3292
|
IsNotEmpty11({
|
|
3525
3293
|
message: "Blank display names are not allowed"
|
|
3526
3294
|
}),
|
|
3527
|
-
|
|
3295
|
+
_ts_metadata29("design:type", String)
|
|
3528
3296
|
], NaturalPersonEntity.prototype, "displayName", void 0);
|
|
3529
|
-
|
|
3530
|
-
|
|
3297
|
+
_ts_decorate30([
|
|
3298
|
+
Column27("text", {
|
|
3531
3299
|
name: "owner_id",
|
|
3532
3300
|
nullable: true
|
|
3533
3301
|
}),
|
|
3534
|
-
|
|
3302
|
+
_ts_metadata29("design:type", String)
|
|
3535
3303
|
], NaturalPersonEntity.prototype, "ownerId", void 0);
|
|
3536
|
-
|
|
3537
|
-
|
|
3304
|
+
_ts_decorate30([
|
|
3305
|
+
Column27("text", {
|
|
3538
3306
|
name: "tenant_id",
|
|
3539
3307
|
nullable: true
|
|
3540
3308
|
}),
|
|
3541
|
-
|
|
3309
|
+
_ts_metadata29("design:type", String)
|
|
3542
3310
|
], NaturalPersonEntity.prototype, "tenantId", void 0);
|
|
3543
|
-
|
|
3311
|
+
_ts_decorate30([
|
|
3544
3312
|
BeforeInsert19(),
|
|
3545
3313
|
BeforeUpdate19(),
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3314
|
+
_ts_metadata29("design:type", Function),
|
|
3315
|
+
_ts_metadata29("design:paramtypes", []),
|
|
3316
|
+
_ts_metadata29("design:returntype", Promise)
|
|
3549
3317
|
], NaturalPersonEntity.prototype, "validate", null);
|
|
3550
|
-
NaturalPersonEntity =
|
|
3318
|
+
NaturalPersonEntity = _ts_decorate30([
|
|
3551
3319
|
ChildEntity7("NaturalPerson")
|
|
3552
3320
|
], NaturalPersonEntity);
|
|
3553
3321
|
|
|
@@ -3555,19 +3323,19 @@ NaturalPersonEntity = _ts_decorate31([
|
|
|
3555
3323
|
import { ActionType, InitiatorType, LoggingEventType, LogLevel, SubSystem, System, SystemCorrelationIdType } from "@sphereon/ssi-types";
|
|
3556
3324
|
import { CredentialType, PartyCorrelationType } from "@sphereon/ssi-sdk.core";
|
|
3557
3325
|
import { typeOrmDateTime as typeOrmDateTime15 } from "@sphereon/ssi-sdk.agent-config";
|
|
3558
|
-
import { BaseEntity as
|
|
3559
|
-
function
|
|
3326
|
+
import { BaseEntity as BaseEntity22, Column as Column28, CreateDateColumn as CreateDateColumn12, Entity as Entity24, PrimaryGeneratedColumn as PrimaryGeneratedColumn21, UpdateDateColumn as UpdateDateColumn12 } from "typeorm";
|
|
3327
|
+
function _ts_decorate31(decorators, target, key, desc) {
|
|
3560
3328
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3561
3329
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3562
3330
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3563
3331
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3564
3332
|
}
|
|
3565
|
-
__name(
|
|
3566
|
-
function
|
|
3333
|
+
__name(_ts_decorate31, "_ts_decorate");
|
|
3334
|
+
function _ts_metadata30(k, v) {
|
|
3567
3335
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3568
3336
|
}
|
|
3569
|
-
__name(
|
|
3570
|
-
var AuditEventEntity = class extends
|
|
3337
|
+
__name(_ts_metadata30, "_ts_metadata");
|
|
3338
|
+
var AuditEventEntity = class extends BaseEntity22 {
|
|
3571
3339
|
static {
|
|
3572
3340
|
__name(this, "AuditEventEntity");
|
|
3573
3341
|
}
|
|
@@ -3598,240 +3366,240 @@ var AuditEventEntity = class extends BaseEntity23 {
|
|
|
3598
3366
|
createdAt;
|
|
3599
3367
|
lastUpdatedAt;
|
|
3600
3368
|
};
|
|
3601
|
-
|
|
3369
|
+
_ts_decorate31([
|
|
3602
3370
|
PrimaryGeneratedColumn21("uuid"),
|
|
3603
|
-
|
|
3371
|
+
_ts_metadata30("design:type", String)
|
|
3604
3372
|
], AuditEventEntity.prototype, "id", void 0);
|
|
3605
|
-
|
|
3606
|
-
|
|
3373
|
+
_ts_decorate31([
|
|
3374
|
+
Column28({
|
|
3607
3375
|
name: "timestamp",
|
|
3608
3376
|
nullable: false,
|
|
3609
3377
|
unique: false,
|
|
3610
3378
|
type: typeOrmDateTime15()
|
|
3611
3379
|
}),
|
|
3612
|
-
|
|
3380
|
+
_ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3613
3381
|
], AuditEventEntity.prototype, "timestamp", void 0);
|
|
3614
|
-
|
|
3615
|
-
|
|
3382
|
+
_ts_decorate31([
|
|
3383
|
+
Column28("simple-enum", {
|
|
3616
3384
|
name: "eventType",
|
|
3617
3385
|
enum: LoggingEventType,
|
|
3618
3386
|
nullable: false,
|
|
3619
3387
|
unique: false
|
|
3620
3388
|
}),
|
|
3621
|
-
|
|
3389
|
+
_ts_metadata30("design:type", typeof LoggingEventType === "undefined" ? Object : LoggingEventType)
|
|
3622
3390
|
], AuditEventEntity.prototype, "type", void 0);
|
|
3623
|
-
|
|
3624
|
-
|
|
3391
|
+
_ts_decorate31([
|
|
3392
|
+
Column28("simple-enum", {
|
|
3625
3393
|
name: "level",
|
|
3626
3394
|
enum: LogLevel,
|
|
3627
3395
|
nullable: false,
|
|
3628
3396
|
unique: false
|
|
3629
3397
|
}),
|
|
3630
|
-
|
|
3398
|
+
_ts_metadata30("design:type", typeof LogLevel === "undefined" ? Object : LogLevel)
|
|
3631
3399
|
], AuditEventEntity.prototype, "level", void 0);
|
|
3632
|
-
|
|
3633
|
-
|
|
3400
|
+
_ts_decorate31([
|
|
3401
|
+
Column28("text", {
|
|
3634
3402
|
name: "correlationId",
|
|
3635
3403
|
nullable: false,
|
|
3636
3404
|
unique: false
|
|
3637
3405
|
}),
|
|
3638
|
-
|
|
3406
|
+
_ts_metadata30("design:type", String)
|
|
3639
3407
|
], AuditEventEntity.prototype, "correlationId", void 0);
|
|
3640
|
-
|
|
3641
|
-
|
|
3408
|
+
_ts_decorate31([
|
|
3409
|
+
Column28("simple-enum", {
|
|
3642
3410
|
name: "system",
|
|
3643
3411
|
enum: System,
|
|
3644
3412
|
nullable: false,
|
|
3645
3413
|
unique: false
|
|
3646
3414
|
}),
|
|
3647
|
-
|
|
3415
|
+
_ts_metadata30("design:type", typeof System === "undefined" ? Object : System)
|
|
3648
3416
|
], AuditEventEntity.prototype, "system", void 0);
|
|
3649
|
-
|
|
3650
|
-
|
|
3417
|
+
_ts_decorate31([
|
|
3418
|
+
Column28("simple-enum", {
|
|
3651
3419
|
name: "subSystemType",
|
|
3652
3420
|
enum: SubSystem,
|
|
3653
3421
|
nullable: false,
|
|
3654
3422
|
unique: false
|
|
3655
3423
|
}),
|
|
3656
|
-
|
|
3424
|
+
_ts_metadata30("design:type", typeof SubSystem === "undefined" ? Object : SubSystem)
|
|
3657
3425
|
], AuditEventEntity.prototype, "subSystemType", void 0);
|
|
3658
|
-
|
|
3659
|
-
|
|
3426
|
+
_ts_decorate31([
|
|
3427
|
+
Column28("simple-enum", {
|
|
3660
3428
|
name: "actionType",
|
|
3661
3429
|
enum: ActionType,
|
|
3662
3430
|
nullable: false,
|
|
3663
3431
|
unique: false
|
|
3664
3432
|
}),
|
|
3665
|
-
|
|
3433
|
+
_ts_metadata30("design:type", typeof ActionType === "undefined" ? Object : ActionType)
|
|
3666
3434
|
], AuditEventEntity.prototype, "actionType", void 0);
|
|
3667
|
-
|
|
3668
|
-
|
|
3435
|
+
_ts_decorate31([
|
|
3436
|
+
Column28({
|
|
3669
3437
|
name: "actionSubType",
|
|
3670
3438
|
type: "varchar",
|
|
3671
3439
|
nullable: false,
|
|
3672
3440
|
unique: false
|
|
3673
3441
|
}),
|
|
3674
|
-
|
|
3442
|
+
_ts_metadata30("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
|
|
3675
3443
|
], AuditEventEntity.prototype, "actionSubType", void 0);
|
|
3676
|
-
|
|
3677
|
-
|
|
3444
|
+
_ts_decorate31([
|
|
3445
|
+
Column28("simple-enum", {
|
|
3678
3446
|
name: "initiatorType",
|
|
3679
3447
|
enum: InitiatorType,
|
|
3680
3448
|
nullable: false,
|
|
3681
3449
|
unique: false
|
|
3682
3450
|
}),
|
|
3683
|
-
|
|
3451
|
+
_ts_metadata30("design:type", typeof InitiatorType === "undefined" ? Object : InitiatorType)
|
|
3684
3452
|
], AuditEventEntity.prototype, "initiatorType", void 0);
|
|
3685
|
-
|
|
3686
|
-
|
|
3453
|
+
_ts_decorate31([
|
|
3454
|
+
Column28("simple-enum", {
|
|
3687
3455
|
name: "systemCorrelationIdType",
|
|
3688
3456
|
enum: SystemCorrelationIdType,
|
|
3689
3457
|
nullable: true,
|
|
3690
3458
|
unique: false
|
|
3691
3459
|
}),
|
|
3692
|
-
|
|
3460
|
+
_ts_metadata30("design:type", typeof SystemCorrelationIdType === "undefined" ? Object : SystemCorrelationIdType)
|
|
3693
3461
|
], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
|
|
3694
|
-
|
|
3695
|
-
|
|
3462
|
+
_ts_decorate31([
|
|
3463
|
+
Column28("text", {
|
|
3696
3464
|
name: "systemCorrelationId",
|
|
3697
3465
|
nullable: true,
|
|
3698
3466
|
unique: false
|
|
3699
3467
|
}),
|
|
3700
|
-
|
|
3468
|
+
_ts_metadata30("design:type", String)
|
|
3701
3469
|
], AuditEventEntity.prototype, "systemCorrelationId", void 0);
|
|
3702
|
-
|
|
3703
|
-
|
|
3470
|
+
_ts_decorate31([
|
|
3471
|
+
Column28("text", {
|
|
3704
3472
|
name: "systemAlias",
|
|
3705
3473
|
nullable: true,
|
|
3706
3474
|
unique: false
|
|
3707
3475
|
}),
|
|
3708
|
-
|
|
3476
|
+
_ts_metadata30("design:type", String)
|
|
3709
3477
|
], AuditEventEntity.prototype, "systemAlias", void 0);
|
|
3710
|
-
|
|
3711
|
-
|
|
3478
|
+
_ts_decorate31([
|
|
3479
|
+
Column28("simple-enum", {
|
|
3712
3480
|
name: "partyCorrelationType",
|
|
3713
3481
|
enum: PartyCorrelationType,
|
|
3714
3482
|
nullable: true,
|
|
3715
3483
|
unique: false
|
|
3716
3484
|
}),
|
|
3717
|
-
|
|
3485
|
+
_ts_metadata30("design:type", typeof PartyCorrelationType === "undefined" ? Object : PartyCorrelationType)
|
|
3718
3486
|
], AuditEventEntity.prototype, "partyCorrelationType", void 0);
|
|
3719
|
-
|
|
3720
|
-
|
|
3487
|
+
_ts_decorate31([
|
|
3488
|
+
Column28("text", {
|
|
3721
3489
|
name: "partyCorrelationId",
|
|
3722
3490
|
nullable: true,
|
|
3723
3491
|
unique: false
|
|
3724
3492
|
}),
|
|
3725
|
-
|
|
3493
|
+
_ts_metadata30("design:type", String)
|
|
3726
3494
|
], AuditEventEntity.prototype, "partyCorrelationId", void 0);
|
|
3727
|
-
|
|
3728
|
-
|
|
3495
|
+
_ts_decorate31([
|
|
3496
|
+
Column28("text", {
|
|
3729
3497
|
name: "partyAlias",
|
|
3730
3498
|
nullable: true,
|
|
3731
3499
|
unique: false
|
|
3732
3500
|
}),
|
|
3733
|
-
|
|
3501
|
+
_ts_metadata30("design:type", String)
|
|
3734
3502
|
], AuditEventEntity.prototype, "partyAlias", void 0);
|
|
3735
|
-
|
|
3736
|
-
|
|
3503
|
+
_ts_decorate31([
|
|
3504
|
+
Column28("text", {
|
|
3737
3505
|
name: "description",
|
|
3738
3506
|
nullable: false,
|
|
3739
3507
|
unique: false
|
|
3740
3508
|
}),
|
|
3741
|
-
|
|
3509
|
+
_ts_metadata30("design:type", String)
|
|
3742
3510
|
], AuditEventEntity.prototype, "description", void 0);
|
|
3743
|
-
|
|
3744
|
-
|
|
3511
|
+
_ts_decorate31([
|
|
3512
|
+
Column28("simple-enum", {
|
|
3745
3513
|
name: "credentialType",
|
|
3746
3514
|
enum: CredentialType,
|
|
3747
3515
|
nullable: true,
|
|
3748
3516
|
unique: false
|
|
3749
3517
|
}),
|
|
3750
|
-
|
|
3518
|
+
_ts_metadata30("design:type", typeof CredentialType === "undefined" ? Object : CredentialType)
|
|
3751
3519
|
], AuditEventEntity.prototype, "credentialType", void 0);
|
|
3752
|
-
|
|
3753
|
-
|
|
3520
|
+
_ts_decorate31([
|
|
3521
|
+
Column28("text", {
|
|
3754
3522
|
name: "credentialHash",
|
|
3755
3523
|
nullable: true,
|
|
3756
3524
|
unique: false
|
|
3757
3525
|
}),
|
|
3758
|
-
|
|
3526
|
+
_ts_metadata30("design:type", String)
|
|
3759
3527
|
], AuditEventEntity.prototype, "credentialHash", void 0);
|
|
3760
|
-
|
|
3761
|
-
|
|
3528
|
+
_ts_decorate31([
|
|
3529
|
+
Column28("text", {
|
|
3762
3530
|
name: "parentCredentialHash",
|
|
3763
3531
|
nullable: true,
|
|
3764
3532
|
unique: false
|
|
3765
3533
|
}),
|
|
3766
|
-
|
|
3534
|
+
_ts_metadata30("design:type", String)
|
|
3767
3535
|
], AuditEventEntity.prototype, "parentCredentialHash", void 0);
|
|
3768
|
-
|
|
3769
|
-
|
|
3536
|
+
_ts_decorate31([
|
|
3537
|
+
Column28("text", {
|
|
3770
3538
|
name: "originalCredential",
|
|
3771
3539
|
nullable: true,
|
|
3772
3540
|
unique: false
|
|
3773
3541
|
}),
|
|
3774
|
-
|
|
3542
|
+
_ts_metadata30("design:type", String)
|
|
3775
3543
|
], AuditEventEntity.prototype, "originalCredential", void 0);
|
|
3776
|
-
|
|
3777
|
-
|
|
3544
|
+
_ts_decorate31([
|
|
3545
|
+
Column28("text", {
|
|
3778
3546
|
name: "sharePurpose",
|
|
3779
3547
|
nullable: true,
|
|
3780
3548
|
unique: false
|
|
3781
3549
|
}),
|
|
3782
|
-
|
|
3550
|
+
_ts_metadata30("design:type", String)
|
|
3783
3551
|
], AuditEventEntity.prototype, "sharePurpose", void 0);
|
|
3784
|
-
|
|
3785
|
-
|
|
3552
|
+
_ts_decorate31([
|
|
3553
|
+
Column28("text", {
|
|
3786
3554
|
name: "data",
|
|
3787
3555
|
nullable: true,
|
|
3788
3556
|
unique: false
|
|
3789
3557
|
}),
|
|
3790
|
-
|
|
3558
|
+
_ts_metadata30("design:type", String)
|
|
3791
3559
|
], AuditEventEntity.prototype, "data", void 0);
|
|
3792
|
-
|
|
3793
|
-
|
|
3560
|
+
_ts_decorate31([
|
|
3561
|
+
Column28("text", {
|
|
3794
3562
|
name: "diagnosticData",
|
|
3795
3563
|
nullable: true,
|
|
3796
3564
|
unique: false
|
|
3797
3565
|
}),
|
|
3798
|
-
|
|
3566
|
+
_ts_metadata30("design:type", String)
|
|
3799
3567
|
], AuditEventEntity.prototype, "diagnosticData", void 0);
|
|
3800
|
-
|
|
3568
|
+
_ts_decorate31([
|
|
3801
3569
|
CreateDateColumn12({
|
|
3802
3570
|
name: "created_at",
|
|
3803
3571
|
nullable: false,
|
|
3804
3572
|
type: typeOrmDateTime15()
|
|
3805
3573
|
}),
|
|
3806
|
-
|
|
3574
|
+
_ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3807
3575
|
], AuditEventEntity.prototype, "createdAt", void 0);
|
|
3808
|
-
|
|
3576
|
+
_ts_decorate31([
|
|
3809
3577
|
UpdateDateColumn12({
|
|
3810
3578
|
name: "last_updated_at",
|
|
3811
3579
|
nullable: false,
|
|
3812
3580
|
type: typeOrmDateTime15()
|
|
3813
3581
|
}),
|
|
3814
|
-
|
|
3582
|
+
_ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
|
|
3815
3583
|
], AuditEventEntity.prototype, "lastUpdatedAt", void 0);
|
|
3816
|
-
AuditEventEntity =
|
|
3817
|
-
|
|
3584
|
+
AuditEventEntity = _ts_decorate31([
|
|
3585
|
+
Entity24("AuditEvents")
|
|
3818
3586
|
], AuditEventEntity);
|
|
3819
3587
|
|
|
3820
3588
|
// src/entities/digitalCredential/DigitalCredentialEntity.ts
|
|
3821
3589
|
import { typeormDate, typeOrmDateTime as typeOrmDateTime16 } from "@sphereon/ssi-sdk.agent-config";
|
|
3822
|
-
import { BaseEntity as
|
|
3823
|
-
function
|
|
3590
|
+
import { BaseEntity as BaseEntity23, Column as Column29, CreateDateColumn as CreateDateColumn13, Entity as Entity25, PrimaryGeneratedColumn as PrimaryGeneratedColumn22, UpdateDateColumn as UpdateDateColumn13 } from "typeorm";
|
|
3591
|
+
function _ts_decorate32(decorators, target, key, desc) {
|
|
3824
3592
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3825
3593
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3826
3594
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3827
3595
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3828
3596
|
}
|
|
3829
|
-
__name(
|
|
3830
|
-
function
|
|
3597
|
+
__name(_ts_decorate32, "_ts_decorate");
|
|
3598
|
+
function _ts_metadata31(k, v) {
|
|
3831
3599
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3832
3600
|
}
|
|
3833
|
-
__name(
|
|
3834
|
-
var DigitalCredentialEntity = class extends
|
|
3601
|
+
__name(_ts_metadata31, "_ts_metadata");
|
|
3602
|
+
var DigitalCredentialEntity = class extends BaseEntity23 {
|
|
3835
3603
|
static {
|
|
3836
3604
|
__name(this, "DigitalCredentialEntity");
|
|
3837
3605
|
}
|
|
@@ -3864,236 +3632,236 @@ var DigitalCredentialEntity = class extends BaseEntity24 {
|
|
|
3864
3632
|
verifiedAt;
|
|
3865
3633
|
revokedAt;
|
|
3866
3634
|
};
|
|
3867
|
-
|
|
3635
|
+
_ts_decorate32([
|
|
3868
3636
|
PrimaryGeneratedColumn22("uuid"),
|
|
3869
|
-
|
|
3637
|
+
_ts_metadata31("design:type", String)
|
|
3870
3638
|
], DigitalCredentialEntity.prototype, "id", void 0);
|
|
3871
|
-
|
|
3872
|
-
|
|
3639
|
+
_ts_decorate32([
|
|
3640
|
+
Column29("text", {
|
|
3873
3641
|
name: "parent_id",
|
|
3874
3642
|
nullable: true
|
|
3875
3643
|
}),
|
|
3876
|
-
|
|
3644
|
+
_ts_metadata31("design:type", String)
|
|
3877
3645
|
], DigitalCredentialEntity.prototype, "parentId", void 0);
|
|
3878
|
-
|
|
3879
|
-
|
|
3646
|
+
_ts_decorate32([
|
|
3647
|
+
Column29("simple-enum", {
|
|
3880
3648
|
name: "document_type",
|
|
3881
3649
|
enum: DocumentType,
|
|
3882
3650
|
nullable: false
|
|
3883
3651
|
}),
|
|
3884
|
-
|
|
3652
|
+
_ts_metadata31("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
|
|
3885
3653
|
], DigitalCredentialEntity.prototype, "documentType", void 0);
|
|
3886
|
-
|
|
3887
|
-
|
|
3654
|
+
_ts_decorate32([
|
|
3655
|
+
Column29("simple-enum", {
|
|
3888
3656
|
name: "regulation_type",
|
|
3889
3657
|
enum: RegulationType,
|
|
3890
3658
|
nullable: false
|
|
3891
3659
|
}),
|
|
3892
|
-
|
|
3660
|
+
_ts_metadata31("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
|
|
3893
3661
|
], DigitalCredentialEntity.prototype, "regulationType", void 0);
|
|
3894
|
-
|
|
3895
|
-
|
|
3662
|
+
_ts_decorate32([
|
|
3663
|
+
Column29("simple-enum", {
|
|
3896
3664
|
name: "document_format",
|
|
3897
3665
|
enum: CredentialDocumentFormat,
|
|
3898
3666
|
nullable: false
|
|
3899
3667
|
}),
|
|
3900
|
-
|
|
3668
|
+
_ts_metadata31("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
|
|
3901
3669
|
], DigitalCredentialEntity.prototype, "documentFormat", void 0);
|
|
3902
|
-
|
|
3903
|
-
|
|
3670
|
+
_ts_decorate32([
|
|
3671
|
+
Column29("simple-enum", {
|
|
3904
3672
|
name: "credential_role",
|
|
3905
3673
|
enum: CredentialRole,
|
|
3906
3674
|
nullable: false
|
|
3907
3675
|
}),
|
|
3908
|
-
|
|
3676
|
+
_ts_metadata31("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
|
|
3909
3677
|
], DigitalCredentialEntity.prototype, "credentialRole", void 0);
|
|
3910
|
-
|
|
3911
|
-
|
|
3678
|
+
_ts_decorate32([
|
|
3679
|
+
Column29("text", {
|
|
3912
3680
|
name: "raw_document",
|
|
3913
3681
|
nullable: false
|
|
3914
3682
|
}),
|
|
3915
|
-
|
|
3683
|
+
_ts_metadata31("design:type", String)
|
|
3916
3684
|
], DigitalCredentialEntity.prototype, "rawDocument", void 0);
|
|
3917
|
-
|
|
3918
|
-
|
|
3685
|
+
_ts_decorate32([
|
|
3686
|
+
Column29("text", {
|
|
3919
3687
|
name: "uniform_document",
|
|
3920
3688
|
nullable: false
|
|
3921
3689
|
}),
|
|
3922
|
-
|
|
3690
|
+
_ts_metadata31("design:type", String)
|
|
3923
3691
|
], DigitalCredentialEntity.prototype, "uniformDocument", void 0);
|
|
3924
|
-
|
|
3925
|
-
|
|
3692
|
+
_ts_decorate32([
|
|
3693
|
+
Column29("text", {
|
|
3926
3694
|
name: "credential_id",
|
|
3927
3695
|
nullable: true,
|
|
3928
3696
|
unique: false
|
|
3929
3697
|
}),
|
|
3930
|
-
|
|
3698
|
+
_ts_metadata31("design:type", String)
|
|
3931
3699
|
], DigitalCredentialEntity.prototype, "credentialId", void 0);
|
|
3932
|
-
|
|
3933
|
-
|
|
3700
|
+
_ts_decorate32([
|
|
3701
|
+
Column29("text", {
|
|
3934
3702
|
name: "hash",
|
|
3935
3703
|
nullable: false,
|
|
3936
3704
|
unique: true
|
|
3937
3705
|
}),
|
|
3938
|
-
|
|
3706
|
+
_ts_metadata31("design:type", String)
|
|
3939
3707
|
], DigitalCredentialEntity.prototype, "hash", void 0);
|
|
3940
|
-
|
|
3941
|
-
|
|
3708
|
+
_ts_decorate32([
|
|
3709
|
+
Column29("text", {
|
|
3942
3710
|
name: "kms_key_ref",
|
|
3943
3711
|
nullable: true
|
|
3944
3712
|
}),
|
|
3945
|
-
|
|
3713
|
+
_ts_metadata31("design:type", String)
|
|
3946
3714
|
], DigitalCredentialEntity.prototype, "kmsKeyRef", void 0);
|
|
3947
|
-
|
|
3948
|
-
|
|
3715
|
+
_ts_decorate32([
|
|
3716
|
+
Column29("text", {
|
|
3949
3717
|
name: "identifier_method",
|
|
3950
3718
|
nullable: true
|
|
3951
3719
|
}),
|
|
3952
|
-
|
|
3720
|
+
_ts_metadata31("design:type", String)
|
|
3953
3721
|
], DigitalCredentialEntity.prototype, "identifierMethod", void 0);
|
|
3954
|
-
|
|
3955
|
-
|
|
3722
|
+
_ts_decorate32([
|
|
3723
|
+
Column29("simple-enum", {
|
|
3956
3724
|
name: "issuer_correlation_type",
|
|
3957
3725
|
enum: CredentialCorrelationType,
|
|
3958
3726
|
nullable: false
|
|
3959
3727
|
}),
|
|
3960
|
-
|
|
3728
|
+
_ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
|
|
3961
3729
|
], DigitalCredentialEntity.prototype, "issuerCorrelationType", void 0);
|
|
3962
|
-
|
|
3963
|
-
|
|
3730
|
+
_ts_decorate32([
|
|
3731
|
+
Column29("simple-enum", {
|
|
3964
3732
|
name: "subject_correlation_type",
|
|
3965
3733
|
enum: CredentialCorrelationType,
|
|
3966
3734
|
nullable: true
|
|
3967
3735
|
}),
|
|
3968
|
-
|
|
3736
|
+
_ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
|
|
3969
3737
|
], DigitalCredentialEntity.prototype, "subjectCorrelationType", void 0);
|
|
3970
|
-
|
|
3971
|
-
|
|
3738
|
+
_ts_decorate32([
|
|
3739
|
+
Column29("simple-enum", {
|
|
3972
3740
|
name: "rp_correlation_type",
|
|
3973
3741
|
enum: CredentialCorrelationType,
|
|
3974
3742
|
nullable: true
|
|
3975
3743
|
}),
|
|
3976
|
-
|
|
3744
|
+
_ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
|
|
3977
3745
|
], DigitalCredentialEntity.prototype, "rpCorrelationType", void 0);
|
|
3978
|
-
|
|
3979
|
-
|
|
3746
|
+
_ts_decorate32([
|
|
3747
|
+
Column29("boolean", {
|
|
3980
3748
|
name: "issuer_signed",
|
|
3981
3749
|
nullable: true
|
|
3982
3750
|
}),
|
|
3983
|
-
|
|
3751
|
+
_ts_metadata31("design:type", Boolean)
|
|
3984
3752
|
], DigitalCredentialEntity.prototype, "isIssuerSigned", void 0);
|
|
3985
|
-
|
|
3986
|
-
|
|
3753
|
+
_ts_decorate32([
|
|
3754
|
+
Column29("text", {
|
|
3987
3755
|
name: "issuer_correlation_id",
|
|
3988
3756
|
nullable: false
|
|
3989
3757
|
}),
|
|
3990
|
-
|
|
3758
|
+
_ts_metadata31("design:type", String)
|
|
3991
3759
|
], DigitalCredentialEntity.prototype, "issuerCorrelationId", void 0);
|
|
3992
|
-
|
|
3993
|
-
|
|
3760
|
+
_ts_decorate32([
|
|
3761
|
+
Column29("text", {
|
|
3994
3762
|
name: "subject_correlation_id",
|
|
3995
3763
|
nullable: true
|
|
3996
3764
|
}),
|
|
3997
|
-
|
|
3765
|
+
_ts_metadata31("design:type", String)
|
|
3998
3766
|
], DigitalCredentialEntity.prototype, "subjectCorrelationId", void 0);
|
|
3999
|
-
|
|
4000
|
-
|
|
3767
|
+
_ts_decorate32([
|
|
3768
|
+
Column29("text", {
|
|
4001
3769
|
name: "rp_correlation_id",
|
|
4002
3770
|
nullable: true
|
|
4003
3771
|
}),
|
|
4004
|
-
|
|
3772
|
+
_ts_metadata31("design:type", String)
|
|
4005
3773
|
], DigitalCredentialEntity.prototype, "rpCorrelationId", void 0);
|
|
4006
|
-
|
|
4007
|
-
|
|
3774
|
+
_ts_decorate32([
|
|
3775
|
+
Column29("simple-enum", {
|
|
4008
3776
|
name: "verified_state",
|
|
4009
3777
|
enum: CredentialStateType,
|
|
4010
3778
|
nullable: true
|
|
4011
3779
|
}),
|
|
4012
|
-
|
|
3780
|
+
_ts_metadata31("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
|
|
4013
3781
|
], DigitalCredentialEntity.prototype, "verifiedState", void 0);
|
|
4014
|
-
|
|
4015
|
-
|
|
3782
|
+
_ts_decorate32([
|
|
3783
|
+
Column29("text", {
|
|
4016
3784
|
name: "tenant_id",
|
|
4017
3785
|
nullable: true
|
|
4018
3786
|
}),
|
|
4019
|
-
|
|
3787
|
+
_ts_metadata31("design:type", String)
|
|
4020
3788
|
], DigitalCredentialEntity.prototype, "tenantId", void 0);
|
|
4021
|
-
|
|
3789
|
+
_ts_decorate32([
|
|
4022
3790
|
CreateDateColumn13({
|
|
4023
3791
|
name: "created_at",
|
|
4024
3792
|
nullable: false,
|
|
4025
3793
|
type: typeOrmDateTime16()
|
|
4026
3794
|
}),
|
|
4027
|
-
|
|
3795
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4028
3796
|
], DigitalCredentialEntity.prototype, "createdAt", void 0);
|
|
4029
|
-
|
|
4030
|
-
|
|
3797
|
+
_ts_decorate32([
|
|
3798
|
+
Column29({
|
|
4031
3799
|
name: "presented_at",
|
|
4032
3800
|
nullable: true,
|
|
4033
3801
|
type: typeormDate()
|
|
4034
3802
|
}),
|
|
4035
|
-
|
|
3803
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4036
3804
|
], DigitalCredentialEntity.prototype, "presentedAt", void 0);
|
|
4037
|
-
|
|
3805
|
+
_ts_decorate32([
|
|
4038
3806
|
UpdateDateColumn13({
|
|
4039
3807
|
name: "last_updated_at",
|
|
4040
3808
|
nullable: false,
|
|
4041
3809
|
type: typeOrmDateTime16()
|
|
4042
3810
|
}),
|
|
4043
|
-
|
|
3811
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4044
3812
|
], DigitalCredentialEntity.prototype, "lastUpdatedAt", void 0);
|
|
4045
|
-
|
|
4046
|
-
|
|
3813
|
+
_ts_decorate32([
|
|
3814
|
+
Column29({
|
|
4047
3815
|
name: "valid_until",
|
|
4048
3816
|
nullable: true,
|
|
4049
3817
|
type: typeormDate()
|
|
4050
3818
|
}),
|
|
4051
|
-
|
|
3819
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4052
3820
|
], DigitalCredentialEntity.prototype, "validUntil", void 0);
|
|
4053
|
-
|
|
4054
|
-
|
|
3821
|
+
_ts_decorate32([
|
|
3822
|
+
Column29({
|
|
4055
3823
|
name: "valid_from",
|
|
4056
3824
|
nullable: true,
|
|
4057
3825
|
type: typeormDate()
|
|
4058
3826
|
}),
|
|
4059
|
-
|
|
3827
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4060
3828
|
], DigitalCredentialEntity.prototype, "validFrom", void 0);
|
|
4061
|
-
|
|
4062
|
-
|
|
3829
|
+
_ts_decorate32([
|
|
3830
|
+
Column29({
|
|
4063
3831
|
name: "verified_at",
|
|
4064
3832
|
nullable: true,
|
|
4065
3833
|
type: typeOrmDateTime16()
|
|
4066
3834
|
}),
|
|
4067
|
-
|
|
3835
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4068
3836
|
], DigitalCredentialEntity.prototype, "verifiedAt", void 0);
|
|
4069
|
-
|
|
4070
|
-
|
|
3837
|
+
_ts_decorate32([
|
|
3838
|
+
Column29({
|
|
4071
3839
|
name: "revoked_at",
|
|
4072
3840
|
nullable: true,
|
|
4073
3841
|
type: typeOrmDateTime16()
|
|
4074
3842
|
}),
|
|
4075
|
-
|
|
3843
|
+
_ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4076
3844
|
], DigitalCredentialEntity.prototype, "revokedAt", void 0);
|
|
4077
|
-
DigitalCredentialEntity =
|
|
4078
|
-
|
|
3845
|
+
DigitalCredentialEntity = _ts_decorate32([
|
|
3846
|
+
Entity25("DigitalCredential")
|
|
4079
3847
|
], DigitalCredentialEntity);
|
|
4080
3848
|
|
|
4081
3849
|
// src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts
|
|
4082
|
-
import { BaseEntity as
|
|
3850
|
+
import { BaseEntity as BaseEntity24, BeforeInsert as BeforeInsert20, BeforeUpdate as BeforeUpdate20, Column as Column30, CreateDateColumn as CreateDateColumn14, Entity as Entity26, Index as Index8, PrimaryGeneratedColumn as PrimaryGeneratedColumn23, UpdateDateColumn as UpdateDateColumn14 } from "typeorm";
|
|
4083
3851
|
import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
|
|
4084
3852
|
import { typeOrmDateTime as typeOrmDateTime17 } from "@sphereon/ssi-sdk.agent-config";
|
|
4085
|
-
function
|
|
3853
|
+
function _ts_decorate33(decorators, target, key, desc) {
|
|
4086
3854
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4087
3855
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4088
3856
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4089
3857
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4090
3858
|
}
|
|
4091
|
-
__name(
|
|
4092
|
-
function
|
|
3859
|
+
__name(_ts_decorate33, "_ts_decorate");
|
|
3860
|
+
function _ts_metadata32(k, v) {
|
|
4093
3861
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4094
3862
|
}
|
|
4095
|
-
__name(
|
|
4096
|
-
var PresentationDefinitionItemEntity = class extends
|
|
3863
|
+
__name(_ts_metadata32, "_ts_metadata");
|
|
3864
|
+
var PresentationDefinitionItemEntity = class extends BaseEntity24 {
|
|
4097
3865
|
static {
|
|
4098
3866
|
__name(this, "PresentationDefinitionItemEntity");
|
|
4099
3867
|
}
|
|
@@ -4112,12 +3880,12 @@ var PresentationDefinitionItemEntity = class extends BaseEntity25 {
|
|
|
4112
3880
|
this.lastUpdatedAt = /* @__PURE__ */ new Date();
|
|
4113
3881
|
}
|
|
4114
3882
|
};
|
|
4115
|
-
|
|
3883
|
+
_ts_decorate33([
|
|
4116
3884
|
PrimaryGeneratedColumn23("uuid"),
|
|
4117
|
-
|
|
3885
|
+
_ts_metadata32("design:type", String)
|
|
4118
3886
|
], PresentationDefinitionItemEntity.prototype, "id", void 0);
|
|
4119
|
-
|
|
4120
|
-
|
|
3887
|
+
_ts_decorate33([
|
|
3888
|
+
Column30({
|
|
4121
3889
|
name: "definition_id",
|
|
4122
3890
|
length: 255,
|
|
4123
3891
|
type: "varchar",
|
|
@@ -4127,10 +3895,10 @@ _ts_decorate34([
|
|
|
4127
3895
|
IsNotEmpty12({
|
|
4128
3896
|
message: "A blank definition id field is not allowed"
|
|
4129
3897
|
}),
|
|
4130
|
-
|
|
3898
|
+
_ts_metadata32("design:type", String)
|
|
4131
3899
|
], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
|
|
4132
|
-
|
|
4133
|
-
|
|
3900
|
+
_ts_decorate33([
|
|
3901
|
+
Column30({
|
|
4134
3902
|
name: "version",
|
|
4135
3903
|
length: 255,
|
|
4136
3904
|
type: "varchar",
|
|
@@ -4140,40 +3908,40 @@ _ts_decorate34([
|
|
|
4140
3908
|
IsNotEmpty12({
|
|
4141
3909
|
message: "A blank version field is not allowed"
|
|
4142
3910
|
}),
|
|
4143
|
-
|
|
3911
|
+
_ts_metadata32("design:type", String)
|
|
4144
3912
|
], PresentationDefinitionItemEntity.prototype, "version", void 0);
|
|
4145
|
-
|
|
4146
|
-
|
|
3913
|
+
_ts_decorate33([
|
|
3914
|
+
Column30({
|
|
4147
3915
|
name: "tenant_id",
|
|
4148
3916
|
length: 255,
|
|
4149
3917
|
type: "varchar",
|
|
4150
3918
|
nullable: true,
|
|
4151
3919
|
unique: false
|
|
4152
3920
|
}),
|
|
4153
|
-
|
|
3921
|
+
_ts_metadata32("design:type", String)
|
|
4154
3922
|
], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
|
|
4155
|
-
|
|
4156
|
-
|
|
3923
|
+
_ts_decorate33([
|
|
3924
|
+
Column30({
|
|
4157
3925
|
name: "purpose",
|
|
4158
3926
|
length: 255,
|
|
4159
3927
|
type: "varchar",
|
|
4160
3928
|
nullable: true,
|
|
4161
3929
|
unique: false
|
|
4162
3930
|
}),
|
|
4163
|
-
|
|
3931
|
+
_ts_metadata32("design:type", String)
|
|
4164
3932
|
], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
|
|
4165
|
-
|
|
4166
|
-
|
|
3933
|
+
_ts_decorate33([
|
|
3934
|
+
Column30({
|
|
4167
3935
|
name: "name",
|
|
4168
3936
|
length: 255,
|
|
4169
3937
|
type: "varchar",
|
|
4170
3938
|
nullable: true,
|
|
4171
3939
|
unique: false
|
|
4172
3940
|
}),
|
|
4173
|
-
|
|
3941
|
+
_ts_metadata32("design:type", String)
|
|
4174
3942
|
], PresentationDefinitionItemEntity.prototype, "name", void 0);
|
|
4175
|
-
|
|
4176
|
-
|
|
3943
|
+
_ts_decorate33([
|
|
3944
|
+
Column30({
|
|
4177
3945
|
name: "definition_payload",
|
|
4178
3946
|
type: "text",
|
|
4179
3947
|
nullable: false,
|
|
@@ -4182,10 +3950,10 @@ _ts_decorate34([
|
|
|
4182
3950
|
IsNotEmpty12({
|
|
4183
3951
|
message: "A blank PD definition payload field is not allowed"
|
|
4184
3952
|
}),
|
|
4185
|
-
|
|
3953
|
+
_ts_metadata32("design:type", String)
|
|
4186
3954
|
], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
|
|
4187
|
-
|
|
4188
|
-
|
|
3955
|
+
_ts_decorate33([
|
|
3956
|
+
Column30({
|
|
4189
3957
|
name: "dcql_payload",
|
|
4190
3958
|
type: "text",
|
|
4191
3959
|
nullable: true,
|
|
@@ -4194,33 +3962,33 @@ _ts_decorate34([
|
|
|
4194
3962
|
IsNotEmpty12({
|
|
4195
3963
|
message: "A blank dcql definition payload field is not allowed"
|
|
4196
3964
|
}),
|
|
4197
|
-
|
|
3965
|
+
_ts_metadata32("design:type", String)
|
|
4198
3966
|
], PresentationDefinitionItemEntity.prototype, "dcqlPayload", void 0);
|
|
4199
|
-
|
|
3967
|
+
_ts_decorate33([
|
|
4200
3968
|
CreateDateColumn14({
|
|
4201
3969
|
name: "created_at",
|
|
4202
3970
|
nullable: false,
|
|
4203
3971
|
type: typeOrmDateTime17()
|
|
4204
3972
|
}),
|
|
4205
|
-
|
|
3973
|
+
_ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4206
3974
|
], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
|
|
4207
|
-
|
|
3975
|
+
_ts_decorate33([
|
|
4208
3976
|
UpdateDateColumn14({
|
|
4209
3977
|
name: "last_updated_at",
|
|
4210
3978
|
nullable: false,
|
|
4211
3979
|
type: typeOrmDateTime17()
|
|
4212
3980
|
}),
|
|
4213
|
-
|
|
3981
|
+
_ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4214
3982
|
], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
|
|
4215
|
-
|
|
3983
|
+
_ts_decorate33([
|
|
4216
3984
|
BeforeInsert20(),
|
|
4217
3985
|
BeforeUpdate20(),
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
3986
|
+
_ts_metadata32("design:type", Function),
|
|
3987
|
+
_ts_metadata32("design:paramtypes", []),
|
|
3988
|
+
_ts_metadata32("design:returntype", void 0)
|
|
4221
3989
|
], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
|
|
4222
|
-
PresentationDefinitionItemEntity =
|
|
4223
|
-
|
|
3990
|
+
PresentationDefinitionItemEntity = _ts_decorate33([
|
|
3991
|
+
Entity26("PresentationDefinitionItem"),
|
|
4224
3992
|
Index8([
|
|
4225
3993
|
"version"
|
|
4226
3994
|
], {
|
|
@@ -4230,19 +3998,19 @@ PresentationDefinitionItemEntity = _ts_decorate34([
|
|
|
4230
3998
|
|
|
4231
3999
|
// src/entities/oid4vcState/Oid4vcStateEntity.ts
|
|
4232
4000
|
import { typeOrmDateTime as typeOrmDateTime18 } from "@sphereon/ssi-sdk.agent-config";
|
|
4233
|
-
import { BaseEntity as
|
|
4234
|
-
function
|
|
4001
|
+
import { BaseEntity as BaseEntity25, Column as Column31, CreateDateColumn as CreateDateColumn15, Entity as Entity27, PrimaryColumn as PrimaryColumn4, UpdateDateColumn as UpdateDateColumn15 } from "typeorm";
|
|
4002
|
+
function _ts_decorate34(decorators, target, key, desc) {
|
|
4235
4003
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4236
4004
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4237
4005
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4238
4006
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4239
4007
|
}
|
|
4240
|
-
__name(
|
|
4241
|
-
function
|
|
4008
|
+
__name(_ts_decorate34, "_ts_decorate");
|
|
4009
|
+
function _ts_metadata33(k, v) {
|
|
4242
4010
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
4243
4011
|
}
|
|
4244
|
-
__name(
|
|
4245
|
-
var Oid4vcStateEntity = class extends
|
|
4012
|
+
__name(_ts_metadata33, "_ts_metadata");
|
|
4013
|
+
var Oid4vcStateEntity = class extends BaseEntity25 {
|
|
4246
4014
|
static {
|
|
4247
4015
|
__name(this, "Oid4vcStateEntity");
|
|
4248
4016
|
}
|
|
@@ -4256,80 +4024,80 @@ var Oid4vcStateEntity = class extends BaseEntity26 {
|
|
|
4256
4024
|
expiresAt;
|
|
4257
4025
|
tenantId;
|
|
4258
4026
|
};
|
|
4259
|
-
|
|
4260
|
-
|
|
4027
|
+
_ts_decorate34([
|
|
4028
|
+
PrimaryColumn4({
|
|
4261
4029
|
name: "id",
|
|
4262
4030
|
type: "varchar",
|
|
4263
4031
|
nullable: false
|
|
4264
4032
|
}),
|
|
4265
|
-
|
|
4033
|
+
_ts_metadata33("design:type", String)
|
|
4266
4034
|
], Oid4vcStateEntity.prototype, "id", void 0);
|
|
4267
|
-
|
|
4268
|
-
|
|
4035
|
+
_ts_decorate34([
|
|
4036
|
+
Column31({
|
|
4269
4037
|
name: "lookup_ids",
|
|
4270
4038
|
type: "array",
|
|
4271
4039
|
nullable: true
|
|
4272
4040
|
}),
|
|
4273
|
-
|
|
4041
|
+
_ts_metadata33("design:type", typeof Array === "undefined" ? Object : Array)
|
|
4274
4042
|
], Oid4vcStateEntity.prototype, "lookups", void 0);
|
|
4275
|
-
|
|
4276
|
-
|
|
4043
|
+
_ts_decorate34([
|
|
4044
|
+
Column31({
|
|
4277
4045
|
name: "state_id",
|
|
4278
4046
|
type: "varchar",
|
|
4279
4047
|
nullable: true
|
|
4280
4048
|
}),
|
|
4281
|
-
|
|
4049
|
+
_ts_metadata33("design:type", String)
|
|
4282
4050
|
], Oid4vcStateEntity.prototype, "stateId", void 0);
|
|
4283
|
-
|
|
4284
|
-
|
|
4051
|
+
_ts_decorate34([
|
|
4052
|
+
Column31({
|
|
4285
4053
|
name: "correlation_id",
|
|
4286
4054
|
type: "varchar",
|
|
4287
4055
|
nullable: true
|
|
4288
4056
|
}),
|
|
4289
|
-
|
|
4057
|
+
_ts_metadata33("design:type", String)
|
|
4290
4058
|
], Oid4vcStateEntity.prototype, "correlationId", void 0);
|
|
4291
|
-
|
|
4292
|
-
|
|
4059
|
+
_ts_decorate34([
|
|
4060
|
+
Column31({
|
|
4293
4061
|
name: "state",
|
|
4294
4062
|
type: "json",
|
|
4295
4063
|
nullable: false
|
|
4296
4064
|
}),
|
|
4297
|
-
|
|
4065
|
+
_ts_metadata33("design:type", typeof StateType === "undefined" ? Object : StateType)
|
|
4298
4066
|
], Oid4vcStateEntity.prototype, "state", void 0);
|
|
4299
|
-
|
|
4067
|
+
_ts_decorate34([
|
|
4300
4068
|
CreateDateColumn15({
|
|
4301
4069
|
name: "created_at",
|
|
4302
4070
|
nullable: false,
|
|
4303
4071
|
type: typeOrmDateTime18()
|
|
4304
4072
|
}),
|
|
4305
|
-
|
|
4073
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4306
4074
|
], Oid4vcStateEntity.prototype, "createdAt", void 0);
|
|
4307
|
-
|
|
4075
|
+
_ts_decorate34([
|
|
4308
4076
|
UpdateDateColumn15({
|
|
4309
4077
|
name: "updated_at",
|
|
4310
4078
|
nullable: false,
|
|
4311
4079
|
type: typeOrmDateTime18()
|
|
4312
4080
|
}),
|
|
4313
|
-
|
|
4081
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4314
4082
|
], Oid4vcStateEntity.prototype, "updatedAt", void 0);
|
|
4315
|
-
|
|
4316
|
-
|
|
4083
|
+
_ts_decorate34([
|
|
4084
|
+
Column31({
|
|
4317
4085
|
name: "expires_at",
|
|
4318
4086
|
nullable: true,
|
|
4319
4087
|
type: typeOrmDateTime18()
|
|
4320
4088
|
}),
|
|
4321
|
-
|
|
4089
|
+
_ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
|
|
4322
4090
|
], Oid4vcStateEntity.prototype, "expiresAt", void 0);
|
|
4323
|
-
|
|
4324
|
-
|
|
4091
|
+
_ts_decorate34([
|
|
4092
|
+
Column31({
|
|
4325
4093
|
name: "tenant_id",
|
|
4326
4094
|
type: "varchar",
|
|
4327
4095
|
nullable: true
|
|
4328
4096
|
}),
|
|
4329
|
-
|
|
4097
|
+
_ts_metadata33("design:type", String)
|
|
4330
4098
|
], Oid4vcStateEntity.prototype, "tenantId", void 0);
|
|
4331
|
-
Oid4vcStateEntity =
|
|
4332
|
-
|
|
4099
|
+
Oid4vcStateEntity = _ts_decorate34([
|
|
4100
|
+
Entity27("Oid4vcStateEntity")
|
|
4333
4101
|
], Oid4vcStateEntity);
|
|
4334
4102
|
|
|
4335
4103
|
// src/contact/ContactStore.ts
|
|
@@ -6098,22 +5866,6 @@ var statusListEntityFrom = /* @__PURE__ */ __name((args) => {
|
|
|
6098
5866
|
});
|
|
6099
5867
|
return entity;
|
|
6100
5868
|
}
|
|
6101
|
-
if (args.type === StatusListType2.BitstringStatusList) {
|
|
6102
|
-
const entity = new BitstringStatusListEntity();
|
|
6103
|
-
const bitstringsl = args;
|
|
6104
|
-
entity.statusPurpose = bitstringsl.statusPurpose;
|
|
6105
|
-
entity.statusSize = bitstringsl.statusSize;
|
|
6106
|
-
entity.validFrom = bitstringsl.validFrom;
|
|
6107
|
-
entity.validUntil = bitstringsl.validUntil;
|
|
6108
|
-
entity.ttl = bitstringsl.ttl;
|
|
6109
|
-
setBaseFields(entity, args);
|
|
6110
|
-
Object.defineProperty(entity, "type", {
|
|
6111
|
-
value: StatusListType2.BitstringStatusList,
|
|
6112
|
-
enumerable: true,
|
|
6113
|
-
configurable: true
|
|
6114
|
-
});
|
|
6115
|
-
return entity;
|
|
6116
|
-
}
|
|
6117
5869
|
throw new Error(`Invalid status list type ${args.type}`);
|
|
6118
5870
|
}, "statusListEntityFrom");
|
|
6119
5871
|
var statusListFrom = /* @__PURE__ */ __name((entity) => {
|
|
@@ -6135,18 +5887,6 @@ var statusListFrom = /* @__PURE__ */ __name((entity) => {
|
|
|
6135
5887
|
};
|
|
6136
5888
|
return replaceNullWithUndefined(result);
|
|
6137
5889
|
}
|
|
6138
|
-
if (entity instanceof BitstringStatusListEntity) {
|
|
6139
|
-
const result = {
|
|
6140
|
-
...getBaseFields(entity),
|
|
6141
|
-
type: StatusListType2.BitstringStatusList,
|
|
6142
|
-
statusPurpose: entity.statusPurpose,
|
|
6143
|
-
statusSize: entity.statusSize,
|
|
6144
|
-
validFrom: entity.validFrom,
|
|
6145
|
-
validUntil: entity.validUntil,
|
|
6146
|
-
ttl: entity.ttl
|
|
6147
|
-
};
|
|
6148
|
-
return replaceNullWithUndefined(result);
|
|
6149
|
-
}
|
|
6150
5890
|
throw new Error(`Invalid status list type ${typeof entity}`);
|
|
6151
5891
|
}, "statusListFrom");
|
|
6152
5892
|
var setBaseFields = /* @__PURE__ */ __name((entity, args) => {
|
|
@@ -6435,8 +6175,6 @@ var StatusListStore = class {
|
|
|
6435
6175
|
return dataSource.getRepository(StatusList2021Entity);
|
|
6436
6176
|
case StatusListType3.OAuthStatusList:
|
|
6437
6177
|
return dataSource.getRepository(OAuthStatusListEntity);
|
|
6438
|
-
case StatusListType3.BitstringStatusList:
|
|
6439
|
-
return dataSource.getRepository(BitstringStatusListEntity);
|
|
6440
6178
|
default:
|
|
6441
6179
|
return dataSource.getRepository(StatusListEntity);
|
|
6442
6180
|
}
|
|
@@ -8910,199 +8648,6 @@ var FixCredentialClaimsReferencesUuid1741895822987 = class {
|
|
|
8910
8648
|
}
|
|
8911
8649
|
};
|
|
8912
8650
|
|
|
8913
|
-
// src/migrations/generic/12-CreateBitstringStatusList.ts
|
|
8914
|
-
import Debug19 from "debug";
|
|
8915
|
-
|
|
8916
|
-
// src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts
|
|
8917
|
-
var CreateBitstringStatusListPG1741895823000 = class {
|
|
8918
|
-
static {
|
|
8919
|
-
__name(this, "CreateBitstringStatusListPG1741895823000");
|
|
8920
|
-
}
|
|
8921
|
-
name = "CreateBitstringStatusList1741895823000";
|
|
8922
|
-
async up(queryRunner) {
|
|
8923
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "statusSize" integer DEFAULT 1`);
|
|
8924
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
|
|
8925
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
|
|
8926
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
|
|
8927
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT IF EXISTS "CHK_StatusList_type"`);
|
|
8928
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
|
|
8929
|
-
await queryRunner.query(`
|
|
8930
|
-
CREATE TABLE "BitstringStatusListEntry" (
|
|
8931
|
-
"statusListId" character varying NOT NULL,
|
|
8932
|
-
"statusListIndex" integer NOT NULL,
|
|
8933
|
-
"credentialId" text,
|
|
8934
|
-
"credentialHash" character varying(128),
|
|
8935
|
-
"correlationId" character varying(255),
|
|
8936
|
-
"statusPurpose" character varying NOT NULL,
|
|
8937
|
-
"statusSize" integer DEFAULT 1,
|
|
8938
|
-
"statusMessage" text,
|
|
8939
|
-
"statusReference" text,
|
|
8940
|
-
CONSTRAINT "PK_BitstringStatusListEntry" PRIMARY KEY ("statusListId", "statusListIndex")
|
|
8941
|
-
)
|
|
8942
|
-
`);
|
|
8943
|
-
await queryRunner.query(`
|
|
8944
|
-
ALTER TABLE "BitstringStatusListEntry"
|
|
8945
|
-
ADD CONSTRAINT "FK_BitstringStatusListEntry_statusListId"
|
|
8946
|
-
FOREIGN KEY ("statusListId") REFERENCES "StatusList"("id") ON DELETE NO ACTION ON UPDATE NO ACTION
|
|
8947
|
-
`);
|
|
8948
|
-
}
|
|
8949
|
-
async down(queryRunner) {
|
|
8950
|
-
await queryRunner.query(`ALTER TABLE "BitstringStatusListEntry" DROP CONSTRAINT "FK_BitstringStatusListEntry_statusListId"`);
|
|
8951
|
-
await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
|
|
8952
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT "CHK_StatusList_type"`);
|
|
8953
|
-
await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList'))`);
|
|
8954
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validUntil"`);
|
|
8955
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validFrom"`);
|
|
8956
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "ttl"`);
|
|
8957
|
-
await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "statusSize"`);
|
|
8958
|
-
}
|
|
8959
|
-
};
|
|
8960
|
-
|
|
8961
|
-
// src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts
|
|
8962
|
-
var CreateBitstringStatusListSqlite1741895823001 = class {
|
|
8963
|
-
static {
|
|
8964
|
-
__name(this, "CreateBitstringStatusListSqlite1741895823001");
|
|
8965
|
-
}
|
|
8966
|
-
name = "CreateBitstringStatusList1741895823000";
|
|
8967
|
-
async up(queryRunner) {
|
|
8968
|
-
await queryRunner.query(`
|
|
8969
|
-
CREATE TABLE "temporary_StatusList" (
|
|
8970
|
-
"id" varchar PRIMARY KEY NOT NULL,
|
|
8971
|
-
"correlationId" varchar NOT NULL,
|
|
8972
|
-
"length" integer NOT NULL,
|
|
8973
|
-
"issuer" text NOT NULL,
|
|
8974
|
-
"type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
|
|
8975
|
-
"driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
|
|
8976
|
-
"credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
|
|
8977
|
-
"proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
|
|
8978
|
-
"indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
|
|
8979
|
-
"statusPurpose" varchar,
|
|
8980
|
-
"statusListCredential" text,
|
|
8981
|
-
"bitsPerStatus" integer,
|
|
8982
|
-
"expiresAt" datetime,
|
|
8983
|
-
"statusSize" integer DEFAULT (1),
|
|
8984
|
-
"ttl" integer,
|
|
8985
|
-
"validFrom" datetime,
|
|
8986
|
-
"validUntil" datetime,
|
|
8987
|
-
CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
|
|
8988
|
-
)
|
|
8989
|
-
`);
|
|
8990
|
-
await queryRunner.query(`
|
|
8991
|
-
INSERT INTO "temporary_StatusList"(
|
|
8992
|
-
"id", "correlationId", "length", "issuer", "type", "driverType",
|
|
8993
|
-
"credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
|
|
8994
|
-
"statusListCredential", "bitsPerStatus", "expiresAt"
|
|
8995
|
-
)
|
|
8996
|
-
SELECT
|
|
8997
|
-
"id", "correlationId", "length", "issuer", "type", "driverType",
|
|
8998
|
-
"credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
|
|
8999
|
-
"statusListCredential", "bitsPerStatus", "expiresAt"
|
|
9000
|
-
FROM "StatusList"
|
|
9001
|
-
`);
|
|
9002
|
-
await queryRunner.query(`DROP TABLE "StatusList"`);
|
|
9003
|
-
await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
|
|
9004
|
-
await queryRunner.query(`
|
|
9005
|
-
CREATE TABLE "BitstringStatusListEntry" (
|
|
9006
|
-
"statusListId" varchar NOT NULL,
|
|
9007
|
-
"statusListIndex" integer NOT NULL,
|
|
9008
|
-
"credentialId" text,
|
|
9009
|
-
"credentialHash" varchar(128),
|
|
9010
|
-
"correlationId" varchar(255),
|
|
9011
|
-
"statusPurpose" varchar NOT NULL,
|
|
9012
|
-
"statusSize" integer DEFAULT (1),
|
|
9013
|
-
"statusMessage" text,
|
|
9014
|
-
"statusReference" text,
|
|
9015
|
-
PRIMARY KEY ("statusListId", "statusListIndex")
|
|
9016
|
-
)
|
|
9017
|
-
`);
|
|
9018
|
-
}
|
|
9019
|
-
async down(queryRunner) {
|
|
9020
|
-
await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
|
|
9021
|
-
await queryRunner.query(`
|
|
9022
|
-
CREATE TABLE "temporary_StatusList" (
|
|
9023
|
-
"id" varchar PRIMARY KEY NOT NULL,
|
|
9024
|
-
"correlationId" varchar NOT NULL,
|
|
9025
|
-
"length" integer NOT NULL,
|
|
9026
|
-
"issuer" text NOT NULL,
|
|
9027
|
-
"type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
|
|
9028
|
-
"driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
|
|
9029
|
-
"credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
|
|
9030
|
-
"proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
|
|
9031
|
-
"indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
|
|
9032
|
-
"statusPurpose" varchar,
|
|
9033
|
-
"statusListCredential" text,
|
|
9034
|
-
"bitsPerStatus" integer,
|
|
9035
|
-
"expiresAt" datetime,
|
|
9036
|
-
CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
|
|
9037
|
-
)
|
|
9038
|
-
`);
|
|
9039
|
-
await queryRunner.query(`
|
|
9040
|
-
INSERT INTO "temporary_StatusList"(
|
|
9041
|
-
"id", "correlationId", "length", "issuer", "type", "driverType",
|
|
9042
|
-
"credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
|
|
9043
|
-
"statusListCredential", "bitsPerStatus", "expiresAt"
|
|
9044
|
-
)
|
|
9045
|
-
SELECT
|
|
9046
|
-
"id", "correlationId", "length", "issuer",
|
|
9047
|
-
CASE WHEN "type" = 'BitstringStatusList' THEN 'StatusList2021' ELSE "type" END,
|
|
9048
|
-
"driverType", "credentialIdMode", "proofFormat", "indexingDirection",
|
|
9049
|
-
"statusPurpose", "statusListCredential", "bitsPerStatus", "expiresAt"
|
|
9050
|
-
FROM "StatusList"
|
|
9051
|
-
`);
|
|
9052
|
-
await queryRunner.query(`DROP TABLE "StatusList"`);
|
|
9053
|
-
await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
|
|
9054
|
-
}
|
|
9055
|
-
};
|
|
9056
|
-
|
|
9057
|
-
// src/migrations/generic/12-CreateBitstringStatusList.ts
|
|
9058
|
-
var debug19 = Debug19("sphereon:ssi-sdk:migrations");
|
|
9059
|
-
var CreateBitstringStatusList1741895823000 = class {
|
|
9060
|
-
static {
|
|
9061
|
-
__name(this, "CreateBitstringStatusList1741895823000");
|
|
9062
|
-
}
|
|
9063
|
-
name = "CreateBitstringStatusList1741895823000";
|
|
9064
|
-
async up(queryRunner) {
|
|
9065
|
-
debug19("migration: creating bitstring status list tables");
|
|
9066
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
9067
|
-
switch (dbType) {
|
|
9068
|
-
case "postgres": {
|
|
9069
|
-
const mig = new CreateBitstringStatusListPG1741895823000();
|
|
9070
|
-
await mig.up(queryRunner);
|
|
9071
|
-
return;
|
|
9072
|
-
}
|
|
9073
|
-
case "sqlite":
|
|
9074
|
-
case "expo":
|
|
9075
|
-
case "react-native": {
|
|
9076
|
-
const mig = new CreateBitstringStatusListSqlite1741895823001();
|
|
9077
|
-
await mig.up(queryRunner);
|
|
9078
|
-
return;
|
|
9079
|
-
}
|
|
9080
|
-
default:
|
|
9081
|
-
return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
|
|
9082
|
-
}
|
|
9083
|
-
}
|
|
9084
|
-
async down(queryRunner) {
|
|
9085
|
-
debug19("migration: dropping bitstring status list tables");
|
|
9086
|
-
const dbType = queryRunner.connection.driver.options.type;
|
|
9087
|
-
switch (dbType) {
|
|
9088
|
-
case "postgres": {
|
|
9089
|
-
const mig = new CreateBitstringStatusListPG1741895823000();
|
|
9090
|
-
await mig.down(queryRunner);
|
|
9091
|
-
return;
|
|
9092
|
-
}
|
|
9093
|
-
case "sqlite":
|
|
9094
|
-
case "expo":
|
|
9095
|
-
case "react-native": {
|
|
9096
|
-
const mig = new CreateBitstringStatusListSqlite1741895823001();
|
|
9097
|
-
await mig.down(queryRunner);
|
|
9098
|
-
return;
|
|
9099
|
-
}
|
|
9100
|
-
default:
|
|
9101
|
-
return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
|
|
9102
|
-
}
|
|
9103
|
-
}
|
|
9104
|
-
};
|
|
9105
|
-
|
|
9106
8651
|
// src/migrations/generic/index.ts
|
|
9107
8652
|
var DataStoreContactMigrations = [
|
|
9108
8653
|
CreateContacts1659463079429,
|
|
@@ -9115,8 +8660,7 @@ var DataStoreIssuanceBrandingMigrations = [
|
|
|
9115
8660
|
FixCredentialClaimsReferencesUuid1741895822987
|
|
9116
8661
|
];
|
|
9117
8662
|
var DataStoreStatusListMigrations = [
|
|
9118
|
-
CreateStatusList1693866470000
|
|
9119
|
-
CreateBitstringStatusList1741895823000
|
|
8663
|
+
CreateStatusList1693866470000
|
|
9120
8664
|
];
|
|
9121
8665
|
var DataStoreEventLoggerMigrations = [
|
|
9122
8666
|
CreateAuditEvents1701635835330
|
|
@@ -9321,8 +8865,6 @@ var DataStoreStatusListEntities = [
|
|
|
9321
8865
|
StatusListEntity,
|
|
9322
8866
|
StatusList2021Entity,
|
|
9323
8867
|
OAuthStatusListEntity,
|
|
9324
|
-
BitstringStatusListEntity,
|
|
9325
|
-
BitstringStatusListEntryEntity,
|
|
9326
8868
|
StatusListEntryEntity
|
|
9327
8869
|
];
|
|
9328
8870
|
var DataStoreEventLoggerEntities = [
|
|
@@ -9354,8 +8896,6 @@ export {
|
|
|
9354
8896
|
BaseConfigEntity,
|
|
9355
8897
|
BaseContactEntity,
|
|
9356
8898
|
BaseLocaleBrandingEntity,
|
|
9357
|
-
BitstringStatusListEntity,
|
|
9358
|
-
BitstringStatusListEntryEntity,
|
|
9359
8899
|
ConnectionEntity,
|
|
9360
8900
|
ConnectionType,
|
|
9361
8901
|
ContactMetadataItemEntity,
|