quidproquo-webserver 0.0.6 → 0.0.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/lib/actions/genericDataResource/GenericDataResourceActionRequester.d.ts +2 -0
- package/lib/actions/genericDataResource/GenericDataResourceActionRequester.js +0 -1
- package/lib/actions/genericDataResource/GenericDataResourceActionTypeEnum.d.ts +5 -0
- package/lib/actions/genericDataResource/GenericDataResourceActionTypeEnum.js +0 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +0 -1
- package/lib/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.d.ts +9 -0
- package/lib/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.js +0 -1
- package/lib/serviceInfrastructureDefinitions/dns.d.ts +6 -0
- package/lib/serviceInfrastructureDefinitions/dns.js +0 -1
- package/lib/serviceInfrastructureDefinitions/route.d.ts +12 -0
- package/lib/serviceInfrastructureDefinitions/route.js +0 -1
- package/lib/serviceInfrastructureDefinitions/serviceName.d.ts +6 -0
- package/lib/serviceInfrastructureDefinitions/serviceName.js +0 -1
- package/lib/types/dnsTypes.d.ts +1 -0
- package/lib/types/dnsTypes.js +0 -1
- package/lib/types/httpTypes.d.ts +2 -0
- package/lib/types/httpTypes.js +0 -1
- package/lib/types/routeTypes.d.ts +1 -0
- package/lib/types/routeTypes.js +0 -1
- package/lib/types/serviceNameTypes.d.ts +1 -0
- package/lib/types/serviceNameTypes.js +0 -1
- package/lib/types/srcFileTypes.d.ts +2 -0
- package/lib/types/srcFileTypes.js +0 -1
- package/lib/utils.d.ts +6 -0
- package/lib/utils.js +0 -1
- package/package.json +3 -2
- package/lib/actions/genericDataResource/GenericDataResourceActionRequester.js.map +0 -1
- package/lib/actions/genericDataResource/GenericDataResourceActionTypeEnum.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.js.map +0 -1
- package/lib/serviceInfrastructureDefinitions/dns.js.map +0 -1
- package/lib/serviceInfrastructureDefinitions/route.js.map +0 -1
- package/lib/serviceInfrastructureDefinitions/serviceName.js.map +0 -1
- package/lib/types/dnsTypes.js.map +0 -1
- package/lib/types/httpTypes.js.map +0 -1
- package/lib/types/routeTypes.js.map +0 -1
- package/lib/types/serviceNameTypes.js.map +0 -1
- package/lib/types/srcFileTypes.js.map +0 -1
- package/lib/utils.js.map +0 -1
|
@@ -13,4 +13,3 @@ function* askScanGenericDataResource(tableName, maxItems) {
|
|
|
13
13
|
return yield { type: GenericDataResourceActionTypeEnum_1.default.Scan, payload: { tableName, maxItems } };
|
|
14
14
|
}
|
|
15
15
|
exports.askScanGenericDataResource = askScanGenericDataResource;
|
|
16
|
-
//# sourceMappingURL=GenericDataResourceActionRequester.js.map
|
|
@@ -7,4 +7,3 @@ var GenericDataResourceActionTypeEnum;
|
|
|
7
7
|
GenericDataResourceActionTypeEnum["Scan"] = "@quidproquo-webserver/GenericDataResource/Scan";
|
|
8
8
|
})(GenericDataResourceActionTypeEnum = exports.GenericDataResourceActionTypeEnum || (exports.GenericDataResourceActionTypeEnum = {}));
|
|
9
9
|
exports.default = GenericDataResourceActionTypeEnum;
|
|
10
|
-
//# sourceMappingURL=GenericDataResourceActionTypeEnum.js.map
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { defineRoute } from "./serviceInfrastructureDefinitions/route";
|
|
2
|
+
export { defineDns } from "./serviceInfrastructureDefinitions/dns";
|
|
3
|
+
export { ServiceInfrastructureConfig, ServiceInfrastructureConfigs, ServiceInfrastructureConfigType, } from "./serviceInfrastructureDefinitions/ServiceInfrastructureConfig";
|
|
4
|
+
export { default as utils } from "./utils";
|
package/lib/index.js
CHANGED
|
@@ -12,4 +12,3 @@ var ServiceInfrastructureConfig_1 = require("./serviceInfrastructureDefinitions/
|
|
|
12
12
|
Object.defineProperty(exports, "ServiceInfrastructureConfigType", { enumerable: true, get: function () { return ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType; } });
|
|
13
13
|
var utils_1 = require("./utils");
|
|
14
14
|
Object.defineProperty(exports, "utils", { enumerable: true, get: function () { return __importDefault(utils_1).default; } });
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum ServiceInfrastructureConfigType {
|
|
2
|
+
ROUTE = "ROUTE",
|
|
3
|
+
DNS = "DNS",
|
|
4
|
+
SERVICE_NAME = "SERVICE_NAME"
|
|
5
|
+
}
|
|
6
|
+
export interface ServiceInfrastructureConfig {
|
|
7
|
+
serviceInfrastructureConfigType: ServiceInfrastructureConfigType;
|
|
8
|
+
}
|
|
9
|
+
export type ServiceInfrastructureConfigs = ServiceInfrastructureConfig[];
|
|
@@ -7,4 +7,3 @@ var ServiceInfrastructureConfigType;
|
|
|
7
7
|
ServiceInfrastructureConfigType["DNS"] = "DNS";
|
|
8
8
|
ServiceInfrastructureConfigType["SERVICE_NAME"] = "SERVICE_NAME";
|
|
9
9
|
})(ServiceInfrastructureConfigType = exports.ServiceInfrastructureConfigType || (exports.ServiceInfrastructureConfigType = {}));
|
|
10
|
-
//# sourceMappingURL=ServiceInfrastructureConfig.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DNSPath } from "../types/dnsTypes";
|
|
2
|
+
import { ServiceInfrastructureConfig } from "./ServiceInfrastructureConfig";
|
|
3
|
+
export interface DnsServiceInfrastructureConfig extends ServiceInfrastructureConfig {
|
|
4
|
+
dnsBase: DNSPath;
|
|
5
|
+
}
|
|
6
|
+
export declare const defineDns: (dnsBase: DNSPath) => DnsServiceInfrastructureConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTTPMethod, HTTPRoute } from "../types/httpTypes";
|
|
2
|
+
import { SrcPathname, MethodName } from "../types/srcFileTypes";
|
|
3
|
+
import { RouteOptions } from "../types/routeTypes";
|
|
4
|
+
import { ServiceInfrastructureConfig } from "./ServiceInfrastructureConfig";
|
|
5
|
+
export interface RouteInfrastructureConfig extends ServiceInfrastructureConfig {
|
|
6
|
+
method: HTTPMethod;
|
|
7
|
+
path: HTTPRoute;
|
|
8
|
+
src: SrcPathname;
|
|
9
|
+
runtime: MethodName;
|
|
10
|
+
options: RouteOptions;
|
|
11
|
+
}
|
|
12
|
+
export declare const defineRoute: (method: HTTPMethod, path: HTTPRoute, src: SrcPathname, runtime: MethodName, options?: RouteOptions) => RouteInfrastructureConfig;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceName } from "../types/serviceNameTypes";
|
|
2
|
+
import { ServiceInfrastructureConfig } from "./ServiceInfrastructureConfig";
|
|
3
|
+
export interface ServiceNameInfrastructureConfig extends ServiceInfrastructureConfig {
|
|
4
|
+
serviceName: ServiceName;
|
|
5
|
+
}
|
|
6
|
+
export declare const defineServiceName: (serviceName: ServiceName) => ServiceNameInfrastructureConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DNSPath = string;
|
package/lib/types/dnsTypes.js
CHANGED
package/lib/types/httpTypes.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RouteOptions = {};
|
package/lib/types/routeTypes.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ServiceName = string;
|
package/lib/utils.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ServiceInfrastructureConfigType, ServiceInfrastructureConfig, ServiceInfrastructureConfigs } from "./serviceInfrastructureDefinitions/ServiceInfrastructureConfig";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
getServiceInfrastructureDefinitions: <T extends ServiceInfrastructureConfig>(configs: ServiceInfrastructureConfigs, serviceInfrastructureConfigType: ServiceInfrastructureConfigType) => T[];
|
|
4
|
+
getServiceInfrastructureDefinition: <T_1 extends ServiceInfrastructureConfig>(configs: ServiceInfrastructureConfigs, serviceInfrastructureConfigType: ServiceInfrastructureConfigType) => T_1 | undefined;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quidproquo-webserver",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
|
+
"types": "./lib/index.d.js",
|
|
6
7
|
"files": [
|
|
7
8
|
"lib/**/*"
|
|
8
9
|
],
|
|
@@ -22,7 +23,7 @@
|
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/joe-coady/quidproquo#readme",
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"quidproquo-tsconfig": "
|
|
26
|
+
"quidproquo-tsconfig": "*",
|
|
26
27
|
"typescript": "^4.9.3"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenericDataResourceActionRequester.js","sourceRoot":"","sources":["../../../src/actions/genericDataResource/GenericDataResourceActionRequester.ts"],"names":[],"mappings":";;;;;;AAAA,4GAAoF;AAEpF,QAAe,CAAC,CAAC,yBAAyB,CAAC,SAAiB,EAAE,IAAY;IACxE,OAAO,MAAM,EAAE,IAAI,EAAE,2CAAiC,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,CAAC;AAC7F,CAAC;AAFD,8DAEC;AAED,QAAe,CAAC,CAAC,0BAA0B,CAAC,SAAiB,EAAE,QAAgB;IAC7E,OAAO,MAAM,EAAE,IAAI,EAAE,2CAAiC,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,CAAC;AAClG,CAAC;AAFD,gEAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenericDataResourceActionTypeEnum.js","sourceRoot":"","sources":["../../../src/actions/genericDataResource/GenericDataResourceActionTypeEnum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iCAGX;AAHD,WAAY,iCAAiC;IAC3C,0FAAqD,CAAA;IACrD,4FAAuD,CAAA;AACzD,CAAC,EAHW,iCAAiC,GAAjC,yCAAiC,KAAjC,yCAAiC,QAG5C;AAED,kBAAe,iCAAiC,CAAC"}
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,kEAAuE;AAA9D,oGAAA,WAAW,OAAA;AACpB,8DAAmE;AAA1D,gGAAA,SAAS,OAAA;AAElB,8GAIwE;AADtE,8IAAA,+BAA+B,OAAA;AAGjC,iCAA2C;AAAlC,+GAAA,OAAO,OAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceInfrastructureConfig.js","sourceRoot":"","sources":["../../src/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.ts"],"names":[],"mappings":";;;AAAA,IAAY,+BAIX;AAJD,WAAY,+BAA+B;IACzC,kDAAe,CAAA;IACf,8CAAW,CAAA;IACX,gEAA6B,CAAA;AAC/B,CAAC,EAJW,+BAA+B,GAA/B,uCAA+B,KAA/B,uCAA+B,QAI1C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dns.js","sourceRoot":"","sources":["../../src/serviceInfrastructureDefinitions/dns.ts"],"names":[],"mappings":";;;AAEA,+EAGuC;AAOhC,MAAM,SAAS,GAAG,CACvB,OAAgB,EACgB,EAAE,CAAC,CAAC;IACpC,+BAA+B,EAAE,6DAA+B,CAAC,GAAG;IAEpE,OAAO;CACR,CAAC,CAAC;AANU,QAAA,SAAS,aAMnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/serviceInfrastructureDefinitions/route.ts"],"names":[],"mappings":";;;AAGA,+EAGuC;AAUhC,MAAM,WAAW,GAAG,CACzB,MAAkB,EAClB,IAAe,EACf,GAAgB,EAChB,OAAmB,EACnB,UAAwB,EAAE,EACC,EAAE,CAAC,CAAC;IAC/B,+BAA+B,EAAE,6DAA+B,CAAC,KAAK;IAEtE,MAAM;IACN,IAAI;IACJ,GAAG;IACH,OAAO;IACP,OAAO;CACR,CAAC,CAAC;AAdU,QAAA,WAAW,eAcrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceName.js","sourceRoot":"","sources":["../../src/serviceInfrastructureDefinitions/serviceName.ts"],"names":[],"mappings":";;;AAEA,+EAGuC;AAOhC,MAAM,iBAAiB,GAAG,CAC/B,WAAwB,EACS,EAAE,CAAC,CAAC;IACrC,+BAA+B,EAAE,6DAA+B,CAAC,YAAY;IAE7E,WAAW;CACZ,CAAC,CAAC;AANU,QAAA,iBAAiB,qBAM3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dnsTypes.js","sourceRoot":"","sources":["../../src/types/dnsTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"httpTypes.js","sourceRoot":"","sources":["../../src/types/httpTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"routeTypes.js","sourceRoot":"","sources":["../../src/types/routeTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceNameTypes.js","sourceRoot":"","sources":["../../src/types/serviceNameTypes.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"srcFileTypes.js","sourceRoot":"","sources":["../../src/types/srcFileTypes.ts"],"names":[],"mappings":""}
|
package/lib/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;AAMA,MAAM,mCAAmC,GAAG,CAG1C,OAAqC,EACrC,+BAAgE,EAC3D,EAAE;IACP,OAAO,OAAO,CAAC,MAAM,CACnB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,+BAA+B,KAAK,+BAA+B,CACtE,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,kCAAkC,GAAG,CAGzC,OAAqC,EACrC,+BAAgE,EACjD,EAAE;IACjB,OAAO,mCAAmC,CACxC,OAAO,EACP,+BAA+B,CAChC,CAAC,CAAC,CAAM,CAAC;AACZ,CAAC,CAAC;AAEF,kBAAe;IACb,mCAAmC;IACnC,kCAAkC;CACnC,CAAC"}
|