@remnawave/backend-contract 2.5.21 → 2.6.0
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/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +2 -2
- package/build/backend/constants/crud-actions/crud-actions.constant.d.ts +9 -0
- package/build/backend/constants/crud-actions/crud-actions.constant.d.ts.map +1 -0
- package/build/backend/constants/crud-actions/crud-actions.constant.js +9 -0
- package/build/backend/constants/crud-actions/index.d.ts +2 -0
- package/build/backend/constants/crud-actions/index.d.ts.map +1 -0
- package/build/backend/constants/crud-actions/index.js +17 -0
- package/build/backend/constants/events/events.d.ts +1 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +1 -0
- package/build/backend/constants/index.d.ts +1 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -0
- package/build/backend/models/webhook/webhook.schema.d.ts +58 -6
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.js +6 -0
- package/build/frontend/constants/crud-actions/crud-actions.constant.js +9 -0
- package/build/frontend/constants/crud-actions/index.js +17 -0
- package/build/frontend/constants/events/events.js +1 -0
- package/build/frontend/constants/index.js +1 -0
- package/build/frontend/models/webhook/webhook.schema.js +6 -0
- package/package.json +1 -1
|
@@ -12,11 +12,11 @@ export declare namespace BulkNodesActionsCommand {
|
|
|
12
12
|
readonly RESET_TRAFFIC: "RESET_TRAFFIC";
|
|
13
13
|
}>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
uuids: string[];
|
|
16
15
|
action: "ENABLE" | "DISABLE" | "RESTART" | "RESET_TRAFFIC";
|
|
17
|
-
}, {
|
|
18
16
|
uuids: string[];
|
|
17
|
+
}, {
|
|
19
18
|
action: "ENABLE" | "DISABLE" | "RESTART" | "RESET_TRAFFIC";
|
|
19
|
+
uuids: string[];
|
|
20
20
|
}>;
|
|
21
21
|
type Request = z.infer<typeof RequestSchema>;
|
|
22
22
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CRUD_ACTIONS: {
|
|
2
|
+
readonly CREATED: "CREATED";
|
|
3
|
+
readonly UPDATED: "UPDATED";
|
|
4
|
+
readonly DELETED: "DELETED";
|
|
5
|
+
};
|
|
6
|
+
export type TCrudActions = [keyof typeof CRUD_ACTIONS][number];
|
|
7
|
+
export type TCrudActionsKeys = (typeof CRUD_ACTIONS)[keyof typeof CRUD_ACTIONS];
|
|
8
|
+
export declare const CRUD_ACTIONS_VALUES: ("CREATED" | "UPDATED" | "DELETED")[];
|
|
9
|
+
//# sourceMappingURL=crud-actions.constant.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crud-actions.constant.d.ts","sourceRoot":"","sources":["../../../../constants/crud-actions/crud-actions.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAChF,eAAO,MAAM,mBAAmB,uCAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CRUD_ACTIONS_VALUES = exports.CRUD_ACTIONS = void 0;
|
|
4
|
+
exports.CRUD_ACTIONS = {
|
|
5
|
+
CREATED: 'CREATED',
|
|
6
|
+
UPDATED: 'UPDATED',
|
|
7
|
+
DELETED: 'DELETED',
|
|
8
|
+
};
|
|
9
|
+
exports.CRUD_ACTIONS_VALUES = Object.values(exports.CRUD_ACTIONS);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/crud-actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./crud-actions.constant"), exports);
|
|
@@ -48,6 +48,7 @@ export declare const EVENTS: {
|
|
|
48
48
|
readonly PANEL_STARTED: "service.panel_started";
|
|
49
49
|
readonly LOGIN_ATTEMPT_FAILED: "service.login_attempt_failed";
|
|
50
50
|
readonly LOGIN_ATTEMPT_SUCCESS: "service.login_attempt_success";
|
|
51
|
+
readonly SUBPAGE_CONFIG_CHANGED: "service.subpage_config_changed";
|
|
51
52
|
};
|
|
52
53
|
readonly ERRORS: {
|
|
53
54
|
readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],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GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAE9E,KAAK,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAClC,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAEpC,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,KACxC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -51,6 +51,7 @@ exports.EVENTS = {
|
|
|
51
51
|
PANEL_STARTED: 'service.panel_started',
|
|
52
52
|
LOGIN_ATTEMPT_FAILED: 'service.login_attempt_failed',
|
|
53
53
|
LOGIN_ATTEMPT_SUCCESS: 'service.login_attempt_success',
|
|
54
|
+
SUBPAGE_CONFIG_CHANGED: 'service.subpage_config_changed',
|
|
54
55
|
},
|
|
55
56
|
ERRORS: {
|
|
56
57
|
BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./cache-keys"), exports);
|
|
18
|
+
__exportStar(require("./crud-actions"), exports);
|
|
18
19
|
__exportStar(require("./endpoint-details"), exports);
|
|
19
20
|
__exportStar(require("./errors"), exports);
|
|
20
21
|
__exportStar(require("./events"), exports);
|
|
@@ -948,7 +948,7 @@ export declare const RemnawaveWebhookNodeEvents: z.ZodObject<{
|
|
|
948
948
|
}>;
|
|
949
949
|
export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
950
950
|
scope: z.ZodLiteral<"service">;
|
|
951
|
-
event: z.ZodEnum<["service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success", ...("service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success")[]]>;
|
|
951
|
+
event: z.ZodEnum<["service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed", ...("service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed")[]]>;
|
|
952
952
|
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
953
953
|
data: z.ZodObject<{
|
|
954
954
|
loginAttempt: z.ZodOptional<z.ZodObject<{
|
|
@@ -971,6 +971,16 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
|
971
971
|
description?: string | undefined;
|
|
972
972
|
}>>;
|
|
973
973
|
panelVersion: z.ZodOptional<z.ZodString>;
|
|
974
|
+
subpageConfig: z.ZodOptional<z.ZodObject<{
|
|
975
|
+
action: z.ZodEnum<["CREATED" | "UPDATED" | "DELETED", ...("CREATED" | "UPDATED" | "DELETED")[]]>;
|
|
976
|
+
uuid: z.ZodString;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
uuid: string;
|
|
979
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
980
|
+
}, {
|
|
981
|
+
uuid: string;
|
|
982
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
983
|
+
}>>;
|
|
974
984
|
}, "strip", z.ZodTypeAny, {
|
|
975
985
|
loginAttempt?: {
|
|
976
986
|
username: string;
|
|
@@ -980,6 +990,10 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
|
980
990
|
description?: string | undefined;
|
|
981
991
|
} | undefined;
|
|
982
992
|
panelVersion?: string | undefined;
|
|
993
|
+
subpageConfig?: {
|
|
994
|
+
uuid: string;
|
|
995
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
996
|
+
} | undefined;
|
|
983
997
|
}, {
|
|
984
998
|
loginAttempt?: {
|
|
985
999
|
username: string;
|
|
@@ -989,6 +1003,10 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
|
989
1003
|
description?: string | undefined;
|
|
990
1004
|
} | undefined;
|
|
991
1005
|
panelVersion?: string | undefined;
|
|
1006
|
+
subpageConfig?: {
|
|
1007
|
+
uuid: string;
|
|
1008
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
1009
|
+
} | undefined;
|
|
992
1010
|
}>;
|
|
993
1011
|
}, "strip", z.ZodTypeAny, {
|
|
994
1012
|
data: {
|
|
@@ -1000,9 +1018,13 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
|
1000
1018
|
description?: string | undefined;
|
|
1001
1019
|
} | undefined;
|
|
1002
1020
|
panelVersion?: string | undefined;
|
|
1021
|
+
subpageConfig?: {
|
|
1022
|
+
uuid: string;
|
|
1023
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
1024
|
+
} | undefined;
|
|
1003
1025
|
};
|
|
1004
1026
|
scope: "service";
|
|
1005
|
-
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success";
|
|
1027
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
1006
1028
|
timestamp: Date;
|
|
1007
1029
|
}, {
|
|
1008
1030
|
data: {
|
|
@@ -1014,9 +1036,13 @@ export declare const RemnawaveWebhookServiceEvents: z.ZodObject<{
|
|
|
1014
1036
|
description?: string | undefined;
|
|
1015
1037
|
} | undefined;
|
|
1016
1038
|
panelVersion?: string | undefined;
|
|
1039
|
+
subpageConfig?: {
|
|
1040
|
+
uuid: string;
|
|
1041
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
1042
|
+
} | undefined;
|
|
1017
1043
|
};
|
|
1018
1044
|
scope: "service";
|
|
1019
|
-
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success";
|
|
1045
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
1020
1046
|
timestamp: string;
|
|
1021
1047
|
}>;
|
|
1022
1048
|
export declare const RemnawaveWebhookErrorsEvents: z.ZodObject<{
|
|
@@ -2032,7 +2058,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2032
2058
|
timestamp: string;
|
|
2033
2059
|
}>, z.ZodObject<{
|
|
2034
2060
|
scope: z.ZodLiteral<"service">;
|
|
2035
|
-
event: z.ZodEnum<["service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success", ...("service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success")[]]>;
|
|
2061
|
+
event: z.ZodEnum<["service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed", ...("service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed")[]]>;
|
|
2036
2062
|
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
2037
2063
|
data: z.ZodObject<{
|
|
2038
2064
|
loginAttempt: z.ZodOptional<z.ZodObject<{
|
|
@@ -2055,6 +2081,16 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2055
2081
|
description?: string | undefined;
|
|
2056
2082
|
}>>;
|
|
2057
2083
|
panelVersion: z.ZodOptional<z.ZodString>;
|
|
2084
|
+
subpageConfig: z.ZodOptional<z.ZodObject<{
|
|
2085
|
+
action: z.ZodEnum<["CREATED" | "UPDATED" | "DELETED", ...("CREATED" | "UPDATED" | "DELETED")[]]>;
|
|
2086
|
+
uuid: z.ZodString;
|
|
2087
|
+
}, "strip", z.ZodTypeAny, {
|
|
2088
|
+
uuid: string;
|
|
2089
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2090
|
+
}, {
|
|
2091
|
+
uuid: string;
|
|
2092
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2093
|
+
}>>;
|
|
2058
2094
|
}, "strip", z.ZodTypeAny, {
|
|
2059
2095
|
loginAttempt?: {
|
|
2060
2096
|
username: string;
|
|
@@ -2064,6 +2100,10 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2064
2100
|
description?: string | undefined;
|
|
2065
2101
|
} | undefined;
|
|
2066
2102
|
panelVersion?: string | undefined;
|
|
2103
|
+
subpageConfig?: {
|
|
2104
|
+
uuid: string;
|
|
2105
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2106
|
+
} | undefined;
|
|
2067
2107
|
}, {
|
|
2068
2108
|
loginAttempt?: {
|
|
2069
2109
|
username: string;
|
|
@@ -2073,6 +2113,10 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2073
2113
|
description?: string | undefined;
|
|
2074
2114
|
} | undefined;
|
|
2075
2115
|
panelVersion?: string | undefined;
|
|
2116
|
+
subpageConfig?: {
|
|
2117
|
+
uuid: string;
|
|
2118
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2119
|
+
} | undefined;
|
|
2076
2120
|
}>;
|
|
2077
2121
|
}, "strip", z.ZodTypeAny, {
|
|
2078
2122
|
data: {
|
|
@@ -2084,9 +2128,13 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2084
2128
|
description?: string | undefined;
|
|
2085
2129
|
} | undefined;
|
|
2086
2130
|
panelVersion?: string | undefined;
|
|
2131
|
+
subpageConfig?: {
|
|
2132
|
+
uuid: string;
|
|
2133
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2134
|
+
} | undefined;
|
|
2087
2135
|
};
|
|
2088
2136
|
scope: "service";
|
|
2089
|
-
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success";
|
|
2137
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
2090
2138
|
timestamp: Date;
|
|
2091
2139
|
}, {
|
|
2092
2140
|
data: {
|
|
@@ -2098,9 +2146,13 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2098
2146
|
description?: string | undefined;
|
|
2099
2147
|
} | undefined;
|
|
2100
2148
|
panelVersion?: string | undefined;
|
|
2149
|
+
subpageConfig?: {
|
|
2150
|
+
uuid: string;
|
|
2151
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
2152
|
+
} | undefined;
|
|
2101
2153
|
};
|
|
2102
2154
|
scope: "service";
|
|
2103
|
-
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success";
|
|
2155
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
2104
2156
|
timestamp: string;
|
|
2105
2157
|
}>, z.ZodObject<{
|
|
2106
2158
|
scope: z.ZodLiteral<"errors">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAarC,CAAC;AAEH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhD,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC"}
|
|
@@ -62,6 +62,12 @@ exports.RemnawaveWebhookServiceEvents = zod_1.default.object({
|
|
|
62
62
|
})
|
|
63
63
|
.optional(),
|
|
64
64
|
panelVersion: zod_1.default.string().optional(),
|
|
65
|
+
subpageConfig: zod_1.default
|
|
66
|
+
.object({
|
|
67
|
+
action: zod_1.default.enum((0, constants_1.toZodEnum)(constants_1.CRUD_ACTIONS)),
|
|
68
|
+
uuid: zod_1.default.string().uuid(),
|
|
69
|
+
})
|
|
70
|
+
.optional(),
|
|
65
71
|
}),
|
|
66
72
|
});
|
|
67
73
|
exports.RemnawaveWebhookErrorsEvents = zod_1.default.object({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CRUD_ACTIONS_VALUES = exports.CRUD_ACTIONS = void 0;
|
|
4
|
+
exports.CRUD_ACTIONS = {
|
|
5
|
+
CREATED: 'CREATED',
|
|
6
|
+
UPDATED: 'UPDATED',
|
|
7
|
+
DELETED: 'DELETED',
|
|
8
|
+
};
|
|
9
|
+
exports.CRUD_ACTIONS_VALUES = Object.values(exports.CRUD_ACTIONS);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./crud-actions.constant"), exports);
|
|
@@ -51,6 +51,7 @@ exports.EVENTS = {
|
|
|
51
51
|
PANEL_STARTED: 'service.panel_started',
|
|
52
52
|
LOGIN_ATTEMPT_FAILED: 'service.login_attempt_failed',
|
|
53
53
|
LOGIN_ATTEMPT_SUCCESS: 'service.login_attempt_success',
|
|
54
|
+
SUBPAGE_CONFIG_CHANGED: 'service.subpage_config_changed',
|
|
54
55
|
},
|
|
55
56
|
ERRORS: {
|
|
56
57
|
BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./cache-keys"), exports);
|
|
18
|
+
__exportStar(require("./crud-actions"), exports);
|
|
18
19
|
__exportStar(require("./endpoint-details"), exports);
|
|
19
20
|
__exportStar(require("./errors"), exports);
|
|
20
21
|
__exportStar(require("./events"), exports);
|
|
@@ -62,6 +62,12 @@ exports.RemnawaveWebhookServiceEvents = zod_1.default.object({
|
|
|
62
62
|
})
|
|
63
63
|
.optional(),
|
|
64
64
|
panelVersion: zod_1.default.string().optional(),
|
|
65
|
+
subpageConfig: zod_1.default
|
|
66
|
+
.object({
|
|
67
|
+
action: zod_1.default.enum((0, constants_1.toZodEnum)(constants_1.CRUD_ACTIONS)),
|
|
68
|
+
uuid: zod_1.default.string().uuid(),
|
|
69
|
+
})
|
|
70
|
+
.optional(),
|
|
65
71
|
}),
|
|
66
72
|
});
|
|
67
73
|
exports.RemnawaveWebhookErrorsEvents = zod_1.default.object({
|