@decaf-ts/for-nest 0.11.0 → 0.11.2
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/README.md +1 -1
- package/dist/for-nest.cjs +1 -1
- package/dist/for-nest.cjs.map +1 -1
- package/dist/for-nest.js +1 -1
- package/dist/for-nest.js.map +1 -1
- package/lib/cjs/decaf-model/FromModelController.cjs +8 -6
- package/lib/cjs/decaf-model/FromModelController.cjs.map +1 -1
- package/lib/cjs/index.cjs +4 -4
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/webhooks/DecafWebhookModule.cjs +8 -9
- package/lib/cjs/webhooks/DecafWebhookModule.cjs.map +1 -1
- package/lib/cjs/webhooks/controllers.cjs +8 -8
- package/lib/cjs/webhooks/controllers.cjs.map +1 -1
- package/lib/cjs/webhooks/index.cjs +0 -13
- package/lib/cjs/webhooks/index.cjs.map +1 -1
- package/lib/esm/decaf-model/FromModelController.js +8 -6
- package/lib/esm/decaf-model/FromModelController.js.map +1 -1
- package/lib/esm/index.js +4 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/webhooks/DecafWebhookModule.js +3 -4
- package/lib/esm/webhooks/DecafWebhookModule.js.map +1 -1
- package/lib/esm/webhooks/controllers.js +1 -1
- package/lib/esm/webhooks/controllers.js.map +1 -1
- package/lib/esm/webhooks/index.js +0 -1
- package/lib/esm/webhooks/index.js.map +1 -1
- package/lib/types/index.d.cts +3 -4
- package/lib/types/index.d.mts +3 -4
- package/lib/types/webhooks/controllers.d.cts +1 -1
- package/lib/types/webhooks/controllers.d.mts +1 -1
- package/lib/types/webhooks/index.d.cts +0 -1
- package/lib/types/webhooks/index.d.mts +0 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var DecafWebhookModule_1;
|
|
8
8
|
import { Module } from "@nestjs/common";
|
|
9
9
|
import { RouterModule } from "@nestjs/core";
|
|
10
|
-
import { Adapter, PersistenceService
|
|
10
|
+
import { Adapter, PersistenceService } from "@decaf-ts/core";
|
|
11
11
|
import { InternalError } from "@decaf-ts/db-decorators";
|
|
12
12
|
import { uses } from "@decaf-ts/decoration";
|
|
13
13
|
import { Logging } from "@decaf-ts/logging";
|
|
@@ -18,7 +18,7 @@ import { DECAF_HANDLERS } from "./../constants.js";
|
|
|
18
18
|
import { APP_INTERCEPTOR } from "@nestjs/core";
|
|
19
19
|
import { FromModelController } from "./../decaf-model/index.js";
|
|
20
20
|
import { requestToContextTransformer } from "./../interceptors/context.js";
|
|
21
|
-
import { WebhookDelivery, WebhookEventRecord, WebhookSubscription, } from "@decaf-ts/for-http/
|
|
21
|
+
import { WebhookDelivery, WebhookEventRecord, WebhookSubscription, } from "@decaf-ts/for-http/hooks";
|
|
22
22
|
import { WebhookEventActionsController, WebhookSubscriptionActionsController, } from "./controllers.js";
|
|
23
23
|
let DecafWebhookModule = class DecafWebhookModule {
|
|
24
24
|
static { DecafWebhookModule_1 = this; }
|
|
@@ -53,8 +53,7 @@ let DecafWebhookModule = class DecafWebhookModule {
|
|
|
53
53
|
const c = options.conf[i];
|
|
54
54
|
const possibleTransf = c.slice(2, c.length);
|
|
55
55
|
let transformer = possibleTransf.pop();
|
|
56
|
-
if (!transformer ||
|
|
57
|
-
!transformer.from) {
|
|
56
|
+
if (!transformer || !transformer.from) {
|
|
58
57
|
const contr = Adapter.transformerFor(clients[i].flavour);
|
|
59
58
|
if (!contr)
|
|
60
59
|
throw new InternalError(`No transformer found for flavour ${clients[i].flavour}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DecafWebhookModule.js","sourceRoot":"","sources":["../../../src/webhooks/DecafWebhookModule.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAiB,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":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C;;AArHU,kBAAkB;IAD9B,MAAM,CAAC,EAAE,CAAC;GACE,kBAAkB,CAsH9B;;AAED,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAEtD,MAAM,CAAC,KAAK,UAAU,qBAAqB,KAAmB,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { Controller, Param, Post } from "@nestjs/common";
|
|
|
15
15
|
import { Repository, OrderDirection } from "@decaf-ts/core";
|
|
16
16
|
import { DecafController } from "./../controllers.js";
|
|
17
17
|
import { DecafRequestContext } from "./../request/index.js";
|
|
18
|
-
import { WebhookDelivery, WebhookEventRecord, WebhookStatus, WebhookSubscription, collectPagedResults, } from "@decaf-ts/for-http/
|
|
18
|
+
import { WebhookDelivery, WebhookEventRecord, WebhookStatus, WebhookSubscription, collectPagedResults, } from "@decaf-ts/for-http/hooks";
|
|
19
19
|
let WebhookSubscriptionActionsController = WebhookSubscriptionActionsController_1 = class WebhookSubscriptionActionsController extends DecafController {
|
|
20
20
|
constructor(clientContext) {
|
|
21
21
|
super(clientContext, WebhookSubscriptionActionsController_1.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers.js","sourceRoot":"","sources":["../../../src/webhooks/controllers.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,4BAAuB;AACjD,OAAO,EAAE,mBAAmB,EAAE,8BAAmB;AAEjD,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"controllers.js","sourceRoot":"","sources":["../../../src/webhooks/controllers.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,KAA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B,QAAQ,CAAC,aAAa,GAAG,IAAW,CAAC;gBACrC,QAAQ,CAAC,YAAY,GAAG,SAAS,CAAC;gBAClC,QAAQ,CAAC,cAAc,GAAG,SAAS,CAAC;gBACpC,QAAQ,CAAC,YAAY,GAAG,SAAS,CAAC;YACpC,CAAC;YAED,KAAK,CAAC,MAAM,GAAG,aAAa,CAAC,OAAO,CAAC;YACrC,KAAK,CAAC,mBAAmB,GAAG,CAAC,CAAC;YAC9B,KAAK,CAAC,gBAAgB,GAAG,CAAC,CAAC;YAC3B,KAAK,CAAC,aAAa,GAAG,GAAG,CAAC;YAC1B,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC;YAEtB,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;gBACtB,IAAI,CAAC;oBACH,MAAM,YAAY,CAAC,SAAS,CAC1B,UAAU,EACV,GAAG,CAAC,QAAQ,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,CAC/C,CAAC;gBACJ,CAAC;gBAAC,MAAM,CAAC;oBACP,4FAA4F;gBAC9F,CAAC;YACH,CAAC;YACD,OAAO,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACtC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF,CAAA;AA/EO;IADL,IAAI,CAAC,YAAY,CAAC;IACL,WAAA,KAAK,CAAC,IAAI,CAAC,CAAA;;;;2DA8ExB;AApFU,6BAA6B;IADzC,UAAU,CAAC,gBAAgB,CAAC;qCAEA,mBAAmB;GADnC,6BAA6B,CAqFzC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export * from "./DecafWebhookModule.js";
|
|
2
2
|
export * from "./controllers.js";
|
|
3
3
|
export * from "./types.js";
|
|
4
|
-
export { WebhookDelivery, WebhookDeliveryService, WebhookEventRecord, WebhookPublisherService, WebhookSignatureMiddleware, WebhookStatus, WebhookSubscription, WebhookSubscriptionService, computeNextAttempt, signWebhookPayload, verifyWebhookSignature, } from "@decaf-ts/for-http/server";
|
|
5
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webhooks/index.ts"],"names":[],"mappings":"AAAA,wCAAqC;AACrC,iCAA8B;AAC9B,2BAAwB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webhooks/index.ts"],"names":[],"mappings":"AAAA,wCAAqC;AACrC,iCAA8B;AAC9B,2BAAwB"}
|
package/lib/types/index.d.cts
CHANGED
|
@@ -34,26 +34,25 @@ export * from "./migrations/index.d.cts";
|
|
|
34
34
|
export * from "./types.d.cts";
|
|
35
35
|
export * from "./utils.d.cts";
|
|
36
36
|
export * from "./events-module/index.d.cts";
|
|
37
|
-
export * from "./webhooks/index.d.cts";
|
|
38
37
|
/**
|
|
39
38
|
* Represents the current version of the ts-workspace module.
|
|
40
39
|
* The actual version number is replaced during the build process.
|
|
41
40
|
* @constant
|
|
42
41
|
* @type {string}
|
|
43
42
|
*/
|
|
44
|
-
export declare const VERSION = "0.
|
|
43
|
+
export declare const VERSION = "0.11.1";
|
|
45
44
|
/**
|
|
46
45
|
* @description Represents the current commit hash of the module build.
|
|
47
46
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
48
47
|
* the placeholder with the actual commit hash at publish time.
|
|
49
48
|
* @const COMMIT
|
|
50
49
|
*/
|
|
51
|
-
export declare const COMMIT = "
|
|
50
|
+
export declare const COMMIT = "4deec24";
|
|
52
51
|
/**
|
|
53
52
|
* @description Represents the full version string of the module.
|
|
54
53
|
* @summary Stores the semver version and commit hash for the package.
|
|
55
54
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
56
55
|
* @const FULL_VERSION
|
|
57
56
|
*/
|
|
58
|
-
export declare const FULL_VERSION = "0.
|
|
57
|
+
export declare const FULL_VERSION = "0.11.1-4deec24";
|
|
59
58
|
export declare const PACKAGE_NAME = "@decaf-ts/for-nest";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -34,26 +34,25 @@ export * from "./migrations/index.d.mts";
|
|
|
34
34
|
export * from "./types.d.mts";
|
|
35
35
|
export * from "./utils.d.mts";
|
|
36
36
|
export * from "./events-module/index.d.mts";
|
|
37
|
-
export * from "./webhooks/index.d.mts";
|
|
38
37
|
/**
|
|
39
38
|
* Represents the current version of the ts-workspace module.
|
|
40
39
|
* The actual version number is replaced during the build process.
|
|
41
40
|
* @constant
|
|
42
41
|
* @type {string}
|
|
43
42
|
*/
|
|
44
|
-
export declare const VERSION = "0.
|
|
43
|
+
export declare const VERSION = "0.11.1";
|
|
45
44
|
/**
|
|
46
45
|
* @description Represents the current commit hash of the module build.
|
|
47
46
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
48
47
|
* the placeholder with the actual commit hash at publish time.
|
|
49
48
|
* @const COMMIT
|
|
50
49
|
*/
|
|
51
|
-
export declare const COMMIT = "
|
|
50
|
+
export declare const COMMIT = "4deec24";
|
|
52
51
|
/**
|
|
53
52
|
* @description Represents the full version string of the module.
|
|
54
53
|
* @summary Stores the semver version and commit hash for the package.
|
|
55
54
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
56
55
|
* @const FULL_VERSION
|
|
57
56
|
*/
|
|
58
|
-
export declare const FULL_VERSION = "0.
|
|
57
|
+
export declare const FULL_VERSION = "0.11.1-4deec24";
|
|
59
58
|
export declare const PACKAGE_NAME = "@decaf-ts/for-nest";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecafController } from "../controllers.d.cts";
|
|
2
2
|
import { DecafRequestContext } from "../request/index.d.cts";
|
|
3
3
|
import { DecafServerCtx } from "../constants.d.cts";
|
|
4
|
-
import { WebhookEventRecord, WebhookSubscription } from "@decaf-ts/for-http/
|
|
4
|
+
import { WebhookEventRecord, WebhookSubscription } from "@decaf-ts/for-http/hooks";
|
|
5
5
|
export declare class WebhookSubscriptionActionsController extends DecafController<DecafServerCtx> {
|
|
6
6
|
constructor(clientContext: DecafRequestContext);
|
|
7
7
|
deactivate(id: string): Promise<WebhookSubscription>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DecafController } from "../controllers.d.mts";
|
|
2
2
|
import { DecafRequestContext } from "../request/index.d.mts";
|
|
3
3
|
import { DecafServerCtx } from "../constants.d.mts";
|
|
4
|
-
import { WebhookEventRecord, WebhookSubscription } from "@decaf-ts/for-http/
|
|
4
|
+
import { WebhookEventRecord, WebhookSubscription } from "@decaf-ts/for-http/hooks";
|
|
5
5
|
export declare class WebhookSubscriptionActionsController extends DecafController<DecafServerCtx> {
|
|
6
6
|
constructor(clientContext: DecafRequestContext);
|
|
7
7
|
deactivate(id: string): Promise<WebhookSubscription>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from "./DecafWebhookModule.d.cts";
|
|
2
2
|
export * from "./controllers.d.cts";
|
|
3
3
|
export * from "./types.d.cts";
|
|
4
|
-
export { WebhookDelivery, WebhookDeliveryService, WebhookEventRecord, WebhookPublisherService, WebhookSignatureMiddleware, WebhookStatus, WebhookSubscription, WebhookSubscriptionService, computeNextAttempt, signWebhookPayload, verifyWebhookSignature, } from "@decaf-ts/for-http/server";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from "./DecafWebhookModule.d.mts";
|
|
2
2
|
export * from "./controllers.d.mts";
|
|
3
3
|
export * from "./types.d.mts";
|
|
4
|
-
export { WebhookDelivery, WebhookDeliveryService, WebhookEventRecord, WebhookPublisherService, WebhookSignatureMiddleware, WebhookStatus, WebhookSubscription, WebhookSubscriptionService, computeNextAttempt, signWebhookPayload, verifyWebhookSignature, } from "@decaf-ts/for-http/server";
|