quidproquo-webserver 0.0.79 → 0.0.81
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/index.d.ts +1 -0
- package/lib/actions/index.js +1 -0
- package/lib/actions/webEntry/WebEntryActionType.d.ts +3 -0
- package/lib/actions/webEntry/WebEntryActionType.js +7 -0
- package/lib/actions/webEntry/WebEntryInvalidateCacheActionRequester.d.ts +2 -0
- package/lib/actions/webEntry/WebEntryInvalidateCacheActionRequester.js +14 -0
- package/lib/actions/webEntry/WebEntryInvalidateCacheActionTypes.d.ts +12 -0
- package/lib/actions/webEntry/WebEntryInvalidateCacheActionTypes.js +2 -0
- package/lib/actions/webEntry/index.d.ts +3 -0
- package/lib/actions/webEntry/index.js +19 -0
- package/package.json +1 -1
package/lib/actions/index.d.ts
CHANGED
package/lib/actions/index.js
CHANGED
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./genericDataResource"), exports);
|
|
18
18
|
__exportStar(require("./openApiSpec"), exports);
|
|
19
|
+
__exportStar(require("./webEntry"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebEntryActionType = void 0;
|
|
4
|
+
var WebEntryActionType;
|
|
5
|
+
(function (WebEntryActionType) {
|
|
6
|
+
WebEntryActionType["InvalidateCache"] = "@quidproquo-webserver/WebEntry/InvalidateCache";
|
|
7
|
+
})(WebEntryActionType = exports.WebEntryActionType || (exports.WebEntryActionType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.askWebEntryInvalidateCache = void 0;
|
|
4
|
+
const WebEntryActionType_1 = require("./WebEntryActionType");
|
|
5
|
+
function* askWebEntryInvalidateCache(webEntryName, ...paths) {
|
|
6
|
+
return yield {
|
|
7
|
+
type: WebEntryActionType_1.WebEntryActionType.InvalidateCache,
|
|
8
|
+
payload: {
|
|
9
|
+
webEntryName,
|
|
10
|
+
paths,
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
exports.askWebEntryInvalidateCache = askWebEntryInvalidateCache;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Action, ActionProcessor, ActionRequester } from 'quidproquo-core';
|
|
2
|
+
import { WebEntryActionType } from './WebEntryActionType';
|
|
3
|
+
export interface WebEntryInvalidateCacheActionPayload {
|
|
4
|
+
webEntryName: string;
|
|
5
|
+
paths: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface WebEntryInvalidateCacheAction extends Action<WebEntryInvalidateCacheActionPayload> {
|
|
8
|
+
type: WebEntryActionType.InvalidateCache;
|
|
9
|
+
payload: WebEntryInvalidateCacheActionPayload;
|
|
10
|
+
}
|
|
11
|
+
export type WebEntryInvalidateCacheActionProcessor = ActionProcessor<WebEntryInvalidateCacheAction, void>;
|
|
12
|
+
export type WebEntryInvalidateCacheActionRequester = ActionRequester<WebEntryInvalidateCacheAction, void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./WebEntryActionType"), exports);
|
|
18
|
+
__exportStar(require("./WebEntryInvalidateCacheActionRequester"), exports);
|
|
19
|
+
__exportStar(require("./WebEntryInvalidateCacheActionTypes"), exports);
|