quidproquo-webserver 0.0.3 → 0.0.5
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.js +16 -0
- package/lib/actions/genericDataResource/GenericDataResourceActionRequester.js.map +1 -0
- package/lib/actions/genericDataResource/GenericDataResourceActionTypeEnum.js +10 -0
- package/lib/actions/genericDataResource/GenericDataResourceActionTypeEnum.js.map +1 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/lib/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.js +10 -0
- package/lib/serviceInfrastructureDefinitions/ServiceInfrastructureConfig.js.map +1 -0
- package/lib/serviceInfrastructureDefinitions/dns.js +10 -0
- package/lib/serviceInfrastructureDefinitions/dns.js.map +1 -0
- package/lib/serviceInfrastructureDefinitions/route.js +14 -0
- package/lib/serviceInfrastructureDefinitions/route.js.map +1 -0
- package/lib/serviceInfrastructureDefinitions/serviceName.js +10 -0
- package/lib/serviceInfrastructureDefinitions/serviceName.js.map +1 -0
- package/lib/types/dnsTypes.js +3 -0
- package/lib/types/dnsTypes.js.map +1 -0
- package/lib/types/httpTypes.js +3 -0
- package/lib/types/httpTypes.js.map +1 -0
- package/lib/types/routeTypes.js +3 -0
- package/lib/types/routeTypes.js.map +1 -0
- package/lib/types/serviceNameTypes.js +3 -0
- package/lib/types/serviceNameTypes.js.map +1 -0
- package/lib/types/srcFileTypes.js +3 -0
- package/lib/types/srcFileTypes.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.askScanGenericDataResource = exports.askPutGenericDataResource = void 0;
|
|
7
|
+
const GenericDataResourceActionTypeEnum_1 = __importDefault(require("./GenericDataResourceActionTypeEnum"));
|
|
8
|
+
function* askPutGenericDataResource(tableName, item) {
|
|
9
|
+
return yield { type: GenericDataResourceActionTypeEnum_1.default.Put, payload: { tableName, item } };
|
|
10
|
+
}
|
|
11
|
+
exports.askPutGenericDataResource = askPutGenericDataResource;
|
|
12
|
+
function* askScanGenericDataResource(tableName, maxItems) {
|
|
13
|
+
return yield { type: GenericDataResourceActionTypeEnum_1.default.Scan, payload: { tableName, maxItems } };
|
|
14
|
+
}
|
|
15
|
+
exports.askScanGenericDataResource = askScanGenericDataResource;
|
|
16
|
+
//# sourceMappingURL=GenericDataResourceActionRequester.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenericDataResourceActionTypeEnum = void 0;
|
|
4
|
+
var GenericDataResourceActionTypeEnum;
|
|
5
|
+
(function (GenericDataResourceActionTypeEnum) {
|
|
6
|
+
GenericDataResourceActionTypeEnum["Put"] = "@quidproquo-webserver/GenericDataResource/Put";
|
|
7
|
+
GenericDataResourceActionTypeEnum["Scan"] = "@quidproquo-webserver/GenericDataResource/Scan";
|
|
8
|
+
})(GenericDataResourceActionTypeEnum = exports.GenericDataResourceActionTypeEnum || (exports.GenericDataResourceActionTypeEnum = {}));
|
|
9
|
+
exports.default = GenericDataResourceActionTypeEnum;
|
|
10
|
+
//# sourceMappingURL=GenericDataResourceActionTypeEnum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineDns = exports.defineRoute = void 0;
|
|
4
|
+
var route_1 = require("./serviceInfrastructureDefinitions/route");
|
|
5
|
+
Object.defineProperty(exports, "defineRoute", { enumerable: true, get: function () { return route_1.defineRoute; } });
|
|
6
|
+
var dns_1 = require("./serviceInfrastructureDefinitions/dns");
|
|
7
|
+
Object.defineProperty(exports, "defineDns", { enumerable: true, get: function () { return dns_1.defineDns; } });
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceInfrastructureConfigType = void 0;
|
|
4
|
+
var ServiceInfrastructureConfigType;
|
|
5
|
+
(function (ServiceInfrastructureConfigType) {
|
|
6
|
+
ServiceInfrastructureConfigType["ROUTE"] = "ROUTE";
|
|
7
|
+
ServiceInfrastructureConfigType["DNS"] = "DNS";
|
|
8
|
+
ServiceInfrastructureConfigType["SERVICE_NAME"] = "SERVICE_NAME";
|
|
9
|
+
})(ServiceInfrastructureConfigType = exports.ServiceInfrastructureConfigType || (exports.ServiceInfrastructureConfigType = {}));
|
|
10
|
+
//# sourceMappingURL=ServiceInfrastructureConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineDns = void 0;
|
|
4
|
+
const ServiceInfrastructureConfig_1 = require("./ServiceInfrastructureConfig");
|
|
5
|
+
const defineDns = (dnsBase) => ({
|
|
6
|
+
serviceInfrastructureConfigType: ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType.DNS,
|
|
7
|
+
dnsBase,
|
|
8
|
+
});
|
|
9
|
+
exports.defineDns = defineDns;
|
|
10
|
+
//# sourceMappingURL=dns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineRoute = void 0;
|
|
4
|
+
const ServiceInfrastructureConfig_1 = require("./ServiceInfrastructureConfig");
|
|
5
|
+
const defineRoute = (method, path, src, runtime, options = {}) => ({
|
|
6
|
+
serviceInfrastructureConfigType: ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType.ROUTE,
|
|
7
|
+
method,
|
|
8
|
+
path,
|
|
9
|
+
src,
|
|
10
|
+
runtime,
|
|
11
|
+
options,
|
|
12
|
+
});
|
|
13
|
+
exports.defineRoute = defineRoute;
|
|
14
|
+
//# sourceMappingURL=route.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defineServiceName = void 0;
|
|
4
|
+
const ServiceInfrastructureConfig_1 = require("./ServiceInfrastructureConfig");
|
|
5
|
+
const defineServiceName = (serviceName) => ({
|
|
6
|
+
serviceInfrastructureConfigType: ServiceInfrastructureConfig_1.ServiceInfrastructureConfigType.SERVICE_NAME,
|
|
7
|
+
serviceName,
|
|
8
|
+
});
|
|
9
|
+
exports.defineServiceName = defineServiceName;
|
|
10
|
+
//# sourceMappingURL=serviceName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dnsTypes.js","sourceRoot":"","sources":["../../src/types/dnsTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpTypes.js","sourceRoot":"","sources":["../../src/types/httpTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routeTypes.js","sourceRoot":"","sources":["../../src/types/routeTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceNameTypes.js","sourceRoot":"","sources":["../../src/types/serviceNameTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"srcFileTypes.js","sourceRoot":"","sources":["../../src/types/srcFileTypes.ts"],"names":[],"mappings":""}
|