@purpleschool/gptbot 0.17.0-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 (126) hide show
  1. package/build/api/controllers/http/index.d.ts +1 -3
  2. package/build/api/controllers/http/index.js +1 -3
  3. package/build/api/controllers/http/loyalty-status.d.ts +4 -0
  4. package/build/api/controllers/http/loyalty-status.js +7 -0
  5. package/build/api/routes.d.ts +3 -42
  6. package/build/api/routes.js +3 -42
  7. package/build/commands/index.d.ts +0 -3
  8. package/build/commands/index.js +0 -3
  9. package/build/commands/subscription/get-subscriptions-summary.command.d.ts +16 -0
  10. package/build/commands/subscription/get-subscriptions-summary.command.js +1 -0
  11. package/build/commands/tools/marketplace-card/execute-marketplace-card.command.d.ts +1 -0
  12. package/build/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.d.ts +1 -0
  13. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.d.ts +1 -0
  14. package/build/commands/tools/marketplace-card/retry-marketplace-card-job.command.d.ts +1 -0
  15. package/build/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.d.ts +1 -0
  16. package/build/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.d.ts +1 -0
  17. package/build/commands/tools/marketplace-card/update-marketplace-card-job-title.command.d.ts +1 -0
  18. package/build/commands/tools/tool-workspace/find-tool-workspace-by-uuid.command.d.ts +3 -0
  19. package/build/commands/tools/tool-workspace/find-tool-workspaces.command.d.ts +5 -1
  20. package/build/commands/tools/tool-workspace/find-tool-workspaces.command.js +3 -0
  21. package/build/commands/tools/tool-workspace/update-tool-workspace.command.d.ts +3 -0
  22. package/build/commands/tools/tool-workspace/update-tool-workspace.command.js +1 -0
  23. package/build/commands/user/get-me.command.d.ts +16 -0
  24. package/build/commands/user/get-me.command.js +1 -0
  25. package/build/constants/index.d.ts +1 -0
  26. package/build/constants/index.js +1 -0
  27. package/build/constants/loyalty-status/enums/index.d.ts +1 -0
  28. package/build/{commands/prompt → constants/loyalty-status/enums}/index.js +1 -9
  29. package/build/constants/loyalty-status/enums/loyalty-level.enum.d.ts +7 -0
  30. package/build/constants/loyalty-status/enums/loyalty-level.enum.js +11 -0
  31. package/build/constants/loyalty-status/index.d.ts +3 -0
  32. package/build/{commands/prompt-category → constants/loyalty-status}/index.js +3 -9
  33. package/build/constants/loyalty-status/loyalty-levels.constant.d.ts +6 -0
  34. package/build/constants/loyalty-status/loyalty-levels.constant.js +11 -0
  35. package/build/constants/loyalty-status/loyalty-win-back.constant.d.ts +1 -0
  36. package/build/constants/loyalty-status/loyalty-win-back.constant.js +4 -0
  37. package/build/models/index.d.ts +1 -6
  38. package/build/models/index.js +1 -6
  39. package/build/models/tools/marketplace-card/marketplace-card-job.schema.d.ts +1 -0
  40. package/build/models/tools/marketplace-card/marketplace-card-job.schema.js +1 -0
  41. package/build/models/tools/tool-workspace/tool-workspace-contents.schema.d.ts +3 -0
  42. package/build/models/tools/tool-workspace/tool-workspace-item.schema.d.ts +1 -0
  43. package/build/models/tools/tool-workspace/tool-workspace-job.schema.d.ts +1 -0
  44. package/build/models/tools/tool-workspace/tool-workspace.schema.d.ts +2 -0
  45. package/build/models/tools/tool-workspace/tool-workspace.schema.js +2 -0
  46. package/build/models/user-loyalty-status.schema.d.ts +19 -0
  47. package/build/models/user-loyalty-status.schema.js +21 -0
  48. package/package.json +1 -1
  49. package/build/api/controllers/http/prompt-category.d.ts +0 -13
  50. package/build/api/controllers/http/prompt-category.js +0 -16
  51. package/build/api/controllers/http/prompt-topic.d.ts +0 -15
  52. package/build/api/controllers/http/prompt-topic.js +0 -18
  53. package/build/api/controllers/http/prompt.d.ts +0 -14
  54. package/build/api/controllers/http/prompt.js +0 -17
  55. package/build/commands/prompt/create-prompt-translation.command.d.ts +0 -25
  56. package/build/commands/prompt/create-prompt-translation.command.js +0 -19
  57. package/build/commands/prompt/create-prompt.command.d.ts +0 -18
  58. package/build/commands/prompt/create-prompt.command.js +0 -17
  59. package/build/commands/prompt/delete-prompt.command.d.ts +0 -13
  60. package/build/commands/prompt/delete-prompt.command.js +0 -18
  61. package/build/commands/prompt/find-all-prompts.command.d.ts +0 -15
  62. package/build/commands/prompt/find-all-prompts.command.js +0 -11
  63. package/build/commands/prompt/find-prompt-by-uuid.command.d.ts +0 -18
  64. package/build/commands/prompt/find-prompt-by-uuid.command.js +0 -14
  65. package/build/commands/prompt/find-prompts-by-topic.command.d.ts +0 -19
  66. package/build/commands/prompt/find-prompts-by-topic.command.js +0 -18
  67. package/build/commands/prompt/get-all-prompt-translations.query.d.ts +0 -19
  68. package/build/commands/prompt/get-all-prompt-translations.query.js +0 -14
  69. package/build/commands/prompt/index.d.ts +0 -9
  70. package/build/commands/prompt/update-prompt-translation.command.d.ts +0 -25
  71. package/build/commands/prompt/update-prompt-translation.command.js +0 -19
  72. package/build/commands/prompt/update-prompt.command.d.ts +0 -22
  73. package/build/commands/prompt/update-prompt.command.js +0 -24
  74. package/build/commands/prompt-category/create-prompt-category-translation.command.d.ts +0 -27
  75. package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -20
  76. package/build/commands/prompt-category/create-prompt-category.command.d.ts +0 -21
  77. package/build/commands/prompt-category/create-prompt-category.command.js +0 -18
  78. package/build/commands/prompt-category/delete-prompt-category.command.d.ts +0 -13
  79. package/build/commands/prompt-category/delete-prompt-category.command.js +0 -18
  80. package/build/commands/prompt-category/find-all-prompt-categories.command.d.ts +0 -17
  81. package/build/commands/prompt-category/find-all-prompt-categories.command.js +0 -11
  82. package/build/commands/prompt-category/find-prompt-category-by-alias.command.d.ts +0 -20
  83. package/build/commands/prompt-category/find-prompt-category-by-alias.command.js +0 -14
  84. package/build/commands/prompt-category/find-prompt-category-by-uuid.command.d.ts +0 -20
  85. package/build/commands/prompt-category/find-prompt-category-by-uuid.command.js +0 -14
  86. package/build/commands/prompt-category/get-all-prompt-category-translations.query.d.ts +0 -20
  87. package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +0 -14
  88. package/build/commands/prompt-category/index.d.ts +0 -9
  89. package/build/commands/prompt-category/update-prompt-category-translation.command.d.ts +0 -27
  90. package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -20
  91. package/build/commands/prompt-category/update-prompt-category.command.d.ts +0 -25
  92. package/build/commands/prompt-category/update-prompt-category.command.js +0 -25
  93. package/build/commands/prompt-topic/create-prompt-topic-translation.command.d.ts +0 -31
  94. package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -22
  95. package/build/commands/prompt-topic/create-prompt-topic.command.d.ts +0 -24
  96. package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -18
  97. package/build/commands/prompt-topic/delete-prompt-topic.command.d.ts +0 -13
  98. package/build/commands/prompt-topic/delete-prompt-topic.command.js +0 -18
  99. package/build/commands/prompt-topic/find-all-prompt-topics.command.d.ts +0 -20
  100. package/build/commands/prompt-topic/find-all-prompt-topics.command.js +0 -11
  101. package/build/commands/prompt-topic/find-prompt-topic-by-alias.command.d.ts +0 -23
  102. package/build/commands/prompt-topic/find-prompt-topic-by-alias.command.js +0 -14
  103. package/build/commands/prompt-topic/find-prompt-topic-by-category.command.d.ts +0 -39
  104. package/build/commands/prompt-topic/find-prompt-topic-by-category.command.js +0 -24
  105. package/build/commands/prompt-topic/find-prompt-topic-by-uuid.command.d.ts +0 -23
  106. package/build/commands/prompt-topic/find-prompt-topic-by-uuid.command.js +0 -14
  107. package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.d.ts +0 -22
  108. package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +0 -14
  109. package/build/commands/prompt-topic/index.d.ts +0 -10
  110. package/build/commands/prompt-topic/index.js +0 -26
  111. package/build/commands/prompt-topic/update-prompt-topic-translation.command.d.ts +0 -31
  112. package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -22
  113. package/build/commands/prompt-topic/update-prompt-topic.command.d.ts +0 -29
  114. package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -27
  115. package/build/models/prompt-category-translation.schema.d.ts +0 -12
  116. package/build/models/prompt-category-translation.schema.js +0 -18
  117. package/build/models/prompt-category.schema.d.ts +0 -42
  118. package/build/models/prompt-category.schema.js +0 -21
  119. package/build/models/prompt-topic-translation.schema.d.ts +0 -14
  120. package/build/models/prompt-topic-translation.schema.js +0 -20
  121. package/build/models/prompt-topic.schema.d.ts +0 -35
  122. package/build/models/prompt-topic.schema.js +0 -24
  123. package/build/models/prompt-translation.schema.d.ts +0 -11
  124. package/build/models/prompt-translation.schema.js +0 -14
  125. package/build/models/prompt.schema.d.ts +0 -9
  126. 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';
@@ -61,6 +58,7 @@ export * from './writer';
61
58
  export * from './image-editor';
62
59
  export * from './image-recognition';
63
60
  export * from './daily-streak';
61
+ export * from './loyalty-status';
64
62
  export * from './cabinet';
65
63
  export * from './webmaster';
66
64
  export * from './music';
@@ -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);
@@ -77,6 +74,7 @@ __exportStar(require("./writer"), exports);
77
74
  __exportStar(require("./image-editor"), exports);
78
75
  __exportStar(require("./image-recognition"), exports);
79
76
  __exportStar(require("./daily-streak"), exports);
77
+ __exportStar(require("./loyalty-status"), exports);
80
78
  __exportStar(require("./cabinet"), exports);
81
79
  __exportStar(require("./webmaster"), exports);
82
80
  __exportStar(require("./music"), exports);
@@ -0,0 +1,4 @@
1
+ export declare const LOYALTY_STATUS_CONTROLLER: 'loyalty-status';
2
+ export declare const LOYALTY_STATUS_ROUTES: {
3
+ readonly CRON_RUN_LIFECYCLE: 'cron/run-lifecycle';
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOYALTY_STATUS_ROUTES = exports.LOYALTY_STATUS_CONTROLLER = void 0;
4
+ exports.LOYALTY_STATUS_CONTROLLER = 'loyalty-status';
5
+ exports.LOYALTY_STATUS_ROUTES = {
6
+ CRON_RUN_LIFECYCLE: 'cron/run-lifecycle',
7
+ };
@@ -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;
@@ -490,6 +448,9 @@ export declare const REST_API: {
490
448
  readonly GET: "/api/private/daily-streak/";
491
449
  readonly COLLECT: "/api/private/daily-streak/collect";
492
450
  };
451
+ readonly LOYALTY_STATUS: {
452
+ readonly CRON_RUN_LIFECYCLE: "/api/loyalty-status/cron/run-lifecycle";
453
+ };
493
454
  readonly CABINET: {
494
455
  readonly GET_USER_STATISTICS_OVERVIEW: "/api/private/cabinet/statistics/overview";
495
456
  readonly GET_USER_STATISTICS_BY_MONTH: "/api/private/cabinet/statistics/by-month";
@@ -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)}`,
@@ -528,6 +486,9 @@ exports.REST_API = {
528
486
  GET: `${exports.ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.GET}`,
529
487
  COLLECT: `${exports.ROOT}/${CONTROLLERS.DAILY_STREAK_PRIVATE_CONTROLLER}/${CONTROLLERS.DAILY_STREAK_ROUTES.COLLECT}`,
530
488
  },
489
+ LOYALTY_STATUS: {
490
+ CRON_RUN_LIFECYCLE: `${exports.ROOT}/${CONTROLLERS.LOYALTY_STATUS_CONTROLLER}/${CONTROLLERS.LOYALTY_STATUS_ROUTES.CRON_RUN_LIFECYCLE}`,
491
+ },
531
492
  CABINET: {
532
493
  GET_USER_STATISTICS_OVERVIEW: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_OVERVIEW}`,
533
494
  GET_USER_STATISTICS_BY_MONTH: `${exports.ROOT}/${CONTROLLERS.CABINET_CONTROLLER}/${CONTROLLERS.CABINET_ROUTES.GET_USER_STATISTICS_BY_MONTH}`,
@@ -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);
@@ -1641,6 +1641,22 @@ export declare namespace GetSubscriptionsSummaryCommand {
1641
1641
  updatedAt: z.ZodDate;
1642
1642
  }, z.core.$strip>;
1643
1643
  }, z.core.$strip>>>;
1644
+ loyaltyStatus: z.ZodObject<{
1645
+ level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
1646
+ paidMonths: z.ZodNumber;
1647
+ renewalBonusPercent: z.ZodNumber;
1648
+ nextLevel: z.ZodNullable<z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>>;
1649
+ nextLevelThresholdMonths: z.ZodNullable<z.ZodNumber>;
1650
+ nextLevelRenewalBonusPercent: z.ZodNullable<z.ZodNumber>;
1651
+ monthsToNextLevel: z.ZodNullable<z.ZodNumber>;
1652
+ isLapsed: z.ZodBoolean;
1653
+ winBackDeadline: z.ZodNullable<z.ZodDate>;
1654
+ levels: z.ZodArray<z.ZodObject<{
1655
+ level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
1656
+ thresholdMonths: z.ZodNumber;
1657
+ renewalBonusPercent: z.ZodNumber;
1658
+ }, z.core.$strip>>;
1659
+ }, z.core.$strip>;
1644
1660
  }, z.core.$strip>;
1645
1661
  type Response = z.infer<typeof ResponseSchema>;
1646
1662
  }
@@ -10,5 +10,6 @@ var GetSubscriptionsSummaryCommand;
10
10
  subscriptions: zod_1.z.array(models_1.UserToSubscriptionWithDowngradeSubscriptionSchema),
11
11
  products: zod_1.z.array(models_1.UserToProductWithProductSchema),
12
12
  teamSubscription: models_1.TeamToSubscriptionWithSubscriptionSchema.nullable(),
13
+ loyaltyStatus: models_1.UserLoyaltyStatusResponseSchema,
13
14
  });
14
15
  })(GetSubscriptionsSummaryCommand || (exports.GetSubscriptionsSummaryCommand = GetSubscriptionsSummaryCommand = {}));
@@ -28,6 +28,7 @@ export declare namespace ExecuteMarketplaceCardCommand {
28
28
  createdAt: z.ZodCoercedDate<unknown>;
29
29
  updatedAt: z.ZodCoercedDate<unknown>;
30
30
  uuid: z.ZodUUID;
31
+ modelId: z.ZodUUID;
31
32
  title: z.ZodNullable<z.ZodString>;
32
33
  subtitle: z.ZodNullable<z.ZodString>;
33
34
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -12,6 +12,7 @@ export declare namespace FindMarketplaceCardJobByUUIDCommand {
12
12
  createdAt: z.ZodCoercedDate<unknown>;
13
13
  updatedAt: z.ZodCoercedDate<unknown>;
14
14
  uuid: z.ZodUUID;
15
+ modelId: z.ZodUUID;
15
16
  title: z.ZodNullable<z.ZodString>;
16
17
  subtitle: z.ZodNullable<z.ZodString>;
17
18
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -18,6 +18,7 @@ export declare namespace FindMarketplaceCardJobsCommand {
18
18
  createdAt: z.ZodCoercedDate<unknown>;
19
19
  updatedAt: z.ZodCoercedDate<unknown>;
20
20
  uuid: z.ZodUUID;
21
+ modelId: z.ZodUUID;
21
22
  title: z.ZodNullable<z.ZodString>;
22
23
  subtitle: z.ZodNullable<z.ZodString>;
23
24
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -25,6 +25,7 @@ export declare namespace RetryMarketplaceCardJobCommand {
25
25
  createdAt: z.ZodCoercedDate<unknown>;
26
26
  updatedAt: z.ZodCoercedDate<unknown>;
27
27
  uuid: z.ZodUUID;
28
+ modelId: z.ZodUUID;
28
29
  title: z.ZodNullable<z.ZodString>;
29
30
  subtitle: z.ZodNullable<z.ZodString>;
30
31
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -18,6 +18,7 @@ export declare namespace SetReactionToMarketplaceCardJobCommand {
18
18
  createdAt: z.ZodCoercedDate<unknown>;
19
19
  updatedAt: z.ZodCoercedDate<unknown>;
20
20
  uuid: z.ZodUUID;
21
+ modelId: z.ZodUUID;
21
22
  title: z.ZodNullable<z.ZodString>;
22
23
  subtitle: z.ZodNullable<z.ZodString>;
23
24
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
@@ -16,6 +16,7 @@ export declare namespace UpdateMarketplaceCardJobFavoriteCommand {
16
16
  createdAt: z.ZodCoercedDate<unknown>;
17
17
  updatedAt: z.ZodCoercedDate<unknown>;
18
18
  uuid: z.ZodUUID;
19
+ modelId: z.ZodUUID;
19
20
  title: z.ZodNullable<z.ZodString>;
20
21
  subtitle: z.ZodNullable<z.ZodString>;
21
22
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -16,6 +16,7 @@ export declare namespace UpdateMarketplaceCardJobTitleCommand {
16
16
  createdAt: z.ZodCoercedDate<unknown>;
17
17
  updatedAt: z.ZodCoercedDate<unknown>;
18
18
  uuid: z.ZodUUID;
19
+ modelId: z.ZodUUID;
19
20
  title: z.ZodNullable<z.ZodString>;
20
21
  subtitle: z.ZodNullable<z.ZodString>;
21
22
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -11,6 +11,8 @@ export declare namespace FindToolWorkspaceByUUIDCommand {
11
11
  toolType: z.ZodEnum<typeof import("../../..").TOOL_CONTENT_TYPE>;
12
12
  title: z.ZodString;
13
13
  coverUrl: z.ZodNullable<z.ZodString>;
14
+ isFavorite: z.ZodBoolean;
15
+ pendingJobsCount: z.ZodOptional<z.ZodNumber>;
14
16
  status: z.ZodEnum<typeof import("../../..").TOOL_WORKSPACE_STATUS>;
15
17
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
16
18
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -32,6 +34,7 @@ export declare namespace FindToolWorkspaceByUUIDCommand {
32
34
  createdAt: z.ZodCoercedDate<unknown>;
33
35
  updatedAt: z.ZodCoercedDate<unknown>;
34
36
  uuid: z.ZodUUID;
37
+ modelId: z.ZodUUID;
35
38
  title: z.ZodNullable<z.ZodString>;
36
39
  subtitle: z.ZodNullable<z.ZodString>;
37
40
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -1,11 +1,13 @@
1
1
  import { z } from 'zod';
2
- import { TOOL_CONTENT_TYPE } from '../../../constants';
2
+ import { JOB_SORT, TOOL_CONTENT_TYPE } from '../../../constants';
3
3
  export declare namespace FindToolWorkspacesCommand {
4
4
  const RequestQuerySchema: z.ZodObject<{
5
5
  toolType: z.ZodOptional<z.ZodEnum<typeof TOOL_CONTENT_TYPE>>;
6
6
  title: z.ZodOptional<z.ZodString>;
7
+ isFavorite: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
7
8
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8
9
  offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
10
+ updatedAtSortOrder: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof JOB_SORT>>>;
9
11
  }, z.core.$strip>;
10
12
  type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
13
  const ResponseSchema: z.ZodObject<{
@@ -14,6 +16,8 @@ export declare namespace FindToolWorkspacesCommand {
14
16
  toolType: z.ZodEnum<typeof TOOL_CONTENT_TYPE>;
15
17
  title: z.ZodString;
16
18
  coverUrl: z.ZodNullable<z.ZodString>;
19
+ isFavorite: z.ZodBoolean;
20
+ pendingJobsCount: z.ZodOptional<z.ZodNumber>;
17
21
  status: z.ZodEnum<typeof import("../../..").TOOL_WORKSPACE_STATUS>;
18
22
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
19
23
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -3,14 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindToolWorkspacesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../../../constants");
6
+ const query_boolean_schema_1 = require("../../../helpers/query-boolean.schema");
6
7
  const models_1 = require("../../../models");
7
8
  var FindToolWorkspacesCommand;
8
9
  (function (FindToolWorkspacesCommand) {
9
10
  FindToolWorkspacesCommand.RequestQuerySchema = zod_1.z.object({
10
11
  toolType: zod_1.z.enum(constants_1.TOOL_CONTENT_TYPE).optional(),
11
12
  title: zod_1.z.string().optional(),
13
+ isFavorite: query_boolean_schema_1.QueryBooleanSchema.optional(),
12
14
  limit: zod_1.z.coerce.number().min(1).optional(),
13
15
  offset: zod_1.z.coerce.number().min(0).default(0).optional(),
16
+ updatedAtSortOrder: zod_1.z.enum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
14
17
  });
15
18
  FindToolWorkspacesCommand.ResponseSchema = zod_1.z.object({
16
19
  data: zod_1.z.array(models_1.ToolWorkspaceSchema),
@@ -4,6 +4,7 @@ export declare namespace UpdateToolWorkspaceCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  title: z.ZodOptional<z.ZodString>;
6
6
  coverUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ isFavorite: z.ZodOptional<z.ZodBoolean>;
7
8
  status: z.ZodOptional<z.ZodEnum<typeof TOOL_WORKSPACE_STATUS>>;
8
9
  }, z.core.$strip>;
9
10
  type Request = z.infer<typeof RequestSchema>;
@@ -17,6 +18,8 @@ export declare namespace UpdateToolWorkspaceCommand {
17
18
  toolType: z.ZodEnum<typeof import("../../..").TOOL_CONTENT_TYPE>;
18
19
  title: z.ZodString;
19
20
  coverUrl: z.ZodNullable<z.ZodString>;
21
+ isFavorite: z.ZodBoolean;
22
+ pendingJobsCount: z.ZodOptional<z.ZodNumber>;
20
23
  status: z.ZodEnum<typeof TOOL_WORKSPACE_STATUS>;
21
24
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
22
25
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -9,6 +9,7 @@ var UpdateToolWorkspaceCommand;
9
9
  UpdateToolWorkspaceCommand.RequestSchema = zod_1.z.object({
10
10
  title: zod_1.z.string().min(1).optional(),
11
11
  coverUrl: zod_1.z.string().nullable().optional(),
12
+ isFavorite: zod_1.z.boolean().optional(),
12
13
  status: zod_1.z.enum(constants_1.TOOL_WORKSPACE_STATUS).optional(),
13
14
  });
14
15
  UpdateToolWorkspaceCommand.RequestParamsSchema = zod_1.z.object({
@@ -27,6 +27,22 @@ export declare namespace GetMeCommand {
27
27
  avatarKey: z.ZodNullable<z.ZodString>;
28
28
  isPremium: z.ZodBoolean;
29
29
  }, z.core.$strip>;
30
+ loyaltyStatus: z.ZodObject<{
31
+ level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
32
+ paidMonths: z.ZodNumber;
33
+ renewalBonusPercent: z.ZodNumber;
34
+ nextLevel: z.ZodNullable<z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>>;
35
+ nextLevelThresholdMonths: z.ZodNullable<z.ZodNumber>;
36
+ nextLevelRenewalBonusPercent: z.ZodNullable<z.ZodNumber>;
37
+ monthsToNextLevel: z.ZodNullable<z.ZodNumber>;
38
+ isLapsed: z.ZodBoolean;
39
+ winBackDeadline: z.ZodNullable<z.ZodDate>;
40
+ levels: z.ZodArray<z.ZodObject<{
41
+ level: z.ZodEnum<typeof import("../..").LOYALTY_LEVEL>;
42
+ thresholdMonths: z.ZodNumber;
43
+ renewalBonusPercent: z.ZodNumber;
44
+ }, z.core.$strip>>;
45
+ }, z.core.$strip>;
30
46
  }, z.core.$strip>;
31
47
  }, z.core.$strip>;
32
48
  type Response = z.infer<typeof ResponseSchema>;
@@ -21,6 +21,7 @@ var GetMeCommand;
21
21
  locale: zod_1.z.enum(rugpt_lib_common_1.LOCALE),
22
22
  digitalProcessingConsent: zod_1.z.boolean(),
23
23
  profile: models_1.UserProfileResponseSchema,
24
+ loyaltyStatus: models_1.UserLoyaltyStatusResponseSchema,
24
25
  }),
25
26
  });
26
27
  })(GetMeCommand || (exports.GetMeCommand = GetMeCommand = {}));
@@ -48,6 +48,7 @@ export * from './tool-interior-design';
48
48
  export * from './tool-html-page-builder';
49
49
  export * from './feedback';
50
50
  export * from './daily-streak';
51
+ export * from './loyalty-status';
51
52
  export * from './cabinet';
52
53
  export * from './canvas-node';
53
54
  export * from './canvas-edge';
@@ -64,6 +64,7 @@ __exportStar(require("./tool-interior-design"), exports);
64
64
  __exportStar(require("./tool-html-page-builder"), exports);
65
65
  __exportStar(require("./feedback"), exports);
66
66
  __exportStar(require("./daily-streak"), exports);
67
+ __exportStar(require("./loyalty-status"), exports);
67
68
  __exportStar(require("./cabinet"), exports);
68
69
  __exportStar(require("./canvas-node"), exports);
69
70
  __exportStar(require("./canvas-edge"), exports);
@@ -0,0 +1 @@
1
+ export * from './loyalty-level.enum';
@@ -14,12 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
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);
17
+ __exportStar(require("./loyalty-level.enum"), exports);
@@ -0,0 +1,7 @@
1
+ export declare enum LOYALTY_LEVEL {
2
+ NONE = "none",
3
+ BRONZE = "bronze",
4
+ SILVER = "silver",
5
+ GOLD = "gold",
6
+ PLATINUM = "platinum"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOYALTY_LEVEL = void 0;
4
+ var LOYALTY_LEVEL;
5
+ (function (LOYALTY_LEVEL) {
6
+ LOYALTY_LEVEL["NONE"] = "none";
7
+ LOYALTY_LEVEL["BRONZE"] = "bronze";
8
+ LOYALTY_LEVEL["SILVER"] = "silver";
9
+ LOYALTY_LEVEL["GOLD"] = "gold";
10
+ LOYALTY_LEVEL["PLATINUM"] = "platinum";
11
+ })(LOYALTY_LEVEL || (exports.LOYALTY_LEVEL = LOYALTY_LEVEL = {}));
@@ -0,0 +1,3 @@
1
+ export * from './enums';
2
+ export * from './loyalty-levels.constant';
3
+ export * from './loyalty-win-back.constant';
@@ -14,12 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./create-prompt-category.command"), exports);
18
- __exportStar(require("./create-prompt-category-translation.command"), exports);
19
- __exportStar(require("./delete-prompt-category.command"), exports);
20
- __exportStar(require("./update-prompt-category.command"), exports);
21
- __exportStar(require("./update-prompt-category-translation.command"), exports);
22
- __exportStar(require("./find-all-prompt-categories.command"), exports);
23
- __exportStar(require("./get-all-prompt-category-translations.query"), exports);
24
- __exportStar(require("./find-prompt-category-by-alias.command"), exports);
25
- __exportStar(require("./find-prompt-category-by-uuid.command"), exports);
17
+ __exportStar(require("./enums"), exports);
18
+ __exportStar(require("./loyalty-levels.constant"), exports);
19
+ __exportStar(require("./loyalty-win-back.constant"), exports);
@@ -0,0 +1,6 @@
1
+ import { LOYALTY_LEVEL } from './enums';
2
+ export declare const LOYALTY_LEVELS: ReadonlyArray<{
3
+ level: LOYALTY_LEVEL;
4
+ thresholdMonths: number;
5
+ renewalBonusPercent: number;
6
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOYALTY_LEVELS = void 0;
4
+ const enums_1 = require("./enums");
5
+ exports.LOYALTY_LEVELS = [
6
+ { level: enums_1.LOYALTY_LEVEL.NONE, thresholdMonths: 0, renewalBonusPercent: 0 },
7
+ { level: enums_1.LOYALTY_LEVEL.BRONZE, thresholdMonths: 3, renewalBonusPercent: 5 },
8
+ { level: enums_1.LOYALTY_LEVEL.SILVER, thresholdMonths: 6, renewalBonusPercent: 10 },
9
+ { level: enums_1.LOYALTY_LEVEL.GOLD, thresholdMonths: 12, renewalBonusPercent: 15 },
10
+ { level: enums_1.LOYALTY_LEVEL.PLATINUM, thresholdMonths: 24, renewalBonusPercent: 20 },
11
+ ];
@@ -0,0 +1 @@
1
+ export declare const LOYALTY_WIN_BACK_DAYS = 30;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LOYALTY_WIN_BACK_DAYS = void 0;
4
+ exports.LOYALTY_WIN_BACK_DAYS = 30;
@@ -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';
@@ -85,3 +79,4 @@ export * from './b2b';
85
79
  export * from './json-value.schema';
86
80
  export * from './team-account';
87
81
  export * from './canvas-template.schema';
82
+ export * from './user-loyalty-status.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);
@@ -101,3 +95,4 @@ __exportStar(require("./b2b"), exports);
101
95
  __exportStar(require("./json-value.schema"), exports);
102
96
  __exportStar(require("./team-account"), exports);
103
97
  __exportStar(require("./canvas-template.schema"), exports);
98
+ __exportStar(require("./user-loyalty-status.schema"), exports);
@@ -25,6 +25,7 @@ export declare const MarketplaceCardJobSchema: z.ZodObject<{
25
25
  createdAt: z.ZodCoercedDate<unknown>;
26
26
  updatedAt: z.ZodCoercedDate<unknown>;
27
27
  uuid: z.ZodUUID;
28
+ modelId: z.ZodUUID;
28
29
  title: z.ZodNullable<z.ZodString>;
29
30
  subtitle: z.ZodNullable<z.ZodString>;
30
31
  reaction: z.ZodNullable<z.ZodEnum<typeof USER_REACTION>>;
@@ -18,6 +18,7 @@ exports.MarketplaceCardJobAttachmentsSchema = zod_1.z.object({
18
18
  });
19
19
  exports.MarketplaceCardJobSchema = tool_job_schema_1.ToolJobSchema.extend({
20
20
  uuid: zod_1.z.uuid(),
21
+ modelId: zod_1.z.uuid(),
21
22
  title: zod_1.z.string().nullable(),
22
23
  subtitle: zod_1.z.string().nullable(),
23
24
  reaction: zod_1.z.enum(constants_1.USER_REACTION).nullable(),
@@ -5,6 +5,8 @@ export declare const ToolWorkspaceContentsSchema: z.ZodObject<{
5
5
  toolType: z.ZodEnum<typeof import("../../..").TOOL_CONTENT_TYPE>;
6
6
  title: z.ZodString;
7
7
  coverUrl: z.ZodNullable<z.ZodString>;
8
+ isFavorite: z.ZodBoolean;
9
+ pendingJobsCount: z.ZodOptional<z.ZodNumber>;
8
10
  status: z.ZodEnum<typeof import("../../..").TOOL_WORKSPACE_STATUS>;
9
11
  userId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
10
12
  unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
@@ -26,6 +28,7 @@ export declare const ToolWorkspaceContentsSchema: z.ZodObject<{
26
28
  createdAt: z.ZodCoercedDate<unknown>;
27
29
  updatedAt: z.ZodCoercedDate<unknown>;
28
30
  uuid: z.ZodUUID;
31
+ modelId: z.ZodUUID;
29
32
  title: z.ZodNullable<z.ZodString>;
30
33
  subtitle: z.ZodNullable<z.ZodString>;
31
34
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -15,6 +15,7 @@ export declare const ToolWorkspaceItemSchema: z.ZodObject<{
15
15
  createdAt: z.ZodCoercedDate<unknown>;
16
16
  updatedAt: z.ZodCoercedDate<unknown>;
17
17
  uuid: z.ZodUUID;
18
+ modelId: z.ZodUUID;
18
19
  title: z.ZodNullable<z.ZodString>;
19
20
  subtitle: z.ZodNullable<z.ZodString>;
20
21
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;
@@ -9,6 +9,7 @@ export declare const ToolWorkspaceJobSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
9
9
  createdAt: z.ZodCoercedDate<unknown>;
10
10
  updatedAt: z.ZodCoercedDate<unknown>;
11
11
  uuid: z.ZodUUID;
12
+ modelId: z.ZodUUID;
12
13
  title: z.ZodNullable<z.ZodString>;
13
14
  subtitle: z.ZodNullable<z.ZodString>;
14
15
  reaction: z.ZodNullable<z.ZodEnum<typeof import("../../..").USER_REACTION>>;