@purpleschool/gptbot 0.17.1-stage-2 → 0.18.0-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.
Files changed (89) hide show
  1. package/build/api/controllers/http/index.d.ts +0 -3
  2. package/build/api/controllers/http/index.js +0 -3
  3. package/build/api/routes.d.ts +0 -42
  4. package/build/api/routes.js +0 -42
  5. package/build/commands/index.d.ts +0 -3
  6. package/build/commands/index.js +0 -3
  7. package/build/models/index.d.ts +0 -6
  8. package/build/models/index.js +0 -6
  9. package/package.json +1 -1
  10. package/build/api/controllers/http/prompt-category.d.ts +0 -13
  11. package/build/api/controllers/http/prompt-category.js +0 -16
  12. package/build/api/controllers/http/prompt-topic.d.ts +0 -15
  13. package/build/api/controllers/http/prompt-topic.js +0 -18
  14. package/build/api/controllers/http/prompt.d.ts +0 -14
  15. package/build/api/controllers/http/prompt.js +0 -17
  16. package/build/commands/prompt/create-prompt-translation.command.d.ts +0 -25
  17. package/build/commands/prompt/create-prompt-translation.command.js +0 -19
  18. package/build/commands/prompt/create-prompt.command.d.ts +0 -18
  19. package/build/commands/prompt/create-prompt.command.js +0 -17
  20. package/build/commands/prompt/delete-prompt.command.d.ts +0 -13
  21. package/build/commands/prompt/delete-prompt.command.js +0 -18
  22. package/build/commands/prompt/find-all-prompts.command.d.ts +0 -15
  23. package/build/commands/prompt/find-all-prompts.command.js +0 -11
  24. package/build/commands/prompt/find-prompt-by-uuid.command.d.ts +0 -18
  25. package/build/commands/prompt/find-prompt-by-uuid.command.js +0 -14
  26. package/build/commands/prompt/find-prompts-by-topic.command.d.ts +0 -19
  27. package/build/commands/prompt/find-prompts-by-topic.command.js +0 -18
  28. package/build/commands/prompt/get-all-prompt-translations.query.d.ts +0 -19
  29. package/build/commands/prompt/get-all-prompt-translations.query.js +0 -14
  30. package/build/commands/prompt/index.d.ts +0 -9
  31. package/build/commands/prompt/index.js +0 -25
  32. package/build/commands/prompt/update-prompt-translation.command.d.ts +0 -25
  33. package/build/commands/prompt/update-prompt-translation.command.js +0 -19
  34. package/build/commands/prompt/update-prompt.command.d.ts +0 -22
  35. package/build/commands/prompt/update-prompt.command.js +0 -24
  36. package/build/commands/prompt-category/create-prompt-category-translation.command.d.ts +0 -27
  37. package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -20
  38. package/build/commands/prompt-category/create-prompt-category.command.d.ts +0 -21
  39. package/build/commands/prompt-category/create-prompt-category.command.js +0 -18
  40. package/build/commands/prompt-category/delete-prompt-category.command.d.ts +0 -13
  41. package/build/commands/prompt-category/delete-prompt-category.command.js +0 -18
  42. package/build/commands/prompt-category/find-all-prompt-categories.command.d.ts +0 -17
  43. package/build/commands/prompt-category/find-all-prompt-categories.command.js +0 -11
  44. package/build/commands/prompt-category/find-prompt-category-by-alias.command.d.ts +0 -20
  45. package/build/commands/prompt-category/find-prompt-category-by-alias.command.js +0 -14
  46. package/build/commands/prompt-category/find-prompt-category-by-uuid.command.d.ts +0 -20
  47. package/build/commands/prompt-category/find-prompt-category-by-uuid.command.js +0 -14
  48. package/build/commands/prompt-category/get-all-prompt-category-translations.query.d.ts +0 -20
  49. package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +0 -14
  50. package/build/commands/prompt-category/index.d.ts +0 -9
  51. package/build/commands/prompt-category/index.js +0 -25
  52. package/build/commands/prompt-category/update-prompt-category-translation.command.d.ts +0 -27
  53. package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -20
  54. package/build/commands/prompt-category/update-prompt-category.command.d.ts +0 -25
  55. package/build/commands/prompt-category/update-prompt-category.command.js +0 -25
  56. package/build/commands/prompt-topic/create-prompt-topic-translation.command.d.ts +0 -31
  57. package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -22
  58. package/build/commands/prompt-topic/create-prompt-topic.command.d.ts +0 -24
  59. package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -18
  60. package/build/commands/prompt-topic/delete-prompt-topic.command.d.ts +0 -13
  61. package/build/commands/prompt-topic/delete-prompt-topic.command.js +0 -18
  62. package/build/commands/prompt-topic/find-all-prompt-topics.command.d.ts +0 -20
  63. package/build/commands/prompt-topic/find-all-prompt-topics.command.js +0 -11
  64. package/build/commands/prompt-topic/find-prompt-topic-by-alias.command.d.ts +0 -23
  65. package/build/commands/prompt-topic/find-prompt-topic-by-alias.command.js +0 -14
  66. package/build/commands/prompt-topic/find-prompt-topic-by-category.command.d.ts +0 -39
  67. package/build/commands/prompt-topic/find-prompt-topic-by-category.command.js +0 -24
  68. package/build/commands/prompt-topic/find-prompt-topic-by-uuid.command.d.ts +0 -23
  69. package/build/commands/prompt-topic/find-prompt-topic-by-uuid.command.js +0 -14
  70. package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.d.ts +0 -22
  71. package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +0 -14
  72. package/build/commands/prompt-topic/index.d.ts +0 -10
  73. package/build/commands/prompt-topic/index.js +0 -26
  74. package/build/commands/prompt-topic/update-prompt-topic-translation.command.d.ts +0 -31
  75. package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -22
  76. package/build/commands/prompt-topic/update-prompt-topic.command.d.ts +0 -29
  77. package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -27
  78. package/build/models/prompt-category-translation.schema.d.ts +0 -12
  79. package/build/models/prompt-category-translation.schema.js +0 -18
  80. package/build/models/prompt-category.schema.d.ts +0 -42
  81. package/build/models/prompt-category.schema.js +0 -21
  82. package/build/models/prompt-topic-translation.schema.d.ts +0 -14
  83. package/build/models/prompt-topic-translation.schema.js +0 -20
  84. package/build/models/prompt-topic.schema.d.ts +0 -35
  85. package/build/models/prompt-topic.schema.js +0 -24
  86. package/build/models/prompt-translation.schema.d.ts +0 -11
  87. package/build/models/prompt-translation.schema.js +0 -14
  88. package/build/models/prompt.schema.d.ts +0 -9
  89. package/build/models/prompt.schema.js +0 -12
@@ -48,9 +48,6 @@ export * from './user';
48
48
  export * from './promocode';
49
49
  export * from './ui-notification';
50
50
  export * from './review';
51
- export * from './prompt-category';
52
- export * from './prompt-topic';
53
- export * from './prompt';
54
51
  export * from './user-private';
55
52
  export * from './folder';
56
53
  export * from './user-to-product';
@@ -64,9 +64,6 @@ __exportStar(require("./user"), exports);
64
64
  __exportStar(require("./promocode"), exports);
65
65
  __exportStar(require("./ui-notification"), exports);
66
66
  __exportStar(require("./review"), exports);
67
- __exportStar(require("./prompt-category"), exports);
68
- __exportStar(require("./prompt-topic"), exports);
69
- __exportStar(require("./prompt"), exports);
70
67
  __exportStar(require("./user-private"), exports);
71
68
  __exportStar(require("./folder"), exports);
72
69
  __exportStar(require("./user-to-product"), exports);
@@ -389,48 +389,6 @@ export declare const REST_API: {
389
389
  readonly FIND: "/api/private/review/find";
390
390
  readonly COUNT: "/api/private/review/count";
391
391
  };
392
- readonly PROMPT_CATEGORY_PRIVATE: {
393
- readonly CREATE: "/api/private/prompt-category/";
394
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
395
- readonly CREATE_TRANSLATION: (uuid: string) => string;
396
- readonly PATCH: (uuid: string) => string;
397
- readonly PATCH_TRANSLATION: (uuid: string, translationUuid: string) => string;
398
- readonly DELETE: (uuid: string) => string;
399
- };
400
- readonly PROMPT_CATEGORY_PUBLIC: {
401
- readonly FIND_ALL: "/api/public/prompt-category/";
402
- readonly FIND_BY_ALIAS: (alias: string) => string;
403
- readonly FIND_BY_UUID: (uuid: string) => string;
404
- };
405
- readonly PROMPT_TOPIC_PRIVATE: {
406
- readonly CREATE: "/api/private/prompt-topic/";
407
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
408
- readonly CREATE_TRANSLATION: (uuid: string) => string;
409
- readonly PATCH: (uuid: string) => string;
410
- readonly PATCH_TRANSLATION: (uuid: string, translationUuid: string) => string;
411
- readonly DELETE: (uuid: string) => string;
412
- };
413
- readonly PROMPT_TOPIC_PUBLIC: {
414
- readonly FIND_BY_CATEGORY_ALIAS: (categoryAlias: string) => string;
415
- readonly FIND_BY_CATEGORY_UUID: (categoryUuid: string) => string;
416
- readonly FIND_BY_ALIAS: (alias: string) => string;
417
- readonly FIND_BY_UUID: (uuid: string) => string;
418
- readonly FIND_ALL: "/api/public/prompt-topic/";
419
- };
420
- readonly PROMPT_PRIVATE: {
421
- readonly CREATE: "/api/private/prompt/";
422
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
423
- readonly CREATE_TRANSLATION: (uuid: string) => string;
424
- readonly PATCH: (uuid: string) => string;
425
- readonly PATCH_TRANSLATION: (uuid: string, translationUuid: string) => string;
426
- readonly DELETE: (uuid: string) => string;
427
- };
428
- readonly PROMPT_PUBLIC: {
429
- readonly FIND_BY_UUID: (uuid: string) => string;
430
- readonly FIND_ALL: "/api/public/prompt/";
431
- readonly FIND_BY_TOPIC_ALIAS: (topicAlias: string) => string;
432
- readonly FIND_BY_TOPIC_UUID: (topicUuid: string) => string;
433
- };
434
392
  readonly FOLDER_PRIVATE: {
435
393
  readonly FIND_BY_UUID: (uuid: string) => string;
436
394
  readonly FIND_BY_UUID_WITH_CHATS: (uuid: string) => string;
@@ -427,48 +427,6 @@ exports.REST_API = {
427
427
  FIND: `${exports.ROOT}/${CONTROLLERS.REVIEW_PRIVATE_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.FIND}`,
428
428
  COUNT: `${exports.ROOT}/${CONTROLLERS.REVIEW_PRIVATE_CONTROLLER}/${CONTROLLERS.REVIEW_ROUTES.COUNT}`,
429
429
  },
430
- PROMPT_CATEGORY_PRIVATE: {
431
- CREATE: `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.CREATE}`,
432
- GET_ALL_TRANSLATIONS: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.GET_ALL_TRANSLATIONS(uuid)}`,
433
- CREATE_TRANSLATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.CREATE_TRANSLATION(uuid)}`,
434
- PATCH: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.UPDATE(uuid)}`,
435
- PATCH_TRANSLATION: (uuid, translationUuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.UPDATE_TRANSLATION(uuid, translationUuid)}`,
436
- DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.DELETE(uuid)}`,
437
- },
438
- PROMPT_CATEGORY_PUBLIC: {
439
- FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.FIND_ALL}`,
440
- FIND_BY_ALIAS: (alias) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.FIND_BY_ALIAS(alias)}`,
441
- FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_CATEGORY_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_CATEGORY_ROUTES.FIND_BY_UUID(uuid)}`,
442
- },
443
- PROMPT_TOPIC_PRIVATE: {
444
- CREATE: `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.CREATE}`,
445
- GET_ALL_TRANSLATIONS: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.GET_ALL_TRANSLATIONS(uuid)}`,
446
- CREATE_TRANSLATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.CREATE_TRANSLATION(uuid)}`,
447
- PATCH: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.UPDATE(uuid)}`,
448
- PATCH_TRANSLATION: (uuid, translationUuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.UPDATE_TRANSLATION(uuid, translationUuid)}`,
449
- DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.DELETE(uuid)}`,
450
- },
451
- PROMPT_TOPIC_PUBLIC: {
452
- FIND_BY_CATEGORY_ALIAS: (categoryAlias) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.FIND_BY_CATEGORY_ALIAS(categoryAlias)}`,
453
- FIND_BY_CATEGORY_UUID: (categoryUuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.FIND_BY_CATEGORY_UUID(categoryUuid)}`,
454
- FIND_BY_ALIAS: (alias) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.FIND_BY_ALIAS(alias)}`,
455
- FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.FIND_BY_UUID(uuid)}`,
456
- FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PROMPT_TOPIC_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_TOPIC_ROUTES.FIND_ALL}`,
457
- },
458
- PROMPT_PRIVATE: {
459
- CREATE: `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.CREATE}`,
460
- GET_ALL_TRANSLATIONS: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.GET_ALL_TRANSLATIONS(uuid)}`,
461
- CREATE_TRANSLATION: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.CREATE_TRANSLATION(uuid)}`,
462
- PATCH: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.UPDATE(uuid)}`,
463
- PATCH_TRANSLATION: (uuid, translationUuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.UPDATE_TRANSLATION(uuid, translationUuid)}`,
464
- DELETE: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PRIVATE_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.DELETE(uuid)}`,
465
- },
466
- PROMPT_PUBLIC: {
467
- FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.FIND_BY_UUID(uuid)}`,
468
- FIND_ALL: `${exports.ROOT}/${CONTROLLERS.PROMPT_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.FIND_ALL}`,
469
- FIND_BY_TOPIC_ALIAS: (topicAlias) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.FIND_BY_TOPIC_ALIAS(topicAlias)}`,
470
- FIND_BY_TOPIC_UUID: (topicUuid) => `${exports.ROOT}/${CONTROLLERS.PROMPT_PUBLIC_CONTROLLER}/${CONTROLLERS.PROMPT_ROUTES.FIND_BY_TOPIC_UUID(topicUuid)}`,
471
- },
472
430
  FOLDER_PRIVATE: {
473
431
  FIND_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.FOLDER_PRIVATE_CONTROLLER}/${CONTROLLERS.FOLDER_ROUTES.FIND_BY_UUID(uuid)}`,
474
432
  FIND_BY_UUID_WITH_CHATS: (uuid) => `${exports.ROOT}/${CONTROLLERS.FOLDER_PRIVATE_CONTROLLER}/${CONTROLLERS.FOLDER_ROUTES.FIND_BY_UUID_WITH_CHATS(uuid)}`,
@@ -42,9 +42,6 @@ export * from './user-to-task';
42
42
  export * from './promocode';
43
43
  export * from './ui-notification';
44
44
  export * from './review';
45
- export * from './prompt-category';
46
- export * from './prompt-topic';
47
- export * from './prompt';
48
45
  export * from './folder';
49
46
  export * from './user-to-product';
50
47
  export * from './daily-streak';
@@ -58,9 +58,6 @@ __exportStar(require("./user-to-task"), exports);
58
58
  __exportStar(require("./promocode"), exports);
59
59
  __exportStar(require("./ui-notification"), exports);
60
60
  __exportStar(require("./review"), exports);
61
- __exportStar(require("./prompt-category"), exports);
62
- __exportStar(require("./prompt-topic"), exports);
63
- __exportStar(require("./prompt"), exports);
64
61
  __exportStar(require("./folder"), exports);
65
62
  __exportStar(require("./user-to-product"), exports);
66
63
  __exportStar(require("./daily-streak"), exports);
@@ -64,12 +64,6 @@ export * from './user.schema';
64
64
  export * from './utm.schema';
65
65
  export * from './ui-notification.schema';
66
66
  export * from './review.schema';
67
- export * from './prompt-category.schema';
68
- export * from './prompt-category-translation.schema';
69
- export * from './prompt-topic.schema';
70
- export * from './prompt-topic-translation.schema';
71
- export * from './prompt.schema';
72
- export * from './prompt-translation.schema';
73
67
  export * from './folder.schema';
74
68
  export * from './filters.schema';
75
69
  export * from './users-filter-notification.schema';
@@ -80,12 +80,6 @@ __exportStar(require("./user.schema"), exports);
80
80
  __exportStar(require("./utm.schema"), exports);
81
81
  __exportStar(require("./ui-notification.schema"), exports);
82
82
  __exportStar(require("./review.schema"), exports);
83
- __exportStar(require("./prompt-category.schema"), exports);
84
- __exportStar(require("./prompt-category-translation.schema"), exports);
85
- __exportStar(require("./prompt-topic.schema"), exports);
86
- __exportStar(require("./prompt-topic-translation.schema"), exports);
87
- __exportStar(require("./prompt.schema"), exports);
88
- __exportStar(require("./prompt-translation.schema"), exports);
89
83
  __exportStar(require("./folder.schema"), exports);
90
84
  __exportStar(require("./filters.schema"), exports);
91
85
  __exportStar(require("./users-filter-notification.schema"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.17.1-stage-2",
3
+ "version": "0.18.0-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,13 +0,0 @@
1
- export declare const PROMPT_CATEGORY_PRIVATE_CONTROLLER = "private/prompt-category";
2
- export declare const PROMPT_CATEGORY_PUBLIC_CONTROLLER = "public/prompt-category";
3
- export declare const PROMPT_CATEGORY_ROUTES: {
4
- readonly CREATE: '';
5
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
6
- readonly CREATE_TRANSLATION: (uuid: string) => string;
7
- readonly UPDATE: (uuid: string) => string;
8
- readonly UPDATE_TRANSLATION: (uuid: string, translationUuid: string) => string;
9
- readonly DELETE: (uuid: string) => string;
10
- readonly FIND_ALL: '';
11
- readonly FIND_BY_ALIAS: (alias: string) => string;
12
- readonly FIND_BY_UUID: (uuid: string) => string;
13
- };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROMPT_CATEGORY_ROUTES = exports.PROMPT_CATEGORY_PUBLIC_CONTROLLER = exports.PROMPT_CATEGORY_PRIVATE_CONTROLLER = void 0;
4
- exports.PROMPT_CATEGORY_PRIVATE_CONTROLLER = 'private/prompt-category';
5
- exports.PROMPT_CATEGORY_PUBLIC_CONTROLLER = 'public/prompt-category';
6
- exports.PROMPT_CATEGORY_ROUTES = {
7
- CREATE: '',
8
- GET_ALL_TRANSLATIONS: (uuid) => `${uuid}/translations`,
9
- CREATE_TRANSLATION: (uuid) => `${uuid}/translations`,
10
- UPDATE: (uuid) => `${uuid}`,
11
- UPDATE_TRANSLATION: (uuid, translationUuid) => `${uuid}/translations/${translationUuid}`,
12
- DELETE: (uuid) => `${uuid}`,
13
- FIND_ALL: '',
14
- FIND_BY_ALIAS: (alias) => `alias/${alias}`,
15
- FIND_BY_UUID: (uuid) => `uuid/${uuid}`,
16
- };
@@ -1,15 +0,0 @@
1
- export declare const PROMPT_TOPIC_PRIVATE_CONTROLLER = "private/prompt-topic";
2
- export declare const PROMPT_TOPIC_PUBLIC_CONTROLLER = "public/prompt-topic";
3
- export declare const PROMPT_TOPIC_ROUTES: {
4
- readonly CREATE: '';
5
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
6
- readonly CREATE_TRANSLATION: (uuid: string) => string;
7
- readonly UPDATE: (uuid: string) => string;
8
- readonly UPDATE_TRANSLATION: (uuid: string, translationUuid: string) => string;
9
- readonly DELETE: (uuid: string) => string;
10
- readonly FIND_BY_CATEGORY_ALIAS: (categoryAlias: string) => string;
11
- readonly FIND_BY_CATEGORY_UUID: (categoryUuid: string) => string;
12
- readonly FIND_ALL: '';
13
- readonly FIND_BY_ALIAS: (alias: string) => string;
14
- readonly FIND_BY_UUID: (uuid: string) => string;
15
- };
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROMPT_TOPIC_ROUTES = exports.PROMPT_TOPIC_PUBLIC_CONTROLLER = exports.PROMPT_TOPIC_PRIVATE_CONTROLLER = void 0;
4
- exports.PROMPT_TOPIC_PRIVATE_CONTROLLER = 'private/prompt-topic';
5
- exports.PROMPT_TOPIC_PUBLIC_CONTROLLER = 'public/prompt-topic';
6
- exports.PROMPT_TOPIC_ROUTES = {
7
- CREATE: '',
8
- GET_ALL_TRANSLATIONS: (uuid) => `${uuid}/translations`,
9
- CREATE_TRANSLATION: (uuid) => `${uuid}/translations`,
10
- UPDATE: (uuid) => `${uuid}`,
11
- UPDATE_TRANSLATION: (uuid, translationUuid) => `${uuid}/translations/${translationUuid}`,
12
- DELETE: (uuid) => `${uuid}`,
13
- FIND_BY_CATEGORY_ALIAS: (categoryAlias) => `find/alias/${categoryAlias}`,
14
- FIND_BY_CATEGORY_UUID: (categoryUuid) => `find/uuid/${categoryUuid}`,
15
- FIND_ALL: '',
16
- FIND_BY_ALIAS: (alias) => `alias/${alias}`,
17
- FIND_BY_UUID: (uuid) => `uuid/${uuid}`,
18
- };
@@ -1,14 +0,0 @@
1
- export declare const PROMPT_PRIVATE_CONTROLLER = "private/prompt";
2
- export declare const PROMPT_PUBLIC_CONTROLLER = "public/prompt";
3
- export declare const PROMPT_ROUTES: {
4
- readonly CREATE: '';
5
- readonly GET_ALL_TRANSLATIONS: (uuid: string) => string;
6
- readonly CREATE_TRANSLATION: (uuid: string) => string;
7
- readonly UPDATE: (uuid: string) => string;
8
- readonly UPDATE_TRANSLATION: (uuid: string, translationUuid: string) => string;
9
- readonly DELETE: (uuid: string) => string;
10
- readonly FIND_ALL: '';
11
- readonly FIND_BY_UUID: (uuid: string) => string;
12
- readonly FIND_BY_TOPIC_UUID: (topicId: string) => string;
13
- readonly FIND_BY_TOPIC_ALIAS: (topicAlias: string) => string;
14
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PROMPT_ROUTES = exports.PROMPT_PUBLIC_CONTROLLER = exports.PROMPT_PRIVATE_CONTROLLER = void 0;
4
- exports.PROMPT_PRIVATE_CONTROLLER = 'private/prompt';
5
- exports.PROMPT_PUBLIC_CONTROLLER = 'public/prompt';
6
- exports.PROMPT_ROUTES = {
7
- CREATE: '',
8
- GET_ALL_TRANSLATIONS: (uuid) => `${uuid}/translations`,
9
- CREATE_TRANSLATION: (uuid) => `${uuid}/translations`,
10
- UPDATE: (uuid) => `${uuid}`,
11
- UPDATE_TRANSLATION: (uuid, translationUuid) => `${uuid}/translations/${translationUuid}`,
12
- DELETE: (uuid) => `${uuid}`,
13
- FIND_ALL: '',
14
- FIND_BY_UUID: (uuid) => `${uuid}`,
15
- FIND_BY_TOPIC_UUID: (topicId) => `find/uuid/${topicId}`,
16
- FIND_BY_TOPIC_ALIAS: (topicAlias) => `find/alias/${topicAlias}`,
17
- };
@@ -1,25 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace CreatePromptTranslationCommand {
3
- const RequestSchema: z.ZodObject<{
4
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
5
- title: z.ZodNullable<z.ZodString>;
6
- content: z.ZodString;
7
- }, z.core.$strip>;
8
- type Request = z.infer<typeof RequestSchema>;
9
- const RequestParamSchema: z.ZodObject<{
10
- uuid: z.ZodUUID;
11
- }, z.core.$strip>;
12
- type RequestParam = z.infer<typeof RequestParamSchema>;
13
- const ResponseSchema: z.ZodObject<{
14
- data: z.ZodObject<{
15
- uuid: z.ZodUUID;
16
- promptId: z.ZodUUID;
17
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
18
- title: z.ZodNullable<z.ZodString>;
19
- content: z.ZodString;
20
- createdAt: z.ZodDate;
21
- updatedAt: z.ZodDate;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>;
24
- type Response = z.infer<typeof ResponseSchema>;
25
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePromptTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var CreatePromptTranslationCommand;
7
- (function (CreatePromptTranslationCommand) {
8
- CreatePromptTranslationCommand.RequestSchema = models_1.PromptTranslationSchema.pick({
9
- title: true,
10
- content: true,
11
- locale: true,
12
- });
13
- CreatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.uuid(),
15
- });
16
- CreatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
17
- data: models_1.PromptTranslationSchema,
18
- });
19
- })(CreatePromptTranslationCommand || (exports.CreatePromptTranslationCommand = CreatePromptTranslationCommand = {}));
@@ -1,18 +0,0 @@
1
- import z from 'zod';
2
- export declare namespace CreatePromptCommand {
3
- const RequestSchema: z.ZodObject<{
4
- topicId: z.ZodNullable<z.ZodUUID>;
5
- }, z.core.$strip>;
6
- type Request = z.infer<typeof RequestSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- data: z.ZodObject<{
9
- uuid: z.ZodUUID;
10
- content: z.ZodString;
11
- topicId: z.ZodNullable<z.ZodUUID>;
12
- title: z.ZodNullable<z.ZodString>;
13
- createdAt: z.ZodDate;
14
- updatedAt: z.ZodDate;
15
- }, z.core.$strip>;
16
- }, z.core.$strip>;
17
- type Response = z.infer<typeof ResponseSchema>;
18
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CreatePromptCommand = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const models_1 = require("../../models");
9
- var CreatePromptCommand;
10
- (function (CreatePromptCommand) {
11
- CreatePromptCommand.RequestSchema = models_1.PromptSchema.pick({
12
- topicId: true,
13
- });
14
- CreatePromptCommand.ResponseSchema = zod_1.default.object({
15
- data: models_1.PromptSchema,
16
- });
17
- })(CreatePromptCommand || (exports.CreatePromptCommand = CreatePromptCommand = {}));
@@ -1,13 +0,0 @@
1
- import z from 'zod';
2
- export declare namespace DeletePromptCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodUUID;
5
- }, z.core.$strip>;
6
- type RequestParam = z.infer<typeof RequestSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- data: z.ZodObject<{
9
- isDeleted: z.ZodBoolean;
10
- }, z.core.$strip>;
11
- }, z.core.$strip>;
12
- type Response = z.infer<typeof ResponseSchema>;
13
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DeletePromptCommand = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- var DeletePromptCommand;
9
- (function (DeletePromptCommand) {
10
- DeletePromptCommand.RequestSchema = zod_1.default.object({
11
- uuid: zod_1.default.uuid(),
12
- });
13
- DeletePromptCommand.ResponseSchema = zod_1.default.object({
14
- data: zod_1.default.object({
15
- isDeleted: zod_1.default.boolean(),
16
- }),
17
- });
18
- })(DeletePromptCommand || (exports.DeletePromptCommand = DeletePromptCommand = {}));
@@ -1,15 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace FindAllPromptsCommand {
3
- type Request = void;
4
- const ResponseSchema: z.ZodObject<{
5
- data: z.ZodArray<z.ZodObject<{
6
- uuid: z.ZodUUID;
7
- content: z.ZodString;
8
- topicId: z.ZodNullable<z.ZodUUID>;
9
- title: z.ZodNullable<z.ZodString>;
10
- createdAt: z.ZodDate;
11
- updatedAt: z.ZodDate;
12
- }, z.core.$strip>>;
13
- }, z.core.$strip>;
14
- type Response = z.infer<typeof ResponseSchema>;
15
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FindAllPromptsCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var FindAllPromptsCommand;
7
- (function (FindAllPromptsCommand) {
8
- FindAllPromptsCommand.ResponseSchema = zod_1.z.object({
9
- data: zod_1.z.array(models_1.PromptSchema),
10
- });
11
- })(FindAllPromptsCommand || (exports.FindAllPromptsCommand = FindAllPromptsCommand = {}));
@@ -1,18 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace FindPromptByUuidCommand {
3
- const RequestSchema: z.ZodObject<{
4
- uuid: z.ZodUUID;
5
- }, z.core.$strip>;
6
- type Request = z.infer<typeof RequestSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- data: z.ZodObject<{
9
- uuid: z.ZodUUID;
10
- content: z.ZodString;
11
- topicId: z.ZodNullable<z.ZodUUID>;
12
- title: z.ZodNullable<z.ZodString>;
13
- createdAt: z.ZodDate;
14
- updatedAt: z.ZodDate;
15
- }, z.core.$strip>;
16
- }, z.core.$strip>;
17
- type Response = z.infer<typeof ResponseSchema>;
18
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FindPromptByUuidCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var FindPromptByUuidCommand;
7
- (function (FindPromptByUuidCommand) {
8
- FindPromptByUuidCommand.RequestSchema = models_1.PromptSchema.pick({
9
- uuid: true,
10
- });
11
- FindPromptByUuidCommand.ResponseSchema = zod_1.z.object({
12
- data: models_1.PromptSchema,
13
- });
14
- })(FindPromptByUuidCommand || (exports.FindPromptByUuidCommand = FindPromptByUuidCommand = {}));
@@ -1,19 +0,0 @@
1
- import z from 'zod';
2
- export declare namespace FindPromptsByTopicCommand {
3
- const RequestSchema: z.ZodObject<{
4
- topicId: z.ZodOptional<z.ZodUUID>;
5
- topicAlias: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>;
7
- type Request = z.infer<typeof RequestSchema>;
8
- const ResponseSchema: z.ZodObject<{
9
- data: z.ZodArray<z.ZodObject<{
10
- uuid: z.ZodUUID;
11
- content: z.ZodString;
12
- topicId: z.ZodNullable<z.ZodUUID>;
13
- title: z.ZodNullable<z.ZodString>;
14
- createdAt: z.ZodDate;
15
- updatedAt: z.ZodDate;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
18
- type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FindPromptsByTopicCommand = void 0;
7
- const zod_1 = __importDefault(require("zod"));
8
- const models_1 = require("../../models");
9
- var FindPromptsByTopicCommand;
10
- (function (FindPromptsByTopicCommand) {
11
- FindPromptsByTopicCommand.RequestSchema = zod_1.default.object({
12
- topicId: zod_1.default.uuid().optional(),
13
- topicAlias: zod_1.default.string().optional(),
14
- });
15
- FindPromptsByTopicCommand.ResponseSchema = zod_1.default.object({
16
- data: zod_1.default.array(models_1.PromptSchema),
17
- });
18
- })(FindPromptsByTopicCommand || (exports.FindPromptsByTopicCommand = FindPromptsByTopicCommand = {}));
@@ -1,19 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace GetAllPromptTranslationsQuery {
3
- const RequestParamSchema: z.ZodObject<{
4
- uuid: z.ZodUUID;
5
- }, z.core.$strip>;
6
- type RequestParam = z.infer<typeof RequestParamSchema>;
7
- const ResponseSchema: z.ZodObject<{
8
- data: z.ZodArray<z.ZodObject<{
9
- uuid: z.ZodUUID;
10
- promptId: z.ZodUUID;
11
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
12
- title: z.ZodNullable<z.ZodString>;
13
- content: z.ZodString;
14
- createdAt: z.ZodDate;
15
- updatedAt: z.ZodDate;
16
- }, z.core.$strip>>;
17
- }, z.core.$strip>;
18
- type Response = z.infer<typeof ResponseSchema>;
19
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetAllPromptTranslationsQuery = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var GetAllPromptTranslationsQuery;
7
- (function (GetAllPromptTranslationsQuery) {
8
- GetAllPromptTranslationsQuery.RequestParamSchema = zod_1.z.object({
9
- uuid: zod_1.z.uuid(),
10
- });
11
- GetAllPromptTranslationsQuery.ResponseSchema = zod_1.z.object({
12
- data: zod_1.z.array(models_1.PromptTranslationSchema),
13
- });
14
- })(GetAllPromptTranslationsQuery || (exports.GetAllPromptTranslationsQuery = GetAllPromptTranslationsQuery = {}));
@@ -1,9 +0,0 @@
1
- export * from './create-prompt.command';
2
- export * from './create-prompt-translation.command';
3
- export * from './delete-prompt.command';
4
- export * from './update-prompt.command';
5
- export * from './update-prompt-translation.command';
6
- export * from './find-prompt-by-uuid.command';
7
- export * from './find-all-prompts.command';
8
- export * from './get-all-prompt-translations.query';
9
- export * from './find-prompts-by-topic.command';
@@ -1,25 +0,0 @@
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("./create-prompt.command"), exports);
18
- __exportStar(require("./create-prompt-translation.command"), exports);
19
- __exportStar(require("./delete-prompt.command"), exports);
20
- __exportStar(require("./update-prompt.command"), exports);
21
- __exportStar(require("./update-prompt-translation.command"), exports);
22
- __exportStar(require("./find-prompt-by-uuid.command"), exports);
23
- __exportStar(require("./find-all-prompts.command"), exports);
24
- __exportStar(require("./get-all-prompt-translations.query"), exports);
25
- __exportStar(require("./find-prompts-by-topic.command"), exports);
@@ -1,25 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UpdatePromptTranslationCommand {
3
- const RequestSchema: z.ZodObject<{
4
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- content: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>;
7
- type Request = z.infer<typeof RequestSchema>;
8
- const RequestParamSchema: z.ZodObject<{
9
- uuid: z.ZodUUID;
10
- translationUuid: z.ZodUUID;
11
- }, z.core.$strip>;
12
- type RequestParam = z.infer<typeof RequestParamSchema>;
13
- const ResponseSchema: z.ZodObject<{
14
- data: z.ZodObject<{
15
- uuid: z.ZodUUID;
16
- promptId: z.ZodUUID;
17
- locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
18
- title: z.ZodNullable<z.ZodString>;
19
- content: z.ZodString;
20
- createdAt: z.ZodDate;
21
- updatedAt: z.ZodDate;
22
- }, z.core.$strip>;
23
- }, z.core.$strip>;
24
- type Response = z.infer<typeof ResponseSchema>;
25
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePromptTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var UpdatePromptTranslationCommand;
7
- (function (UpdatePromptTranslationCommand) {
8
- UpdatePromptTranslationCommand.RequestSchema = models_1.PromptTranslationSchema.pick({
9
- title: true,
10
- content: true,
11
- }).partial();
12
- UpdatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.uuid(),
14
- translationUuid: zod_1.z.uuid(),
15
- });
16
- UpdatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
17
- data: models_1.PromptTranslationSchema,
18
- });
19
- })(UpdatePromptTranslationCommand || (exports.UpdatePromptTranslationCommand = UpdatePromptTranslationCommand = {}));