@vritti/api-sdk 0.3.5 → 0.3.7
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/catalog-resolver.cjs +147 -125
- package/dist/catalog-resolver.cjs.map +1 -1
- package/dist/catalog-resolver.d.cts +49 -46
- package/dist/catalog-resolver.d.ts +49 -46
- package/dist/catalog-resolver.js +146 -125
- package/dist/catalog-resolver.js.map +1 -1
- package/dist/license.d.cts +1 -1
- package/dist/license.d.ts +1 -1
- package/dist/storage.cjs +571 -0
- package/dist/storage.cjs.map +1 -0
- package/dist/storage.d.cts +145 -0
- package/dist/storage.d.ts +145 -0
- package/dist/storage.js +540 -0
- package/dist/storage.js.map +1 -0
- package/dist/{types-C9jPdQqH.d.cts → types-BBK6MG-U.d.cts} +7 -2
- package/dist/{types-C9jPdQqH.d.ts → types-BBK6MG-U.d.ts} +7 -2
- package/package.json +22 -2
|
@@ -40,6 +40,8 @@ interface SnapshotMicrofrontends {
|
|
|
40
40
|
type ScopeType = 'ORG' | 'LE' | 'SITE_GROUP' | 'SITE';
|
|
41
41
|
type SiteType = 'OUTLET' | 'WAREHOUSE' | 'PRODUCTION';
|
|
42
42
|
declare const SITE_TYPES: SiteType[];
|
|
43
|
+
declare const SERVICE_CODES: readonly ["GITEA"];
|
|
44
|
+
type ServiceCode = (typeof SERVICE_CODES)[number];
|
|
43
45
|
interface SnapshotFeature {
|
|
44
46
|
code: string;
|
|
45
47
|
name: string;
|
|
@@ -50,6 +52,7 @@ interface SnapshotFeature {
|
|
|
50
52
|
applicableSiteTypes: SiteType[];
|
|
51
53
|
permissions: SnapshotPermission[];
|
|
52
54
|
microfrontends: SnapshotMicrofrontends;
|
|
55
|
+
requiredServices?: ServiceCode[];
|
|
53
56
|
}
|
|
54
57
|
interface SnapshotAppFeatureRef {
|
|
55
58
|
code: string;
|
|
@@ -101,12 +104,13 @@ interface VersionSnapshot {
|
|
|
101
104
|
}
|
|
102
105
|
declare function snapshotFeatureKey(code: string, scope: ScopeType): string;
|
|
103
106
|
declare const SNAPSHOT_SCHEMA_VERSION = 2;
|
|
104
|
-
type LockReason = 'PLAN' | 'SITE';
|
|
107
|
+
type LockReason = 'PLAN' | 'SITE' | 'SERVICE';
|
|
105
108
|
interface CatalogPermission {
|
|
106
109
|
code: string;
|
|
107
110
|
locked: boolean;
|
|
108
111
|
lockReason: LockReason | null;
|
|
109
112
|
unlockPlans: string[];
|
|
113
|
+
missingServices: ServiceCode[];
|
|
110
114
|
}
|
|
111
115
|
interface FeatureCatalogEntry {
|
|
112
116
|
code: string;
|
|
@@ -132,8 +136,9 @@ interface FeatureCatalogEntry {
|
|
|
132
136
|
locked: boolean;
|
|
133
137
|
lockReason: LockReason | null;
|
|
134
138
|
unlockPlans: string[];
|
|
139
|
+
missingServices: ServiceCode[];
|
|
135
140
|
permissions: CatalogPermission[];
|
|
136
141
|
}
|
|
137
142
|
type RoleItem = SnapshotRoleTemplate;
|
|
138
143
|
|
|
139
|
-
export { type BusinessVocabulary as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, type
|
|
144
|
+
export { type BusinessVocabulary as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, type SiteFeatureLocks as S, type VersionSnapshot as V, type SiteType as a, type ScopeType as b, type ServiceCode as c, type SnapshotFeature as d, type PlatformCodes as e, type FeatureUnlocks as f, type PlatformDenyCodes as g, type FeatureLocks as h, PLATFORMS as i, SERVICE_CODES as j, SITE_TYPES as k, SNAPSHOT_SCHEMA_VERSION as l, type SnapshotApp as m, type SnapshotAppFeatureRef as n, type SnapshotBusiness as o, type SnapshotMicrofrontendMobile as p, type SnapshotMicrofrontends as q, type SnapshotMicrofrontendWeb as r, type SnapshotPermission as s, type SnapshotPlan as t, type SnapshotRoleTemplate as u, snapshotFeatureKey as v, type VocabularyEntry as w };
|
|
@@ -40,6 +40,8 @@ interface SnapshotMicrofrontends {
|
|
|
40
40
|
type ScopeType = 'ORG' | 'LE' | 'SITE_GROUP' | 'SITE';
|
|
41
41
|
type SiteType = 'OUTLET' | 'WAREHOUSE' | 'PRODUCTION';
|
|
42
42
|
declare const SITE_TYPES: SiteType[];
|
|
43
|
+
declare const SERVICE_CODES: readonly ["GITEA"];
|
|
44
|
+
type ServiceCode = (typeof SERVICE_CODES)[number];
|
|
43
45
|
interface SnapshotFeature {
|
|
44
46
|
code: string;
|
|
45
47
|
name: string;
|
|
@@ -50,6 +52,7 @@ interface SnapshotFeature {
|
|
|
50
52
|
applicableSiteTypes: SiteType[];
|
|
51
53
|
permissions: SnapshotPermission[];
|
|
52
54
|
microfrontends: SnapshotMicrofrontends;
|
|
55
|
+
requiredServices?: ServiceCode[];
|
|
53
56
|
}
|
|
54
57
|
interface SnapshotAppFeatureRef {
|
|
55
58
|
code: string;
|
|
@@ -101,12 +104,13 @@ interface VersionSnapshot {
|
|
|
101
104
|
}
|
|
102
105
|
declare function snapshotFeatureKey(code: string, scope: ScopeType): string;
|
|
103
106
|
declare const SNAPSHOT_SCHEMA_VERSION = 2;
|
|
104
|
-
type LockReason = 'PLAN' | 'SITE';
|
|
107
|
+
type LockReason = 'PLAN' | 'SITE' | 'SERVICE';
|
|
105
108
|
interface CatalogPermission {
|
|
106
109
|
code: string;
|
|
107
110
|
locked: boolean;
|
|
108
111
|
lockReason: LockReason | null;
|
|
109
112
|
unlockPlans: string[];
|
|
113
|
+
missingServices: ServiceCode[];
|
|
110
114
|
}
|
|
111
115
|
interface FeatureCatalogEntry {
|
|
112
116
|
code: string;
|
|
@@ -132,8 +136,9 @@ interface FeatureCatalogEntry {
|
|
|
132
136
|
locked: boolean;
|
|
133
137
|
lockReason: LockReason | null;
|
|
134
138
|
unlockPlans: string[];
|
|
139
|
+
missingServices: ServiceCode[];
|
|
135
140
|
permissions: CatalogPermission[];
|
|
136
141
|
}
|
|
137
142
|
type RoleItem = SnapshotRoleTemplate;
|
|
138
143
|
|
|
139
|
-
export { type BusinessVocabulary as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, type
|
|
144
|
+
export { type BusinessVocabulary as B, type CatalogPermission as C, type FeatureCatalogEntry as F, type LockReason as L, type PlatformBucket as P, type RoleItem as R, type SiteFeatureLocks as S, type VersionSnapshot as V, type SiteType as a, type ScopeType as b, type ServiceCode as c, type SnapshotFeature as d, type PlatformCodes as e, type FeatureUnlocks as f, type PlatformDenyCodes as g, type FeatureLocks as h, PLATFORMS as i, SERVICE_CODES as j, SITE_TYPES as k, SNAPSHOT_SCHEMA_VERSION as l, type SnapshotApp as m, type SnapshotAppFeatureRef as n, type SnapshotBusiness as o, type SnapshotMicrofrontendMobile as p, type SnapshotMicrofrontends as q, type SnapshotMicrofrontendWeb as r, type SnapshotPermission as s, type SnapshotPlan as t, type SnapshotRoleTemplate as u, snapshotFeatureKey as v, type VocabularyEntry as w };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vritti/api-sdk",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.7",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -256,6 +256,16 @@
|
|
|
256
256
|
"default": "./dist/root.cjs"
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
+
"./storage": {
|
|
260
|
+
"import": {
|
|
261
|
+
"types": "./dist/storage.d.ts",
|
|
262
|
+
"default": "./dist/storage.js"
|
|
263
|
+
},
|
|
264
|
+
"require": {
|
|
265
|
+
"types": "./dist/storage.d.cts",
|
|
266
|
+
"default": "./dist/storage.cjs"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
259
269
|
"./types": {
|
|
260
270
|
"import": {
|
|
261
271
|
"types": "./dist/types.d.ts",
|
|
@@ -316,7 +326,9 @@
|
|
|
316
326
|
"class-validator": "^0.14.0",
|
|
317
327
|
"fastify": "5.7.4",
|
|
318
328
|
"reflect-metadata": "^0.2.0",
|
|
319
|
-
"rxjs": "^7.8.0"
|
|
329
|
+
"rxjs": "^7.8.0",
|
|
330
|
+
"@aws-sdk/client-s3": "^3.997.0",
|
|
331
|
+
"@aws-sdk/s3-request-presigner": "^3.997.0"
|
|
320
332
|
},
|
|
321
333
|
"peerDependenciesMeta": {
|
|
322
334
|
"@nestjs/graphql": {
|
|
@@ -333,9 +345,17 @@
|
|
|
333
345
|
},
|
|
334
346
|
"@nestjs/microservices": {
|
|
335
347
|
"optional": true
|
|
348
|
+
},
|
|
349
|
+
"@aws-sdk/client-s3": {
|
|
350
|
+
"optional": true
|
|
351
|
+
},
|
|
352
|
+
"@aws-sdk/s3-request-presigner": {
|
|
353
|
+
"optional": true
|
|
336
354
|
}
|
|
337
355
|
},
|
|
338
356
|
"devDependencies": {
|
|
357
|
+
"@aws-sdk/client-s3": "^3.1105.0",
|
|
358
|
+
"@aws-sdk/s3-request-presigner": "^3.1105.0",
|
|
339
359
|
"@biomejs/biome": "2.4.2",
|
|
340
360
|
"@fastify/multipart": "^9.4.0",
|
|
341
361
|
"@nestjs/common": "11.1.13",
|