@remnawave/backend-contract 2.3.42 → 2.3.43
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/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/subscription-page-configs.d.ts +12 -0
- package/build/backend/api/controllers/subscription-page-configs.d.ts.map +1 -0
- package/build/backend/api/controllers/subscription-page-configs.js +15 -0
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +10 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +10 -0
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/subscription-page-configs/actions/index.d.ts +2 -0
- package/build/backend/commands/subscription-page-configs/actions/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/actions/index.js +17 -0
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +90 -0
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.js +25 -0
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +48 -0
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.js +23 -0
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +33 -0
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +20 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +48 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +19 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +65 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.js +19 -0
- package/build/backend/commands/subscription-page-configs/index.d.ts +7 -0
- package/build/backend/commands/subscription-page-configs/index.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/index.js +22 -0
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +54 -0
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -0
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +26 -0
- package/build/backend/constants/errors/errors.d.ts +45 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +45 -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/constants/subscription-page-config/index.d.ts +2 -0
- package/build/backend/constants/subscription-page-config/index.d.ts.map +1 -0
- package/build/backend/constants/subscription-page-config/index.js +17 -0
- package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts +15 -0
- package/build/backend/constants/subscription-page-config/subscription-page-config.contants.d.ts.map +1 -0
- package/build/backend/constants/subscription-page-config/subscription-page-config.contants.js +16 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/subscripion-page-config.schema.d.ts +18 -0
- package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -0
- package/build/backend/models/subscripion-page-config.schema.js +13 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts +644 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.d.ts.map +1 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.schema.js +57 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts +4 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.validator.d.ts.map +1 -0
- package/build/backend/models/subscription-page-config/subscription-page-config.validator.js +32 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/subscription-page-configs.js +15 -0
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +10 -0
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/subscription-page-configs/actions/index.js +17 -0
- package/build/frontend/commands/subscription-page-configs/actions/reorder.command.js +25 -0
- package/build/frontend/commands/subscription-page-configs/create-subpage-config.command.js +23 -0
- package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +20 -0
- package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +19 -0
- package/build/frontend/commands/subscription-page-configs/get-subpage-configs.command.js +19 -0
- package/build/frontend/commands/subscription-page-configs/index.js +22 -0
- package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +26 -0
- package/build/frontend/constants/errors/errors.js +45 -0
- package/build/frontend/constants/index.js +1 -0
- package/build/frontend/constants/subscription-page-config/index.js +17 -0
- package/build/frontend/constants/subscription-page-config/subscription-page-config.contants.js +16 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/subscripion-page-config.schema.js +13 -0
- package/build/frontend/models/subscription-page-config/subscription-page-config.schema.js +57 -0
- package/build/frontend/models/subscription-page-config/subscription-page-config.validator.js +32 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@ export * from './passkeys';
|
|
|
12
12
|
export * from './remnawave-settings';
|
|
13
13
|
export * from './snippets';
|
|
14
14
|
export * from './subscription';
|
|
15
|
+
export * from './subscription-page-configs';
|
|
15
16
|
export * from './subscription-request-history';
|
|
16
17
|
export * from './subscription-settings';
|
|
17
18
|
export * from './subscription-template';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./passkeys"), exports);
|
|
|
28
28
|
__exportStar(require("./remnawave-settings"), exports);
|
|
29
29
|
__exportStar(require("./snippets"), exports);
|
|
30
30
|
__exportStar(require("./subscription"), exports);
|
|
31
|
+
__exportStar(require("./subscription-page-configs"), exports);
|
|
31
32
|
__exportStar(require("./subscription-request-history"), exports);
|
|
32
33
|
__exportStar(require("./subscription-settings"), exports);
|
|
33
34
|
__exportStar(require("./subscription-template"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER: "subscription-page-configs";
|
|
2
|
+
export declare const SUBSCRIPTION_PAGE_CONFIGS_ROUTES: {
|
|
3
|
+
readonly GET_ALL: "";
|
|
4
|
+
readonly GET: (uuid: string) => string;
|
|
5
|
+
readonly UPDATE: "";
|
|
6
|
+
readonly DELETE: (uuid: string) => string;
|
|
7
|
+
readonly CREATE: "";
|
|
8
|
+
readonly ACTIONS: {
|
|
9
|
+
readonly REORDER: "actions/reorder";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=subscription-page-configs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-page-configs.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription-page-configs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oCAAoC,EAAG,2BAAoC,CAAC;AAIzF,eAAO,MAAM,gCAAgC;;yBAE7B,MAAM;;4BAEH,MAAM;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUBSCRIPTION_PAGE_CONFIGS_ROUTES = exports.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER = void 0;
|
|
4
|
+
exports.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER = 'subscription-page-configs';
|
|
5
|
+
const ACTIONS_ROUTE = 'actions';
|
|
6
|
+
exports.SUBSCRIPTION_PAGE_CONFIGS_ROUTES = {
|
|
7
|
+
GET_ALL: '', // get
|
|
8
|
+
GET: (uuid) => `${uuid}`, // get
|
|
9
|
+
UPDATE: '', // patch
|
|
10
|
+
DELETE: (uuid) => `${uuid}`, // delete
|
|
11
|
+
CREATE: '', // post
|
|
12
|
+
ACTIONS: {
|
|
13
|
+
REORDER: `${ACTIONS_ROUTE}/reorder`,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
@@ -95,5 +95,9 @@ export declare const CONTROLLERS_INFO: {
|
|
|
95
95
|
readonly tag: "Remnawave Settings Controller";
|
|
96
96
|
readonly description: "";
|
|
97
97
|
};
|
|
98
|
+
readonly SUBSCRIPTION_PAGE_CONFIGS: {
|
|
99
|
+
readonly tag: "Subscription Page Configs Controller";
|
|
100
|
+
readonly description: "";
|
|
101
|
+
};
|
|
98
102
|
};
|
|
99
103
|
//# sourceMappingURL=controllers-info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGnB,CAAC"}
|
|
@@ -245,5 +245,15 @@ export declare const REST_API: {
|
|
|
245
245
|
readonly GET: "/api/remnawave-settings/";
|
|
246
246
|
readonly UPDATE: "/api/remnawave-settings/";
|
|
247
247
|
};
|
|
248
|
+
readonly SUBSCRIPTION_PAGE_CONFIGS: {
|
|
249
|
+
readonly GET: (uuid: string) => string;
|
|
250
|
+
readonly GET_ALL: "/api/subscription-page-configs/";
|
|
251
|
+
readonly UPDATE: "/api/subscription-page-configs/";
|
|
252
|
+
readonly DELETE: (uuid: string) => string;
|
|
253
|
+
readonly CREATE: "/api/subscription-page-configs/";
|
|
254
|
+
readonly ACTIONS: {
|
|
255
|
+
readonly REORDER: "/api/subscription-page-configs/actions/reorder";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
248
258
|
};
|
|
249
259
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;iDAaA,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;;;gDAqBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;mDAiBa,MAAM;;;;;;;;;0CAYf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;;;;yCAYP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;iDAaA,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;;;gDAqBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;mDAiBa,MAAM;;;;;;;;;0CAYf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;;;;yCAYP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;CAOnB,CAAC"}
|
|
@@ -282,4 +282,14 @@ exports.REST_API = {
|
|
|
282
282
|
GET: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.GET}`,
|
|
283
283
|
UPDATE: `${exports.ROOT}/${CONTROLLERS.REMNAAWAVE_SETTINGS_CONTROLLER}/${CONTROLLERS.REMNAAWAVE_SETTINGS_ROUTES.UPDATE}`,
|
|
284
284
|
},
|
|
285
|
+
SUBSCRIPTION_PAGE_CONFIGS: {
|
|
286
|
+
GET: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.GET(uuid)}`,
|
|
287
|
+
GET_ALL: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.GET_ALL}`,
|
|
288
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.UPDATE}`,
|
|
289
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.DELETE(uuid)}`,
|
|
290
|
+
CREATE: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.CREATE}`,
|
|
291
|
+
ACTIONS: {
|
|
292
|
+
REORDER: `${exports.ROOT}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.REORDER}`,
|
|
293
|
+
},
|
|
294
|
+
},
|
|
285
295
|
};
|
|
@@ -12,6 +12,7 @@ export * from './passkeys';
|
|
|
12
12
|
export * from './remnawave-settings';
|
|
13
13
|
export * from './snippets';
|
|
14
14
|
export * from './subscription';
|
|
15
|
+
export * from './subscription-page-configs';
|
|
15
16
|
export * from './subscription-request-history';
|
|
16
17
|
export * from './subscription-settings';
|
|
17
18
|
export * from './subscription-template';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./passkeys"), exports);
|
|
|
28
28
|
__exportStar(require("./remnawave-settings"), exports);
|
|
29
29
|
__exportStar(require("./snippets"), exports);
|
|
30
30
|
__exportStar(require("./subscription"), exports);
|
|
31
|
+
__exportStar(require("./subscription-page-configs"), exports);
|
|
31
32
|
__exportStar(require("./subscription-request-history"), exports);
|
|
32
33
|
__exportStar(require("./subscription-settings"), exports);
|
|
33
34
|
__exportStar(require("./subscription-template"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-page-configs/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,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("./reorder.command"), exports);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ReorderSubscriptionPageConfigsCommand {
|
|
3
|
+
const url: "/api/subscription-page-configs/actions/reorder";
|
|
4
|
+
const TSQ_url: "/api/subscription-page-configs/actions/reorder";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
items: z.ZodArray<z.ZodObject<Pick<{
|
|
8
|
+
uuid: z.ZodString;
|
|
9
|
+
viewPosition: z.ZodNumber;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
encodedConfig: z.ZodNullable<z.ZodString>;
|
|
12
|
+
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
|
13
|
+
uuid: string;
|
|
14
|
+
viewPosition: number;
|
|
15
|
+
}, {
|
|
16
|
+
uuid: string;
|
|
17
|
+
viewPosition: number;
|
|
18
|
+
}>, "many">;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
items: {
|
|
21
|
+
uuid: string;
|
|
22
|
+
viewPosition: number;
|
|
23
|
+
}[];
|
|
24
|
+
}, {
|
|
25
|
+
items: {
|
|
26
|
+
uuid: string;
|
|
27
|
+
viewPosition: number;
|
|
28
|
+
}[];
|
|
29
|
+
}>;
|
|
30
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
31
|
+
const ResponseSchema: z.ZodObject<{
|
|
32
|
+
response: z.ZodObject<{
|
|
33
|
+
total: z.ZodNumber;
|
|
34
|
+
configs: z.ZodArray<z.ZodObject<{
|
|
35
|
+
uuid: z.ZodString;
|
|
36
|
+
viewPosition: z.ZodNumber;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
encodedConfig: z.ZodNullable<z.ZodString>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
uuid: string;
|
|
41
|
+
name: string;
|
|
42
|
+
viewPosition: number;
|
|
43
|
+
encodedConfig: string | null;
|
|
44
|
+
}, {
|
|
45
|
+
uuid: string;
|
|
46
|
+
name: string;
|
|
47
|
+
viewPosition: number;
|
|
48
|
+
encodedConfig: string | null;
|
|
49
|
+
}>, "many">;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
total: number;
|
|
52
|
+
configs: {
|
|
53
|
+
uuid: string;
|
|
54
|
+
name: string;
|
|
55
|
+
viewPosition: number;
|
|
56
|
+
encodedConfig: string | null;
|
|
57
|
+
}[];
|
|
58
|
+
}, {
|
|
59
|
+
total: number;
|
|
60
|
+
configs: {
|
|
61
|
+
uuid: string;
|
|
62
|
+
name: string;
|
|
63
|
+
viewPosition: number;
|
|
64
|
+
encodedConfig: string | null;
|
|
65
|
+
}[];
|
|
66
|
+
}>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
response: {
|
|
69
|
+
total: number;
|
|
70
|
+
configs: {
|
|
71
|
+
uuid: string;
|
|
72
|
+
name: string;
|
|
73
|
+
viewPosition: number;
|
|
74
|
+
encodedConfig: string | null;
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
response: {
|
|
79
|
+
total: number;
|
|
80
|
+
configs: {
|
|
81
|
+
uuid: string;
|
|
82
|
+
name: string;
|
|
83
|
+
viewPosition: number;
|
|
84
|
+
encodedConfig: string | null;
|
|
85
|
+
}[];
|
|
86
|
+
};
|
|
87
|
+
}>;
|
|
88
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=reorder.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscription-page-configs/actions/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qCAAqC,CAAC;IAC5C,MAAM,GAAG,kDAAqD,CAAC;IAC/D,MAAM,OAAO,kDAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReorderSubscriptionPageConfigsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const models_1 = require("../../../models");
|
|
7
|
+
const constants_1 = require("../../../constants");
|
|
8
|
+
var ReorderSubscriptionPageConfigsCommand;
|
|
9
|
+
(function (ReorderSubscriptionPageConfigsCommand) {
|
|
10
|
+
ReorderSubscriptionPageConfigsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.ACTIONS.REORDER;
|
|
11
|
+
ReorderSubscriptionPageConfigsCommand.TSQ_url = ReorderSubscriptionPageConfigsCommand.url;
|
|
12
|
+
ReorderSubscriptionPageConfigsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.REORDER, 'post', 'Reorder subscription page configs');
|
|
13
|
+
ReorderSubscriptionPageConfigsCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
items: zod_1.z.array(models_1.SubscriptionPageConfigSchema.pick({
|
|
15
|
+
viewPosition: true,
|
|
16
|
+
uuid: true,
|
|
17
|
+
})),
|
|
18
|
+
});
|
|
19
|
+
ReorderSubscriptionPageConfigsCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
response: zod_1.z.object({
|
|
21
|
+
total: zod_1.z.number(),
|
|
22
|
+
configs: zod_1.z.array(models_1.SubscriptionPageConfigSchema),
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
})(ReorderSubscriptionPageConfigsCommand || (exports.ReorderSubscriptionPageConfigsCommand = ReorderSubscriptionPageConfigsCommand = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateSubscriptionPageConfigCommand {
|
|
3
|
+
const url: "/api/subscription-page-configs/";
|
|
4
|
+
const TSQ_url: "/api/subscription-page-configs/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
name: string;
|
|
10
|
+
}, {
|
|
11
|
+
name: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
viewPosition: z.ZodNumber;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
encodedConfig: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
uuid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
viewPosition: number;
|
|
24
|
+
encodedConfig: string | null;
|
|
25
|
+
}, {
|
|
26
|
+
uuid: string;
|
|
27
|
+
name: string;
|
|
28
|
+
viewPosition: number;
|
|
29
|
+
encodedConfig: string | null;
|
|
30
|
+
}>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
response: {
|
|
33
|
+
uuid: string;
|
|
34
|
+
name: string;
|
|
35
|
+
viewPosition: number;
|
|
36
|
+
encodedConfig: string | null;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
response: {
|
|
40
|
+
uuid: string;
|
|
41
|
+
name: string;
|
|
42
|
+
viewPosition: number;
|
|
43
|
+
encodedConfig: string | null;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=create-subpage-config.command.d.ts.map
|
package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/create-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,mCAA4C,CAAC;IACtD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSubscriptionPageConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
var CreateSubscriptionPageConfigCommand;
|
|
9
|
+
(function (CreateSubscriptionPageConfigCommand) {
|
|
10
|
+
CreateSubscriptionPageConfigCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.CREATE;
|
|
11
|
+
CreateSubscriptionPageConfigCommand.TSQ_url = CreateSubscriptionPageConfigCommand.url;
|
|
12
|
+
CreateSubscriptionPageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.CREATE, 'post', 'Create subscription page config');
|
|
13
|
+
CreateSubscriptionPageConfigCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
name: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
|
17
|
+
.max(30, 'Name must be less than 30 characters')
|
|
18
|
+
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
|
+
});
|
|
20
|
+
CreateSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
response: models_1.SubscriptionPageConfigSchema,
|
|
22
|
+
});
|
|
23
|
+
})(CreateSubscriptionPageConfigCommand || (exports.CreateSubscriptionPageConfigCommand = CreateSubscriptionPageConfigCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DeleteSubscriptionPageConfigCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
isDeleted: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
isDeleted: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
isDeleted: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
isDeleted: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=delete-subpage-config.command.d.ts.map
|
package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/delete-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,mCAAmC,CAAC;IAC1C,MAAM,GAAG,0BAA4C,CAAC;IACtD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteSubscriptionPageConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DeleteSubscriptionPageConfigCommand;
|
|
8
|
+
(function (DeleteSubscriptionPageConfigCommand) {
|
|
9
|
+
DeleteSubscriptionPageConfigCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.DELETE;
|
|
10
|
+
DeleteSubscriptionPageConfigCommand.TSQ_url = DeleteSubscriptionPageConfigCommand.url(':uuid');
|
|
11
|
+
DeleteSubscriptionPageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.DELETE(':uuid'), 'delete', 'Delete subscription page config');
|
|
12
|
+
DeleteSubscriptionPageConfigCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
DeleteSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(DeleteSubscriptionPageConfigCommand || (exports.DeleteSubscriptionPageConfigCommand = DeleteSubscriptionPageConfigCommand = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSubscriptionPageConfigCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
viewPosition: z.ZodNumber;
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
encodedConfig: z.ZodNullable<z.ZodString>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
uuid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
viewPosition: number;
|
|
24
|
+
encodedConfig: string | null;
|
|
25
|
+
}, {
|
|
26
|
+
uuid: string;
|
|
27
|
+
name: string;
|
|
28
|
+
viewPosition: number;
|
|
29
|
+
encodedConfig: string | null;
|
|
30
|
+
}>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
response: {
|
|
33
|
+
uuid: string;
|
|
34
|
+
name: string;
|
|
35
|
+
viewPosition: number;
|
|
36
|
+
encodedConfig: string | null;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
response: {
|
|
40
|
+
uuid: string;
|
|
41
|
+
name: string;
|
|
42
|
+
viewPosition: number;
|
|
43
|
+
encodedConfig: string | null;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=get-subpage-config.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-subpage-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/get-subpage-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,0BAAyC,CAAC;IACnD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubscriptionPageConfigCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
var GetSubscriptionPageConfigCommand;
|
|
9
|
+
(function (GetSubscriptionPageConfigCommand) {
|
|
10
|
+
GetSubscriptionPageConfigCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.GET;
|
|
11
|
+
GetSubscriptionPageConfigCommand.TSQ_url = GetSubscriptionPageConfigCommand.url(':uuid');
|
|
12
|
+
GetSubscriptionPageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.GET(':uuid'), 'get', 'Get subscription page config by uuid');
|
|
13
|
+
GetSubscriptionPageConfigCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
});
|
|
16
|
+
GetSubscriptionPageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: models_1.SubscriptionPageConfigSchema,
|
|
18
|
+
});
|
|
19
|
+
})(GetSubscriptionPageConfigCommand || (exports.GetSubscriptionPageConfigCommand = GetSubscriptionPageConfigCommand = {}));
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSubscriptionPageConfigsCommand {
|
|
3
|
+
const url: "/api/subscription-page-configs/";
|
|
4
|
+
const TSQ_url: "/api/subscription-page-configs/";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
response: z.ZodObject<{
|
|
8
|
+
total: z.ZodNumber;
|
|
9
|
+
configs: z.ZodArray<z.ZodObject<{
|
|
10
|
+
uuid: z.ZodString;
|
|
11
|
+
viewPosition: z.ZodNumber;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
encodedConfig: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
uuid: string;
|
|
16
|
+
name: string;
|
|
17
|
+
viewPosition: number;
|
|
18
|
+
encodedConfig: string | null;
|
|
19
|
+
}, {
|
|
20
|
+
uuid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
viewPosition: number;
|
|
23
|
+
encodedConfig: string | null;
|
|
24
|
+
}>, "many">;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
total: number;
|
|
27
|
+
configs: {
|
|
28
|
+
uuid: string;
|
|
29
|
+
name: string;
|
|
30
|
+
viewPosition: number;
|
|
31
|
+
encodedConfig: string | null;
|
|
32
|
+
}[];
|
|
33
|
+
}, {
|
|
34
|
+
total: number;
|
|
35
|
+
configs: {
|
|
36
|
+
uuid: string;
|
|
37
|
+
name: string;
|
|
38
|
+
viewPosition: number;
|
|
39
|
+
encodedConfig: string | null;
|
|
40
|
+
}[];
|
|
41
|
+
}>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
response: {
|
|
44
|
+
total: number;
|
|
45
|
+
configs: {
|
|
46
|
+
uuid: string;
|
|
47
|
+
name: string;
|
|
48
|
+
viewPosition: number;
|
|
49
|
+
encodedConfig: string | null;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
response: {
|
|
54
|
+
total: number;
|
|
55
|
+
configs: {
|
|
56
|
+
uuid: string;
|
|
57
|
+
name: string;
|
|
58
|
+
viewPosition: number;
|
|
59
|
+
encodedConfig: string | null;
|
|
60
|
+
}[];
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=get-subpage-configs.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-subpage-configs.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/get-subpage-configs.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iCAAiC,CAAC;IACxC,MAAM,GAAG,mCAA6C,CAAC;IACvD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSubscriptionPageConfigsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const models_1 = require("../../models");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
var GetSubscriptionPageConfigsCommand;
|
|
9
|
+
(function (GetSubscriptionPageConfigsCommand) {
|
|
10
|
+
GetSubscriptionPageConfigsCommand.url = api_1.REST_API.SUBSCRIPTION_PAGE_CONFIGS.GET_ALL;
|
|
11
|
+
GetSubscriptionPageConfigsCommand.TSQ_url = GetSubscriptionPageConfigsCommand.url;
|
|
12
|
+
GetSubscriptionPageConfigsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.GET_ALL, 'get', 'Get all subscription page configs');
|
|
13
|
+
GetSubscriptionPageConfigsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
total: zod_1.z.number(),
|
|
16
|
+
configs: zod_1.z.array(models_1.SubscriptionPageConfigSchema),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(GetSubscriptionPageConfigsCommand || (exports.GetSubscriptionPageConfigsCommand = GetSubscriptionPageConfigsCommand = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './actions';
|
|
2
|
+
export * from './create-subpage-config.command';
|
|
3
|
+
export * from './delete-subpage-config.command';
|
|
4
|
+
export * from './get-subpage-config.command';
|
|
5
|
+
export * from './get-subpage-configs.command';
|
|
6
|
+
export * from './update-subpage-config.command';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/subscription-page-configs/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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("./actions"), exports);
|
|
18
|
+
__exportStar(require("./create-subpage-config.command"), exports);
|
|
19
|
+
__exportStar(require("./delete-subpage-config.command"), exports);
|
|
20
|
+
__exportStar(require("./get-subpage-config.command"), exports);
|
|
21
|
+
__exportStar(require("./get-subpage-configs.command"), exports);
|
|
22
|
+
__exportStar(require("./update-subpage-config.command"), exports);
|