@purpleschool/gptbot 0.20.13-stage-2 → 0.20.14-stage-2
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/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/photo-session.d.ts +2 -0
- package/build/api/controllers/http/photo-session.js +3 -1
- package/build/api/controllers/http/support-widget.d.ts +5 -0
- package/build/api/controllers/http/support-widget.js +8 -0
- package/build/api/routes.d.ts +42 -0
- package/build/api/routes.js +42 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/support-widget/get-support-widget-identity.command.d.ts +10 -0
- package/build/commands/support-widget/get-support-widget-identity.command.js +15 -0
- package/build/commands/support-widget/index.d.ts +1 -0
- package/build/commands/support-widget/index.js +17 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +1 -228
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +3 -24
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +1 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +2 -8
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +1 -146
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +2 -16
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +1 -227
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +2 -22
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +9 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +52 -84
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +9 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +52 -84
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +9 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +36 -60
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +9 -0
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +17 -60
- package/build/commands/tools/photo-session/get-photo-session-styles.command.js +9 -8
- package/build/commands/tools/photo-session/index.d.ts +1 -1
- package/build/commands/tools/photo-session/index.js +2 -1
- package/build/commands/tools/photo-session/photo-session.command.d.ts +65 -197
- package/build/commands/tools/photo-session/photo-session.command.js +15 -13
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +13 -2
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +10 -2
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +13 -1
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +9 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +13 -1
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +9 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +52 -84
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +9 -0
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +13 -1
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +9 -0
- package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.d.ts +228 -0
- package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.js +26 -0
- package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.d.ts +9 -0
- package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.js +11 -0
- package/build/commands/tools/photo-session/v2/admin/index.d.ts +4 -0
- package/build/commands/tools/photo-session/v2/admin/index.js +20 -0
- package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.d.ts +146 -0
- package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.js +19 -0
- package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.d.ts +227 -0
- package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.js +25 -0
- package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.d.ts +5 -0
- package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.js +8 -0
- package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.js +11 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.d.ts +158 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.js +14 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.d.ts +167 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.js +24 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-config.command.d.ts +107 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-config.command.js +11 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.d.ts +75 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.js +19 -0
- package/build/commands/tools/photo-session/v2/index.d.ts +14 -0
- package/build/commands/tools/photo-session/v2/index.js +30 -0
- package/build/commands/tools/photo-session/{photo-session-recovery.command.d.ts → v2/photo-session-recovery.command.d.ts} +6 -6
- package/build/commands/tools/photo-session/v2/photo-session-recovery.command.js +17 -0
- package/build/commands/tools/photo-session/v2/photo-session.command.d.ts +278 -0
- package/build/commands/tools/photo-session/v2/photo-session.command.js +33 -0
- package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.d.ts +66 -0
- package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.js +15 -0
- package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.d.ts +71 -0
- package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.js +28 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.d.ts +69 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.js +17 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.d.ts +162 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.js +17 -0
- package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.d.ts +70 -0
- package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.js +23 -0
- package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts +0 -4
- package/build/commands/ui-notification/find-ui-notifications.command.d.ts +0 -4
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +2 -2
- package/build/models/tools/photo-session/identity.schema.d.ts +2 -4
- package/build/models/tools/photo-session/identity.schema.js +16 -12
- package/build/models/tools/photo-session/index.d.ts +1 -1
- package/build/models/tools/photo-session/index.js +2 -1
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +46 -200
- package/build/models/tools/photo-session/photo-session-config.schema.js +18 -51
- package/build/models/tools/photo-session/photo-session-group.schema.d.ts +9 -176
- package/build/models/tools/photo-session/photo-session-group.schema.js +9 -2
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +9 -11
- package/build/models/tools/photo-session/photo-session-job.schema.js +14 -8
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +1 -16
- package/build/models/tools/photo-session/photo-session-model.schema.js +22 -6
- package/build/models/tools/photo-session/photo-session-public.schema.d.ts +57 -169
- package/build/models/tools/photo-session/photo-session-public.schema.js +18 -39
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +18 -201
- package/build/models/tools/photo-session/photo-session-style.schema.js +17 -40
- package/build/models/tools/photo-session/v2/identity.schema.d.ts +4 -0
- package/build/models/tools/photo-session/v2/identity.schema.js +14 -0
- package/build/models/tools/photo-session/v2/index.d.ts +7 -0
- package/build/models/tools/photo-session/v2/index.js +23 -0
- package/build/models/tools/photo-session/v2/photo-session-config.schema.d.ts +303 -0
- package/build/models/tools/photo-session/v2/photo-session-config.schema.js +63 -0
- package/build/models/tools/photo-session/v2/photo-session-group.schema.d.ts +288 -0
- package/build/models/tools/photo-session/v2/photo-session-group.schema.js +28 -0
- package/build/models/tools/photo-session/v2/photo-session-job.schema.d.ts +169 -0
- package/build/models/tools/photo-session/v2/photo-session-job.schema.js +58 -0
- package/build/models/tools/photo-session/v2/photo-session-model.schema.d.ts +128 -0
- package/build/models/tools/photo-session/v2/photo-session-model.schema.js +39 -0
- package/build/models/tools/photo-session/v2/photo-session-public.schema.d.ts +326 -0
- package/build/models/tools/photo-session/v2/photo-session-public.schema.js +87 -0
- package/build/models/tools/photo-session/v2/photo-session-style.schema.d.ts +250 -0
- package/build/models/tools/photo-session/v2/photo-session-style.schema.js +60 -0
- package/build/models/ui-notification.schema.d.ts +0 -12
- package/build/models/ui-notification.schema.js +1 -6
- package/package.json +3 -3
- package/build/commands/tools/photo-session/photo-session-recovery.command.js +0 -17
|
@@ -33,6 +33,7 @@ export * from './question';
|
|
|
33
33
|
export * from './stt';
|
|
34
34
|
export * from './subscription';
|
|
35
35
|
export * from './support-feedback';
|
|
36
|
+
export * from './support-widget';
|
|
36
37
|
export * from './task';
|
|
37
38
|
export * from './telegram-auth';
|
|
38
39
|
export * from './telegram-connect';
|
|
@@ -49,6 +49,7 @@ __exportStar(require("./question"), exports);
|
|
|
49
49
|
__exportStar(require("./stt"), exports);
|
|
50
50
|
__exportStar(require("./subscription"), exports);
|
|
51
51
|
__exportStar(require("./support-feedback"), exports);
|
|
52
|
+
__exportStar(require("./support-widget"), exports);
|
|
52
53
|
__exportStar(require("./task"), exports);
|
|
53
54
|
__exportStar(require("./telegram-auth"), exports);
|
|
54
55
|
__exportStar(require("./telegram-connect"), exports);
|
|
@@ -20,3 +20,5 @@ export declare const PHOTO_SESSION_ROUTES: {
|
|
|
20
20
|
readonly STYLE: (uuid: string) => string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
+
export declare const PHOTO_SESSION_CONTROLLER_V2_PRIVATE: "private/tools/photo-session/v2";
|
|
24
|
+
export declare const PHOTO_SESSION_CONTROLLER_V2_PUBLIC: "public/tools/photo-session/v2";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PHOTO_SESSION_ROUTES = exports.PHOTO_SESSION_CONTROLLER_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_PRIVATE = void 0;
|
|
3
|
+
exports.PHOTO_SESSION_CONTROLLER_V2_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_V2_PRIVATE = exports.PHOTO_SESSION_ROUTES = exports.PHOTO_SESSION_CONTROLLER_PUBLIC = exports.PHOTO_SESSION_CONTROLLER_PRIVATE = void 0;
|
|
4
4
|
exports.PHOTO_SESSION_CONTROLLER_PRIVATE = 'private/tools/photo-session';
|
|
5
5
|
exports.PHOTO_SESSION_CONTROLLER_PUBLIC = 'public/tools/photo-session';
|
|
6
6
|
exports.PHOTO_SESSION_ROUTES = {
|
|
@@ -23,3 +23,5 @@ exports.PHOTO_SESSION_ROUTES = {
|
|
|
23
23
|
STYLE: (uuid) => `admin/styles/${uuid}`,
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
|
+
exports.PHOTO_SESSION_CONTROLLER_V2_PRIVATE = `${exports.PHOTO_SESSION_CONTROLLER_PRIVATE}/v2`;
|
|
27
|
+
exports.PHOTO_SESSION_CONTROLLER_V2_PUBLIC = `${exports.PHOTO_SESSION_CONTROLLER_PUBLIC}/v2`;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUPPORT_WIDGET_ROUTES = exports.SUPPORT_WIDGET_CONTROLLER_PUBLIC = exports.SUPPORT_WIDGET_CONTROLLER_PRIVATE = void 0;
|
|
4
|
+
exports.SUPPORT_WIDGET_CONTROLLER_PRIVATE = 'private/support-widget';
|
|
5
|
+
exports.SUPPORT_WIDGET_CONTROLLER_PUBLIC = 'public/support-widget';
|
|
6
|
+
exports.SUPPORT_WIDGET_ROUTES = {
|
|
7
|
+
IDENTITY: 'identity',
|
|
8
|
+
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -485,6 +485,12 @@ export declare const REST_API: {
|
|
|
485
485
|
readonly CREATE: "/api/public/support-feedback/";
|
|
486
486
|
readonly CHECK: "/api/public/support-feedback/check";
|
|
487
487
|
};
|
|
488
|
+
readonly SUPPORT_WIDGET_PRIVATE: {
|
|
489
|
+
readonly IDENTITY: "/api/private/support-widget/identity";
|
|
490
|
+
};
|
|
491
|
+
readonly SUPPORT_WIDGET_PUBLIC: {
|
|
492
|
+
readonly IDENTITY: "/api/public/support-widget/identity";
|
|
493
|
+
};
|
|
488
494
|
readonly DAILY_STREAK_PRIVATE: {
|
|
489
495
|
readonly GET: "/api/private/daily-streak/";
|
|
490
496
|
readonly COLLECT: "/api/private/daily-streak/collect";
|
|
@@ -1233,6 +1239,42 @@ export declare const REST_API: {
|
|
|
1233
1239
|
readonly DELETE_ALL: "/api/public/tools/diagrams/jobs";
|
|
1234
1240
|
readonly RETRY: (uuid: string) => string;
|
|
1235
1241
|
};
|
|
1242
|
+
readonly PHOTO_SESSION_V2_PUBLIC: {
|
|
1243
|
+
readonly RECOVERY_QUOTE: (uuid: string) => string;
|
|
1244
|
+
readonly RETRY_PREPARATION: (uuid: string) => string;
|
|
1245
|
+
readonly CONFIG: "/api/public/tools/photo-session/v2/config";
|
|
1246
|
+
readonly STYLES: "/api/public/tools/photo-session/v2/styles";
|
|
1247
|
+
readonly EXECUTE: "/api/public/tools/photo-session/v2/execute";
|
|
1248
|
+
readonly GET_JOBS: "/api/public/tools/photo-session/v2/jobs";
|
|
1249
|
+
readonly GET_JOB: (uuid: string) => string;
|
|
1250
|
+
readonly UPDATE: (uuid: string) => string;
|
|
1251
|
+
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
1252
|
+
readonly SET_REACTION: (uuid: string) => string;
|
|
1253
|
+
readonly UPDATE_PUBLISHED: (uuid: string) => string;
|
|
1254
|
+
readonly DELETE: (uuid: string) => string;
|
|
1255
|
+
readonly DELETE_ALL: "/api/public/tools/photo-session/v2/jobs";
|
|
1256
|
+
readonly RETRY: (uuid: string) => string;
|
|
1257
|
+
};
|
|
1258
|
+
readonly PHOTO_SESSION_V2_PRIVATE: {
|
|
1259
|
+
readonly RECOVERY_QUOTE: (uuid: string) => string;
|
|
1260
|
+
readonly RETRY_PREPARATION: (uuid: string) => string;
|
|
1261
|
+
readonly CONFIG: "/api/private/tools/photo-session/v2/config";
|
|
1262
|
+
readonly STYLES: "/api/private/tools/photo-session/v2/styles";
|
|
1263
|
+
readonly EXECUTE: "/api/private/tools/photo-session/v2/execute";
|
|
1264
|
+
readonly GET_JOBS: "/api/private/tools/photo-session/v2/jobs";
|
|
1265
|
+
readonly GET_JOB: (uuid: string) => string;
|
|
1266
|
+
readonly UPDATE: (uuid: string) => string;
|
|
1267
|
+
readonly UPDATE_FAVORITE: (uuid: string) => string;
|
|
1268
|
+
readonly SET_REACTION: (uuid: string) => string;
|
|
1269
|
+
readonly UPDATE_PUBLISHED: (uuid: string) => string;
|
|
1270
|
+
readonly DELETE: (uuid: string) => string;
|
|
1271
|
+
readonly DELETE_ALL: "/api/private/tools/photo-session/v2/jobs";
|
|
1272
|
+
readonly RETRY: (uuid: string) => string;
|
|
1273
|
+
readonly ADMIN: {
|
|
1274
|
+
readonly STYLES: "/api/private/tools/photo-session/admin/styles";
|
|
1275
|
+
readonly STYLE: (uuid: string) => string;
|
|
1276
|
+
};
|
|
1277
|
+
};
|
|
1236
1278
|
readonly PHOTO_SESSION_PUBLIC: {
|
|
1237
1279
|
readonly RECOVERY_QUOTE: (uuid: string) => string;
|
|
1238
1280
|
readonly RETRY_PREPARATION: (uuid: string) => string;
|
package/build/api/routes.js
CHANGED
|
@@ -524,6 +524,12 @@ exports.REST_API = {
|
|
|
524
524
|
CREATE: `${exports.ROOT}/${CONTROLLERS.SUPPORT_FEEDBACK_CONTROLLER_PUBLIC}/${CONTROLLERS.SUPPORT_FEEDBACK_ROUTES.CREATE}`,
|
|
525
525
|
CHECK: `${exports.ROOT}/${CONTROLLERS.SUPPORT_FEEDBACK_CONTROLLER_PUBLIC}/${CONTROLLERS.SUPPORT_FEEDBACK_ROUTES.CHECK}`,
|
|
526
526
|
},
|
|
527
|
+
SUPPORT_WIDGET_PRIVATE: {
|
|
528
|
+
IDENTITY: `${exports.ROOT}/${CONTROLLERS.SUPPORT_WIDGET_CONTROLLER_PRIVATE}/${CONTROLLERS.SUPPORT_WIDGET_ROUTES.IDENTITY}`,
|
|
529
|
+
},
|
|
530
|
+
SUPPORT_WIDGET_PUBLIC: {
|
|
531
|
+
IDENTITY: `${exports.ROOT}/${CONTROLLERS.SUPPORT_WIDGET_CONTROLLER_PUBLIC}/${CONTROLLERS.SUPPORT_WIDGET_ROUTES.IDENTITY}`,
|
|
532
|
+
},
|
|
527
533
|
DAILY_STREAK_PRIVATE: {
|
|
528
534
|
GET: `${exports.ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.GET}`,
|
|
529
535
|
COLLECT: `${exports.ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.COLLECT}`,
|
|
@@ -1272,6 +1278,42 @@ exports.REST_API = {
|
|
|
1272
1278
|
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.DIAGRAMS_CONTROLLER_PUBLIC}/${CONTROLLERS.DIAGRAMS_ROUTES.DELETE_ALL}`,
|
|
1273
1279
|
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.DIAGRAMS_CONTROLLER_PUBLIC}/${CONTROLLERS.DIAGRAMS_ROUTES.RETRY(uuid)}`,
|
|
1274
1280
|
},
|
|
1281
|
+
PHOTO_SESSION_V2_PUBLIC: {
|
|
1282
|
+
RECOVERY_QUOTE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RECOVERY_QUOTE(uuid)}`,
|
|
1283
|
+
RETRY_PREPARATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RETRY_PREPARATION(uuid)}`,
|
|
1284
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.CONFIG}`,
|
|
1285
|
+
STYLES: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.STYLES}`,
|
|
1286
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.EXECUTE}`,
|
|
1287
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.GET_JOBS}`,
|
|
1288
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.GET_JOB(uuid)}`,
|
|
1289
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE(uuid)}`,
|
|
1290
|
+
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
1291
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.SET_REACTION(uuid)}`,
|
|
1292
|
+
UPDATE_PUBLISHED: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE_PUBLISHED(uuid)}`,
|
|
1293
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.DELETE(uuid)}`,
|
|
1294
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.DELETE_ALL}`,
|
|
1295
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RETRY(uuid)}`,
|
|
1296
|
+
},
|
|
1297
|
+
PHOTO_SESSION_V2_PRIVATE: {
|
|
1298
|
+
RECOVERY_QUOTE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RECOVERY_QUOTE(uuid)}`,
|
|
1299
|
+
RETRY_PREPARATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RETRY_PREPARATION(uuid)}`,
|
|
1300
|
+
CONFIG: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.CONFIG}`,
|
|
1301
|
+
STYLES: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.STYLES}`,
|
|
1302
|
+
EXECUTE: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.EXECUTE}`,
|
|
1303
|
+
GET_JOBS: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.GET_JOBS}`,
|
|
1304
|
+
GET_JOB: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.GET_JOB(uuid)}`,
|
|
1305
|
+
UPDATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE(uuid)}`,
|
|
1306
|
+
UPDATE_FAVORITE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE_FAVORITE(uuid)}`,
|
|
1307
|
+
SET_REACTION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.SET_REACTION(uuid)}`,
|
|
1308
|
+
UPDATE_PUBLISHED: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.UPDATE_PUBLISHED(uuid)}`,
|
|
1309
|
+
DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.DELETE(uuid)}`,
|
|
1310
|
+
DELETE_ALL: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.DELETE_ALL}`,
|
|
1311
|
+
RETRY: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_V2_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RETRY(uuid)}`,
|
|
1312
|
+
ADMIN: {
|
|
1313
|
+
STYLES: `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.ADMIN.STYLES}`,
|
|
1314
|
+
STYLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_PRIVATE}/${CONTROLLERS.PHOTO_SESSION_ROUTES.ADMIN.STYLE(uuid)}`,
|
|
1315
|
+
},
|
|
1316
|
+
},
|
|
1275
1317
|
PHOTO_SESSION_PUBLIC: {
|
|
1276
1318
|
RECOVERY_QUOTE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RECOVERY_QUOTE(uuid)}`,
|
|
1277
1319
|
RETRY_PREPARATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PHOTO_SESSION_CONTROLLER_PUBLIC}/${CONTROLLERS.PHOTO_SESSION_ROUTES.RETRY_PREPARATION(uuid)}`,
|
|
@@ -30,6 +30,7 @@ export * from './question';
|
|
|
30
30
|
export * from './referral';
|
|
31
31
|
export * from './subscription';
|
|
32
32
|
export * from './support-feedback';
|
|
33
|
+
export * from './support-widget';
|
|
33
34
|
export * from './task';
|
|
34
35
|
export * from './telegram';
|
|
35
36
|
export * from './telegram-auth';
|
package/build/commands/index.js
CHANGED
|
@@ -46,6 +46,7 @@ __exportStar(require("./question"), exports);
|
|
|
46
46
|
__exportStar(require("./referral"), exports);
|
|
47
47
|
__exportStar(require("./subscription"), exports);
|
|
48
48
|
__exportStar(require("./support-feedback"), exports);
|
|
49
|
+
__exportStar(require("./support-widget"), exports);
|
|
49
50
|
__exportStar(require("./task"), exports);
|
|
50
51
|
__exportStar(require("./telegram"), exports);
|
|
51
52
|
__exportStar(require("./telegram-auth"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetSupportWidgetIdentityCommand {
|
|
3
|
+
const ResponseSchema: z.ZodObject<{
|
|
4
|
+
data: z.ZodObject<{
|
|
5
|
+
externalId: z.ZodString;
|
|
6
|
+
externalIdSignature: z.ZodNullable<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSupportWidgetIdentityCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// externalId текущего пользователя для виджета поддержки и его подпись
|
|
6
|
+
// hex(HMAC-SHA256(secret, "<agentId>:<externalId>")). Подпись null, если ключ не настроен.
|
|
7
|
+
var GetSupportWidgetIdentityCommand;
|
|
8
|
+
(function (GetSupportWidgetIdentityCommand) {
|
|
9
|
+
GetSupportWidgetIdentityCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
data: zod_1.z.object({
|
|
11
|
+
externalId: zod_1.z.string(),
|
|
12
|
+
externalIdSignature: zod_1.z.string().nullable(),
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
15
|
+
})(GetSupportWidgetIdentityCommand || (exports.GetSupportWidgetIdentityCommand = GetSupportWidgetIdentityCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './get-support-widget-identity.command';
|
|
@@ -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("./get-support-widget-identity.command"), exports);
|
|
@@ -1,228 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
3
|
-
export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
4
|
-
photoUrl: z.ZodString;
|
|
5
|
-
systemPrompt: z.ZodString;
|
|
6
|
-
order: z.ZodNumber;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare namespace CreatePhotoSessionStyleCommand {
|
|
9
|
-
const RequestSchema: z.ZodObject<{
|
|
10
|
-
locale: z.ZodLiteral<LOCALE.RU>;
|
|
11
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
preparationStatus: z.ZodEnum<{
|
|
13
|
-
draft: "draft";
|
|
14
|
-
failed: "failed";
|
|
15
|
-
preparing: "preparing";
|
|
16
|
-
ready: "ready";
|
|
17
|
-
}>;
|
|
18
|
-
composition: z.ZodEnum<{
|
|
19
|
-
family: "family";
|
|
20
|
-
female: "female";
|
|
21
|
-
male: "male";
|
|
22
|
-
pair: "pair";
|
|
23
|
-
}>;
|
|
24
|
-
setting: z.ZodEnum<{
|
|
25
|
-
city: "city";
|
|
26
|
-
holiday: "holiday";
|
|
27
|
-
home: "home";
|
|
28
|
-
nature: "nature";
|
|
29
|
-
studio: "studio";
|
|
30
|
-
wedding: "wedding";
|
|
31
|
-
}>;
|
|
32
|
-
aspectRatio: z.ZodString;
|
|
33
|
-
global: z.ZodObject<{
|
|
34
|
-
location: z.ZodString;
|
|
35
|
-
light: z.ZodString;
|
|
36
|
-
color: z.ZodString;
|
|
37
|
-
camera: z.ZodString;
|
|
38
|
-
mood: z.ZodString;
|
|
39
|
-
}, z.core.$strict>;
|
|
40
|
-
participants: z.ZodArray<z.ZodObject<{
|
|
41
|
-
participantId: z.ZodUUID;
|
|
42
|
-
order: z.ZodNumber;
|
|
43
|
-
displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
|
|
44
|
-
gender: z.ZodEnum<{
|
|
45
|
-
female: "female";
|
|
46
|
-
male: "male";
|
|
47
|
-
}>;
|
|
48
|
-
wardrobeDescription: z.ZodString;
|
|
49
|
-
baseOutfit: z.ZodNullable<z.ZodObject<{
|
|
50
|
-
assetId: z.ZodUUID;
|
|
51
|
-
url: z.ZodURL;
|
|
52
|
-
}, z.core.$strict>>;
|
|
53
|
-
outfitSourceShotId: z.ZodNullable<z.ZodUUID>;
|
|
54
|
-
outfitSourcePerson: z.ZodNullable<z.ZodString>;
|
|
55
|
-
}, z.core.$strict>>;
|
|
56
|
-
shots: z.ZodArray<z.ZodObject<{
|
|
57
|
-
shotId: z.ZodUUID;
|
|
58
|
-
order: z.ZodNumber;
|
|
59
|
-
title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
|
|
60
|
-
preview: z.ZodObject<{
|
|
61
|
-
assetId: z.ZodUUID;
|
|
62
|
-
url: z.ZodURL;
|
|
63
|
-
}, z.core.$strict>;
|
|
64
|
-
aspectRatio: z.ZodString;
|
|
65
|
-
framing: z.ZodString;
|
|
66
|
-
props: z.ZodString;
|
|
67
|
-
emptyPlate: z.ZodNullable<z.ZodObject<{
|
|
68
|
-
assetId: z.ZodUUID;
|
|
69
|
-
url: z.ZodURL;
|
|
70
|
-
}, z.core.$strict>>;
|
|
71
|
-
participants: z.ZodArray<z.ZodObject<{
|
|
72
|
-
participantId: z.ZodUUID;
|
|
73
|
-
pose: z.ZodString;
|
|
74
|
-
expression: z.ZodString;
|
|
75
|
-
gaze: z.ZodString;
|
|
76
|
-
headPose: z.ZodString;
|
|
77
|
-
headTurn: z.ZodOptional<z.ZodEnum<{
|
|
78
|
-
"frontal, facing the camera": "frontal, facing the camera";
|
|
79
|
-
"head lowered, looking down": "head lowered, looking down";
|
|
80
|
-
"head tilted to one side": "head tilted to one side";
|
|
81
|
-
"looking back over the shoulder": "looking back over the shoulder";
|
|
82
|
-
profile: "profile";
|
|
83
|
-
"three-quarter turned to the left": "three-quarter turned to the left";
|
|
84
|
-
"three-quarter turned to the right": "three-quarter turned to the right";
|
|
85
|
-
}>>;
|
|
86
|
-
faceVisible: z.ZodBoolean;
|
|
87
|
-
photoRequirements: z.ZodOptional<z.ZodObject<{
|
|
88
|
-
front: z.ZodNumber;
|
|
89
|
-
turn: z.ZodNumber;
|
|
90
|
-
full: z.ZodNumber;
|
|
91
|
-
}, z.core.$strict>>;
|
|
92
|
-
primaryPhotoRole: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
front: "front";
|
|
94
|
-
full: "full";
|
|
95
|
-
turn: "turn";
|
|
96
|
-
}>>;
|
|
97
|
-
silhouette: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
98
|
-
assetId: z.ZodUUID;
|
|
99
|
-
url: z.ZodURL;
|
|
100
|
-
}, z.core.$strict>>>;
|
|
101
|
-
}, z.core.$strict>>;
|
|
102
|
-
}, z.core.$strict>>;
|
|
103
|
-
}, z.core.$strict>>;
|
|
104
|
-
code: z.ZodString;
|
|
105
|
-
title: z.ZodString;
|
|
106
|
-
description: z.ZodOptional<z.ZodString>;
|
|
107
|
-
references: z.ZodArray<z.ZodObject<{
|
|
108
|
-
photoUrl: z.ZodString;
|
|
109
|
-
systemPrompt: z.ZodString;
|
|
110
|
-
order: z.ZodNumber;
|
|
111
|
-
}, z.core.$strip>>;
|
|
112
|
-
}, z.core.$strict>;
|
|
113
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
114
|
-
const ResponseSchema: z.ZodObject<{
|
|
115
|
-
data: z.ZodObject<{
|
|
116
|
-
uuid: z.ZodUUID;
|
|
117
|
-
title: z.ZodString;
|
|
118
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
-
code: z.ZodString;
|
|
120
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
121
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
122
|
-
identity: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
preparationStatus: z.ZodEnum<{
|
|
124
|
-
draft: "draft";
|
|
125
|
-
failed: "failed";
|
|
126
|
-
preparing: "preparing";
|
|
127
|
-
ready: "ready";
|
|
128
|
-
}>;
|
|
129
|
-
composition: z.ZodEnum<{
|
|
130
|
-
family: "family";
|
|
131
|
-
female: "female";
|
|
132
|
-
male: "male";
|
|
133
|
-
pair: "pair";
|
|
134
|
-
}>;
|
|
135
|
-
setting: z.ZodEnum<{
|
|
136
|
-
city: "city";
|
|
137
|
-
holiday: "holiday";
|
|
138
|
-
home: "home";
|
|
139
|
-
nature: "nature";
|
|
140
|
-
studio: "studio";
|
|
141
|
-
wedding: "wedding";
|
|
142
|
-
}>;
|
|
143
|
-
aspectRatio: z.ZodString;
|
|
144
|
-
global: z.ZodObject<{
|
|
145
|
-
location: z.ZodString;
|
|
146
|
-
light: z.ZodString;
|
|
147
|
-
color: z.ZodString;
|
|
148
|
-
camera: z.ZodString;
|
|
149
|
-
mood: z.ZodString;
|
|
150
|
-
}, z.core.$strict>;
|
|
151
|
-
participants: z.ZodArray<z.ZodObject<{
|
|
152
|
-
participantId: z.ZodUUID;
|
|
153
|
-
order: z.ZodNumber;
|
|
154
|
-
displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
|
|
155
|
-
gender: z.ZodEnum<{
|
|
156
|
-
female: "female";
|
|
157
|
-
male: "male";
|
|
158
|
-
}>;
|
|
159
|
-
wardrobeDescription: z.ZodString;
|
|
160
|
-
baseOutfit: z.ZodNullable<z.ZodObject<{
|
|
161
|
-
assetId: z.ZodUUID;
|
|
162
|
-
url: z.ZodURL;
|
|
163
|
-
}, z.core.$strict>>;
|
|
164
|
-
outfitSourceShotId: z.ZodNullable<z.ZodUUID>;
|
|
165
|
-
outfitSourcePerson: z.ZodNullable<z.ZodString>;
|
|
166
|
-
}, z.core.$strict>>;
|
|
167
|
-
shots: z.ZodArray<z.ZodObject<{
|
|
168
|
-
shotId: z.ZodUUID;
|
|
169
|
-
order: z.ZodNumber;
|
|
170
|
-
title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
|
|
171
|
-
preview: z.ZodObject<{
|
|
172
|
-
assetId: z.ZodUUID;
|
|
173
|
-
url: z.ZodURL;
|
|
174
|
-
}, z.core.$strict>;
|
|
175
|
-
aspectRatio: z.ZodString;
|
|
176
|
-
framing: z.ZodString;
|
|
177
|
-
props: z.ZodString;
|
|
178
|
-
emptyPlate: z.ZodNullable<z.ZodObject<{
|
|
179
|
-
assetId: z.ZodUUID;
|
|
180
|
-
url: z.ZodURL;
|
|
181
|
-
}, z.core.$strict>>;
|
|
182
|
-
participants: z.ZodArray<z.ZodObject<{
|
|
183
|
-
participantId: z.ZodUUID;
|
|
184
|
-
pose: z.ZodString;
|
|
185
|
-
expression: z.ZodString;
|
|
186
|
-
gaze: z.ZodString;
|
|
187
|
-
headPose: z.ZodString;
|
|
188
|
-
headTurn: z.ZodOptional<z.ZodEnum<{
|
|
189
|
-
"frontal, facing the camera": "frontal, facing the camera";
|
|
190
|
-
"head lowered, looking down": "head lowered, looking down";
|
|
191
|
-
"head tilted to one side": "head tilted to one side";
|
|
192
|
-
"looking back over the shoulder": "looking back over the shoulder";
|
|
193
|
-
profile: "profile";
|
|
194
|
-
"three-quarter turned to the left": "three-quarter turned to the left";
|
|
195
|
-
"three-quarter turned to the right": "three-quarter turned to the right";
|
|
196
|
-
}>>;
|
|
197
|
-
faceVisible: z.ZodBoolean;
|
|
198
|
-
photoRequirements: z.ZodOptional<z.ZodObject<{
|
|
199
|
-
front: z.ZodNumber;
|
|
200
|
-
turn: z.ZodNumber;
|
|
201
|
-
full: z.ZodNumber;
|
|
202
|
-
}, z.core.$strict>>;
|
|
203
|
-
primaryPhotoRole: z.ZodOptional<z.ZodEnum<{
|
|
204
|
-
front: "front";
|
|
205
|
-
full: "full";
|
|
206
|
-
turn: "turn";
|
|
207
|
-
}>>;
|
|
208
|
-
silhouette: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
209
|
-
assetId: z.ZodUUID;
|
|
210
|
-
url: z.ZodURL;
|
|
211
|
-
}, z.core.$strict>>>;
|
|
212
|
-
}, z.core.$strict>>;
|
|
213
|
-
}, z.core.$strict>>;
|
|
214
|
-
}, z.core.$strict>>;
|
|
215
|
-
references: z.ZodArray<z.ZodObject<{
|
|
216
|
-
uuid: z.ZodUUID;
|
|
217
|
-
photoUrl: z.ZodString;
|
|
218
|
-
thumbnailUrl: z.ZodString;
|
|
219
|
-
order: z.ZodNumber;
|
|
220
|
-
styleId: z.ZodUUID;
|
|
221
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
222
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
223
|
-
systemPrompt: z.ZodString;
|
|
224
|
-
}, z.core.$strip>>;
|
|
225
|
-
}, z.core.$strip>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
228
|
-
}
|
|
1
|
+
export { CreatePhotoSessionV2StyleCommand as CreatePhotoSessionStyleCommand } from '../v2/admin/create-photo-session-style.command';
|
|
@@ -1,26 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePhotoSessionStyleCommand =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
-
const models_1 = require("../../../../models");
|
|
8
|
-
exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
9
|
-
photoUrl: zod_1.z.string(),
|
|
10
|
-
systemPrompt: zod_1.z.string().trim().min(1).max(10000),
|
|
11
|
-
order: zod_1.z.number().int().min(0).max(5),
|
|
12
|
-
});
|
|
13
|
-
var CreatePhotoSessionStyleCommand;
|
|
14
|
-
(function (CreatePhotoSessionStyleCommand) {
|
|
15
|
-
CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.strictObject({
|
|
16
|
-
locale: zod_1.z.literal(rugpt_lib_common_1.LOCALE.RU),
|
|
17
|
-
identity: identity_schema_1.PhotoSessionCatalogSchema.optional(),
|
|
18
|
-
code: zod_1.z.string(),
|
|
19
|
-
title: zod_1.z.string(),
|
|
20
|
-
description: zod_1.z.string().optional(),
|
|
21
|
-
references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
|
|
22
|
-
});
|
|
23
|
-
CreatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
data: models_1.AdminPhotoSessionStyleSchema,
|
|
25
|
-
});
|
|
26
|
-
})(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
|
|
3
|
+
exports.CreatePhotoSessionStyleCommand = void 0;
|
|
4
|
+
var create_photo_session_style_command_1 = require("../v2/admin/create-photo-session-style.command");
|
|
5
|
+
Object.defineProperty(exports, "CreatePhotoSessionStyleCommand", { enumerable: true, get: function () { return create_photo_session_style_command_1.CreatePhotoSessionV2StyleCommand; } });
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare namespace DeletePhotoSessionStyleCommand {
|
|
3
|
-
const RequestParamsSchema: z.ZodObject<{
|
|
4
|
-
uuid: z.ZodUUID;
|
|
5
|
-
}, z.core.$strip>;
|
|
6
|
-
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
|
-
const ResponseSchema: z.ZodVoid;
|
|
8
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
9
|
-
}
|
|
1
|
+
export { DeletePhotoSessionV2StyleCommand as DeletePhotoSessionStyleCommand } from '../v2/admin/delete-photo-session-style.command';
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeletePhotoSessionStyleCommand = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(function (DeletePhotoSessionStyleCommand) {
|
|
7
|
-
DeletePhotoSessionStyleCommand.RequestParamsSchema = zod_1.z.object({
|
|
8
|
-
uuid: zod_1.z.uuid(),
|
|
9
|
-
});
|
|
10
|
-
DeletePhotoSessionStyleCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
-
})(DeletePhotoSessionStyleCommand || (exports.DeletePhotoSessionStyleCommand = DeletePhotoSessionStyleCommand = {}));
|
|
4
|
+
var delete_photo_session_style_command_1 = require("../v2/admin/delete-photo-session-style.command");
|
|
5
|
+
Object.defineProperty(exports, "DeletePhotoSessionStyleCommand", { enumerable: true, get: function () { return delete_photo_session_style_command_1.DeletePhotoSessionV2StyleCommand; } });
|