@sphereon/ssi-sdk.data-store 0.17.5 → 0.17.6-next.16
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/migrations/postgres/1659463079428-CreateContacts.js +2 -2
- package/dist/migrations/postgres/1659463079428-CreateContacts.js.map +1 -1
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js +2 -2
- package/dist/migrations/postgres/1685628974232-CreateIssuanceBranding.js.map +1 -1
- package/dist/migrations/postgres/1690925872592-CreateContacts.js +2 -2
- package/dist/migrations/postgres/1690925872592-CreateContacts.js.map +1 -1
- package/package.json +4 -3
- package/src/migrations/postgres/1659463079428-CreateContacts.ts +2 -2
- package/src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts +2 -2
- package/src/migrations/postgres/1690925872592-CreateContacts.ts +2 -2
- package/dist/migrations/postgres/uuid.d.ts +0 -3
- package/dist/migrations/postgres/uuid.d.ts.map +0 -1
- package/dist/migrations/postgres/uuid.js +0 -25
- package/dist/migrations/postgres/uuid.js.map +0 -1
- package/src/migrations/postgres/uuid.ts +0 -12
|
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateContacts1659463079428 = void 0;
|
|
13
|
-
const
|
|
13
|
+
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
14
14
|
class CreateContacts1659463079428 {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.name = 'CreateContacts1659463079428';
|
|
17
17
|
}
|
|
18
18
|
up(queryRunner) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield (0,
|
|
20
|
+
yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
|
|
21
21
|
yield queryRunner.query(`CREATE TABLE "BaseConfigEntity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "client_id" character varying(255), "client_secret" character varying(255), "scopes" text, "issuer" character varying(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" character varying(255), "session_id" character varying(255), "type" character varying NOT NULL, "connectionId" uuid, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "PK_BaseConfigEntity_id" PRIMARY KEY ("id"))`);
|
|
22
22
|
yield queryRunner.query(`CREATE INDEX "IDX_BaseConfigEntity_type" ON "BaseConfigEntity" ("type")`);
|
|
23
23
|
yield queryRunner.query(`CREATE TYPE "public"."CorrelationIdentifier_type_enum" AS ENUM('did', 'url')`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"1659463079428-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1659463079428-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,2BAA2B;IAAxC;QACE,SAAI,GAAG,6BAA6B,CAAA;IA0DtC,CAAC;IAxDc,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CACrB,6iBAA6iB,CAC9iB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yEAAyE,CAAC,CAAA;YAClG,MAAM,WAAW,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAA;YACvG,MAAM,WAAW,CAAC,KAAK,CACrB,qYAAqY,CACtY,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,waAAwa,CACza,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,8OAA8O,CAC/O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sVA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+BAA+B,CAAC,CAAA;QAC1D,CAAC;KAAA;CACF;AA3DD,kEA2DC"}
|
|
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateIssuanceBranding1685628974232 = void 0;
|
|
13
|
-
const
|
|
13
|
+
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
14
14
|
class CreateIssuanceBranding1685628974232 {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.name = 'CreateIssuanceBranding1685628974232';
|
|
17
17
|
}
|
|
18
18
|
up(queryRunner) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield (0,
|
|
20
|
+
yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
|
|
21
21
|
yield queryRunner.query(`CREATE TABLE "ImageDimensions" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "width" integer NOT NULL, "height" integer NOT NULL, CONSTRAINT "PK_ImageDimensions_id" PRIMARY KEY ("id"))`);
|
|
22
22
|
yield queryRunner.query(`CREATE TABLE "ImageAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "uri" character varying(255), "dataUri" character varying(255), "mediaType" character varying(255), "alt" character varying(255), "dimensionsId" uuid, CONSTRAINT "UQ_dimensionsId" UNIQUE ("dimensionsId"), CONSTRAINT "PK_ImageAttributes_id" PRIMARY KEY ("id"))`);
|
|
23
23
|
yield queryRunner.query(`CREATE TABLE "BackgroundAttributes" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "color" character varying(255), "imageId" uuid, CONSTRAINT "UQ_imageId" UNIQUE ("imageId"), CONSTRAINT "PK_BackgroundAttributes_id" PRIMARY KEY ("id"))`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"1685628974232-CreateIssuanceBranding.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1685628974232-CreateIssuanceBranding.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAoE;AAEpE,MAAa,mCAAmC;IAAhD;QACE,SAAI,GAAG,qCAAqC,CAAA;IAgF9C,CAAC;IA9Ec,EAAE,CAAC,WAAwB;;YACtC,MAAM,IAAA,0CAA2B,EAAC,WAAW,CAAC,CAAA;YAC9C,MAAM,WAAW,CAAC,KAAK,CACrB,4LAA4L,CAC7L,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,oVAAoV,CACrV,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,6OAA6O,CAC9O,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,qKAAqK,CACtK,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,snBAAsnB,CACvnB,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,+IAA+I,CAChJ,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,mIAAmI,CACpI,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,6EAA6E,CAAC,CAAA;YACtG,MAAM,WAAW,CAAC,KAAK,CACrB,2XAA2X,CAC5X,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,iHAAiH,CAAC,CAAA;YAC1I,MAAM,WAAW,CAAC,KAAK,CAAC,uFAAuF,CAAC,CAAA;YAChH,MAAM,WAAW,CAAC,KAAK,CACrB,mWAAmW,CACpW,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CAAC,yGAAyG,CAAC,CAAA;YAClI,MAAM,WAAW,CAAC,KAAK,CACrB,sLAAsL,CACvL,CAAA;YACD,MAAM,WAAW,CAAC,KAAK,CACrB,sLAAsL,CACvL,CAAA;YACD,MAAM,WAAW,CAAC,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AC,KAAK,CAAC,6BAA6B,CAAC,CAAA;YACtD,MAAM,WAAW,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAA;YAC5D,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;YACvD,MAAM,WAAW,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAA;QACzD,CAAC;KAAA;CACF;AAjFD,kFAiFC"}
|
|
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateContacts1690925872592 = void 0;
|
|
13
|
-
const
|
|
13
|
+
const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
|
|
14
14
|
class CreateContacts1690925872592 {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.name = 'CreateContacts1690925872592';
|
|
17
17
|
}
|
|
18
18
|
up(queryRunner) {
|
|
19
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
yield (0,
|
|
20
|
+
yield (0, ssi_sdk_core_1.enablePostgresUuidExtension)(queryRunner);
|
|
21
21
|
yield queryRunner.query(`ALTER TABLE "CorrelationIdentifier" DROP CONSTRAINT "FK_CorrelationIdentifier_identityId"`);
|
|
22
22
|
yield queryRunner.query(`ALTER TABLE "IdentityMetadata" DROP CONSTRAINT "FK_IdentityMetadata_identityId"`);
|
|
23
23
|
yield queryRunner.query(`ALTER TABLE "Identity" DROP CONSTRAINT "FK_Identity_contactId"`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,
|
|
1
|
+
{"version":3,"file":"1690925872592-CreateContacts.js","sourceRoot":"","sources":["../../../src/migrations/postgres/1690925872592-CreateContacts.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA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FD,kEA0FC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sphereon/ssi-sdk.data-store",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.6-next.16+9e3fc6ae",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"typeorm-postgres:migration:run": "pnpm run typeorm -- migration:run -c migration-postgres"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sphereon/ssi-
|
|
16
|
+
"@sphereon/ssi-sdk.core": "0.17.6-next.16+9e3fc6ae",
|
|
17
|
+
"@sphereon/ssi-types": "0.17.6-next.16+9e3fc6ae",
|
|
17
18
|
"@veramo/core": "4.2.0",
|
|
18
19
|
"class-validator": "^0.14.0",
|
|
19
20
|
"debug": "^4.3.4",
|
|
@@ -42,5 +43,5 @@
|
|
|
42
43
|
"PostgreSQL",
|
|
43
44
|
"Contact Store"
|
|
44
45
|
],
|
|
45
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "9e3fc6ae652eea8f9a0e5193c9ecc813c8168db3"
|
|
46
47
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
2
|
-
import {
|
|
2
|
+
import { enablePostgresUuidExtension } from '@sphereon/ssi-sdk.core'
|
|
3
3
|
|
|
4
4
|
export class CreateContacts1659463079428 implements MigrationInterface {
|
|
5
5
|
name = 'CreateContacts1659463079428'
|
|
6
6
|
|
|
7
7
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
8
|
-
await
|
|
8
|
+
await enablePostgresUuidExtension(queryRunner)
|
|
9
9
|
await queryRunner.query(
|
|
10
10
|
`CREATE TABLE "BaseConfigEntity" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "client_id" character varying(255), "client_secret" character varying(255), "scopes" text, "issuer" character varying(255), "redirect_url" text, "dangerously_allow_insecure_http_requests" boolean, "client_auth_method" text, "identifier" character varying(255), "session_id" character varying(255), "type" character varying NOT NULL, "connectionId" uuid, CONSTRAINT "REL_BaseConfig_connectionId" UNIQUE ("connectionId"), CONSTRAINT "PK_BaseConfigEntity_id" PRIMARY KEY ("id"))`
|
|
11
11
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
2
|
-
import {
|
|
2
|
+
import { enablePostgresUuidExtension } from '@sphereon/ssi-sdk.core'
|
|
3
3
|
|
|
4
4
|
export class CreateIssuanceBranding1685628974232 implements MigrationInterface {
|
|
5
5
|
name = 'CreateIssuanceBranding1685628974232'
|
|
6
6
|
|
|
7
7
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
8
|
-
await
|
|
8
|
+
await enablePostgresUuidExtension(queryRunner)
|
|
9
9
|
await queryRunner.query(
|
|
10
10
|
`CREATE TABLE "ImageDimensions" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "width" integer NOT NULL, "height" integer NOT NULL, CONSTRAINT "PK_ImageDimensions_id" PRIMARY KEY ("id"))`
|
|
11
11
|
)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MigrationInterface, QueryRunner } from 'typeorm'
|
|
2
|
-
import {
|
|
2
|
+
import { enablePostgresUuidExtension } from '@sphereon/ssi-sdk.core'
|
|
3
3
|
|
|
4
4
|
export class CreateContacts1690925872592 implements MigrationInterface {
|
|
5
5
|
name = 'CreateContacts1690925872592'
|
|
6
6
|
|
|
7
7
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
8
|
-
await
|
|
8
|
+
await enablePostgresUuidExtension(queryRunner)
|
|
9
9
|
await queryRunner.query(`ALTER TABLE "CorrelationIdentifier" DROP CONSTRAINT "FK_CorrelationIdentifier_identityId"`)
|
|
10
10
|
await queryRunner.query(`ALTER TABLE "IdentityMetadata" DROP CONSTRAINT "FK_IdentityMetadata_identityId"`)
|
|
11
11
|
await queryRunner.query(`ALTER TABLE "Identity" DROP CONSTRAINT "FK_Identity_contactId"`)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.d.ts","sourceRoot":"","sources":["../../../src/migrations/postgres/uuid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,wBAAsB,YAAY,CAAC,WAAW,EAAE,WAAW,iBAS1D"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.enableUuidv4 = void 0;
|
|
13
|
-
function enableUuidv4(queryRunner) {
|
|
14
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
try {
|
|
16
|
-
yield queryRunner.query(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`);
|
|
17
|
-
}
|
|
18
|
-
catch (error) {
|
|
19
|
-
console.log(`Please enable the uuid-ossp.control extension in your postgresql installation. It enables generating V4 UUID and can be found in the postgresql-contrib package`);
|
|
20
|
-
throw error;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
exports.enableUuidv4 = enableUuidv4;
|
|
25
|
-
//# sourceMappingURL=uuid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../src/migrations/postgres/uuid.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,SAAsB,YAAY,CAAC,WAAwB;;QACzD,IAAI;YACF,MAAM,WAAW,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAA;SACvE;QAAC,OAAO,KAAK,EAAE;YACd,OAAO,CAAC,GAAG,CACT,iKAAiK,CAClK,CAAA;YACD,MAAM,KAAK,CAAA;SACZ;IACH,CAAC;CAAA;AATD,oCASC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { QueryRunner } from 'typeorm'
|
|
2
|
-
|
|
3
|
-
export async function enableUuidv4(queryRunner: QueryRunner) {
|
|
4
|
-
try {
|
|
5
|
-
await queryRunner.query(`CREATE EXTENSION IF NOT EXISTS "uuid-ossp";`)
|
|
6
|
-
} catch (error) {
|
|
7
|
-
console.log(
|
|
8
|
-
`Please enable the uuid-ossp.control extension in your postgresql installation. It enables generating V4 UUID and can be found in the postgresql-contrib package`
|
|
9
|
-
)
|
|
10
|
-
throw error
|
|
11
|
-
}
|
|
12
|
-
}
|