@grapadigital/shared-schemas 1.0.13 → 1.0.14
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.
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
25
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
26
26
|
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
27
|
-
export type
|
|
27
|
+
export type WebhookDocument = HydratedDocument<Webhook>;
|
|
28
28
|
export declare class MovementInfo {
|
|
29
29
|
id: number;
|
|
30
30
|
name: string;
|
|
@@ -84,15 +84,15 @@ export declare const EventDataSchema: MongooseSchema<EventData, import("mongoose
|
|
|
84
84
|
} & {
|
|
85
85
|
__v: number;
|
|
86
86
|
}>;
|
|
87
|
-
export declare class
|
|
87
|
+
export declare class Webhook {
|
|
88
88
|
_id?: Types.ObjectId;
|
|
89
89
|
data: EventData;
|
|
90
90
|
}
|
|
91
|
-
export declare const
|
|
91
|
+
export declare const WebhookSchema: MongooseSchema<Webhook, import("mongoose").Model<Webhook, any, any, any, import("mongoose").Document<unknown, any, Webhook> & Webhook & Required<{
|
|
92
92
|
_id: Types.ObjectId;
|
|
93
93
|
}> & {
|
|
94
94
|
__v: number;
|
|
95
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions,
|
|
95
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Webhook, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Webhook>> & import("mongoose").FlatRecord<Webhook> & Required<{
|
|
96
96
|
_id: Types.ObjectId;
|
|
97
97
|
}> & {
|
|
98
98
|
__v: number;
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.WebhookSchema = exports.Webhook = exports.EventDataSchema = exports.EventData = exports.CardInfoSchema = exports.CardInfo = exports.MovedBySchema = exports.MovedBy = exports.MovementInfoSchema = exports.MovementInfo = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
let MovementInfo = class MovementInfo {
|
|
@@ -100,18 +100,18 @@ EventData = __decorate([
|
|
|
100
100
|
], EventData);
|
|
101
101
|
exports.EventData = EventData;
|
|
102
102
|
exports.EventDataSchema = mongoose_1.SchemaFactory.createForClass(EventData);
|
|
103
|
-
let
|
|
103
|
+
let Webhook = class Webhook {
|
|
104
104
|
};
|
|
105
105
|
__decorate([
|
|
106
106
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, auto: true, required: false }),
|
|
107
107
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
108
|
-
],
|
|
108
|
+
], Webhook.prototype, "_id", void 0);
|
|
109
109
|
__decorate([
|
|
110
110
|
(0, mongoose_1.Prop)({ type: exports.EventDataSchema, required: true }),
|
|
111
111
|
__metadata("design:type", EventData)
|
|
112
|
-
],
|
|
113
|
-
|
|
112
|
+
], Webhook.prototype, "data", void 0);
|
|
113
|
+
Webhook = __decorate([
|
|
114
114
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
115
|
-
],
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
115
|
+
], Webhook);
|
|
116
|
+
exports.Webhook = Webhook;
|
|
117
|
+
exports.WebhookSchema = mongoose_1.SchemaFactory.createForClass(Webhook);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
|
|
2
2
|
import { HydratedDocument, Schema as MongooseSchema, Types } from 'mongoose';
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type WebhookDocument = HydratedDocument<Webhook>;
|
|
5
5
|
|
|
6
6
|
@Schema({ _id: false })
|
|
7
7
|
export class MovementInfo {
|
|
@@ -65,11 +65,11 @@ export class EventData {
|
|
|
65
65
|
export const EventDataSchema = SchemaFactory.createForClass(EventData);
|
|
66
66
|
|
|
67
67
|
@Schema({ timestamps: true })
|
|
68
|
-
export class
|
|
68
|
+
export class Webhook {
|
|
69
69
|
@Prop({ type: MongooseSchema.Types.ObjectId, auto: true, required: false })
|
|
70
70
|
_id?: Types.ObjectId;
|
|
71
71
|
|
|
72
72
|
@Prop({ type: EventDataSchema, required: true })
|
|
73
73
|
data: EventData;
|
|
74
74
|
}
|
|
75
|
-
export const
|
|
75
|
+
export const WebhookSchema = SchemaFactory.createForClass(Webhook);
|