@fnlb-project/database 1.0.55 → 1.0.57

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +114 -12
  2. package/dist/index.js +432 -424
  3. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -13,40 +13,115 @@ export declare class DatabaseClient {
13
13
  export declare class DatabaseErrorHandler {
14
14
  static handleError(err: any, errorSender: GenericErrorSender): unknown;
15
15
  }
16
+ export declare const ApplicationModel: import("mongoose").Model<{
17
+ owner: import("mongoose").Types.ObjectId;
18
+ name: string;
19
+ secret: string;
20
+ description?: string | null | undefined;
21
+ scopes?: number | null | undefined;
22
+ redirectUris?: string[] | null | undefined;
23
+ tosUri?: string | null | undefined;
24
+ policyUri?: string | null | undefined;
25
+ installUri?: string | null | undefined;
26
+ flags?: number | null | undefined;
27
+ }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
28
+ owner: import("mongoose").Types.ObjectId;
29
+ name: string;
30
+ secret: string;
31
+ description?: string | null | undefined;
32
+ scopes?: number | null | undefined;
33
+ redirectUris?: string[] | null | undefined;
34
+ tosUri?: string | null | undefined;
35
+ policyUri?: string | null | undefined;
36
+ installUri?: string | null | undefined;
37
+ flags?: number | null | undefined;
38
+ }, {}, import("mongoose").DefaultSchemaOptions> & {
39
+ owner: import("mongoose").Types.ObjectId;
40
+ name: string;
41
+ secret: string;
42
+ description?: string | null | undefined;
43
+ scopes?: number | null | undefined;
44
+ redirectUris?: string[] | null | undefined;
45
+ tosUri?: string | null | undefined;
46
+ policyUri?: string | null | undefined;
47
+ installUri?: string | null | undefined;
48
+ flags?: number | null | undefined;
49
+ } & {
50
+ _id: import("mongoose").Types.ObjectId;
51
+ } & {
52
+ __v: number;
53
+ }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
54
+ owner: import("mongoose").Types.ObjectId;
55
+ name: string;
56
+ secret: string;
57
+ description?: string | null | undefined;
58
+ scopes?: number | null | undefined;
59
+ redirectUris?: string[] | null | undefined;
60
+ tosUri?: string | null | undefined;
61
+ policyUri?: string | null | undefined;
62
+ installUri?: string | null | undefined;
63
+ flags?: number | null | undefined;
64
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
65
+ owner: import("mongoose").Types.ObjectId;
66
+ name: string;
67
+ secret: string;
68
+ description?: string | null | undefined;
69
+ scopes?: number | null | undefined;
70
+ redirectUris?: string[] | null | undefined;
71
+ tosUri?: string | null | undefined;
72
+ policyUri?: string | null | undefined;
73
+ installUri?: string | null | undefined;
74
+ flags?: number | null | undefined;
75
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
76
+ owner: import("mongoose").Types.ObjectId;
77
+ name: string;
78
+ secret: string;
79
+ description?: string | null | undefined;
80
+ scopes?: number | null | undefined;
81
+ redirectUris?: string[] | null | undefined;
82
+ tosUri?: string | null | undefined;
83
+ policyUri?: string | null | undefined;
84
+ installUri?: string | null | undefined;
85
+ flags?: number | null | undefined;
86
+ }> & {
87
+ _id: import("mongoose").Types.ObjectId;
88
+ } & {
89
+ __v: number;
90
+ }>>;
16
91
  export declare const BotModel: import("mongoose").Model<{
17
92
  owner: import("mongoose").Types.ObjectId;
18
93
  nickname: string;
19
94
  deviceAuth: {
95
+ secret: string;
20
96
  accountId: string;
21
97
  deviceId: string;
22
- secret: string;
23
98
  };
24
- parent?: import("mongoose").Types.ObjectId | null | undefined;
25
99
  flags?: number | null | undefined;
100
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
26
101
  email?: string | null | undefined;
27
102
  mmsBannedUntil?: number | null | undefined;
28
103
  }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
29
104
  owner: import("mongoose").Types.ObjectId;
30
105
  nickname: string;
31
106
  deviceAuth: {
107
+ secret: string;
32
108
  accountId: string;
33
109
  deviceId: string;
34
- secret: string;
35
110
  };
36
- parent?: import("mongoose").Types.ObjectId | null | undefined;
37
111
  flags?: number | null | undefined;
112
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
38
113
  email?: string | null | undefined;
39
114
  mmsBannedUntil?: number | null | undefined;
40
115
  }, {}, import("mongoose").DefaultSchemaOptions> & {
41
116
  owner: import("mongoose").Types.ObjectId;
42
117
  nickname: string;
43
118
  deviceAuth: {
119
+ secret: string;
44
120
  accountId: string;
45
121
  deviceId: string;
46
- secret: string;
47
122
  };
48
- parent?: import("mongoose").Types.ObjectId | null | undefined;
49
123
  flags?: number | null | undefined;
124
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
50
125
  email?: string | null | undefined;
51
126
  mmsBannedUntil?: number | null | undefined;
52
127
  } & {
@@ -57,36 +132,36 @@ export declare const BotModel: import("mongoose").Model<{
57
132
  owner: import("mongoose").Types.ObjectId;
58
133
  nickname: string;
59
134
  deviceAuth: {
135
+ secret: string;
60
136
  accountId: string;
61
137
  deviceId: string;
62
- secret: string;
63
138
  };
64
- parent?: import("mongoose").Types.ObjectId | null | undefined;
65
139
  flags?: number | null | undefined;
140
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
66
141
  email?: string | null | undefined;
67
142
  mmsBannedUntil?: number | null | undefined;
68
143
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
69
144
  owner: import("mongoose").Types.ObjectId;
70
145
  nickname: string;
71
146
  deviceAuth: {
147
+ secret: string;
72
148
  accountId: string;
73
149
  deviceId: string;
74
- secret: string;
75
150
  };
76
- parent?: import("mongoose").Types.ObjectId | null | undefined;
77
151
  flags?: number | null | undefined;
152
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
78
153
  email?: string | null | undefined;
79
154
  mmsBannedUntil?: number | null | undefined;
80
155
  }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
81
156
  owner: import("mongoose").Types.ObjectId;
82
157
  nickname: string;
83
158
  deviceAuth: {
159
+ secret: string;
84
160
  accountId: string;
85
161
  deviceId: string;
86
- secret: string;
87
162
  };
88
- parent?: import("mongoose").Types.ObjectId | null | undefined;
89
163
  flags?: number | null | undefined;
164
+ parent?: import("mongoose").Types.ObjectId | null | undefined;
90
165
  email?: string | null | undefined;
91
166
  mmsBannedUntil?: number | null | undefined;
92
167
  }> & {
@@ -2641,6 +2716,33 @@ export declare const CategoryModel: import("mongoose").Model<{
2641
2716
  } & {
2642
2717
  __v: number;
2643
2718
  }>>;
2719
+ export declare const PresetModel: import("mongoose").Model<{
2720
+ owner: import("mongoose").Types.ObjectId;
2721
+ name: string;
2722
+ }, {}, {}, {}, import("mongoose").Document<unknown, {}, {
2723
+ owner: import("mongoose").Types.ObjectId;
2724
+ name: string;
2725
+ }, {}, import("mongoose").DefaultSchemaOptions> & {
2726
+ owner: import("mongoose").Types.ObjectId;
2727
+ name: string;
2728
+ } & {
2729
+ _id: import("mongoose").Types.ObjectId;
2730
+ } & {
2731
+ __v: number;
2732
+ }, Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
2733
+ owner: import("mongoose").Types.ObjectId;
2734
+ name: string;
2735
+ }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
2736
+ owner: import("mongoose").Types.ObjectId;
2737
+ name: string;
2738
+ }>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<{
2739
+ owner: import("mongoose").Types.ObjectId;
2740
+ name: string;
2741
+ }> & {
2742
+ _id: import("mongoose").Types.ObjectId;
2743
+ } & {
2744
+ __v: number;
2745
+ }>>;
2644
2746
  export declare const UserModel: import("mongoose").Model<{
2645
2747
  password: string;
2646
2748
  email: string;