@purpleschool/multisite 0.0.20 → 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 (171) hide show
  1. package/api/controller/http/index.ts +2 -0
  2. package/api/controller/http/payment.ts +1 -0
  3. package/api/controller/http/product.ts +2 -0
  4. package/api/controller/http/subscription.ts +0 -1
  5. package/api/controller/http/user-to-product.ts +7 -0
  6. package/api/controller/http/user-to-subscription.ts +8 -0
  7. package/api/routes.ts +23 -2
  8. package/build/api/controller/http/index.d.ts +2 -0
  9. package/build/api/controller/http/index.d.ts.map +1 -1
  10. package/build/api/controller/http/index.js +2 -0
  11. package/build/api/controller/http/payment.d.ts +1 -0
  12. package/build/api/controller/http/payment.d.ts.map +1 -1
  13. package/build/api/controller/http/payment.js +1 -0
  14. package/build/api/controller/http/product.d.ts +2 -0
  15. package/build/api/controller/http/product.d.ts.map +1 -1
  16. package/build/api/controller/http/product.js +2 -0
  17. package/build/api/controller/http/subscription.d.ts +0 -1
  18. package/build/api/controller/http/subscription.d.ts.map +1 -1
  19. package/build/api/controller/http/subscription.js +0 -1
  20. package/build/api/controller/http/user-to-product.d.ts +7 -0
  21. package/build/api/controller/http/user-to-product.d.ts.map +1 -0
  22. package/build/api/controller/http/user-to-product.js +9 -0
  23. package/build/api/controller/http/user-to-subscription.d.ts +8 -0
  24. package/build/api/controller/http/user-to-subscription.d.ts.map +1 -0
  25. package/build/api/controller/http/user-to-subscription.js +10 -0
  26. package/build/api/routes.d.ts +14 -1
  27. package/build/api/routes.d.ts.map +1 -1
  28. package/build/api/routes.js +14 -1
  29. package/build/commands/image-editor/execute-image-editor.command.d.ts +4 -4
  30. package/build/commands/image-editor/retry-image-editor-job.command.d.ts +4 -4
  31. package/build/commands/image-editor/set-reaction-to-image-editor-job.command.d.ts +4 -4
  32. package/build/commands/image-editor/update-image-editor-job-title.command.d.ts +4 -4
  33. package/build/commands/image-generation/execute-image-generation.command.d.ts +4 -4
  34. package/build/commands/image-generation/retry-image-generation-job.command.d.ts +4 -4
  35. package/build/commands/image-generation/set-reaction-to-image-generation-job.command.d.ts +4 -4
  36. package/build/commands/image-generation/update-image-generation-job-title.command.d.ts +4 -4
  37. package/build/commands/index.d.ts +2 -0
  38. package/build/commands/index.d.ts.map +1 -1
  39. package/build/commands/index.js +2 -0
  40. package/build/commands/page/create-page.command.d.ts +4 -4
  41. package/build/commands/page/find-page-by-alias.command.d.ts +12 -12
  42. package/build/commands/page/find-page-by-criteria.command.d.ts +4 -4
  43. package/build/commands/page/find-page.command.d.ts +8 -8
  44. package/build/commands/page/update-page.command.d.ts +4 -4
  45. package/build/commands/payment/cloud-payments.command.d.ts +2 -2
  46. package/build/commands/payment/index.d.ts +1 -0
  47. package/build/commands/payment/index.d.ts.map +1 -1
  48. package/build/commands/payment/index.js +1 -0
  49. package/build/commands/payment/refund-payment.command.d.ts +20 -0
  50. package/build/commands/payment/refund-payment.command.d.ts.map +1 -0
  51. package/build/commands/payment/refund-payment.command.js +13 -0
  52. package/build/commands/{subscription/refund-subscription.command.d.ts → product/delete-product.command.d.ts} +2 -2
  53. package/build/commands/product/delete-product.command.d.ts.map +1 -0
  54. package/build/commands/product/delete-product.command.js +13 -0
  55. package/build/commands/product/index.d.ts +2 -0
  56. package/build/commands/product/index.d.ts.map +1 -1
  57. package/build/commands/product/index.js +2 -0
  58. package/build/commands/product/update-product.command.d.ts +116 -0
  59. package/build/commands/product/update-product.command.d.ts.map +1 -0
  60. package/build/commands/product/update-product.command.js +26 -0
  61. package/build/commands/stt/execute-stt.command.d.ts +12 -12
  62. package/build/commands/stt/retry-stt-job.command.d.ts +12 -12
  63. package/build/commands/stt/set-reaction-to-stt-job.command.d.ts +12 -12
  64. package/build/commands/stt/update-stt-job-title.command.d.ts +12 -12
  65. package/build/commands/subscription/index.d.ts +0 -1
  66. package/build/commands/subscription/index.d.ts.map +1 -1
  67. package/build/commands/subscription/index.js +0 -1
  68. package/build/commands/tts/execute-tts.command.d.ts +12 -12
  69. package/build/commands/tts/retry-tts-job.command.d.ts +12 -12
  70. package/build/commands/tts/set-reaction-to-tts-job.command.d.ts +12 -12
  71. package/build/commands/tts/update-tts-job-title.command.d.ts +12 -12
  72. package/build/commands/unregistered-user/upsert-unregistered-user.command.d.ts +4 -4
  73. package/build/commands/user-to-product/delete-user-to-product.command.d.ts +20 -0
  74. package/build/commands/user-to-product/delete-user-to-product.command.d.ts.map +1 -0
  75. package/build/commands/user-to-product/delete-user-to-product.command.js +13 -0
  76. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts +75 -0
  77. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.d.ts.map +1 -0
  78. package/build/commands/user-to-product/get-user-to-product-by-uuid.command.js +14 -0
  79. package/build/commands/user-to-product/index.d.ts +4 -0
  80. package/build/commands/user-to-product/index.d.ts.map +1 -0
  81. package/build/commands/user-to-product/index.js +19 -0
  82. package/build/commands/user-to-product/update-user-to-product.command.d.ts +93 -0
  83. package/build/commands/user-to-product/update-user-to-product.command.d.ts.map +1 -0
  84. package/build/commands/user-to-product/update-user-to-product.command.js +21 -0
  85. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts +14 -0
  86. package/build/commands/user-to-subscription/admin-cancel-subscription.command.d.ts.map +1 -0
  87. package/build/commands/user-to-subscription/admin-cancel-subscription.command.js +11 -0
  88. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts +20 -0
  89. package/build/commands/user-to-subscription/delete-user-to-subscription.command.d.ts.map +1 -0
  90. package/build/commands/user-to-subscription/delete-user-to-subscription.command.js +13 -0
  91. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts +115 -0
  92. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.d.ts.map +1 -0
  93. package/build/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.js +14 -0
  94. package/build/commands/user-to-subscription/index.d.ts +5 -0
  95. package/build/commands/user-to-subscription/index.d.ts.map +1 -0
  96. package/build/commands/user-to-subscription/index.js +20 -0
  97. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts +157 -0
  98. package/build/commands/user-to-subscription/update-user-to-subscription.command.d.ts.map +1 -0
  99. package/build/commands/user-to-subscription/update-user-to-subscription.command.js +29 -0
  100. package/build/constants/errors/errors.d.ts +65 -0
  101. package/build/constants/errors/errors.d.ts.map +1 -1
  102. package/build/constants/errors/errors.js +67 -0
  103. package/build/constants/payment/enums/payment-status.enum.d.ts +2 -1
  104. package/build/constants/payment/enums/payment-status.enum.d.ts.map +1 -1
  105. package/build/constants/payment/enums/payment-status.enum.js +1 -0
  106. package/build/models/image-editor/image-editor-config.schema.d.ts +10 -10
  107. package/build/models/image-editor/image-editor-job.schema.d.ts +2 -2
  108. package/build/models/image-editor/image-editor-model.schema.d.ts +2 -2
  109. package/build/models/image-editor/image-editor-prompt-group.schema.d.ts +4 -4
  110. package/build/models/image-editor/image-editor-system-prompt.schema.d.ts +2 -2
  111. package/build/models/image-generation/image-generation-config.schema.d.ts +6 -6
  112. package/build/models/image-generation/image-generation-job.schema.d.ts +2 -2
  113. package/build/models/image-generation/image-generation-model.schema.d.ts +2 -2
  114. package/build/models/image-generation/image-generation-vendor.schema.d.ts +4 -4
  115. package/build/models/index.d.ts +2 -0
  116. package/build/models/index.d.ts.map +1 -1
  117. package/build/models/index.js +2 -0
  118. package/build/models/page.schema.d.ts +4 -4
  119. package/build/models/stt/stt-config.schema.d.ts +8 -8
  120. package/build/models/stt/stt-job.schema.d.ts +6 -6
  121. package/build/models/stt/stt-model.schema.d.ts +4 -4
  122. package/build/models/tts/tts-config.schema.d.ts +8 -8
  123. package/build/models/tts/tts-job.schema.d.ts +6 -6
  124. package/build/models/tts/tts-model.schema.d.ts +4 -4
  125. package/build/models/user-to-product.schema.d.ts +37 -0
  126. package/build/models/user-to-product.schema.d.ts.map +1 -0
  127. package/build/models/user-to-product.schema.js +17 -0
  128. package/build/models/user-to-subscription.schema.d.ts +61 -0
  129. package/build/models/user-to-subscription.schema.d.ts.map +1 -0
  130. package/build/models/user-to-subscription.schema.js +25 -0
  131. package/build/queries/image-editor/find-image-editor-jobs.command.d.ts +4 -4
  132. package/build/queries/image-editor/get-image-editor-config.command.d.ts +14 -14
  133. package/build/queries/image-editor/get-image-editor-job.command.d.ts +4 -4
  134. package/build/queries/image-generation/find-image-generation-jobs.command.d.ts +4 -4
  135. package/build/queries/image-generation/get-image-generation-config.command.d.ts +8 -8
  136. package/build/queries/image-generation/get-image-generation-job.command.d.ts +4 -4
  137. package/build/queries/payment/get-payment-history.command.d.ts +6 -6
  138. package/build/queries/stt/find-stt-jobs.command.d.ts +12 -12
  139. package/build/queries/stt/get-stt-config.command.d.ts +12 -12
  140. package/build/queries/stt/get-stt-job.command.d.ts +12 -12
  141. package/build/queries/subscription/get-subscriptions-summary.command.d.ts +16 -16
  142. package/build/queries/tts/find-tts-jobs.command.d.ts +12 -12
  143. package/build/queries/tts/get-tts-config.command.d.ts +12 -12
  144. package/build/queries/tts/get-tts-job.command.d.ts +12 -12
  145. package/build/queries/user/get-my-products.command.d.ts +8 -8
  146. package/build/queries/user/get-my-subscriptions.command.d.ts +12 -12
  147. package/build/queries/user/get-user-payments.command.d.ts +18 -18
  148. package/commands/index.ts +2 -0
  149. package/commands/payment/index.ts +1 -0
  150. package/commands/payment/refund-payment.command.ts +13 -0
  151. package/commands/{subscription/refund-subscription.command.ts → product/delete-product.command.ts} +1 -1
  152. package/commands/product/index.ts +2 -0
  153. package/commands/product/update-product.command.ts +30 -0
  154. package/commands/subscription/index.ts +0 -1
  155. package/commands/user-to-product/delete-user-to-product.command.ts +13 -0
  156. package/commands/user-to-product/get-user-to-product-by-uuid.command.ts +14 -0
  157. package/commands/user-to-product/index.ts +3 -0
  158. package/commands/user-to-product/update-user-to-product.command.ts +23 -0
  159. package/commands/user-to-subscription/admin-cancel-subscription.command.ts +11 -0
  160. package/commands/user-to-subscription/delete-user-to-subscription.command.ts +13 -0
  161. package/commands/user-to-subscription/get-user-to-subscription-by-uuid.command.ts +14 -0
  162. package/commands/user-to-subscription/index.ts +4 -0
  163. package/commands/user-to-subscription/update-user-to-subscription.command.ts +31 -0
  164. package/constants/errors/errors.ts +69 -0
  165. package/constants/payment/enums/payment-status.enum.ts +1 -0
  166. package/models/index.ts +2 -0
  167. package/models/user-to-product.schema.ts +15 -0
  168. package/models/user-to-subscription.schema.ts +23 -0
  169. package/package.json +1 -1
  170. package/build/commands/subscription/refund-subscription.command.d.ts.map +0 -1
  171. package/build/commands/subscription/refund-subscription.command.js +0 -13
@@ -137,11 +137,11 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
137
137
  origin: import("../..").JOB_REQUEST_ORIGIN;
138
138
  isDeleted: boolean;
139
139
  internalError: string | null;
140
+ userId?: string | null | undefined;
140
141
  createdAt?: string | Date | undefined;
141
142
  updatedAt?: string | Date | undefined;
142
143
  error?: string | null | undefined;
143
144
  presetId?: string | null | undefined;
144
- userId?: string | null | undefined;
145
145
  unregisteredUserId?: string | null | undefined;
146
146
  tokenReservationId?: string | null | undefined;
147
147
  completedAt?: string | Date | null | undefined;
@@ -179,11 +179,11 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
179
179
  origin: import("../..").JOB_REQUEST_ORIGIN;
180
180
  isDeleted: boolean;
181
181
  internalError: string | null;
182
+ userId?: string | null | undefined;
182
183
  createdAt?: string | Date | undefined;
183
184
  updatedAt?: string | Date | undefined;
184
185
  error?: string | null | undefined;
185
186
  presetId?: string | null | undefined;
186
- userId?: string | null | undefined;
187
187
  unregisteredUserId?: string | null | undefined;
188
188
  tokenReservationId?: string | null | undefined;
189
189
  completedAt?: string | Date | null | undefined;
@@ -223,11 +223,11 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
223
223
  origin: import("../..").JOB_REQUEST_ORIGIN;
224
224
  isDeleted: boolean;
225
225
  internalError: string | null;
226
+ userId?: string | null | undefined;
226
227
  createdAt?: string | Date | undefined;
227
228
  updatedAt?: string | Date | undefined;
228
229
  error?: string | null | undefined;
229
230
  presetId?: string | null | undefined;
230
- userId?: string | null | undefined;
231
231
  unregisteredUserId?: string | null | undefined;
232
232
  tokenReservationId?: string | null | undefined;
233
233
  completedAt?: string | Date | null | undefined;
@@ -267,11 +267,11 @@ export declare namespace UpdateImageGenerationJobTitleCommand {
267
267
  origin: import("../..").JOB_REQUEST_ORIGIN;
268
268
  isDeleted: boolean;
269
269
  internalError: string | null;
270
+ userId?: string | null | undefined;
270
271
  createdAt?: string | Date | undefined;
271
272
  updatedAt?: string | Date | undefined;
272
273
  error?: string | null | undefined;
273
274
  presetId?: string | null | undefined;
274
- userId?: string | null | undefined;
275
275
  unregisteredUserId?: string | null | undefined;
276
276
  tokenReservationId?: string | null | undefined;
277
277
  completedAt?: string | Date | null | undefined;
@@ -1,6 +1,8 @@
1
1
  export * from './auth';
2
2
  export * from './product';
3
3
  export * from './subscription';
4
+ export * from './user-to-product';
5
+ export * from './user-to-subscription';
4
6
  export * from './payment';
5
7
  export * from './transaction';
6
8
  export * from './image-generation';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC"}
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./auth"), exports);
18
18
  __exportStar(require("./product"), exports);
19
19
  __exportStar(require("./subscription"), exports);
20
+ __exportStar(require("./user-to-product"), exports);
21
+ __exportStar(require("./user-to-subscription"), exports);
20
22
  __exportStar(require("./payment"), exports);
21
23
  __exportStar(require("./transaction"), exports);
22
24
  __exportStar(require("./image-generation"), exports);
@@ -39,9 +39,9 @@ export declare namespace CreatePageCommand {
39
39
  updatedAt: z.ZodDate;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  uuid: string;
42
- title: string;
43
42
  createdAt: Date;
44
43
  updatedAt: Date;
44
+ title: string;
45
45
  metaTitle: string;
46
46
  metaDescription: string;
47
47
  subTitle: string;
@@ -49,9 +49,9 @@ export declare namespace CreatePageCommand {
49
49
  alias: string;
50
50
  }, {
51
51
  uuid: string;
52
- title: string;
53
52
  createdAt: Date;
54
53
  updatedAt: Date;
54
+ title: string;
55
55
  metaTitle: string;
56
56
  metaDescription: string;
57
57
  subTitle: string;
@@ -61,9 +61,9 @@ export declare namespace CreatePageCommand {
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  data: {
63
63
  uuid: string;
64
- title: string;
65
64
  createdAt: Date;
66
65
  updatedAt: Date;
66
+ title: string;
67
67
  metaTitle: string;
68
68
  metaDescription: string;
69
69
  subTitle: string;
@@ -73,9 +73,9 @@ export declare namespace CreatePageCommand {
73
73
  }, {
74
74
  data: {
75
75
  uuid: string;
76
- title: string;
77
76
  createdAt: Date;
78
77
  updatedAt: Date;
78
+ title: string;
79
79
  metaTitle: string;
80
80
  metaDescription: string;
81
81
  subTitle: string;
@@ -52,9 +52,9 @@ export declare namespace FindPageByAliasCommand {
52
52
  }>, "many">;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  uuid: string;
55
- title: string;
56
55
  createdAt: Date;
57
56
  updatedAt: Date;
57
+ title: string;
58
58
  metaTitle: string;
59
59
  metaDescription: string;
60
60
  subTitle: string;
@@ -70,9 +70,9 @@ export declare namespace FindPageByAliasCommand {
70
70
  }[];
71
71
  }, {
72
72
  uuid: string;
73
- title: string;
74
73
  createdAt: Date;
75
74
  updatedAt: Date;
75
+ title: string;
76
76
  metaTitle: string;
77
77
  metaDescription: string;
78
78
  subTitle: string;
@@ -90,9 +90,9 @@ export declare namespace FindPageByAliasCommand {
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  data: {
92
92
  uuid: string;
93
- title: string;
94
93
  createdAt: Date;
95
94
  updatedAt: Date;
95
+ title: string;
96
96
  metaTitle: string;
97
97
  metaDescription: string;
98
98
  subTitle: string;
@@ -110,9 +110,9 @@ export declare namespace FindPageByAliasCommand {
110
110
  }, {
111
111
  data: {
112
112
  uuid: string;
113
- title: string;
114
113
  createdAt: Date;
115
114
  updatedAt: Date;
115
+ title: string;
116
116
  metaTitle: string;
117
117
  metaDescription: string;
118
118
  subTitle: string;
@@ -165,9 +165,9 @@ export declare namespace FindPageByAliasCommand {
165
165
  }>, "many">;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  uuid: string;
168
- title: string;
169
168
  createdAt: Date;
170
169
  updatedAt: Date;
170
+ title: string;
171
171
  metaTitle: string;
172
172
  metaDescription: string;
173
173
  subTitle: string;
@@ -183,9 +183,9 @@ export declare namespace FindPageByAliasCommand {
183
183
  }[];
184
184
  }, {
185
185
  uuid: string;
186
- title: string;
187
186
  createdAt: Date;
188
187
  updatedAt: Date;
188
+ title: string;
189
189
  metaTitle: string;
190
190
  metaDescription: string;
191
191
  subTitle: string;
@@ -203,9 +203,9 @@ export declare namespace FindPageByAliasCommand {
203
203
  }, "strip", z.ZodTypeAny, {
204
204
  data: {
205
205
  uuid: string;
206
- title: string;
207
206
  createdAt: Date;
208
207
  updatedAt: Date;
208
+ title: string;
209
209
  metaTitle: string;
210
210
  metaDescription: string;
211
211
  subTitle: string;
@@ -223,9 +223,9 @@ export declare namespace FindPageByAliasCommand {
223
223
  }, {
224
224
  data: {
225
225
  uuid: string;
226
- title: string;
227
226
  createdAt: Date;
228
227
  updatedAt: Date;
228
+ title: string;
229
229
  metaTitle: string;
230
230
  metaDescription: string;
231
231
  subTitle: string;
@@ -277,9 +277,9 @@ export declare namespace FindPageByAliasCommand {
277
277
  }>, "many">;
278
278
  }, "strip", z.ZodTypeAny, {
279
279
  uuid: string;
280
- title: string;
281
280
  createdAt: Date;
282
281
  updatedAt: Date;
282
+ title: string;
283
283
  metaTitle: string;
284
284
  metaDescription: string;
285
285
  subTitle: string;
@@ -295,9 +295,9 @@ export declare namespace FindPageByAliasCommand {
295
295
  }[];
296
296
  }, {
297
297
  uuid: string;
298
- title: string;
299
298
  createdAt: Date;
300
299
  updatedAt: Date;
300
+ title: string;
301
301
  metaTitle: string;
302
302
  metaDescription: string;
303
303
  subTitle: string;
@@ -315,9 +315,9 @@ export declare namespace FindPageByAliasCommand {
315
315
  }, "strip", z.ZodTypeAny, {
316
316
  data: {
317
317
  uuid: string;
318
- title: string;
319
318
  createdAt: Date;
320
319
  updatedAt: Date;
320
+ title: string;
321
321
  metaTitle: string;
322
322
  metaDescription: string;
323
323
  subTitle: string;
@@ -335,9 +335,9 @@ export declare namespace FindPageByAliasCommand {
335
335
  }, {
336
336
  data: {
337
337
  uuid: string;
338
- title: string;
339
338
  createdAt: Date;
340
339
  updatedAt: Date;
340
+ title: string;
341
341
  metaTitle: string;
342
342
  metaDescription: string;
343
343
  subTitle: string;
@@ -56,9 +56,9 @@ export declare namespace FindPageByCriteriaCommand {
56
56
  }>, "many">;
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  uuid: string;
59
- title: string;
60
59
  createdAt: Date;
61
60
  updatedAt: Date;
61
+ title: string;
62
62
  metaTitle: string;
63
63
  metaDescription: string;
64
64
  subTitle: string;
@@ -74,9 +74,9 @@ export declare namespace FindPageByCriteriaCommand {
74
74
  }[];
75
75
  }, {
76
76
  uuid: string;
77
- title: string;
78
77
  createdAt: Date;
79
78
  updatedAt: Date;
79
+ title: string;
80
80
  metaTitle: string;
81
81
  metaDescription: string;
82
82
  subTitle: string;
@@ -97,9 +97,9 @@ export declare namespace FindPageByCriteriaCommand {
97
97
  page: number;
98
98
  data: {
99
99
  uuid: string;
100
- title: string;
101
100
  createdAt: Date;
102
101
  updatedAt: Date;
102
+ title: string;
103
103
  metaTitle: string;
104
104
  metaDescription: string;
105
105
  subTitle: string;
@@ -119,9 +119,9 @@ export declare namespace FindPageByCriteriaCommand {
119
119
  page: number;
120
120
  data: {
121
121
  uuid: string;
122
- title: string;
123
122
  createdAt: Date;
124
123
  updatedAt: Date;
124
+ title: string;
125
125
  metaTitle: string;
126
126
  metaDescription: string;
127
127
  subTitle: string;
@@ -52,9 +52,9 @@ export declare namespace FindPageCommand {
52
52
  }>, "many">;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  uuid: string;
55
- title: string;
56
55
  createdAt: Date;
57
56
  updatedAt: Date;
57
+ title: string;
58
58
  metaTitle: string;
59
59
  metaDescription: string;
60
60
  subTitle: string;
@@ -70,9 +70,9 @@ export declare namespace FindPageCommand {
70
70
  }[];
71
71
  }, {
72
72
  uuid: string;
73
- title: string;
74
73
  createdAt: Date;
75
74
  updatedAt: Date;
75
+ title: string;
76
76
  metaTitle: string;
77
77
  metaDescription: string;
78
78
  subTitle: string;
@@ -90,9 +90,9 @@ export declare namespace FindPageCommand {
90
90
  }, "strip", z.ZodTypeAny, {
91
91
  data: {
92
92
  uuid: string;
93
- title: string;
94
93
  createdAt: Date;
95
94
  updatedAt: Date;
95
+ title: string;
96
96
  metaTitle: string;
97
97
  metaDescription: string;
98
98
  subTitle: string;
@@ -110,9 +110,9 @@ export declare namespace FindPageCommand {
110
110
  }, {
111
111
  data: {
112
112
  uuid: string;
113
- title: string;
114
113
  createdAt: Date;
115
114
  updatedAt: Date;
115
+ title: string;
116
116
  metaTitle: string;
117
117
  metaDescription: string;
118
118
  subTitle: string;
@@ -165,9 +165,9 @@ export declare namespace FindPageCommand {
165
165
  }>, "many">;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  uuid: string;
168
- title: string;
169
168
  createdAt: Date;
170
169
  updatedAt: Date;
170
+ title: string;
171
171
  metaTitle: string;
172
172
  metaDescription: string;
173
173
  subTitle: string;
@@ -183,9 +183,9 @@ export declare namespace FindPageCommand {
183
183
  }[];
184
184
  }, {
185
185
  uuid: string;
186
- title: string;
187
186
  createdAt: Date;
188
187
  updatedAt: Date;
188
+ title: string;
189
189
  metaTitle: string;
190
190
  metaDescription: string;
191
191
  subTitle: string;
@@ -203,9 +203,9 @@ export declare namespace FindPageCommand {
203
203
  }, "strip", z.ZodTypeAny, {
204
204
  data: {
205
205
  uuid: string;
206
- title: string;
207
206
  createdAt: Date;
208
207
  updatedAt: Date;
208
+ title: string;
209
209
  metaTitle: string;
210
210
  metaDescription: string;
211
211
  subTitle: string;
@@ -223,9 +223,9 @@ export declare namespace FindPageCommand {
223
223
  }, {
224
224
  data: {
225
225
  uuid: string;
226
- title: string;
227
226
  createdAt: Date;
228
227
  updatedAt: Date;
228
+ title: string;
229
229
  metaTitle: string;
230
230
  metaDescription: string;
231
231
  subTitle: string;
@@ -44,9 +44,9 @@ export declare namespace UpdatePageCommand {
44
44
  updatedAt: z.ZodDate;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  uuid: string;
47
- title: string;
48
47
  createdAt: Date;
49
48
  updatedAt: Date;
49
+ title: string;
50
50
  metaTitle: string;
51
51
  metaDescription: string;
52
52
  subTitle: string;
@@ -54,9 +54,9 @@ export declare namespace UpdatePageCommand {
54
54
  alias: string;
55
55
  }, {
56
56
  uuid: string;
57
- title: string;
58
57
  createdAt: Date;
59
58
  updatedAt: Date;
59
+ title: string;
60
60
  metaTitle: string;
61
61
  metaDescription: string;
62
62
  subTitle: string;
@@ -66,9 +66,9 @@ export declare namespace UpdatePageCommand {
66
66
  }, "strip", z.ZodTypeAny, {
67
67
  data: {
68
68
  uuid: string;
69
- title: string;
70
69
  createdAt: Date;
71
70
  updatedAt: Date;
71
+ title: string;
72
72
  metaTitle: string;
73
73
  metaDescription: string;
74
74
  subTitle: string;
@@ -78,9 +78,9 @@ export declare namespace UpdatePageCommand {
78
78
  }, {
79
79
  data: {
80
80
  uuid: string;
81
- title: string;
82
81
  createdAt: Date;
83
82
  updatedAt: Date;
83
+ title: string;
84
84
  metaTitle: string;
85
85
  metaDescription: string;
86
86
  subTitle: string;
@@ -53,22 +53,22 @@ export declare namespace CloudPaymentsPayCommand {
53
53
  amount: string | number;
54
54
  currency: string;
55
55
  accountId: string;
56
+ subscriptionId?: string | undefined;
56
57
  invoiceId?: string | undefined;
57
58
  data?: import("../..").JsonValue | undefined;
58
59
  transactionId?: string | number | undefined;
59
60
  paymentAmount?: string | number | undefined;
60
61
  paymentCurrency?: string | undefined;
61
- subscriptionId?: string | undefined;
62
62
  }, {
63
63
  amount: string | number;
64
64
  accountId: string;
65
+ subscriptionId?: string | undefined;
65
66
  currency?: string | undefined;
66
67
  invoiceId?: string | undefined;
67
68
  data?: import("../..").JsonValue | undefined;
68
69
  transactionId?: string | number | undefined;
69
70
  paymentAmount?: string | number | undefined;
70
71
  paymentCurrency?: string | undefined;
71
- subscriptionId?: string | undefined;
72
72
  }>;
73
73
  type Request = z.infer<typeof RequestSchema>;
74
74
  const ResponseSchema: z.ZodObject<{
@@ -1,2 +1,3 @@
1
1
  export * from './cloud-payments.command';
2
+ export * from './refund-payment.command';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/payment/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./cloud-payments.command"), exports);
18
+ __exportStar(require("./refund-payment.command"), exports);
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RefundPaymentCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuid: string;
7
+ }, {
8
+ uuid: string;
9
+ }>;
10
+ type Request = z.infer<typeof RequestSchema>;
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=refund-payment.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refund-payment.command.d.ts","sourceRoot":"","sources":["../../../commands/payment/refund-payment.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,aAAa;;;;;;MAExB,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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RefundPaymentCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var RefundPaymentCommand;
6
+ (function (RefundPaymentCommand) {
7
+ RefundPaymentCommand.RequestSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ RefundPaymentCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(RefundPaymentCommand || (exports.RefundPaymentCommand = RefundPaymentCommand = {}));
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare namespace RefundSubscriptionCommand {
2
+ export declare namespace DeleteProductCommand {
3
3
  const RequestParamSchema: z.ZodObject<{
4
4
  uuid: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
@@ -17,4 +17,4 @@ export declare namespace RefundSubscriptionCommand {
17
17
  }>;
18
18
  type Response = z.infer<typeof ResponseSchema>;
19
19
  }
20
- //# sourceMappingURL=refund-subscription.command.d.ts.map
20
+ //# sourceMappingURL=delete-product.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/delete-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,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.DeleteProductCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var DeleteProductCommand;
6
+ (function (DeleteProductCommand) {
7
+ DeleteProductCommand.RequestParamSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ });
10
+ DeleteProductCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.boolean(),
12
+ });
13
+ })(DeleteProductCommand || (exports.DeleteProductCommand = DeleteProductCommand = {}));
@@ -1,3 +1,5 @@
1
1
  export * from './buy-product.command';
2
2
  export * from './fast-buy-product.command';
3
+ export * from './update-product.command';
4
+ export * from './delete-product.command';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/product/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
@@ -16,3 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./buy-product.command"), exports);
18
18
  __exportStar(require("./fast-buy-product.command"), exports);
19
+ __exportStar(require("./update-product.command"), exports);
20
+ __exportStar(require("./delete-product.command"), exports);
@@ -0,0 +1,116 @@
1
+ import { z } from 'zod';
2
+ export declare namespace UpdateProductCommand {
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 RequestSchema: z.ZodObject<{
12
+ name: z.ZodOptional<z.ZodString>;
13
+ description: z.ZodOptional<z.ZodString>;
14
+ price: z.ZodOptional<z.ZodNumber>;
15
+ tokens: z.ZodOptional<z.ZodNumber>;
16
+ features: z.ZodOptional<z.ZodArray<z.ZodObject<{
17
+ type: z.ZodString;
18
+ name: z.ZodString;
19
+ }, "strip", z.ZodTypeAny, {
20
+ type: string;
21
+ name: string;
22
+ }, {
23
+ type: string;
24
+ name: string;
25
+ }>, "many">>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ price?: number | undefined;
28
+ name?: string | undefined;
29
+ description?: string | undefined;
30
+ tokens?: number | undefined;
31
+ features?: {
32
+ type: string;
33
+ name: string;
34
+ }[] | undefined;
35
+ }, {
36
+ price?: number | undefined;
37
+ name?: string | undefined;
38
+ description?: string | undefined;
39
+ tokens?: number | undefined;
40
+ features?: {
41
+ type: string;
42
+ name: string;
43
+ }[] | undefined;
44
+ }>;
45
+ type Request = z.infer<typeof RequestSchema>;
46
+ const ResponseSchema: z.ZodObject<{
47
+ data: z.ZodObject<{
48
+ uuid: z.ZodString;
49
+ siteId: z.ZodString;
50
+ name: z.ZodString;
51
+ description: z.ZodString;
52
+ tokens: z.ZodNumber;
53
+ price: z.ZodNumber;
54
+ features: z.ZodArray<z.ZodObject<{
55
+ type: z.ZodString;
56
+ name: z.ZodString;
57
+ }, "strip", z.ZodTypeAny, {
58
+ type: string;
59
+ name: string;
60
+ }, {
61
+ type: string;
62
+ name: string;
63
+ }>, "many">;
64
+ }, "strip", z.ZodTypeAny, {
65
+ price: number;
66
+ uuid: string;
67
+ siteId: string;
68
+ name: string;
69
+ description: string;
70
+ tokens: number;
71
+ features: {
72
+ type: string;
73
+ name: string;
74
+ }[];
75
+ }, {
76
+ price: number;
77
+ uuid: string;
78
+ siteId: string;
79
+ name: string;
80
+ description: string;
81
+ tokens: number;
82
+ features: {
83
+ type: string;
84
+ name: string;
85
+ }[];
86
+ }>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ data: {
89
+ price: number;
90
+ uuid: string;
91
+ siteId: string;
92
+ name: string;
93
+ description: string;
94
+ tokens: number;
95
+ features: {
96
+ type: string;
97
+ name: string;
98
+ }[];
99
+ };
100
+ }, {
101
+ data: {
102
+ price: number;
103
+ uuid: string;
104
+ siteId: string;
105
+ name: string;
106
+ description: string;
107
+ tokens: number;
108
+ features: {
109
+ type: string;
110
+ name: string;
111
+ }[];
112
+ };
113
+ }>;
114
+ type Response = z.infer<typeof ResponseSchema>;
115
+ }
116
+ //# sourceMappingURL=update-product.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-product.command.d.ts","sourceRoot":"","sources":["../../../commands/product/update-product.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAaxB,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"}