@fnlb-project/database 1.0.76 → 1.0.78
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/index.d.ts +112 -7
- package/dist/index.js +460 -460
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
3
|
import { GenericErrorSender } from '@fnlb-project/shared/errors';
|
|
4
|
-
import { CategoryConfigSupportedPlatforms, Locales } from '@fnlb-project/shared/types';
|
|
4
|
+
import { CategoryConfigSupportedPlatforms, CommunityListingKind, CommunityListingStatus, Locales } from '@fnlb-project/shared/types';
|
|
5
5
|
import { ConnectOptions, HydratedDocument, Model, Schema, connection } from 'mongoose';
|
|
6
6
|
|
|
7
7
|
export declare class DatabaseClient {
|
|
@@ -14,9 +14,9 @@ export declare class DatabaseErrorHandler {
|
|
|
14
14
|
static handleError(err: any, errorSender: GenericErrorSender): unknown;
|
|
15
15
|
}
|
|
16
16
|
export declare const ApplicationModel: import("mongoose").Model<{
|
|
17
|
-
secret: string;
|
|
18
17
|
owner: import("mongoose").Types.ObjectId;
|
|
19
18
|
name: string;
|
|
19
|
+
secret?: string | null | undefined;
|
|
20
20
|
icon?: string | null | undefined;
|
|
21
21
|
description?: string | null | undefined;
|
|
22
22
|
scopes?: number | null | undefined;
|
|
@@ -26,9 +26,9 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
26
26
|
installUri?: string | null | undefined;
|
|
27
27
|
flags?: number | null | undefined;
|
|
28
28
|
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
29
|
-
secret: string;
|
|
30
29
|
owner: import("mongoose").Types.ObjectId;
|
|
31
30
|
name: string;
|
|
31
|
+
secret?: string | null | undefined;
|
|
32
32
|
icon?: string | null | undefined;
|
|
33
33
|
description?: string | null | undefined;
|
|
34
34
|
scopes?: number | null | undefined;
|
|
@@ -38,9 +38,9 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
38
38
|
installUri?: string | null | undefined;
|
|
39
39
|
flags?: number | null | undefined;
|
|
40
40
|
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
41
|
-
secret: string;
|
|
42
41
|
owner: import("mongoose").Types.ObjectId;
|
|
43
42
|
name: string;
|
|
43
|
+
secret?: string | null | undefined;
|
|
44
44
|
icon?: string | null | undefined;
|
|
45
45
|
description?: string | null | undefined;
|
|
46
46
|
scopes?: number | null | undefined;
|
|
@@ -54,9 +54,9 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
54
54
|
} & {
|
|
55
55
|
__v: number;
|
|
56
56
|
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
57
|
-
secret: string;
|
|
58
57
|
owner: import("mongoose").Types.ObjectId;
|
|
59
58
|
name: string;
|
|
59
|
+
secret?: string | null | undefined;
|
|
60
60
|
icon?: string | null | undefined;
|
|
61
61
|
description?: string | null | undefined;
|
|
62
62
|
scopes?: number | null | undefined;
|
|
@@ -66,9 +66,9 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
66
66
|
installUri?: string | null | undefined;
|
|
67
67
|
flags?: number | null | undefined;
|
|
68
68
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
69
|
-
secret: string;
|
|
70
69
|
owner: import("mongoose").Types.ObjectId;
|
|
71
70
|
name: string;
|
|
71
|
+
secret?: string | null | undefined;
|
|
72
72
|
icon?: string | null | undefined;
|
|
73
73
|
description?: string | null | undefined;
|
|
74
74
|
scopes?: number | null | undefined;
|
|
@@ -78,9 +78,9 @@ export declare const ApplicationModel: import("mongoose").Model<{
|
|
|
78
78
|
installUri?: string | null | undefined;
|
|
79
79
|
flags?: number | null | undefined;
|
|
80
80
|
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
81
|
-
secret: string;
|
|
82
81
|
owner: import("mongoose").Types.ObjectId;
|
|
83
82
|
name: string;
|
|
83
|
+
secret?: string | null | undefined;
|
|
84
84
|
icon?: string | null | undefined;
|
|
85
85
|
description?: string | null | undefined;
|
|
86
86
|
scopes?: number | null | undefined;
|
|
@@ -3262,6 +3262,111 @@ export declare const CategoryModel: import("mongoose").Model<{
|
|
|
3262
3262
|
} & {
|
|
3263
3263
|
__v: number;
|
|
3264
3264
|
}>>;
|
|
3265
|
+
export declare const CommunityListingModel: import("mongoose").Model<{
|
|
3266
|
+
kind: CommunityListingKind;
|
|
3267
|
+
slug: string;
|
|
3268
|
+
title: string;
|
|
3269
|
+
author: import("mongoose").Types.ObjectId;
|
|
3270
|
+
status: CommunityListingStatus;
|
|
3271
|
+
description?: string | null | undefined;
|
|
3272
|
+
tags?: string[] | null | undefined;
|
|
3273
|
+
thumbnail?: string | null | undefined;
|
|
3274
|
+
stats?: {
|
|
3275
|
+
installs?: number | null | undefined;
|
|
3276
|
+
} | null | undefined;
|
|
3277
|
+
liveRef?: {
|
|
3278
|
+
botId: string;
|
|
3279
|
+
} | null | undefined;
|
|
3280
|
+
payload?: any;
|
|
3281
|
+
}, {}, {}, {}, import("mongoose").Document<unknown, {}, {
|
|
3282
|
+
kind: CommunityListingKind;
|
|
3283
|
+
slug: string;
|
|
3284
|
+
title: string;
|
|
3285
|
+
author: import("mongoose").Types.ObjectId;
|
|
3286
|
+
status: CommunityListingStatus;
|
|
3287
|
+
description?: string | null | undefined;
|
|
3288
|
+
tags?: string[] | null | undefined;
|
|
3289
|
+
thumbnail?: string | null | undefined;
|
|
3290
|
+
stats?: {
|
|
3291
|
+
installs?: number | null | undefined;
|
|
3292
|
+
} | null | undefined;
|
|
3293
|
+
liveRef?: {
|
|
3294
|
+
botId: string;
|
|
3295
|
+
} | null | undefined;
|
|
3296
|
+
payload?: any;
|
|
3297
|
+
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
3298
|
+
kind: CommunityListingKind;
|
|
3299
|
+
slug: string;
|
|
3300
|
+
title: string;
|
|
3301
|
+
author: import("mongoose").Types.ObjectId;
|
|
3302
|
+
status: CommunityListingStatus;
|
|
3303
|
+
description?: string | null | undefined;
|
|
3304
|
+
tags?: string[] | null | undefined;
|
|
3305
|
+
thumbnail?: string | null | undefined;
|
|
3306
|
+
stats?: {
|
|
3307
|
+
installs?: number | null | undefined;
|
|
3308
|
+
} | null | undefined;
|
|
3309
|
+
liveRef?: {
|
|
3310
|
+
botId: string;
|
|
3311
|
+
} | null | undefined;
|
|
3312
|
+
payload?: any;
|
|
3313
|
+
} & {
|
|
3314
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3315
|
+
} & {
|
|
3316
|
+
__v: number;
|
|
3317
|
+
}, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3318
|
+
kind: CommunityListingKind;
|
|
3319
|
+
slug: string;
|
|
3320
|
+
title: string;
|
|
3321
|
+
author: import("mongoose").Types.ObjectId;
|
|
3322
|
+
status: CommunityListingStatus;
|
|
3323
|
+
description?: string | null | undefined;
|
|
3324
|
+
tags?: string[] | null | undefined;
|
|
3325
|
+
thumbnail?: string | null | undefined;
|
|
3326
|
+
stats?: {
|
|
3327
|
+
installs?: number | null | undefined;
|
|
3328
|
+
} | null | undefined;
|
|
3329
|
+
liveRef?: {
|
|
3330
|
+
botId: string;
|
|
3331
|
+
} | null | undefined;
|
|
3332
|
+
payload?: any;
|
|
3333
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
3334
|
+
kind: CommunityListingKind;
|
|
3335
|
+
slug: string;
|
|
3336
|
+
title: string;
|
|
3337
|
+
author: import("mongoose").Types.ObjectId;
|
|
3338
|
+
status: CommunityListingStatus;
|
|
3339
|
+
description?: string | null | undefined;
|
|
3340
|
+
tags?: string[] | null | undefined;
|
|
3341
|
+
thumbnail?: string | null | undefined;
|
|
3342
|
+
stats?: {
|
|
3343
|
+
installs?: number | null | undefined;
|
|
3344
|
+
} | null | undefined;
|
|
3345
|
+
liveRef?: {
|
|
3346
|
+
botId: string;
|
|
3347
|
+
} | null | undefined;
|
|
3348
|
+
payload?: any;
|
|
3349
|
+
}>, {}, import("mongoose").DefaultSchemaOptions> & import("mongoose").FlatRecord<{
|
|
3350
|
+
kind: CommunityListingKind;
|
|
3351
|
+
slug: string;
|
|
3352
|
+
title: string;
|
|
3353
|
+
author: import("mongoose").Types.ObjectId;
|
|
3354
|
+
status: CommunityListingStatus;
|
|
3355
|
+
description?: string | null | undefined;
|
|
3356
|
+
tags?: string[] | null | undefined;
|
|
3357
|
+
thumbnail?: string | null | undefined;
|
|
3358
|
+
stats?: {
|
|
3359
|
+
installs?: number | null | undefined;
|
|
3360
|
+
} | null | undefined;
|
|
3361
|
+
liveRef?: {
|
|
3362
|
+
botId: string;
|
|
3363
|
+
} | null | undefined;
|
|
3364
|
+
payload?: any;
|
|
3365
|
+
}> & {
|
|
3366
|
+
_id: import("mongoose").Types.ObjectId;
|
|
3367
|
+
} & {
|
|
3368
|
+
__v: number;
|
|
3369
|
+
}>>;
|
|
3265
3370
|
export declare const PresetModel: import("mongoose").Model<{
|
|
3266
3371
|
owner: import("mongoose").Types.ObjectId;
|
|
3267
3372
|
name: string;
|