@adminide-stack/marketplace-module-server 10.1.1-alpha.9 → 10.2.1-alpha.1
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/lib/containers/module.d.ts.map +1 -1
- package/lib/containers/module.js +4 -4
- package/lib/graphql/resolvers/resolvers.d.ts.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/module.d.ts.map +1 -1
- package/lib/module.js +2 -2
- package/lib/services/extension-service.d.ts +2 -2
- package/lib/services/extension-service.d.ts.map +1 -1
- package/lib/services/extension-service.js +2 -2
- package/lib/services/extension-service.js.map +1 -1
- package/lib/store/models/registry-extension-model.d.ts +1 -1
- package/lib/store/models/registry-extension-model.d.ts.map +1 -1
- package/lib/store/repository/registry-extension-repository.d.ts +2 -3
- package/lib/store/repository/registry-extension-repository.d.ts.map +1 -1
- package/lib/store/repository/registry-extension-repository.js +2 -2
- package/lib/store/repository/registry-extension-repository.js.map +1 -1
- package/lib/templates/constants/SERVER_TYPES.ts.template +6 -0
- package/lib/templates/repositories/RegistryExtensionRepository.ts.template +22 -0
- package/lib/templates/services/RegistryExtensionService.ts.template +17 -0
- package/package.json +18 -5
- package/lib/constants/index.d.ts +0 -2
- package/lib/constants/index.d.ts.map +0 -1
- package/lib/constants/types.d.ts +0 -6
- package/lib/constants/types.d.ts.map +0 -1
- package/lib/constants/types.js +0 -5
- package/lib/constants/types.js.map +0 -1
- package/lib/interfaces/index.d.ts +0 -3
- package/lib/interfaces/index.d.ts.map +0 -1
- package/lib/interfaces/registry-extension-repository.d.ts +0 -16
- package/lib/interfaces/registry-extension-repository.d.ts.map +0 -1
- package/lib/interfaces/registry-extension-service.d.ts +0 -12
- package/lib/interfaces/registry-extension-service.d.ts.map +0 -1
- package/lib/routes.json +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/containers/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,WAAW,CAAC;
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../src/containers/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,MAAM,WAAW,CAAC;AAKxD,eAAO,MAAM,eAAe,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,UAAU,CAAC,eActD,CAAC"}
|
package/lib/containers/module.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import {ContainerModule}from'inversify';import {
|
2
|
-
bind(
|
1
|
+
import {ContainerModule}from'inversify';import {SERVER_TYPES}from'common';import {RegistryExtensionService}from'../services/extension-service.js';import'../store/models/registry-extension-model.js';import {RegistryExtensionRepository}from'../store/repository/registry-extension-repository.js';const extensionModule = settings => new ContainerModule(bind => {
|
2
|
+
bind(SERVER_TYPES.IExtensionMongoConnection).toConstantValue(settings.mongoConnection);
|
3
3
|
// Extension Service
|
4
|
-
bind(
|
4
|
+
bind(SERVER_TYPES.IRegistryExtensionService).to(RegistryExtensionService).inSingletonScope().whenTargetIsDefault();
|
5
5
|
// Extension Repository
|
6
|
-
bind(
|
6
|
+
bind(SERVER_TYPES.IRegistryExtensionRepository).to(RegistryExtensionRepository).inSingletonScope().whenTargetIsDefault();
|
7
7
|
});export{extensionModule};//# sourceMappingURL=module.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/graphql/resolvers/resolvers.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,QAAQ,EAAE,
|
1
|
+
{"version":3,"file":"resolvers.d.ts","sourceRoot":"","sources":["../../../src/graphql/resolvers/resolvers.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,QAAQ,EAAE,GAuLrB,CAAC"}
|
package/lib/index.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
1
|
import { Feature } from '@common-stack/server-core';
|
2
|
-
export * from './interfaces';
|
3
|
-
export * from './constants';
|
4
2
|
declare const _default: Feature<import("@common-stack/server-core").ConfigurationScope, any>;
|
5
3
|
export default _default;
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;;AAGpD,wBAAmC"}
|
package/lib/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import {Feature}from'@common-stack/server-core';import module from'./module.js';
|
1
|
+
import {Feature}from'@common-stack/server-core';import module from'./module.js';var index = new Feature(module);export{index as default};//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"gFAGA,YAAmC,IAAA,OAAA,CAAA,MAAA,CAAA"}
|
package/lib/module.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;;
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;;AAYpD,wBAsBG"}
|
package/lib/module.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import {find,get}from'lodash-es';import {Feature}from'@common-stack/server-core';import {
|
1
|
+
import {find,get}from'lodash-es';import {Feature}from'@common-stack/server-core';import {SERVER_TYPES}from'common';import {resolver}from'./graphql/resolvers/resolvers.js';import {extensionModule}from'./containers/module.js';const extensionServiceGen = container => {
|
2
2
|
container.get('Environment');
|
3
3
|
return {
|
4
|
-
registryExtensionService: container.get(
|
4
|
+
registryExtensionService: container.get(SERVER_TYPES.IRegistryExtensionService)
|
5
5
|
};
|
6
6
|
};
|
7
7
|
var module = new Feature({
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CdmLogger } from '@cdm-logger/core';
|
2
|
-
import { IRegistryExtensionService, IRegistryExtensionRepository
|
2
|
+
import { IRegistryExtensionService, IRegistryExtensionRepository } from 'common';
|
3
3
|
export declare class RegistryExtensionService implements IRegistryExtensionService {
|
4
4
|
private extensionRepository;
|
5
5
|
private logger;
|
@@ -21,7 +21,7 @@ export declare class RegistryExtensionService implements IRegistryExtensionServi
|
|
21
21
|
uuid: import("common").Scalars["String"]["output"];
|
22
22
|
version?: import("common").Maybe<import("common").Scalars["String"]["output"]>;
|
23
23
|
viewerCanAdminister?: import("common").Maybe<import("common").Scalars["Boolean"]["output"]>;
|
24
|
-
} & IRepositoryDefault>;
|
24
|
+
} & import("common").IRepositoryDefault>;
|
25
25
|
updateExtensionName(extensionID: string, name: string): Promise<any>;
|
26
26
|
extensionReleases(extensionID: string): Promise<import("common").IExtensionRelease[]>;
|
27
27
|
deleteExtension(extensionID: string): Promise<boolean>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extension-service.d.ts","sourceRoot":"","sources":["../../src/services/extension-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,
|
1
|
+
{"version":3,"file":"extension-service.d.ts","sourceRoot":"","sources":["../../src/services/extension-service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAgB,yBAAyB,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAE/F,qBACa,wBAAyB,YAAW,yBAAyB;IAKlE,OAAO,CAAC,mBAAmB;IAJ/B,OAAO,CAAC,MAAM,CAAoB;gBAItB,mBAAmB,EAAE,4BAA4B,EAGzD,MAAM,EAAE,SAAS,CAAC,OAAO;IAKhB,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;+EAoCyw0T,kCAAiB;6CAA4R,kCAAiB;4DAA4G,kCAAiB;YAAoP,8BAAc;yCAA8G,mCAAkB;;cAAwM,kCAAkB;;;2CAAud,kCAAiB;2CAA8G,kCAAiB;qCAAwF,kCAAiB;cAA+L,kCAAkB;yCAAsE,kCAAiB;qDAA6H,mCAAkB;;IAhCx94T,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAKrD,iBAAiB,CAAC,WAAW,EAAE,MAAM;IAKrC,eAAe,CAAC,WAAW,EAAE,MAAM;IAInC,gBAAgB,CAAC,OAAO,KAAA;IAIxB,cAAc,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,OAAO,EAChB,sBAAsB,CAAC,EAAE,MAAM,EAAE;IAKxB,aAAa,CAAC,WAAW,EAAE,MAAM;CAGjD"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import'@cdm-logger/core';import {
|
1
|
+
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import'@cdm-logger/core';import {SERVER_TYPES}from'common';var RegistryExtensionService_1;
|
2
2
|
let RegistryExtensionService = RegistryExtensionService_1 = class RegistryExtensionService {
|
3
3
|
extensionRepository;
|
4
4
|
logger;
|
@@ -32,4 +32,4 @@ let RegistryExtensionService = RegistryExtensionService_1 = class RegistryExtens
|
|
32
32
|
return this.extensionRepository.findExtension(extensionID);
|
33
33
|
}
|
34
34
|
};
|
35
|
-
RegistryExtensionService = RegistryExtensionService_1 = __decorate([injectable(), __param(0, inject(
|
35
|
+
RegistryExtensionService = RegistryExtensionService_1 = __decorate([injectable(), __param(0, inject(SERVER_TYPES.IRegistryExtensionRepository)), __param(1, inject('Logger')), __metadata("design:paramtypes", [Object, Object])], RegistryExtensionService);export{RegistryExtensionService};//# sourceMappingURL=extension-service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extension-service.js","sources":["../../src/services/extension-service.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"extension-service.js","sources":["../../src/services/extension-service.ts"],"sourcesContent":[null],"names":[],"mappings":"uJACA,IAAA;AASgB,IAAA,wBAAA,GAAA,0BAAiD,GAAA,MAAA,wBAGhC,CAAA;AAKhB,EAAA,mBAA2B;;;kDAoC6l1T;;eAA+X,EAAA,0BAAA,CAAA;;;uBAA0V,CAAA,WAAA,EAAA,IAAA,EAAA;;;6CAAwe,EAAA;uDAA+H,CAAA,WAAA,EAAA,IAAA,CAAA;;;;0DAAgiB,CAAA,CAAA,CAAA;;AAhCx94T;QAKiB,eAAY,CAAA,WAAE,EAAM;IAKrC,OAAe,IAAA,CAAA,mBAAoB,CAAA,eAAA,CAAA,WAAA,CAAA;;QAQrB,gBAClB,CAAE,OAAM,EACb;IAQS,OAAa,IAAA,CAAA,mBAAoB,CAAA,gBAAA,CAAA,OAAA,CAAA;AAGjD;;;;;;;;"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Model, Document, Connection } from 'mongoose';
|
2
|
-
import { IRegistryExtensionRecord } from '
|
2
|
+
import { IRegistryExtension as IRegistryExtensionRecord } from 'common';
|
3
3
|
export interface IRegistryExtensionModel extends Document, IRegistryExtensionRecord {
|
4
4
|
id: any;
|
5
5
|
type: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry-extension-model.d.ts","sourceRoot":"","sources":["../../../src/store/models/registry-extension-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,EAAE,QAAQ,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM
|
1
|
+
{"version":3,"file":"registry-extension-model.d.ts","sourceRoot":"","sources":["../../../src/store/models/registry-extension-model.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,KAAK,EAAE,QAAQ,EAAY,UAAU,EAAE,MAAM,UAAU,CAAC;AACzE,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,QAAQ,CAAC;AAGxE,MAAM,WAAW,uBAAwB,SAAQ,QAAQ,EAAE,wBAAwB;IAC/E,EAAE,EAAE,GAAG,CAAC;IACR,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAuDD,MAAM,MAAM,0BAA0B,GAAG,KAAK,CAAC,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,0BAA0B,EAAE,CAAC,EAAE,EAAE,UAAU,KAAK,0BACc,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as mongoose from 'mongoose';
|
2
2
|
import { CdmLogger } from '@cdm-logger/core';
|
3
|
-
import {
|
4
|
-
import { IRegistryExtensionRepository } from '../../interfaces';
|
3
|
+
import { IExtensionRelease, IRegistryExtensionRepository } from 'common';
|
5
4
|
export declare class RegistryExtensionRepository implements IRegistryExtensionRepository {
|
6
5
|
private logger;
|
7
6
|
private repositoryExtensionModel;
|
@@ -13,7 +12,7 @@ export declare class RegistryExtensionRepository implements IRegistryExtensionRe
|
|
13
12
|
_id: mongoose.Types.ObjectId;
|
14
13
|
}>;
|
15
14
|
deleteExtension(extensionID: any): Promise<boolean>;
|
16
|
-
extensionReleases(extensionID: string): Promise<
|
15
|
+
extensionReleases(extensionID: string): Promise<IExtensionRelease[]>;
|
17
16
|
publishExtension(request: any): Promise<import("../models").IRegistryExtensionModel & {
|
18
17
|
_id: mongoose.Types.ObjectId;
|
19
18
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry-extension-repository.d.ts","sourceRoot":"","sources":["../../../src/store/repository/registry-extension-repository.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,
|
1
|
+
{"version":3,"file":"registry-extension-repository.d.ts","sourceRoot":"","sources":["../../../src/store/repository/registry-extension-repository.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAgB,iBAAiB,EAAE,4BAA4B,EAAE,MAAM,QAAQ,CAAC;AAGvF,qBACa,2BAA4B,YAAW,4BAA4B;IAC5E,OAAO,CAAC,MAAM,CAAoB;IAElC,OAAO,CAAC,wBAAwB,CAA6B;gBAIzD,EAAE,EAAE,QAAQ,CAAC,UAAU,EAGvB,MAAM,EAAE,SAAS,CAAC,OAAO,EAIzB,OAAO,CAAC,KAAA;IAMC,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;IAYjD,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;IAMrD,eAAe,CAAC,WAAW,KAAA;IAW3B,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAMpE,gBAAgB,CAAC,OAAO,EAAE,GAAG;;;IA0D7B,cAAc,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,KAAK,CAAC,EAAE,OAAO,EACf,MAAM,CAAC,EAAE,OAAO,EAChB,sBAAsB,CAAC,EAAE,MAAM,EAAE;;;IAKxB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;;;CASnE"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {__decorate,__param,__metadata}from'tslib';import {pick,get,isEmpty,filter}from'lodash-es';import {injectable,inject,optional}from'inversify';import*as mongoose from'mongoose';import'@cdm-logger/core';import {RegistryExtensionModelFunc}from'../models/registry-extension-model.js';
|
1
|
+
import {__decorate,__param,__metadata}from'tslib';import {pick,get,isEmpty,filter}from'lodash-es';import {injectable,inject,optional}from'inversify';import*as mongoose from'mongoose';import'@cdm-logger/core';import {SERVER_TYPES}from'common';import {RegistryExtensionModelFunc}from'../models/registry-extension-model.js';var RegistryExtensionRepository_1;
|
2
2
|
let RegistryExtensionRepository = RegistryExtensionRepository_1 = class RegistryExtensionRepository {
|
3
3
|
logger;
|
4
4
|
repositoryExtensionModel;
|
@@ -119,4 +119,4 @@ let RegistryExtensionRepository = RegistryExtensionRepository_1 = class Registry
|
|
119
119
|
return this.repositoryExtensionModel.findOne(q);
|
120
120
|
}
|
121
121
|
};
|
122
|
-
RegistryExtensionRepository = RegistryExtensionRepository_1 = __decorate([injectable(), __param(0, inject(
|
122
|
+
RegistryExtensionRepository = RegistryExtensionRepository_1 = __decorate([injectable(), __param(0, inject(SERVER_TYPES.IExtensionMongoConnection)), __param(1, inject('Logger')), __param(2, inject('MongoOptions')), __param(2, optional()), __metadata("design:paramtypes", [mongoose.Connection, Object, Object])], RegistryExtensionRepository);export{RegistryExtensionRepository};//# sourceMappingURL=registry-extension-repository.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"registry-extension-repository.js","sources":["../../../src/store/repository/registry-extension-repository.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"registry-extension-repository.js","sources":["../../../src/store/repository/registry-extension-repository.ts"],"sourcesContent":[null],"names":[],"mappings":"iUAEA,IAAA,6BAA0B;;;AAsCT,EAAA,wBAA+B;;;MAMhB,SAAA,EAAA,6BAAY,CAAA;KAWV,CAAA;IAMjB,IAAgB,CAAA,wBAAa,GAAA,0BAAA,CAAA,EAAA,CAAA;;;IA0D7B,IAAc,CAAA,MAAA,CAAA,wDAIjB,EAAG,WACa,EAAA,IAAA,CAAA;;;MAKA,IAAA;;;AAS7B,MAAA,QAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { IPublishRequest, IExtensionRelease, IRegistryExtension } from 'common';
|
2
|
+
|
3
|
+
export interface IRepositoryDefault {
|
4
|
+
updatedAt?: string;
|
5
|
+
createdAt?: string;
|
6
|
+
}
|
7
|
+
|
8
|
+
export interface IRegistryExtensionRepository {
|
9
|
+
extensionReleases(extensionID: string): Promise<IExtensionRelease[]>;
|
10
|
+
|
11
|
+
createExtension(publisherId: string, name: string): Promise<IRegistryExtension & IRepositoryDefault>;
|
12
|
+
|
13
|
+
updateExtensionName(extensionID: string, name: string);
|
14
|
+
|
15
|
+
deleteExtension(extensionID: string): boolean | Promise<boolean>;
|
16
|
+
|
17
|
+
publishExtension(request: IPublishRequest);
|
18
|
+
|
19
|
+
findExtensions(first: number, query: string, local?: boolean, remote?: boolean, prioritizeExtensionIDs?: string[]);
|
20
|
+
|
21
|
+
findExtension(extensionID: string);
|
22
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { IPublishRequest, IExtensionRelease,IRegistryExtension } from 'common';
|
2
|
+
|
3
|
+
export interface IRegistryExtensionService {
|
4
|
+
extensionReleases(extensionID: string): Promise<IExtensionRelease[]>;
|
5
|
+
|
6
|
+
createExtension(publisherId: string, name: string): Promise<IRegistryExtension>;
|
7
|
+
|
8
|
+
updateExtensionName(extensionID: string, name: string);
|
9
|
+
|
10
|
+
deleteExtension(extensionID: string): boolean | Promise<boolean>;
|
11
|
+
|
12
|
+
publishExtension(request: IPublishRequest);
|
13
|
+
|
14
|
+
findExtensions(first: number, query: string, local?: boolean, remote?: boolean, prioritizeExtensionIDs?: string[]);
|
15
|
+
|
16
|
+
findExtension(extensionID: string);
|
17
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/marketplace-module-server",
|
3
|
-
"version": "10.
|
3
|
+
"version": "10.2.1-alpha.1",
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -21,8 +21,8 @@
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@adminide-stack/extension-api": "10.
|
25
|
-
"common": "10.
|
24
|
+
"@adminide-stack/extension-api": "10.2.1-alpha.1",
|
25
|
+
"common": "10.2.1-alpha.1",
|
26
26
|
"nanoid": "^5.0.7"
|
27
27
|
},
|
28
28
|
"peerDependencies": {
|
@@ -31,8 +31,21 @@
|
|
31
31
|
"publishConfig": {
|
32
32
|
"access": "public"
|
33
33
|
},
|
34
|
-
"
|
34
|
+
"cdecode": {
|
35
|
+
"common": {
|
36
|
+
"constants": [
|
37
|
+
"./${libDir}/templates/constants/SERVER_TYPES.ts.template"
|
38
|
+
],
|
39
|
+
"services": [
|
40
|
+
"./${libDir}/templates/services/RegistryExtensionService.ts.template"
|
41
|
+
],
|
42
|
+
"repositories": [
|
43
|
+
"./${libDir}/templates/repositories/RegistryExtensionRepository.ts.template"
|
44
|
+
]
|
45
|
+
}
|
46
|
+
},
|
35
47
|
"typescript": {
|
36
48
|
"definition": "lib/index.d.ts"
|
37
|
-
}
|
49
|
+
},
|
50
|
+
"gitHead": "45478d608c46c011f89e86f51ada97629360de68"
|
38
51
|
}
|
package/lib/constants/index.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AACA,cAAc,SAAS,CAAC"}
|
package/lib/constants/types.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/constants/types.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,KAAK;;;;CAIjB,CAAC"}
|
package/lib/constants/types.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../src/constants/types.ts"],"sourcesContent":[null],"names":[],"mappings":"AACA,MAAA,QAAa;;;;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { IRegistryExtension } from 'common/lib/generated/generated-models.js';
|
2
|
-
import { IPublishRequest, IRegistryExtensionRelease } from '@adminide-stack/extension-api';
|
3
|
-
export interface IRepositoryDefault {
|
4
|
-
updatedAt?: string;
|
5
|
-
createdAt?: string;
|
6
|
-
}
|
7
|
-
export interface IRegistryExtensionRepository {
|
8
|
-
extensionReleases(extensionID: string): Promise<IRegistryExtensionRelease[]>;
|
9
|
-
createExtension(publisherId: string, name: string): Promise<IRegistryExtension & IRepositoryDefault>;
|
10
|
-
updateExtensionName(extensionID: string, name: string): any;
|
11
|
-
deleteExtension(extensionID: string): boolean | Promise<boolean>;
|
12
|
-
publishExtension(request: IPublishRequest): any;
|
13
|
-
findExtensions(first: number, query: string, local?: boolean, remote?: boolean, prioritizeExtensionIDs?: string[]): any;
|
14
|
-
findExtension(extensionID: string): any;
|
15
|
-
}
|
16
|
-
//# sourceMappingURL=registry-extension-repository.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"registry-extension-repository.d.ts","sourceRoot":"","sources":["../../src/interfaces/registry-extension-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE3F,MAAM,WAAW,kBAAkB;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,4BAA4B;IACzC,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAE7E,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC,CAAC;IAErG,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAE;IAEvD,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjE,gBAAgB,CAAC,OAAO,EAAE,eAAe,OAAE;IAE3C,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,EAAE,MAAM,EAAE,OAAE;IAEnH,aAAa,CAAC,WAAW,EAAE,MAAM,OAAE;CACtC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { IPublishRequest, IRegistryExtensionRelease } from '@adminide-stack/extension-api';
|
2
|
-
import { IRegistryExtension } from 'common/lib/generated/generated-models.js';
|
3
|
-
export interface IRegistryExtensionService {
|
4
|
-
extensionReleases(extensionID: string): Promise<IRegistryExtensionRelease[]>;
|
5
|
-
createExtension(publisherId: string, name: string): Promise<IRegistryExtension>;
|
6
|
-
updateExtensionName(extensionID: string, name: string): any;
|
7
|
-
deleteExtension(extensionID: string): boolean | Promise<boolean>;
|
8
|
-
publishExtension(request: IPublishRequest): any;
|
9
|
-
findExtensions(first: number, query: string, local?: boolean, remote?: boolean, prioritizeExtensionIDs?: string[]): any;
|
10
|
-
findExtension(extensionID: string): any;
|
11
|
-
}
|
12
|
-
//# sourceMappingURL=registry-extension-service.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"registry-extension-service.d.ts","sourceRoot":"","sources":["../../src/interfaces/registry-extension-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E,MAAM,WAAW,yBAAyB;IACtC,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAE7E,eAAe,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAEhF,mBAAmB,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAE;IAEvD,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEjE,gBAAgB,CAAC,OAAO,EAAE,eAAe,OAAE;IAE3C,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,sBAAsB,CAAC,EAAE,MAAM,EAAE,OAAE;IAEnH,aAAa,CAAC,WAAW,EAAE,MAAM,OAAE;CACtC"}
|
package/lib/routes.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
[]
|