@purpleschool/multisite 0.0.21 → 0.0.22

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 (129) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/user-to-product.ts +7 -0
  3. package/api/controller/http/user-to-subscription.ts +8 -0
  4. package/api/routes.ts +18 -0
  5. package/build/api/controller/http/index.d.ts +2 -0
  6. package/build/api/controller/http/index.d.ts.map +1 -1
  7. package/build/api/controller/http/index.js +2 -0
  8. package/build/api/controller/http/user-to-product.d.ts +7 -0
  9. package/build/api/controller/http/user-to-product.d.ts.map +1 -0
  10. package/build/api/controller/http/user-to-product.js +9 -0
  11. package/build/api/controller/http/user-to-subscription.d.ts +8 -0
  12. package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
  13. package/build/api/controller/http/user-to-subscription.js +10 -0
  14. package/build/api/routes.d.ts +11 -0
  15. package/build/api/routes.d.ts.map +1 -1
  16. package/build/api/routes.js +11 -0
  17. package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
  18. package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
  19. package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
  20. package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
  21. package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
  22. package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
  23. package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
  24. package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
  25. package/build/commands/index.d.ts +2 -0
  26. package/build/commands/index.d.ts.map +1 -1
  27. package/build/commands/index.js +2 -0
  28. package/build/commands/page/create-page.command.d.ts +4 -4
  29. package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
  30. package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
  31. package/build/commands/page/find-page.command.d.ts +8 -8
  32. package/build/commands/page/update-page.command.d.ts +4 -4
  33. package/build/commands/payment/cloud-payments.command.d.ts +2 -2
  34. package/build/commands/stt/execute-stt.command.d.ts +12 -12
  35. package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
  36. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
  37. package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
  38. package/build/commands/tts/execute-tts.command.d.ts +12 -12
  39. package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
  40. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
  41. package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
  42. package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
  43. package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
  44. package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
  45. package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
  46. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
  47. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
  48. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
  49. package/build/commands/user-to-product/index.d.ts +4 -0
  50. package/build/commands/user-to-product/index.d.ts.map +1 -0
  51. package/build/commands/user-to-product/index.js +19 -0
  52. package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
  53. package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
  54. package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
  55. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
  56. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
  57. package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
  58. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
  59. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
  60. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
  61. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
  62. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
  63. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
  64. package/build/commands/user-to-subscription/index.d.ts +5 -0
  65. package/build/commands/user-to-subscription/index.d.ts.map +1 -0
  66. package/build/commands/user-to-subscription/index.js +20 -0
  67. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
  68. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
  69. package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
  70. package/build/constants/errors/errors.d.ts +60 -0
  71. package/build/constants/errors/errors.d.ts.map +1 -1
  72. package/build/constants/errors/errors.js +62 -0
  73. package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
  74. package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
  75. package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
  76. package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
  77. package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
  78. package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
  79. package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
  80. package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
  81. package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
  82. package/build/models/index.d.ts +2 -0
  83. package/build/models/index.d.ts.map +1 -1
  84. package/build/models/index.js +2 -0
  85. package/build/models/page.schema.d.ts +4 -4
  86. package/build/models/stt/stt-config.schema.d.ts +8 -8
  87. package/build/models/stt/stt-job.schema.d.ts +6 -6
  88. package/build/models/stt/stt-model.schema.d.ts +4 -4
  89. package/build/models/tts/tts-config.schema.d.ts +8 -8
  90. package/build/models/tts/tts-job.schema.d.ts +6 -6
  91. package/build/models/tts/tts-model.schema.d.ts +4 -4
  92. package/build/models/user-to-product.schema.d.ts +37 -0
  93. package/build/models/user-to-product.schema.d.ts.map +1 -0
  94. package/build/models/user-to-product.schema.js +17 -0
  95. package/build/models/user-to-subscription.schema.d.ts +61 -0
  96. package/build/models/user-to-subscription.schema.d.ts.map +1 -0
  97. package/build/models/user-to-subscription.schema.js +25 -0
  98. package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
  99. package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
  100. package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
  101. package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
  102. package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
  103. package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
  104. package/build/queries/payment/get-payment-history.command.d.ts +6 -6
  105. package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
  106. package/build/queries/stt/get-stt-config.command.d.ts +12 -12
  107. package/build/queries/stt/get-stt-job.command.d.ts +12 -12
  108. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
  109. package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
  110. package/build/queries/tts/get-tts-config.command.d.ts +12 -12
  111. package/build/queries/tts/get-tts-job.command.d.ts +12 -12
  112. package/build/queries/user/get-my-products.command.d.ts +8 -8
  113. package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
  114. package/build/queries/user/get-user-payments.command.d.ts +18 -18
  115. package/commands/index.ts +2 -0
  116. package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
  117. package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
  118. package/commands/user-to-product/index.ts +3 -0
  119. package/commands/user-to-product/update-user-to-product.command.ts +23 -0
  120. package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
  121. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
  122. package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
  123. package/commands/user-to-subscription/index.ts +4 -0
  124. package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
  125. package/constants/errors/errors.ts +64 -0
  126. package/models/index.ts +2 -0
  127. package/models/user-to-product.schema.ts +15 -0
  128. package/models/user-to-subscription.schema.ts +23 -0
  129. package/package.json +1 -1
@@ -117,10 +117,11 @@ export declare namespace ExecuteTTSCommand {
117
117
  style?: number | undefined;
118
118
  language?: string | undefined;
119
119
  };
120
- duration: number;
121
- title: string;
120
+ userId: string | null;
122
121
  createdAt: Date;
123
122
  updatedAt: Date;
123
+ duration: number;
124
+ title: string;
124
125
  error: string | null;
125
126
  modelId: string;
126
127
  reaction: import("../..").USER_REACTION | null;
@@ -131,7 +132,6 @@ export declare namespace ExecuteTTSCommand {
131
132
  timestamp: string;
132
133
  error?: string | null | undefined;
133
134
  }[];
134
- userId: string | null;
135
135
  unregisteredUserId: string | null;
136
136
  isDeleted: boolean;
137
137
  completedAt: Date | null;
@@ -152,15 +152,15 @@ export declare namespace ExecuteTTSCommand {
152
152
  style?: number | undefined;
153
153
  language?: string | undefined;
154
154
  };
155
- duration: number;
156
- title: string;
155
+ userId: string | null;
157
156
  createdAt: Date;
158
157
  updatedAt: Date;
158
+ duration: number;
159
+ title: string;
159
160
  error: string | null;
160
161
  modelId: string;
161
162
  reaction: import("../..").USER_REACTION | null;
162
163
  dislikeReason: string | null;
163
- userId: string | null;
164
164
  unregisteredUserId: string | null;
165
165
  isDeleted: boolean;
166
166
  completedAt: Date | null;
@@ -189,10 +189,11 @@ export declare namespace ExecuteTTSCommand {
189
189
  style?: number | undefined;
190
190
  language?: string | undefined;
191
191
  };
192
- duration: number;
193
- title: string;
192
+ userId: string | null;
194
193
  createdAt: Date;
195
194
  updatedAt: Date;
195
+ duration: number;
196
+ title: string;
196
197
  error: string | null;
197
198
  modelId: string;
198
199
  reaction: import("../..").USER_REACTION | null;
@@ -203,7 +204,6 @@ export declare namespace ExecuteTTSCommand {
203
204
  timestamp: string;
204
205
  error?: string | null | undefined;
205
206
  }[];
206
- userId: string | null;
207
207
  unregisteredUserId: string | null;
208
208
  isDeleted: boolean;
209
209
  completedAt: Date | null;
@@ -226,15 +226,15 @@ export declare namespace ExecuteTTSCommand {
226
226
  style?: number | undefined;
227
227
  language?: string | undefined;
228
228
  };
229
- duration: number;
230
- title: string;
229
+ userId: string | null;
231
230
  createdAt: Date;
232
231
  updatedAt: Date;
232
+ duration: number;
233
+ title: string;
233
234
  error: string | null;
234
235
  modelId: string;
235
236
  reaction: import("../..").USER_REACTION | null;
236
237
  dislikeReason: string | null;
237
- userId: string | null;
238
238
  unregisteredUserId: string | null;
239
239
  isDeleted: boolean;
240
240
  completedAt: Date | null;
@@ -78,10 +78,11 @@ export declare namespace RetryTTSJobCommand {
78
78
  style?: number | undefined;
79
79
  language?: string | undefined;
80
80
  };
81
- duration: number;
82
- title: string;
81
+ userId: string | null;
83
82
  createdAt: Date;
84
83
  updatedAt: Date;
84
+ duration: number;
85
+ title: string;
85
86
  error: string | null;
86
87
  modelId: string;
87
88
  reaction: import("../..").USER_REACTION | null;
@@ -92,7 +93,6 @@ export declare namespace RetryTTSJobCommand {
92
93
  timestamp: string;
93
94
  error?: string | null | undefined;
94
95
  }[];
95
- userId: string | null;
96
96
  unregisteredUserId: string | null;
97
97
  isDeleted: boolean;
98
98
  completedAt: Date | null;
@@ -113,15 +113,15 @@ export declare namespace RetryTTSJobCommand {
113
113
  style?: number | undefined;
114
114
  language?: string | undefined;
115
115
  };
116
- duration: number;
117
- title: string;
116
+ userId: string | null;
118
117
  createdAt: Date;
119
118
  updatedAt: Date;
119
+ duration: number;
120
+ title: string;
120
121
  error: string | null;
121
122
  modelId: string;
122
123
  reaction: import("../..").USER_REACTION | null;
123
124
  dislikeReason: string | null;
124
- userId: string | null;
125
125
  unregisteredUserId: string | null;
126
126
  isDeleted: boolean;
127
127
  completedAt: Date | null;
@@ -150,10 +150,11 @@ export declare namespace RetryTTSJobCommand {
150
150
  style?: number | undefined;
151
151
  language?: string | undefined;
152
152
  };
153
- duration: number;
154
- title: string;
153
+ userId: string | null;
155
154
  createdAt: Date;
156
155
  updatedAt: Date;
156
+ duration: number;
157
+ title: string;
157
158
  error: string | null;
158
159
  modelId: string;
159
160
  reaction: import("../..").USER_REACTION | null;
@@ -164,7 +165,6 @@ export declare namespace RetryTTSJobCommand {
164
165
  timestamp: string;
165
166
  error?: string | null | undefined;
166
167
  }[];
167
- userId: string | null;
168
168
  unregisteredUserId: string | null;
169
169
  isDeleted: boolean;
170
170
  completedAt: Date | null;
@@ -187,15 +187,15 @@ export declare namespace RetryTTSJobCommand {
187
187
  style?: number | undefined;
188
188
  language?: string | undefined;
189
189
  };
190
- duration: number;
191
- title: string;
190
+ userId: string | null;
192
191
  createdAt: Date;
193
192
  updatedAt: Date;
193
+ duration: number;
194
+ title: string;
194
195
  error: string | null;
195
196
  modelId: string;
196
197
  reaction: import("../..").USER_REACTION | null;
197
198
  dislikeReason: string | null;
198
- userId: string | null;
199
199
  unregisteredUserId: string | null;
200
200
  isDeleted: boolean;
201
201
  completedAt: Date | null;
@@ -90,10 +90,11 @@ export declare namespace SetReactionToTTSJobCommand {
90
90
  style?: number | undefined;
91
91
  language?: string | undefined;
92
92
  };
93
- duration: number;
94
- title: string;
93
+ userId: string | null;
95
94
  createdAt: Date;
96
95
  updatedAt: Date;
96
+ duration: number;
97
+ title: string;
97
98
  error: string | null;
98
99
  modelId: string;
99
100
  reaction: USER_REACTION | null;
@@ -104,7 +105,6 @@ export declare namespace SetReactionToTTSJobCommand {
104
105
  timestamp: string;
105
106
  error?: string | null | undefined;
106
107
  }[];
107
- userId: string | null;
108
108
  unregisteredUserId: string | null;
109
109
  isDeleted: boolean;
110
110
  completedAt: Date | null;
@@ -125,15 +125,15 @@ export declare namespace SetReactionToTTSJobCommand {
125
125
  style?: number | undefined;
126
126
  language?: string | undefined;
127
127
  };
128
- duration: number;
129
- title: string;
128
+ userId: string | null;
130
129
  createdAt: Date;
131
130
  updatedAt: Date;
131
+ duration: number;
132
+ title: string;
132
133
  error: string | null;
133
134
  modelId: string;
134
135
  reaction: USER_REACTION | null;
135
136
  dislikeReason: string | null;
136
- userId: string | null;
137
137
  unregisteredUserId: string | null;
138
138
  isDeleted: boolean;
139
139
  completedAt: Date | null;
@@ -162,10 +162,11 @@ export declare namespace SetReactionToTTSJobCommand {
162
162
  style?: number | undefined;
163
163
  language?: string | undefined;
164
164
  };
165
- duration: number;
166
- title: string;
165
+ userId: string | null;
167
166
  createdAt: Date;
168
167
  updatedAt: Date;
168
+ duration: number;
169
+ title: string;
169
170
  error: string | null;
170
171
  modelId: string;
171
172
  reaction: USER_REACTION | null;
@@ -176,7 +177,6 @@ export declare namespace SetReactionToTTSJobCommand {
176
177
  timestamp: string;
177
178
  error?: string | null | undefined;
178
179
  }[];
179
- userId: string | null;
180
180
  unregisteredUserId: string | null;
181
181
  isDeleted: boolean;
182
182
  completedAt: Date | null;
@@ -199,15 +199,15 @@ export declare namespace SetReactionToTTSJobCommand {
199
199
  style?: number | undefined;
200
200
  language?: string | undefined;
201
201
  };
202
- duration: number;
203
- title: string;
202
+ userId: string | null;
204
203
  createdAt: Date;
205
204
  updatedAt: Date;
205
+ duration: number;
206
+ title: string;
206
207
  error: string | null;
207
208
  modelId: string;
208
209
  reaction: USER_REACTION | null;
209
210
  dislikeReason: string | null;
210
- userId: string | null;
211
211
  unregisteredUserId: string | null;
212
212
  isDeleted: boolean;
213
213
  completedAt: Date | null;
@@ -86,10 +86,11 @@ export declare namespace UpdateTTSJobTitleCommand {
86
86
  style?: number | undefined;
87
87
  language?: string | undefined;
88
88
  };
89
- duration: number;
90
- title: string;
89
+ userId: string | null;
91
90
  createdAt: Date;
92
91
  updatedAt: Date;
92
+ duration: number;
93
+ title: string;
93
94
  error: string | null;
94
95
  modelId: string;
95
96
  reaction: import("../..").USER_REACTION | null;
@@ -100,7 +101,6 @@ export declare namespace UpdateTTSJobTitleCommand {
100
101
  timestamp: string;
101
102
  error?: string | null | undefined;
102
103
  }[];
103
- userId: string | null;
104
104
  unregisteredUserId: string | null;
105
105
  isDeleted: boolean;
106
106
  completedAt: Date | null;
@@ -121,15 +121,15 @@ export declare namespace UpdateTTSJobTitleCommand {
121
121
  style?: number | undefined;
122
122
  language?: string | undefined;
123
123
  };
124
- duration: number;
125
- title: string;
124
+ userId: string | null;
126
125
  createdAt: Date;
127
126
  updatedAt: Date;
127
+ duration: number;
128
+ title: string;
128
129
  error: string | null;
129
130
  modelId: string;
130
131
  reaction: import("../..").USER_REACTION | null;
131
132
  dislikeReason: string | null;
132
- userId: string | null;
133
133
  unregisteredUserId: string | null;
134
134
  isDeleted: boolean;
135
135
  completedAt: Date | null;
@@ -158,10 +158,11 @@ export declare namespace UpdateTTSJobTitleCommand {
158
158
  style?: number | undefined;
159
159
  language?: string | undefined;
160
160
  };
161
- duration: number;
162
- title: string;
161
+ userId: string | null;
163
162
  createdAt: Date;
164
163
  updatedAt: Date;
164
+ duration: number;
165
+ title: string;
165
166
  error: string | null;
166
167
  modelId: string;
167
168
  reaction: import("../..").USER_REACTION | null;
@@ -172,7 +173,6 @@ export declare namespace UpdateTTSJobTitleCommand {
172
173
  timestamp: string;
173
174
  error?: string | null | undefined;
174
175
  }[];
175
- userId: string | null;
176
176
  unregisteredUserId: string | null;
177
177
  isDeleted: boolean;
178
178
  completedAt: Date | null;
@@ -195,15 +195,15 @@ export declare namespace UpdateTTSJobTitleCommand {
195
195
  style?: number | undefined;
196
196
  language?: string | undefined;
197
197
  };
198
- duration: number;
199
- title: string;
198
+ userId: string | null;
200
199
  createdAt: Date;
201
200
  updatedAt: Date;
201
+ duration: number;
202
+ title: string;
202
203
  error: string | null;
203
204
  modelId: string;
204
205
  reaction: import("../..").USER_REACTION | null;
205
206
  dislikeReason: string | null;
206
- userId: string | null;
207
207
  unregisteredUserId: string | null;
208
208
  isDeleted: boolean;
209
209
  completedAt: Date | null;
@@ -9,28 +9,28 @@ export declare namespace UpsertUnregisteredUserCommand {
9
9
  tokenBalance: z.ZodNumber;
10
10
  expiresAt: z.ZodDate;
11
11
  }, "strip", z.ZodTypeAny, {
12
+ tokenBalance: number;
12
13
  unregisteredUserId: string;
13
14
  accessToken: string;
14
- tokenBalance: number;
15
15
  expiresAt: Date;
16
16
  }, {
17
+ tokenBalance: number;
17
18
  unregisteredUserId: string;
18
19
  accessToken: string;
19
- tokenBalance: number;
20
20
  expiresAt: Date;
21
21
  }>;
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  data: {
24
+ tokenBalance: number;
24
25
  unregisteredUserId: string;
25
26
  accessToken: string;
26
- tokenBalance: number;
27
27
  expiresAt: Date;
28
28
  };
29
29
  }, {
30
30
  data: {
31
+ tokenBalance: number;
31
32
  unregisteredUserId: string;
32
33
  accessToken: string;
33
- tokenBalance: number;
34
34
  expiresAt: Date;
35
35
  };
36
36
  }>;
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DeleteUserToProductCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuid: string;
7
+ }, {
8
+ uuid: string;
9
+ }>;
10
+ type RequestParam = z.infer<typeof RequestParamSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodBoolean;
13
+ }, "strip", z.ZodTypeAny, {
14
+ data: boolean;
15
+ }, {
16
+ data: boolean;
17
+ }>;
18
+ type Response = z.infer<typeof ResponseSchema>;
19
+ }
20
+ //# sourceMappingURL=delete-user-to-product.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-user-to-product.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/delete-user-to-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteUserToProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteUserToProductCommand;
6
+ (function (DeleteUserToProductCommand) {
7
+ DeleteUserToProductCommand.RequestParamSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteUserToProductCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(DeleteUserToProductCommand || (exports.DeleteUserToProductCommand = DeleteUserToProductCommand = {}));
@@ -0,0 +1,75 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetUserToProductByUuidCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuid: string;
7
+ }, {
8
+ uuid: string;
9
+ }>;
10
+ type RequestParam = z.infer<typeof RequestParamSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ siteId: z.ZodString;
15
+ userId: z.ZodString;
16
+ productId: z.ZodString;
17
+ orderId: z.ZodNullable<z.ZodString>;
18
+ initTokenBalance: z.ZodNumber;
19
+ tokenBalance: z.ZodNumber;
20
+ status: z.ZodNativeEnum<typeof import("../..").USER_TO_PRODUCT_STATUS>;
21
+ createdAt: z.ZodDate;
22
+ updatedAt: z.ZodDate;
23
+ }, "strip", z.ZodTypeAny, {
24
+ uuid: string;
25
+ siteId: string;
26
+ status: import("../..").USER_TO_PRODUCT_STATUS;
27
+ userId: string;
28
+ productId: string;
29
+ orderId: string | null;
30
+ initTokenBalance: number;
31
+ tokenBalance: number;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ }, {
35
+ uuid: string;
36
+ siteId: string;
37
+ status: import("../..").USER_TO_PRODUCT_STATUS;
38
+ userId: string;
39
+ productId: string;
40
+ orderId: string | null;
41
+ initTokenBalance: number;
42
+ tokenBalance: number;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ }>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ data: {
48
+ uuid: string;
49
+ siteId: string;
50
+ status: import("../..").USER_TO_PRODUCT_STATUS;
51
+ userId: string;
52
+ productId: string;
53
+ orderId: string | null;
54
+ initTokenBalance: number;
55
+ tokenBalance: number;
56
+ createdAt: Date;
57
+ updatedAt: Date;
58
+ };
59
+ }, {
60
+ data: {
61
+ uuid: string;
62
+ siteId: string;
63
+ status: import("../..").USER_TO_PRODUCT_STATUS;
64
+ userId: string;
65
+ productId: string;
66
+ orderId: string | null;
67
+ initTokenBalance: number;
68
+ tokenBalance: number;
69
+ createdAt: Date;
70
+ updatedAt: Date;
71
+ };
72
+ }>;
73
+ type Response = z.infer<typeof ResponseSchema>;
74
+ }
75
+ //# sourceMappingURL=get-user-to-product-by-uuid.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-user-to-product-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/get-user-to-product-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserToProductByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetUserToProductByUuidCommand;
7
+ (function (GetUserToProductByUuidCommand) {
8
+ GetUserToProductByUuidCommand.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetUserToProductByUuidCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.UserToProductSchema,
13
+ });
14
+ })(GetUserToProductByUuidCommand || (exports.GetUserToProductByUuidCommand = GetUserToProductByUuidCommand = {}));
@@ -0,0 +1,4 @@
1
+ export * from './get-user-to-product-by-uuid.command';
2
+ export * from './update-user-to-product.command';
3
+ export * from './delete-user-to-product.command';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-user-to-product-by-uuid.command"), exports);
18
+ __exportStar(require("./update-user-to-product.command"), exports);
19
+ __exportStar(require("./delete-user-to-product.command"), exports);
@@ -0,0 +1,93 @@
1
+ import { z } from 'zod';
2
+ import { USER_TO_PRODUCT_STATUS } from '../../constants';
3
+ export declare namespace UpdateUserToProductCommand {
4
+ const RequestParamSchema: z.ZodObject<{
5
+ uuid: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ uuid: string;
8
+ }, {
9
+ uuid: string;
10
+ }>;
11
+ type RequestParam = z.infer<typeof RequestParamSchema>;
12
+ const RequestSchema: z.ZodObject<{
13
+ initTokenBalance: z.ZodOptional<z.ZodNumber>;
14
+ tokenBalance: z.ZodOptional<z.ZodNumber>;
15
+ status: z.ZodOptional<z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>>;
16
+ orderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ }, "strip", z.ZodTypeAny, {
18
+ status?: USER_TO_PRODUCT_STATUS | undefined;
19
+ orderId?: string | null | undefined;
20
+ initTokenBalance?: number | undefined;
21
+ tokenBalance?: number | undefined;
22
+ }, {
23
+ status?: USER_TO_PRODUCT_STATUS | undefined;
24
+ orderId?: string | null | undefined;
25
+ initTokenBalance?: number | undefined;
26
+ tokenBalance?: number | undefined;
27
+ }>;
28
+ type Request = z.infer<typeof RequestSchema>;
29
+ const ResponseSchema: z.ZodObject<{
30
+ data: z.ZodObject<{
31
+ uuid: z.ZodString;
32
+ siteId: z.ZodString;
33
+ userId: z.ZodString;
34
+ productId: z.ZodString;
35
+ orderId: z.ZodNullable<z.ZodString>;
36
+ initTokenBalance: z.ZodNumber;
37
+ tokenBalance: z.ZodNumber;
38
+ status: z.ZodNativeEnum<typeof USER_TO_PRODUCT_STATUS>;
39
+ createdAt: z.ZodDate;
40
+ updatedAt: z.ZodDate;
41
+ }, "strip", z.ZodTypeAny, {
42
+ uuid: string;
43
+ siteId: string;
44
+ status: USER_TO_PRODUCT_STATUS;
45
+ userId: string;
46
+ productId: string;
47
+ orderId: string | null;
48
+ initTokenBalance: number;
49
+ tokenBalance: number;
50
+ createdAt: Date;
51
+ updatedAt: Date;
52
+ }, {
53
+ uuid: string;
54
+ siteId: string;
55
+ status: USER_TO_PRODUCT_STATUS;
56
+ userId: string;
57
+ productId: string;
58
+ orderId: string | null;
59
+ initTokenBalance: number;
60
+ tokenBalance: number;
61
+ createdAt: Date;
62
+ updatedAt: Date;
63
+ }>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ data: {
66
+ uuid: string;
67
+ siteId: string;
68
+ status: USER_TO_PRODUCT_STATUS;
69
+ userId: string;
70
+ productId: string;
71
+ orderId: string | null;
72
+ initTokenBalance: number;
73
+ tokenBalance: number;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ };
77
+ }, {
78
+ data: {
79
+ uuid: string;
80
+ siteId: string;
81
+ status: USER_TO_PRODUCT_STATUS;
82
+ userId: string;
83
+ productId: string;
84
+ orderId: string | null;
85
+ initTokenBalance: number;
86
+ tokenBalance: number;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ };
90
+ }>;
91
+ type Response = z.infer<typeof ResponseSchema>;
92
+ }
93
+ //# sourceMappingURL=update-user-to-product.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user-to-product.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-product/update-user-to-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;MAKxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateUserToProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const models_1 = require("../../models");
7
+ var UpdateUserToProductCommand;
8
+ (function (UpdateUserToProductCommand) {
9
+ UpdateUserToProductCommand.RequestParamSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ UpdateUserToProductCommand.RequestSchema = zod_1.z.object({
13
+ initTokenBalance: zod_1.z.number().int().min(0).optional(),
14
+ tokenBalance: zod_1.z.number().int().min(0).optional(),
15
+ status: zod_1.z.nativeEnum(constants_1.USER_TO_PRODUCT_STATUS).optional(),
16
+ orderId: zod_1.z.string().uuid().nullable().optional(),
17
+ });
18
+ UpdateUserToProductCommand.ResponseSchema = zod_1.z.object({
19
+ data: models_1.UserToProductSchema,
20
+ });
21
+ })(UpdateUserToProductCommand || (exports.UpdateUserToProductCommand = UpdateUserToProductCommand = {}));
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ export declare namespace AdminCancelSubscriptionCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuidSiteUserToSubscription: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuidSiteUserToSubscription: string;
7
+ }, {
8
+ uuidSiteUserToSubscription: string;
9
+ }>;
10
+ type RequestParam = z.infer<typeof RequestParamSchema>;
11
+ const ResponseSchema: z.ZodVoid;
12
+ type Response = z.infer<typeof ResponseSchema>;
13
+ }
14
+ //# sourceMappingURL=admin-cancel-subscription.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin-cancel-subscription.command.d.ts","sourceRoot":"","sources":["../../../commands/user-to-subscription/admin-cancel-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc,WAAW,CAAC;IACvC,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminCancelSubscriptionCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var AdminCancelSubscriptionCommand;
6
+ (function (AdminCancelSubscriptionCommand) {
7
+ AdminCancelSubscriptionCommand.RequestParamSchema = zod_1.z.object({
8
+ uuidSiteUserToSubscription: zod_1.z.string().uuid(),
9
+ });
10
+ AdminCancelSubscriptionCommand.ResponseSchema = zod_1.z.void();
11
+ })(AdminCancelSubscriptionCommand || (exports.AdminCancelSubscriptionCommand = AdminCancelSubscriptionCommand = {}));