@likewatt/models 1.0.89 → 1.0.91
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/dist/core/User.d.ts +1 -0
- package/dist/core/User.js +9 -0
- package/package.json +1 -1
package/dist/core/User.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export declare const RightsSchema: import("mongoose").Schema<Rights, import("mon
|
|
|
33
33
|
export declare class WebhookParams {
|
|
34
34
|
endpoint?: string;
|
|
35
35
|
token?: string;
|
|
36
|
+
apiKey?: string;
|
|
36
37
|
}
|
|
37
38
|
export declare const WebhookParamsSchema: import("mongoose").Schema<WebhookParams, import("mongoose").Model<WebhookParams, any, any, any, Document<unknown, any, WebhookParams, any, {}> & WebhookParams & {
|
|
38
39
|
_id: Types.ObjectId;
|
package/dist/core/User.js
CHANGED
|
@@ -90,6 +90,15 @@ __decorate([
|
|
|
90
90
|
(0, class_validator_1.IsString)(),
|
|
91
91
|
__metadata("design:type", String)
|
|
92
92
|
], WebhookParams.prototype, "token", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({
|
|
95
|
+
description: "API Key de l'utilisateur pour le webhook. SPECIFIQUE POUR UN SEUL CLIENT, NE PAS UTILISER AILLEURS",
|
|
96
|
+
example: true,
|
|
97
|
+
}),
|
|
98
|
+
(0, mongoose_2.Prop)({ type: String, required: false, default: "myToken_XXXX" }),
|
|
99
|
+
(0, class_validator_1.IsString)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], WebhookParams.prototype, "apiKey", void 0);
|
|
93
102
|
exports.WebhookParams = WebhookParams = __decorate([
|
|
94
103
|
(0, mongoose_2.Schema)({ _id: false })
|
|
95
104
|
], WebhookParams);
|