@purpleschool/gptbot 0.20.13-stage-2 → 0.20.14

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 (125) hide show
  1. package/build/api/controllers/http/index.d.ts +1 -0
  2. package/build/api/controllers/http/index.js +1 -0
  3. package/build/api/controllers/http/photo-session.d.ts +2 -0
  4. package/build/api/controllers/http/photo-session.js +3 -1
  5. package/build/api/controllers/http/support-widget.d.ts +5 -0
  6. package/build/api/controllers/http/support-widget.js +8 -0
  7. package/build/api/routes.d.ts +42 -0
  8. package/build/api/routes.js +42 -0
  9. package/build/commands/index.d.ts +1 -0
  10. package/build/commands/index.js +1 -0
  11. package/build/commands/support-widget/get-support-widget-identity.command.d.ts +10 -0
  12. package/build/commands/support-widget/get-support-widget-identity.command.js +15 -0
  13. package/build/commands/support-widget/index.d.ts +1 -0
  14. package/build/commands/support-widget/index.js +17 -0
  15. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +1 -228
  16. package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +3 -24
  17. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +1 -9
  18. package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +2 -8
  19. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +1 -146
  20. package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +2 -16
  21. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +1 -227
  22. package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +2 -22
  23. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +9 -0
  24. package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +9 -0
  25. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
  26. package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +9 -0
  27. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +52 -84
  28. package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +9 -0
  29. package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +52 -84
  30. package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +9 -0
  31. package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +36 -60
  32. package/build/commands/tools/photo-session/get-photo-session-config.command.js +9 -0
  33. package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +17 -60
  34. package/build/commands/tools/photo-session/get-photo-session-styles.command.js +9 -8
  35. package/build/commands/tools/photo-session/index.d.ts +1 -1
  36. package/build/commands/tools/photo-session/index.js +2 -1
  37. package/build/commands/tools/photo-session/photo-session.command.d.ts +65 -197
  38. package/build/commands/tools/photo-session/photo-session.command.js +15 -13
  39. package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +13 -2
  40. package/build/commands/tools/photo-session/retry-photo-session-job.command.js +10 -2
  41. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +13 -1
  42. package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +9 -0
  43. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +13 -1
  44. package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +9 -0
  45. package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +52 -84
  46. package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +9 -0
  47. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +13 -1
  48. package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +9 -0
  49. package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.d.ts +228 -0
  50. package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.js +26 -0
  51. package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.d.ts +9 -0
  52. package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.js +11 -0
  53. package/build/commands/tools/photo-session/v2/admin/index.d.ts +4 -0
  54. package/build/commands/tools/photo-session/v2/admin/index.js +20 -0
  55. package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.d.ts +146 -0
  56. package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.js +19 -0
  57. package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.d.ts +227 -0
  58. package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.js +25 -0
  59. package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.d.ts +5 -0
  60. package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.js +8 -0
  61. package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.d.ts +9 -0
  62. package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.js +11 -0
  63. package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.d.ts +158 -0
  64. package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.js +14 -0
  65. package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.d.ts +167 -0
  66. package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.js +24 -0
  67. package/build/commands/tools/photo-session/v2/get-photo-session-config.command.d.ts +107 -0
  68. package/build/commands/tools/photo-session/v2/get-photo-session-config.command.js +11 -0
  69. package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.d.ts +75 -0
  70. package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.js +19 -0
  71. package/build/commands/tools/photo-session/v2/index.d.ts +14 -0
  72. package/build/commands/tools/photo-session/v2/index.js +30 -0
  73. package/build/commands/tools/photo-session/{photo-session-recovery.command.d.ts → v2/photo-session-recovery.command.d.ts} +6 -6
  74. package/build/commands/tools/photo-session/v2/photo-session-recovery.command.js +17 -0
  75. package/build/commands/tools/photo-session/v2/photo-session.command.d.ts +278 -0
  76. package/build/commands/tools/photo-session/v2/photo-session.command.js +33 -0
  77. package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.d.ts +66 -0
  78. package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.js +15 -0
  79. package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.d.ts +71 -0
  80. package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.js +28 -0
  81. package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.d.ts +69 -0
  82. package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.js +17 -0
  83. package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.d.ts +162 -0
  84. package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.js +17 -0
  85. package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.d.ts +70 -0
  86. package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.js +23 -0
  87. package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts +0 -4
  88. package/build/commands/ui-notification/find-ui-notifications.command.d.ts +0 -4
  89. package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +2 -2
  90. package/build/models/tools/photo-session/identity.schema.d.ts +2 -4
  91. package/build/models/tools/photo-session/identity.schema.js +16 -12
  92. package/build/models/tools/photo-session/index.d.ts +1 -1
  93. package/build/models/tools/photo-session/index.js +2 -1
  94. package/build/models/tools/photo-session/photo-session-config.schema.d.ts +46 -200
  95. package/build/models/tools/photo-session/photo-session-config.schema.js +18 -51
  96. package/build/models/tools/photo-session/photo-session-group.schema.d.ts +9 -176
  97. package/build/models/tools/photo-session/photo-session-group.schema.js +9 -2
  98. package/build/models/tools/photo-session/photo-session-job.schema.d.ts +9 -11
  99. package/build/models/tools/photo-session/photo-session-job.schema.js +14 -8
  100. package/build/models/tools/photo-session/photo-session-model.schema.d.ts +1 -16
  101. package/build/models/tools/photo-session/photo-session-model.schema.js +22 -6
  102. package/build/models/tools/photo-session/photo-session-public.schema.d.ts +57 -169
  103. package/build/models/tools/photo-session/photo-session-public.schema.js +18 -39
  104. package/build/models/tools/photo-session/photo-session-style.schema.d.ts +18 -201
  105. package/build/models/tools/photo-session/photo-session-style.schema.js +17 -40
  106. package/build/models/tools/photo-session/v2/identity.schema.d.ts +4 -0
  107. package/build/models/tools/photo-session/v2/identity.schema.js +14 -0
  108. package/build/models/tools/photo-session/v2/index.d.ts +7 -0
  109. package/build/models/tools/photo-session/v2/index.js +23 -0
  110. package/build/models/tools/photo-session/v2/photo-session-config.schema.d.ts +303 -0
  111. package/build/models/tools/photo-session/v2/photo-session-config.schema.js +63 -0
  112. package/build/models/tools/photo-session/v2/photo-session-group.schema.d.ts +288 -0
  113. package/build/models/tools/photo-session/v2/photo-session-group.schema.js +28 -0
  114. package/build/models/tools/photo-session/v2/photo-session-job.schema.d.ts +169 -0
  115. package/build/models/tools/photo-session/v2/photo-session-job.schema.js +58 -0
  116. package/build/models/tools/photo-session/v2/photo-session-model.schema.d.ts +128 -0
  117. package/build/models/tools/photo-session/v2/photo-session-model.schema.js +39 -0
  118. package/build/models/tools/photo-session/v2/photo-session-public.schema.d.ts +326 -0
  119. package/build/models/tools/photo-session/v2/photo-session-public.schema.js +87 -0
  120. package/build/models/tools/photo-session/v2/photo-session-style.schema.d.ts +250 -0
  121. package/build/models/tools/photo-session/v2/photo-session-style.schema.js +60 -0
  122. package/build/models/ui-notification.schema.d.ts +0 -12
  123. package/build/models/ui-notification.schema.js +1 -6
  124. package/package.json +3 -3
  125. package/build/commands/tools/photo-session/photo-session-recovery.command.js +0 -17
@@ -0,0 +1,162 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePhotoSessionV2JobTitleCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ title: z.ZodString;
5
+ }, z.core.$strip>;
6
+ type Request = z.infer<typeof RequestSchema>;
7
+ const RequestParamsSchema: z.ZodObject<{
8
+ uuid: z.ZodUUID;
9
+ }, z.core.$strip>;
10
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ title: z.ZodString;
15
+ prompt: z.ZodString;
16
+ status: z.ZodEnum<typeof import("../../../..").PHOTO_SESSION_GROUP_STATUS>;
17
+ error: z.ZodNullable<z.ZodString>;
18
+ modelId: z.ZodString;
19
+ createdAt: z.ZodCoercedDate<unknown>;
20
+ updatedAt: z.ZodCoercedDate<unknown>;
21
+ identity: z.ZodOptional<z.ZodObject<{
22
+ mode: z.ZodEnum<{
23
+ catalog: "catalog";
24
+ custom: "custom";
25
+ }>;
26
+ modelMode: z.ZodPreprocess<z.ZodEnum<{
27
+ advanced: "advanced";
28
+ standard: "standard";
29
+ }>, unknown>;
30
+ styleId: z.ZodNullable<z.ZodUUID>;
31
+ selectedShotIds: z.ZodArray<z.ZodUUID>;
32
+ photosCount: z.ZodNumber;
33
+ participants: z.ZodArray<z.ZodObject<{
34
+ participantId: z.ZodUUID;
35
+ displayName: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>>;
36
+ gender: z.ZodEnum<{
37
+ female: "female";
38
+ male: "male";
39
+ }>;
40
+ photos: z.ZodOptional<z.ZodObject<{
41
+ front: z.ZodArray<z.ZodObject<{
42
+ uuid: z.ZodString;
43
+ url: z.ZodString;
44
+ name: z.ZodString;
45
+ mimeType: z.ZodString;
46
+ type: z.ZodString;
47
+ size: z.ZodNumber;
48
+ }, z.core.$strip>>;
49
+ turn: z.ZodArray<z.ZodObject<{
50
+ uuid: z.ZodString;
51
+ url: z.ZodString;
52
+ name: z.ZodString;
53
+ mimeType: z.ZodString;
54
+ type: z.ZodString;
55
+ size: z.ZodNumber;
56
+ }, z.core.$strip>>;
57
+ full: z.ZodArray<z.ZodObject<{
58
+ uuid: z.ZodString;
59
+ url: z.ZodString;
60
+ name: z.ZodString;
61
+ mimeType: z.ZodString;
62
+ type: z.ZodString;
63
+ size: z.ZodNumber;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>>;
66
+ appliedLook: z.ZodOptional<z.ZodObject<{
67
+ clothingPhotos: z.ZodArray<z.ZodObject<{
68
+ uuid: z.ZodString;
69
+ url: z.ZodString;
70
+ name: z.ZodString;
71
+ mimeType: z.ZodString;
72
+ type: z.ZodString;
73
+ size: z.ZodNumber;
74
+ }, z.core.$strip>>;
75
+ hairstylePhotos: z.ZodArray<z.ZodObject<{
76
+ uuid: z.ZodString;
77
+ url: z.ZodString;
78
+ name: z.ZodString;
79
+ mimeType: z.ZodString;
80
+ type: z.ZodString;
81
+ size: z.ZodNumber;
82
+ }, z.core.$strip>>;
83
+ accessoriesPhotos: z.ZodArray<z.ZodObject<{
84
+ uuid: z.ZodString;
85
+ url: z.ZodString;
86
+ name: z.ZodString;
87
+ mimeType: z.ZodString;
88
+ type: z.ZodString;
89
+ size: z.ZodNumber;
90
+ }, z.core.$strip>>;
91
+ }, z.core.$strip>>;
92
+ }, z.core.$strip>>;
93
+ preparation: z.ZodObject<{
94
+ status: z.ZodEnum<{
95
+ blocked: "blocked";
96
+ completed: "completed";
97
+ failed: "failed";
98
+ pending: "pending";
99
+ processing: "processing";
100
+ }>;
101
+ failureReason: z.ZodNullable<z.ZodLiteral<"outfit">>;
102
+ }, z.core.$strip>;
103
+ }, z.core.$strip>>;
104
+ subJobs: z.ZodArray<z.ZodObject<{
105
+ uuid: z.ZodString;
106
+ price: z.ZodNumber;
107
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../../..").USER_REACTION>>;
108
+ title: z.ZodString;
109
+ status: z.ZodEnum<{
110
+ completed: import("../../../..").TOOL_JOB_STATUS.COMPLETED;
111
+ failed: import("../../../..").TOOL_JOB_STATUS.FAILED;
112
+ pending: import("../../../..").TOOL_JOB_STATUS.PENDING;
113
+ }>;
114
+ error: z.ZodNullable<z.ZodString>;
115
+ groupId: z.ZodString;
116
+ previewUrl: z.ZodNullable<z.ZodString>;
117
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
118
+ isPublished: z.ZodBoolean;
119
+ postId: z.ZodNullable<z.ZodString>;
120
+ isFavorite: z.ZodBoolean;
121
+ params: z.ZodObject<{
122
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
123
+ photosCount: z.ZodOptional<z.ZodNumber>;
124
+ aspectRatio: z.ZodOptional<z.ZodString>;
125
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ uuid: z.ZodString;
127
+ url: z.ZodString;
128
+ name: z.ZodString;
129
+ mimeType: z.ZodString;
130
+ type: z.ZodString;
131
+ size: z.ZodNumber;
132
+ }, z.core.$strip>>>;
133
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ uuid: z.ZodString;
135
+ url: z.ZodString;
136
+ name: z.ZodString;
137
+ mimeType: z.ZodString;
138
+ type: z.ZodString;
139
+ size: z.ZodNumber;
140
+ }, z.core.$strip>>>;
141
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ uuid: z.ZodString;
143
+ url: z.ZodString;
144
+ name: z.ZodString;
145
+ mimeType: z.ZodString;
146
+ type: z.ZodString;
147
+ size: z.ZodNumber;
148
+ }, z.core.$strip>>>;
149
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
150
+ uuid: z.ZodString;
151
+ url: z.ZodString;
152
+ name: z.ZodString;
153
+ mimeType: z.ZodString;
154
+ type: z.ZodString;
155
+ size: z.ZodNumber;
156
+ }, z.core.$strip>>>;
157
+ }, z.core.$strip>;
158
+ }, z.core.$strip>>;
159
+ }, z.core.$strip>;
160
+ }, z.core.$strip>;
161
+ type Response = z.infer<typeof ResponseSchema>;
162
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePhotoSessionV2JobTitleCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../../models");
6
+ var UpdatePhotoSessionV2JobTitleCommand;
7
+ (function (UpdatePhotoSessionV2JobTitleCommand) {
8
+ UpdatePhotoSessionV2JobTitleCommand.RequestSchema = zod_1.z.object({
9
+ title: zod_1.z.string().min(1).max(40),
10
+ });
11
+ UpdatePhotoSessionV2JobTitleCommand.RequestParamsSchema = zod_1.z.object({
12
+ uuid: zod_1.z.uuid(),
13
+ });
14
+ UpdatePhotoSessionV2JobTitleCommand.ResponseSchema = zod_1.z.object({
15
+ data: models_1.PhotoSessionV2PublicGroupSchema,
16
+ });
17
+ })(UpdatePhotoSessionV2JobTitleCommand || (exports.UpdatePhotoSessionV2JobTitleCommand = UpdatePhotoSessionV2JobTitleCommand = {}));
@@ -0,0 +1,70 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdatePublishedStatusPhotoSessionV2JobCommand {
3
+ const RequestParamsSchema: z.ZodObject<{
4
+ uuid: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ type RequestParams = z.infer<typeof RequestParamsSchema>;
7
+ const RequestSchema: z.ZodObject<{
8
+ isPublished: z.ZodBoolean;
9
+ postId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$strip>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ data: z.ZodObject<{
14
+ uuid: z.ZodString;
15
+ price: z.ZodNumber;
16
+ reaction: z.ZodNullable<z.ZodEnum<typeof import("../../../..").USER_REACTION>>;
17
+ title: z.ZodString;
18
+ status: z.ZodEnum<{
19
+ completed: import("../../../..").TOOL_JOB_STATUS.COMPLETED;
20
+ failed: import("../../../..").TOOL_JOB_STATUS.FAILED;
21
+ pending: import("../../../..").TOOL_JOB_STATUS.PENDING;
22
+ }>;
23
+ error: z.ZodNullable<z.ZodString>;
24
+ groupId: z.ZodString;
25
+ previewUrl: z.ZodNullable<z.ZodString>;
26
+ imageUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
27
+ isPublished: z.ZodBoolean;
28
+ postId: z.ZodNullable<z.ZodString>;
29
+ isFavorite: z.ZodBoolean;
30
+ params: z.ZodObject<{
31
+ styleId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
32
+ photosCount: z.ZodOptional<z.ZodNumber>;
33
+ aspectRatio: z.ZodOptional<z.ZodString>;
34
+ attachedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
+ uuid: z.ZodString;
36
+ url: z.ZodString;
37
+ name: z.ZodString;
38
+ mimeType: z.ZodString;
39
+ type: z.ZodString;
40
+ size: z.ZodNumber;
41
+ }, z.core.$strip>>>;
42
+ clothingPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
43
+ uuid: z.ZodString;
44
+ url: z.ZodString;
45
+ name: z.ZodString;
46
+ mimeType: z.ZodString;
47
+ type: z.ZodString;
48
+ size: z.ZodNumber;
49
+ }, z.core.$strip>>>;
50
+ hairstylePhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
51
+ uuid: z.ZodString;
52
+ url: z.ZodString;
53
+ name: z.ZodString;
54
+ mimeType: z.ZodString;
55
+ type: z.ZodString;
56
+ size: z.ZodNumber;
57
+ }, z.core.$strip>>>;
58
+ accessoriesPhotos: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ uuid: z.ZodString;
60
+ url: z.ZodString;
61
+ name: z.ZodString;
62
+ mimeType: z.ZodString;
63
+ type: z.ZodString;
64
+ size: z.ZodNumber;
65
+ }, z.core.$strip>>>;
66
+ }, z.core.$strip>;
67
+ }, z.core.$strip>;
68
+ }, z.core.$strip>;
69
+ type Response = z.infer<typeof ResponseSchema>;
70
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusPhotoSessionV2JobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../../models");
6
+ var UpdatePublishedStatusPhotoSessionV2JobCommand;
7
+ (function (UpdatePublishedStatusPhotoSessionV2JobCommand) {
8
+ UpdatePublishedStatusPhotoSessionV2JobCommand.RequestParamsSchema = zod_1.z.object({
9
+ uuid: zod_1.z.uuid(),
10
+ });
11
+ UpdatePublishedStatusPhotoSessionV2JobCommand.RequestSchema = zod_1.z
12
+ .object({
13
+ isPublished: zod_1.z.boolean(),
14
+ postId: zod_1.z.string().nullable().optional(),
15
+ })
16
+ .refine((data) => (data.isPublished ? Boolean(data.postId) : true), {
17
+ message: 'Post ID is required when job is published',
18
+ path: ['postId'],
19
+ });
20
+ UpdatePublishedStatusPhotoSessionV2JobCommand.ResponseSchema = zod_1.z.object({
21
+ data: models_1.PhotoSessionV2PublicJobSchema,
22
+ });
23
+ })(UpdatePublishedStatusPhotoSessionV2JobCommand || (exports.UpdatePublishedStatusPhotoSessionV2JobCommand = UpdatePublishedStatusPhotoSessionV2JobCommand = {}));
@@ -96,10 +96,6 @@ export declare namespace FindActiveUiNotificationsByPageAndUserCommand {
96
96
  serverTime: z.ZodOptional<z.ZodDate>;
97
97
  type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.GENERIC>;
98
98
  dynamicUiContent: z.ZodObject<{
99
- renewalReminder: z.ZodOptional<z.ZodObject<{
100
- renewalDate: z.ZodISODateTime;
101
- price: z.ZodNumber;
102
- }, z.core.$strip>>;
103
99
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
104
100
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
105
101
  }, z.core.$strip>;
@@ -97,10 +97,6 @@ export declare namespace FindUiNotificationsCommand {
97
97
  serverTime: z.ZodOptional<z.ZodDate>;
98
98
  type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.GENERIC>;
99
99
  dynamicUiContent: z.ZodObject<{
100
- renewalReminder: z.ZodOptional<z.ZodObject<{
101
- renewalDate: z.ZodISODateTime;
102
- price: z.ZodNumber;
103
- }, z.core.$strip>>;
104
100
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
105
101
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
106
102
  }, z.core.$strip>;
@@ -1,6 +1,6 @@
1
- import { PhotoSessionModelPricingRules } from '../../models';
1
+ import { PhotoSessionV2ModelPricingRules } from '../../models';
2
2
  export declare function calculatePhotoSessionPrice({ basePrice, userHasActiveSubscriptionOrProduct, rules, }: {
3
3
  basePrice: number;
4
4
  userHasActiveSubscriptionOrProduct: boolean;
5
- rules: PhotoSessionModelPricingRules;
5
+ rules: PhotoSessionV2ModelPricingRules;
6
6
  }): number;
@@ -1,4 +1,2 @@
1
- export { PhotoSessionV2RequestSchema, PhotoSessionCustomCountSchema, PHOTO_SESSION_CUSTOM_COUNTS, PhotoSessionCatalogSchema, PhotoSessionPublicCatalogSchema, PhotoSessionCatalogFiltersSchema, PhotoSessionRunResponseSchema, PhotoSessionFrameIdentitySchema, } from '@purpleschool/gptbot-tools';
2
- export type { PhotoSessionCatalog, PhotoSessionPublicCatalog, PhotoSessionCatalogFilters, } from '@purpleschool/gptbot-tools';
3
- export { getPhotoSessionMissingPhotos } from '@purpleschool/gptbot-tools';
4
- export type { PhotoSessionPhotoRole, PhotoSessionMissingPhotos } from '@purpleschool/gptbot-tools';
1
+ /** Фотосессии V2: фасад прежнего import path; определения находятся в ./v2/identity.schema.ts. */
2
+ export * from './v2/identity.schema';
@@ -1,14 +1,18 @@
1
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
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getPhotoSessionMissingPhotos = exports.PhotoSessionFrameIdentitySchema = exports.PhotoSessionRunResponseSchema = exports.PhotoSessionCatalogFiltersSchema = exports.PhotoSessionPublicCatalogSchema = exports.PhotoSessionCatalogSchema = exports.PHOTO_SESSION_CUSTOM_COUNTS = exports.PhotoSessionCustomCountSchema = exports.PhotoSessionV2RequestSchema = void 0;
4
- var gptbot_tools_1 = require("@purpleschool/gptbot-tools");
5
- Object.defineProperty(exports, "PhotoSessionV2RequestSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionV2RequestSchema; } });
6
- Object.defineProperty(exports, "PhotoSessionCustomCountSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionCustomCountSchema; } });
7
- Object.defineProperty(exports, "PHOTO_SESSION_CUSTOM_COUNTS", { enumerable: true, get: function () { return gptbot_tools_1.PHOTO_SESSION_CUSTOM_COUNTS; } });
8
- Object.defineProperty(exports, "PhotoSessionCatalogSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionCatalogSchema; } });
9
- Object.defineProperty(exports, "PhotoSessionPublicCatalogSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionPublicCatalogSchema; } });
10
- Object.defineProperty(exports, "PhotoSessionCatalogFiltersSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionCatalogFiltersSchema; } });
11
- Object.defineProperty(exports, "PhotoSessionRunResponseSchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionRunResponseSchema; } });
12
- Object.defineProperty(exports, "PhotoSessionFrameIdentitySchema", { enumerable: true, get: function () { return gptbot_tools_1.PhotoSessionFrameIdentitySchema; } });
13
- var gptbot_tools_2 = require("@purpleschool/gptbot-tools");
14
- Object.defineProperty(exports, "getPhotoSessionMissingPhotos", { enumerable: true, get: function () { return gptbot_tools_2.getPhotoSessionMissingPhotos; } });
17
+ /** Фотосессии V2: фасад прежнего import path; определения находятся в ./v2/identity.schema.ts. */
18
+ __exportStar(require("./v2/identity.schema"), exports);
@@ -3,5 +3,5 @@ export * from './photo-session-job.schema';
3
3
  export * from './photo-session-group.schema';
4
4
  export * from './photo-session-model.schema';
5
5
  export * from './photo-session-style.schema';
6
- export * from './identity.schema';
6
+ export * from './v2';
7
7
  export * from './photo-session-public.schema';
@@ -14,10 +14,11 @@ 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
+ // Версионная граница: V1 exports сохранены для совместимости, V2 развивается отдельно.
17
18
  __exportStar(require("./photo-session-config.schema"), exports);
18
19
  __exportStar(require("./photo-session-job.schema"), exports);
19
20
  __exportStar(require("./photo-session-group.schema"), exports);
20
21
  __exportStar(require("./photo-session-model.schema"), exports);
21
22
  __exportStar(require("./photo-session-style.schema"), exports);
22
- __exportStar(require("./identity.schema"), exports);
23
+ __exportStar(require("./v2"), exports);
23
24
  __exportStar(require("./photo-session-public.schema"), exports);