@kl1/contracts 1.1.58 → 1.1.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (160) hide show
  1. package/dist/api-contracts/src/activity-log/index.d.ts +7 -7
  2. package/dist/api-contracts/src/activity-log/schema.d.ts +4 -4
  3. package/dist/api-contracts/src/attribute/index.d.ts +25 -25
  4. package/dist/api-contracts/src/attribute/validation.d.ts +4 -4
  5. package/dist/api-contracts/src/auth/index.d.ts +71 -311
  6. package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
  7. package/dist/api-contracts/src/automation-queue/index.d.ts +101 -101
  8. package/dist/api-contracts/src/automation-queue/schema.d.ts +10 -10
  9. package/dist/api-contracts/src/base-contract.d.ts +3 -3
  10. package/dist/api-contracts/src/botpress/index.d.ts +28 -28
  11. package/dist/api-contracts/src/botpress/schema.d.ts +6 -6
  12. package/dist/api-contracts/src/botpress/validation.d.ts +8 -8
  13. package/dist/api-contracts/src/business-calendar/index.d.ts +32 -32
  14. package/dist/api-contracts/src/business-calendar/schema.d.ts +8 -8
  15. package/dist/api-contracts/src/business-calendar/validation.d.ts +2 -2
  16. package/dist/api-contracts/src/category/index.d.ts +30 -30
  17. package/dist/api-contracts/src/category/schema.d.ts +2 -2
  18. package/dist/api-contracts/src/channel/index.d.ts +2566 -1792
  19. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  20. package/dist/api-contracts/src/channel/schema.d.ts +139 -109
  21. package/dist/api-contracts/src/channel/schema.d.ts.map +1 -1
  22. package/dist/api-contracts/src/channel/validation.d.ts +160 -118
  23. package/dist/api-contracts/src/channel/validation.d.ts.map +1 -1
  24. package/dist/api-contracts/src/chat/index.d.ts +7354 -6531
  25. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/chat/schema.d.ts +2366 -2167
  27. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  28. package/dist/api-contracts/src/chat/validation.d.ts +1854 -1563
  29. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  30. package/dist/api-contracts/src/comment/index.d.ts +328 -328
  31. package/dist/api-contracts/src/comment/schema.d.ts +88 -88
  32. package/dist/api-contracts/src/company/index.d.ts +9 -9
  33. package/dist/api-contracts/src/company/validation.d.ts +4 -4
  34. package/dist/api-contracts/src/contact/index.d.ts +399 -399
  35. package/dist/api-contracts/src/contact/schema.d.ts +38 -38
  36. package/dist/api-contracts/src/contact/validation.d.ts +190 -190
  37. package/dist/api-contracts/src/contract.d.ts +43684 -28896
  38. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  39. package/dist/api-contracts/src/cx-intelligence/index.d.ts +9 -9
  40. package/dist/api-contracts/src/cx-log/index.d.ts +545 -393
  41. package/dist/api-contracts/src/cx-log/index.d.ts.map +1 -1
  42. package/dist/api-contracts/src/cx-log/schema.d.ts +402 -321
  43. package/dist/api-contracts/src/cx-log/schema.d.ts.map +1 -1
  44. package/dist/api-contracts/src/cx-log/validation.d.ts +2 -2
  45. package/dist/api-contracts/src/dashboard/index.d.ts +167 -189
  46. package/dist/api-contracts/src/dashboard/index.d.ts.map +1 -1
  47. package/dist/api-contracts/src/dashboard/schema.d.ts +44 -87
  48. package/dist/api-contracts/src/dashboard/schema.d.ts.map +1 -1
  49. package/dist/api-contracts/src/dashboard/validation.d.ts +26 -0
  50. package/dist/api-contracts/src/dashboard/validation.d.ts.map +1 -1
  51. package/dist/api-contracts/src/extension/index.d.ts +103 -22
  52. package/dist/api-contracts/src/extension/index.d.ts.map +1 -1
  53. package/dist/api-contracts/src/facebook-feed/index.d.ts +2170 -1768
  54. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  55. package/dist/api-contracts/src/facebook-feed/schema.d.ts +168 -141
  56. package/dist/api-contracts/src/facebook-feed/schema.d.ts.map +1 -1
  57. package/dist/api-contracts/src/facebook-feed/validation.d.ts +147 -126
  58. package/dist/api-contracts/src/facebook-feed/validation.d.ts.map +1 -1
  59. package/dist/api-contracts/src/hold-label/index.d.ts +34 -34
  60. package/dist/api-contracts/src/hold-label/schema.d.ts +10 -10
  61. package/dist/api-contracts/src/index.d.ts +5 -0
  62. package/dist/api-contracts/src/index.d.ts.map +1 -1
  63. package/dist/api-contracts/src/instagram/index.d.ts +1747 -1432
  64. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  65. package/dist/api-contracts/src/instagram/validation.d.ts +10 -10
  66. package/dist/api-contracts/src/line/index.d.ts +1646 -1367
  67. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  68. package/dist/api-contracts/src/line/schema.d.ts +4 -4
  69. package/dist/api-contracts/src/line/validation.d.ts +165 -132
  70. package/dist/api-contracts/src/line/validation.d.ts.map +1 -1
  71. package/dist/api-contracts/src/mail/account-contract.d.ts +116 -116
  72. package/dist/api-contracts/src/mail/mail-contract.d.ts +2535 -2535
  73. package/dist/api-contracts/src/mail/mail-server-contract.d.ts +38 -38
  74. package/dist/api-contracts/src/mail/message-contract.d.ts +278 -278
  75. package/dist/api-contracts/src/mail/room-contract.d.ts +1490 -1490
  76. package/dist/api-contracts/src/mail/schemas/account-validation.schema.d.ts +50 -50
  77. package/dist/api-contracts/src/mail/schemas/account.schema.d.ts +12 -12
  78. package/dist/api-contracts/src/mail/schemas/message.schema.d.ts +56 -56
  79. package/dist/api-contracts/src/mail/schemas/room-validation.schema.d.ts +478 -478
  80. package/dist/api-contracts/src/mail/schemas/room.schema.d.ts +471 -471
  81. package/dist/api-contracts/src/messenger/index.d.ts +1750 -1435
  82. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  83. package/dist/api-contracts/src/messenger/schema.d.ts +16 -16
  84. package/dist/api-contracts/src/messenger/validation.d.ts +143 -122
  85. package/dist/api-contracts/src/messenger/validation.d.ts.map +1 -1
  86. package/dist/api-contracts/src/notification/index.d.ts +26 -26
  87. package/dist/api-contracts/src/notification/schema.d.ts +18 -18
  88. package/dist/api-contracts/src/notification/validation.d.ts +10 -10
  89. package/dist/api-contracts/src/permission/index.d.ts +3 -3
  90. package/dist/api-contracts/src/presence-status/index.d.ts +15 -15
  91. package/dist/api-contracts/src/public-api/index.d.ts +143 -143
  92. package/dist/api-contracts/src/public-api/schema.d.ts +22 -22
  93. package/dist/api-contracts/src/public-api/validation.d.ts +39 -39
  94. package/dist/api-contracts/src/role/index.d.ts +15 -15
  95. package/dist/api-contracts/src/sms/index.d.ts +2717 -270
  96. package/dist/api-contracts/src/sms/index.d.ts.map +1 -1
  97. package/dist/api-contracts/src/sms/schema.d.ts +30 -8
  98. package/dist/api-contracts/src/sms/schema.d.ts.map +1 -1
  99. package/dist/api-contracts/src/sms/validation.d.ts +2 -2
  100. package/dist/api-contracts/src/snippet/index.d.ts +147 -147
  101. package/dist/api-contracts/src/snippet/schema.d.ts +50 -50
  102. package/dist/api-contracts/src/subscription/index.d.ts +267 -186
  103. package/dist/api-contracts/src/subscription/index.d.ts.map +1 -1
  104. package/dist/api-contracts/src/subscription/schema.d.ts +247 -216
  105. package/dist/api-contracts/src/subscription/schema.d.ts.map +1 -1
  106. package/dist/api-contracts/src/subscription/validation.d.ts +18 -0
  107. package/dist/api-contracts/src/subscription/validation.d.ts.map +1 -1
  108. package/dist/api-contracts/src/tag/index.d.ts +24 -24
  109. package/dist/api-contracts/src/tag/schema.d.ts +2 -2
  110. package/dist/api-contracts/src/telegram/index.d.ts +1407 -1182
  111. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  112. package/dist/api-contracts/src/telegram/validation.d.ts +4 -4
  113. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts +57 -112
  114. package/dist/api-contracts/src/telephony-agent-presence-status/index.d.ts.map +1 -1
  115. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts +14 -31
  116. package/dist/api-contracts/src/telephony-agent-presence-status/schema.d.ts.map +1 -1
  117. package/dist/api-contracts/src/telephony-cdr/index.d.ts +282 -282
  118. package/dist/api-contracts/src/telephony-cdr/index.d.ts.map +1 -1
  119. package/dist/api-contracts/src/telephony-cdr/schema.d.ts +72 -72
  120. package/dist/api-contracts/src/telephony-extension/index.d.ts +3 -3
  121. package/dist/api-contracts/src/tenant/schema.d.ts +2 -2
  122. package/dist/api-contracts/src/ticket/index.d.ts +515 -515
  123. package/dist/api-contracts/src/ticket/schema.d.ts +63 -63
  124. package/dist/api-contracts/src/upload/index.d.ts +6 -6
  125. package/dist/api-contracts/src/upload/schema.d.ts +3 -3
  126. package/dist/api-contracts/src/user/index.d.ts +41 -41
  127. package/dist/api-contracts/src/user/schema.d.ts +2 -2
  128. package/dist/api-contracts/src/user/validation.d.ts +5 -5
  129. package/dist/api-contracts/src/user-presence-status-log/index.d.ts +26 -18
  130. package/dist/api-contracts/src/user-presence-status-log/index.d.ts.map +1 -1
  131. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts +24 -14
  132. package/dist/api-contracts/src/user-presence-status-log/schema.d.ts.map +1 -1
  133. package/dist/api-contracts/src/viber/index.d.ts +1419 -1194
  134. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  135. package/dist/api-contracts/src/viber/validation.d.ts +4 -4
  136. package/dist/api-contracts/src/webchat/index.d.ts +1413 -1188
  137. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  138. package/dist/api-contracts/src/webchat/schema.d.ts +10 -10
  139. package/dist/api-contracts/src/webchat/validation.d.ts +2 -2
  140. package/dist/api-contracts/src/whatsapp/index.d.ts +1758 -1287
  141. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  142. package/dist/api-contracts/src/whatsapp/validation.d.ts +79 -0
  143. package/dist/api-contracts/src/whatsapp/validation.d.ts.map +1 -1
  144. package/dist/api-contracts/src/widget/index.d.ts +51 -51
  145. package/dist/api-contracts/src/widget/schema.d.ts +2 -2
  146. package/dist/api-contracts/src/widget/validation.d.ts +4 -4
  147. package/dist/api-contracts/src/workflow-rule/index.d.ts +8703 -417
  148. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  149. package/dist/api-contracts/src/workflow-rule/schema.d.ts +2 -2
  150. package/dist/api-contracts/src/wrap-up-form/index.d.ts +44 -44
  151. package/dist/api-contracts/src/wrap-up-form/schema.d.ts +4 -4
  152. package/dist/api-contracts/utils.d.ts +1 -1
  153. package/dist/api-contracts/utils.d.ts.map +1 -1
  154. package/dist/entities/src/enums/chat.d.ts +1 -0
  155. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  156. package/dist/index.js +4832 -4295
  157. package/dist/index.js.map +1 -1
  158. package/dist/index.mjs +4821 -4289
  159. package/dist/index.mjs.map +1 -1
  160. package/package.json +7 -3
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ProductPriceSchema, ProductSchema, SubscriptionProuctSchema, SubscriptionSchema } from './schema';
2
+ import { CustomerSchema, ProductPriceSchema, ProductSchema, SubscriptionProuctSchema, SubscriptionSchema } from './schema';
3
3
  import { UpdateSubscriptionSchema, TopUpBalanceSchema } from './validation';
4
4
  export type UpdateSubscriptionBody = z.infer<typeof UpdateSubscriptionSchema>;
5
5
  export type topUpBalanceBody = z.infer<typeof TopUpBalanceSchema>;
@@ -7,6 +7,7 @@ export type Subscription = z.infer<typeof SubscriptionSchema>;
7
7
  export type SubscriptionProuct = z.infer<typeof SubscriptionProuctSchema>;
8
8
  export type ProductPrice = z.infer<typeof ProductPriceSchema>;
9
9
  export type Product = z.infer<typeof ProductSchema>;
10
+ export type Customer = z.infer<typeof CustomerSchema>;
10
11
  export declare const subscriptionContract: {
11
12
  getSubscription: {
12
13
  method: "GET";
@@ -14,6 +15,37 @@ export declare const subscriptionContract: {
14
15
  responses: {
15
16
  200: z.ZodObject<{
16
17
  requestId: z.ZodString;
18
+ customer: z.ZodObject<{
19
+ id: z.ZodString;
20
+ createdAt: z.ZodDate;
21
+ updatedAt: z.ZodDate;
22
+ deletedAt: z.ZodNullable<z.ZodDate>;
23
+ provider: z.ZodString;
24
+ customerId: z.ZodString;
25
+ email: z.ZodString;
26
+ name: z.ZodString;
27
+ balance: z.ZodNumber;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ id: string;
31
+ email: string;
32
+ createdAt: Date;
33
+ updatedAt: Date;
34
+ deletedAt: Date | null;
35
+ provider: string;
36
+ customerId: string;
37
+ balance: number;
38
+ }, {
39
+ name: string;
40
+ id: string;
41
+ email: string;
42
+ createdAt: Date;
43
+ updatedAt: Date;
44
+ deletedAt: Date | null;
45
+ provider: string;
46
+ customerId: string;
47
+ balance: number;
48
+ }>;
17
49
  subscription: z.ZodObject<{
18
50
  id: z.ZodString;
19
51
  createdAt: z.ZodDate;
@@ -59,9 +91,9 @@ export declare const subscriptionContract: {
59
91
  price: z.ZodNumber;
60
92
  currency: z.ZodNullable<z.ZodString>;
61
93
  }, "strip", z.ZodTypeAny, {
62
- id: string;
63
- name: string | null;
64
94
  currency: string | null;
95
+ name: string | null;
96
+ id: string;
65
97
  createdAt: Date;
66
98
  updatedAt: Date;
67
99
  deletedAt: Date | null;
@@ -69,9 +101,9 @@ export declare const subscriptionContract: {
69
101
  perUnit: number;
70
102
  price: number;
71
103
  }, {
72
- id: string;
73
- name: string | null;
74
104
  currency: string | null;
105
+ name: string | null;
106
+ id: string;
75
107
  createdAt: Date;
76
108
  updatedAt: Date;
77
109
  deletedAt: Date | null;
@@ -107,9 +139,9 @@ export declare const subscriptionContract: {
107
139
  price: z.ZodNumber;
108
140
  currency: z.ZodNullable<z.ZodString>;
109
141
  }, "strip", z.ZodTypeAny, {
110
- id: string;
111
- name: string | null;
112
142
  currency: string | null;
143
+ name: string | null;
144
+ id: string;
113
145
  createdAt: Date;
114
146
  updatedAt: Date;
115
147
  deletedAt: Date | null;
@@ -117,9 +149,9 @@ export declare const subscriptionContract: {
117
149
  perUnit: number;
118
150
  price: number;
119
151
  }, {
120
- id: string;
121
- name: string | null;
122
152
  currency: string | null;
153
+ name: string | null;
154
+ id: string;
123
155
  createdAt: Date;
124
156
  updatedAt: Date;
125
157
  deletedAt: Date | null;
@@ -128,9 +160,9 @@ export declare const subscriptionContract: {
128
160
  price: number;
129
161
  }>;
130
162
  }, "strip", z.ZodTypeAny, {
163
+ name: string;
131
164
  type: string;
132
165
  id: string;
133
- name: string;
134
166
  createdAt: Date;
135
167
  updatedAt: Date;
136
168
  deletedAt: Date | null;
@@ -139,9 +171,9 @@ export declare const subscriptionContract: {
139
171
  omnichannel: string;
140
172
  usageType: string | null;
141
173
  productPrice: {
142
- id: string;
143
- name: string | null;
144
174
  currency: string | null;
175
+ name: string | null;
176
+ id: string;
145
177
  createdAt: Date;
146
178
  updatedAt: Date;
147
179
  deletedAt: Date | null;
@@ -150,9 +182,9 @@ export declare const subscriptionContract: {
150
182
  price: number;
151
183
  };
152
184
  }, {
185
+ name: string;
153
186
  type: string;
154
187
  id: string;
155
- name: string;
156
188
  createdAt: Date;
157
189
  updatedAt: Date;
158
190
  deletedAt: Date | null;
@@ -161,9 +193,9 @@ export declare const subscriptionContract: {
161
193
  omnichannel: string;
162
194
  usageType: string | null;
163
195
  productPrice: {
164
- id: string;
165
- name: string | null;
166
196
  currency: string | null;
197
+ name: string | null;
198
+ id: string;
167
199
  createdAt: Date;
168
200
  updatedAt: Date;
169
201
  deletedAt: Date | null;
@@ -175,9 +207,9 @@ export declare const subscriptionContract: {
175
207
  }, "strip", z.ZodTypeAny, {
176
208
  id: string;
177
209
  product: {
210
+ name: string;
178
211
  type: string;
179
212
  id: string;
180
- name: string;
181
213
  createdAt: Date;
182
214
  updatedAt: Date;
183
215
  deletedAt: Date | null;
@@ -186,9 +218,9 @@ export declare const subscriptionContract: {
186
218
  omnichannel: string;
187
219
  usageType: string | null;
188
220
  productPrice: {
189
- id: string;
190
- name: string | null;
191
221
  currency: string | null;
222
+ name: string | null;
223
+ id: string;
192
224
  createdAt: Date;
193
225
  updatedAt: Date;
194
226
  deletedAt: Date | null;
@@ -204,9 +236,9 @@ export declare const subscriptionContract: {
204
236
  }, {
205
237
  id: string;
206
238
  product: {
239
+ name: string;
207
240
  type: string;
208
241
  id: string;
209
- name: string;
210
242
  createdAt: Date;
211
243
  updatedAt: Date;
212
244
  deletedAt: Date | null;
@@ -215,9 +247,9 @@ export declare const subscriptionContract: {
215
247
  omnichannel: string;
216
248
  usageType: string | null;
217
249
  productPrice: {
218
- id: string;
219
- name: string | null;
220
250
  currency: string | null;
251
+ name: string | null;
252
+ id: string;
221
253
  createdAt: Date;
222
254
  updatedAt: Date;
223
255
  deletedAt: Date | null;
@@ -232,9 +264,9 @@ export declare const subscriptionContract: {
232
264
  includedQuantity: number;
233
265
  }>, "many">;
234
266
  }, "strip", z.ZodTypeAny, {
267
+ name: string;
235
268
  type: string;
236
269
  id: string;
237
- name: string;
238
270
  createdAt: Date;
239
271
  updatedAt: Date;
240
272
  deletedAt: Date | null;
@@ -243,9 +275,9 @@ export declare const subscriptionContract: {
243
275
  omnichannel: string;
244
276
  usageType: string | null;
245
277
  productPrice: {
246
- id: string;
247
- name: string | null;
248
278
  currency: string | null;
279
+ name: string | null;
280
+ id: string;
249
281
  createdAt: Date;
250
282
  updatedAt: Date;
251
283
  deletedAt: Date | null;
@@ -256,9 +288,9 @@ export declare const subscriptionContract: {
256
288
  relatedProducts: {
257
289
  id: string;
258
290
  product: {
291
+ name: string;
259
292
  type: string;
260
293
  id: string;
261
- name: string;
262
294
  createdAt: Date;
263
295
  updatedAt: Date;
264
296
  deletedAt: Date | null;
@@ -267,9 +299,9 @@ export declare const subscriptionContract: {
267
299
  omnichannel: string;
268
300
  usageType: string | null;
269
301
  productPrice: {
270
- id: string;
271
- name: string | null;
272
302
  currency: string | null;
303
+ name: string | null;
304
+ id: string;
273
305
  createdAt: Date;
274
306
  updatedAt: Date;
275
307
  deletedAt: Date | null;
@@ -284,9 +316,9 @@ export declare const subscriptionContract: {
284
316
  includedQuantity: number;
285
317
  }[];
286
318
  }, {
319
+ name: string;
287
320
  type: string;
288
321
  id: string;
289
- name: string;
290
322
  createdAt: Date;
291
323
  updatedAt: Date;
292
324
  deletedAt: Date | null;
@@ -295,9 +327,9 @@ export declare const subscriptionContract: {
295
327
  omnichannel: string;
296
328
  usageType: string | null;
297
329
  productPrice: {
298
- id: string;
299
- name: string | null;
300
330
  currency: string | null;
331
+ name: string | null;
332
+ id: string;
301
333
  createdAt: Date;
302
334
  updatedAt: Date;
303
335
  deletedAt: Date | null;
@@ -308,9 +340,9 @@ export declare const subscriptionContract: {
308
340
  relatedProducts: {
309
341
  id: string;
310
342
  product: {
343
+ name: string;
311
344
  type: string;
312
345
  id: string;
313
- name: string;
314
346
  createdAt: Date;
315
347
  updatedAt: Date;
316
348
  deletedAt: Date | null;
@@ -319,9 +351,9 @@ export declare const subscriptionContract: {
319
351
  omnichannel: string;
320
352
  usageType: string | null;
321
353
  productPrice: {
322
- id: string;
323
- name: string | null;
324
354
  currency: string | null;
355
+ name: string | null;
356
+ id: string;
325
357
  createdAt: Date;
326
358
  updatedAt: Date;
327
359
  deletedAt: Date | null;
@@ -339,9 +371,9 @@ export declare const subscriptionContract: {
339
371
  }, "strip", z.ZodTypeAny, {
340
372
  id: string;
341
373
  product: {
374
+ name: string;
342
375
  type: string;
343
376
  id: string;
344
- name: string;
345
377
  createdAt: Date;
346
378
  updatedAt: Date;
347
379
  deletedAt: Date | null;
@@ -350,9 +382,9 @@ export declare const subscriptionContract: {
350
382
  omnichannel: string;
351
383
  usageType: string | null;
352
384
  productPrice: {
353
- id: string;
354
- name: string | null;
355
385
  currency: string | null;
386
+ name: string | null;
387
+ id: string;
356
388
  createdAt: Date;
357
389
  updatedAt: Date;
358
390
  deletedAt: Date | null;
@@ -363,9 +395,9 @@ export declare const subscriptionContract: {
363
395
  relatedProducts: {
364
396
  id: string;
365
397
  product: {
398
+ name: string;
366
399
  type: string;
367
400
  id: string;
368
- name: string;
369
401
  createdAt: Date;
370
402
  updatedAt: Date;
371
403
  deletedAt: Date | null;
@@ -374,9 +406,9 @@ export declare const subscriptionContract: {
374
406
  omnichannel: string;
375
407
  usageType: string | null;
376
408
  productPrice: {
377
- id: string;
378
- name: string | null;
379
409
  currency: string | null;
410
+ name: string | null;
411
+ id: string;
380
412
  createdAt: Date;
381
413
  updatedAt: Date;
382
414
  deletedAt: Date | null;
@@ -400,9 +432,9 @@ export declare const subscriptionContract: {
400
432
  }, {
401
433
  id: string;
402
434
  product: {
435
+ name: string;
403
436
  type: string;
404
437
  id: string;
405
- name: string;
406
438
  createdAt: Date;
407
439
  updatedAt: Date;
408
440
  deletedAt: Date | null;
@@ -411,9 +443,9 @@ export declare const subscriptionContract: {
411
443
  omnichannel: string;
412
444
  usageType: string | null;
413
445
  productPrice: {
414
- id: string;
415
- name: string | null;
416
446
  currency: string | null;
447
+ name: string | null;
448
+ id: string;
417
449
  createdAt: Date;
418
450
  updatedAt: Date;
419
451
  deletedAt: Date | null;
@@ -424,9 +456,9 @@ export declare const subscriptionContract: {
424
456
  relatedProducts: {
425
457
  id: string;
426
458
  product: {
459
+ name: string;
427
460
  type: string;
428
461
  id: string;
429
- name: string;
430
462
  createdAt: Date;
431
463
  updatedAt: Date;
432
464
  deletedAt: Date | null;
@@ -435,9 +467,9 @@ export declare const subscriptionContract: {
435
467
  omnichannel: string;
436
468
  usageType: string | null;
437
469
  productPrice: {
438
- id: string;
439
- name: string | null;
440
470
  currency: string | null;
471
+ name: string | null;
472
+ id: string;
441
473
  createdAt: Date;
442
474
  updatedAt: Date;
443
475
  deletedAt: Date | null;
@@ -470,9 +502,9 @@ export declare const subscriptionContract: {
470
502
  price: z.ZodNumber;
471
503
  currency: z.ZodNullable<z.ZodString>;
472
504
  }, "strip", z.ZodTypeAny, {
473
- id: string;
474
- name: string | null;
475
505
  currency: string | null;
506
+ name: string | null;
507
+ id: string;
476
508
  createdAt: Date;
477
509
  updatedAt: Date;
478
510
  deletedAt: Date | null;
@@ -480,9 +512,9 @@ export declare const subscriptionContract: {
480
512
  perUnit: number;
481
513
  price: number;
482
514
  }, {
483
- id: string;
484
- name: string | null;
485
515
  currency: string | null;
516
+ name: string | null;
517
+ id: string;
486
518
  createdAt: Date;
487
519
  updatedAt: Date;
488
520
  deletedAt: Date | null;
@@ -512,9 +544,9 @@ export declare const subscriptionContract: {
512
544
  price: z.ZodNumber;
513
545
  currency: z.ZodNullable<z.ZodString>;
514
546
  }, "strip", z.ZodTypeAny, {
515
- id: string;
516
- name: string | null;
517
547
  currency: string | null;
548
+ name: string | null;
549
+ id: string;
518
550
  createdAt: Date;
519
551
  updatedAt: Date;
520
552
  deletedAt: Date | null;
@@ -522,9 +554,9 @@ export declare const subscriptionContract: {
522
554
  perUnit: number;
523
555
  price: number;
524
556
  }, {
525
- id: string;
526
- name: string | null;
527
557
  currency: string | null;
558
+ name: string | null;
559
+ id: string;
528
560
  createdAt: Date;
529
561
  updatedAt: Date;
530
562
  deletedAt: Date | null;
@@ -560,9 +592,9 @@ export declare const subscriptionContract: {
560
592
  price: z.ZodNumber;
561
593
  currency: z.ZodNullable<z.ZodString>;
562
594
  }, "strip", z.ZodTypeAny, {
563
- id: string;
564
- name: string | null;
565
595
  currency: string | null;
596
+ name: string | null;
597
+ id: string;
566
598
  createdAt: Date;
567
599
  updatedAt: Date;
568
600
  deletedAt: Date | null;
@@ -570,9 +602,9 @@ export declare const subscriptionContract: {
570
602
  perUnit: number;
571
603
  price: number;
572
604
  }, {
573
- id: string;
574
- name: string | null;
575
605
  currency: string | null;
606
+ name: string | null;
607
+ id: string;
576
608
  createdAt: Date;
577
609
  updatedAt: Date;
578
610
  deletedAt: Date | null;
@@ -581,9 +613,9 @@ export declare const subscriptionContract: {
581
613
  price: number;
582
614
  }>;
583
615
  }, "strip", z.ZodTypeAny, {
616
+ name: string;
584
617
  type: string;
585
618
  id: string;
586
- name: string;
587
619
  createdAt: Date;
588
620
  updatedAt: Date;
589
621
  deletedAt: Date | null;
@@ -592,9 +624,9 @@ export declare const subscriptionContract: {
592
624
  omnichannel: string;
593
625
  usageType: string | null;
594
626
  productPrice: {
595
- id: string;
596
- name: string | null;
597
627
  currency: string | null;
628
+ name: string | null;
629
+ id: string;
598
630
  createdAt: Date;
599
631
  updatedAt: Date;
600
632
  deletedAt: Date | null;
@@ -603,9 +635,9 @@ export declare const subscriptionContract: {
603
635
  price: number;
604
636
  };
605
637
  }, {
638
+ name: string;
606
639
  type: string;
607
640
  id: string;
608
- name: string;
609
641
  createdAt: Date;
610
642
  updatedAt: Date;
611
643
  deletedAt: Date | null;
@@ -614,9 +646,9 @@ export declare const subscriptionContract: {
614
646
  omnichannel: string;
615
647
  usageType: string | null;
616
648
  productPrice: {
617
- id: string;
618
- name: string | null;
619
649
  currency: string | null;
650
+ name: string | null;
651
+ id: string;
620
652
  createdAt: Date;
621
653
  updatedAt: Date;
622
654
  deletedAt: Date | null;
@@ -628,9 +660,9 @@ export declare const subscriptionContract: {
628
660
  }, "strip", z.ZodTypeAny, {
629
661
  id: string;
630
662
  product: {
663
+ name: string;
631
664
  type: string;
632
665
  id: string;
633
- name: string;
634
666
  createdAt: Date;
635
667
  updatedAt: Date;
636
668
  deletedAt: Date | null;
@@ -639,9 +671,9 @@ export declare const subscriptionContract: {
639
671
  omnichannel: string;
640
672
  usageType: string | null;
641
673
  productPrice: {
642
- id: string;
643
- name: string | null;
644
674
  currency: string | null;
675
+ name: string | null;
676
+ id: string;
645
677
  createdAt: Date;
646
678
  updatedAt: Date;
647
679
  deletedAt: Date | null;
@@ -657,9 +689,9 @@ export declare const subscriptionContract: {
657
689
  }, {
658
690
  id: string;
659
691
  product: {
692
+ name: string;
660
693
  type: string;
661
694
  id: string;
662
- name: string;
663
695
  createdAt: Date;
664
696
  updatedAt: Date;
665
697
  deletedAt: Date | null;
@@ -668,9 +700,9 @@ export declare const subscriptionContract: {
668
700
  omnichannel: string;
669
701
  usageType: string | null;
670
702
  productPrice: {
671
- id: string;
672
- name: string | null;
673
703
  currency: string | null;
704
+ name: string | null;
705
+ id: string;
674
706
  createdAt: Date;
675
707
  updatedAt: Date;
676
708
  deletedAt: Date | null;
@@ -685,9 +717,9 @@ export declare const subscriptionContract: {
685
717
  includedQuantity: number;
686
718
  }>, "many">;
687
719
  }, "strip", z.ZodTypeAny, {
720
+ name: string;
688
721
  type: string;
689
722
  id: string;
690
- name: string;
691
723
  createdAt: Date;
692
724
  updatedAt: Date;
693
725
  deletedAt: Date | null;
@@ -696,9 +728,9 @@ export declare const subscriptionContract: {
696
728
  omnichannel: string;
697
729
  usageType: string | null;
698
730
  productPrice: {
699
- id: string;
700
- name: string | null;
701
731
  currency: string | null;
732
+ name: string | null;
733
+ id: string;
702
734
  createdAt: Date;
703
735
  updatedAt: Date;
704
736
  deletedAt: Date | null;
@@ -709,9 +741,9 @@ export declare const subscriptionContract: {
709
741
  relatedProducts: {
710
742
  id: string;
711
743
  product: {
744
+ name: string;
712
745
  type: string;
713
746
  id: string;
714
- name: string;
715
747
  createdAt: Date;
716
748
  updatedAt: Date;
717
749
  deletedAt: Date | null;
@@ -720,9 +752,9 @@ export declare const subscriptionContract: {
720
752
  omnichannel: string;
721
753
  usageType: string | null;
722
754
  productPrice: {
723
- id: string;
724
- name: string | null;
725
755
  currency: string | null;
756
+ name: string | null;
757
+ id: string;
726
758
  createdAt: Date;
727
759
  updatedAt: Date;
728
760
  deletedAt: Date | null;
@@ -737,9 +769,9 @@ export declare const subscriptionContract: {
737
769
  includedQuantity: number;
738
770
  }[];
739
771
  }, {
772
+ name: string;
740
773
  type: string;
741
774
  id: string;
742
- name: string;
743
775
  createdAt: Date;
744
776
  updatedAt: Date;
745
777
  deletedAt: Date | null;
@@ -748,9 +780,9 @@ export declare const subscriptionContract: {
748
780
  omnichannel: string;
749
781
  usageType: string | null;
750
782
  productPrice: {
751
- id: string;
752
- name: string | null;
753
783
  currency: string | null;
784
+ name: string | null;
785
+ id: string;
754
786
  createdAt: Date;
755
787
  updatedAt: Date;
756
788
  deletedAt: Date | null;
@@ -761,9 +793,9 @@ export declare const subscriptionContract: {
761
793
  relatedProducts: {
762
794
  id: string;
763
795
  product: {
796
+ name: string;
764
797
  type: string;
765
798
  id: string;
766
- name: string;
767
799
  createdAt: Date;
768
800
  updatedAt: Date;
769
801
  deletedAt: Date | null;
@@ -772,9 +804,9 @@ export declare const subscriptionContract: {
772
804
  omnichannel: string;
773
805
  usageType: string | null;
774
806
  productPrice: {
775
- id: string;
776
- name: string | null;
777
807
  currency: string | null;
808
+ name: string | null;
809
+ id: string;
778
810
  createdAt: Date;
779
811
  updatedAt: Date;
780
812
  deletedAt: Date | null;
@@ -790,14 +822,14 @@ export declare const subscriptionContract: {
790
822
  }[];
791
823
  }>;
792
824
  }, "strip", z.ZodTypeAny, {
825
+ name: string | null;
793
826
  type: string;
794
827
  interval: string;
795
828
  id: string;
796
- name: string | null;
797
829
  product: {
830
+ name: string;
798
831
  type: string;
799
832
  id: string;
800
- name: string;
801
833
  createdAt: Date;
802
834
  updatedAt: Date;
803
835
  deletedAt: Date | null;
@@ -806,9 +838,9 @@ export declare const subscriptionContract: {
806
838
  omnichannel: string;
807
839
  usageType: string | null;
808
840
  productPrice: {
809
- id: string;
810
- name: string | null;
811
841
  currency: string | null;
842
+ name: string | null;
843
+ id: string;
812
844
  createdAt: Date;
813
845
  updatedAt: Date;
814
846
  deletedAt: Date | null;
@@ -819,9 +851,9 @@ export declare const subscriptionContract: {
819
851
  relatedProducts: {
820
852
  id: string;
821
853
  product: {
854
+ name: string;
822
855
  type: string;
823
856
  id: string;
824
- name: string;
825
857
  createdAt: Date;
826
858
  updatedAt: Date;
827
859
  deletedAt: Date | null;
@@ -830,9 +862,9 @@ export declare const subscriptionContract: {
830
862
  omnichannel: string;
831
863
  usageType: string | null;
832
864
  productPrice: {
833
- id: string;
834
- name: string | null;
835
865
  currency: string | null;
866
+ name: string | null;
867
+ id: string;
836
868
  createdAt: Date;
837
869
  updatedAt: Date;
838
870
  deletedAt: Date | null;
@@ -853,9 +885,9 @@ export declare const subscriptionContract: {
853
885
  deletedAt: Date | null;
854
886
  provider: string;
855
887
  productPrice: {
856
- id: string;
857
- name: string | null;
858
888
  currency: string | null;
889
+ name: string | null;
890
+ id: string;
859
891
  createdAt: Date;
860
892
  updatedAt: Date;
861
893
  deletedAt: Date | null;
@@ -871,9 +903,9 @@ export declare const subscriptionContract: {
871
903
  subscriptionProducts: {
872
904
  id: string;
873
905
  product: {
906
+ name: string;
874
907
  type: string;
875
908
  id: string;
876
- name: string;
877
909
  createdAt: Date;
878
910
  updatedAt: Date;
879
911
  deletedAt: Date | null;
@@ -882,9 +914,9 @@ export declare const subscriptionContract: {
882
914
  omnichannel: string;
883
915
  usageType: string | null;
884
916
  productPrice: {
885
- id: string;
886
- name: string | null;
887
917
  currency: string | null;
918
+ name: string | null;
919
+ id: string;
888
920
  createdAt: Date;
889
921
  updatedAt: Date;
890
922
  deletedAt: Date | null;
@@ -895,9 +927,9 @@ export declare const subscriptionContract: {
895
927
  relatedProducts: {
896
928
  id: string;
897
929
  product: {
930
+ name: string;
898
931
  type: string;
899
932
  id: string;
900
- name: string;
901
933
  createdAt: Date;
902
934
  updatedAt: Date;
903
935
  deletedAt: Date | null;
@@ -906,9 +938,9 @@ export declare const subscriptionContract: {
906
938
  omnichannel: string;
907
939
  usageType: string | null;
908
940
  productPrice: {
909
- id: string;
910
- name: string | null;
911
941
  currency: string | null;
942
+ name: string | null;
943
+ id: string;
912
944
  createdAt: Date;
913
945
  updatedAt: Date;
914
946
  deletedAt: Date | null;
@@ -931,14 +963,14 @@ export declare const subscriptionContract: {
931
963
  subscriptionItemId: string;
932
964
  }[];
933
965
  }, {
966
+ name: string | null;
934
967
  type: string;
935
968
  interval: string;
936
969
  id: string;
937
- name: string | null;
938
970
  product: {
971
+ name: string;
939
972
  type: string;
940
973
  id: string;
941
- name: string;
942
974
  createdAt: Date;
943
975
  updatedAt: Date;
944
976
  deletedAt: Date | null;
@@ -947,9 +979,9 @@ export declare const subscriptionContract: {
947
979
  omnichannel: string;
948
980
  usageType: string | null;
949
981
  productPrice: {
950
- id: string;
951
- name: string | null;
952
982
  currency: string | null;
983
+ name: string | null;
984
+ id: string;
953
985
  createdAt: Date;
954
986
  updatedAt: Date;
955
987
  deletedAt: Date | null;
@@ -960,9 +992,9 @@ export declare const subscriptionContract: {
960
992
  relatedProducts: {
961
993
  id: string;
962
994
  product: {
995
+ name: string;
963
996
  type: string;
964
997
  id: string;
965
- name: string;
966
998
  createdAt: Date;
967
999
  updatedAt: Date;
968
1000
  deletedAt: Date | null;
@@ -971,9 +1003,9 @@ export declare const subscriptionContract: {
971
1003
  omnichannel: string;
972
1004
  usageType: string | null;
973
1005
  productPrice: {
974
- id: string;
975
- name: string | null;
976
1006
  currency: string | null;
1007
+ name: string | null;
1008
+ id: string;
977
1009
  createdAt: Date;
978
1010
  updatedAt: Date;
979
1011
  deletedAt: Date | null;
@@ -994,9 +1026,9 @@ export declare const subscriptionContract: {
994
1026
  deletedAt: Date | null;
995
1027
  provider: string;
996
1028
  productPrice: {
997
- id: string;
998
- name: string | null;
999
1029
  currency: string | null;
1030
+ name: string | null;
1031
+ id: string;
1000
1032
  createdAt: Date;
1001
1033
  updatedAt: Date;
1002
1034
  deletedAt: Date | null;
@@ -1012,9 +1044,9 @@ export declare const subscriptionContract: {
1012
1044
  subscriptionProducts: {
1013
1045
  id: string;
1014
1046
  product: {
1047
+ name: string;
1015
1048
  type: string;
1016
1049
  id: string;
1017
- name: string;
1018
1050
  createdAt: Date;
1019
1051
  updatedAt: Date;
1020
1052
  deletedAt: Date | null;
@@ -1023,9 +1055,9 @@ export declare const subscriptionContract: {
1023
1055
  omnichannel: string;
1024
1056
  usageType: string | null;
1025
1057
  productPrice: {
1026
- id: string;
1027
- name: string | null;
1028
1058
  currency: string | null;
1059
+ name: string | null;
1060
+ id: string;
1029
1061
  createdAt: Date;
1030
1062
  updatedAt: Date;
1031
1063
  deletedAt: Date | null;
@@ -1036,9 +1068,9 @@ export declare const subscriptionContract: {
1036
1068
  relatedProducts: {
1037
1069
  id: string;
1038
1070
  product: {
1071
+ name: string;
1039
1072
  type: string;
1040
1073
  id: string;
1041
- name: string;
1042
1074
  createdAt: Date;
1043
1075
  updatedAt: Date;
1044
1076
  deletedAt: Date | null;
@@ -1047,9 +1079,9 @@ export declare const subscriptionContract: {
1047
1079
  omnichannel: string;
1048
1080
  usageType: string | null;
1049
1081
  productPrice: {
1050
- id: string;
1051
- name: string | null;
1052
1082
  currency: string | null;
1083
+ name: string | null;
1084
+ id: string;
1053
1085
  createdAt: Date;
1054
1086
  updatedAt: Date;
1055
1087
  deletedAt: Date | null;
@@ -1074,15 +1106,26 @@ export declare const subscriptionContract: {
1074
1106
  }>;
1075
1107
  }, "strip", z.ZodTypeAny, {
1076
1108
  requestId: string;
1109
+ customer: {
1110
+ name: string;
1111
+ id: string;
1112
+ email: string;
1113
+ createdAt: Date;
1114
+ updatedAt: Date;
1115
+ deletedAt: Date | null;
1116
+ provider: string;
1117
+ customerId: string;
1118
+ balance: number;
1119
+ };
1077
1120
  subscription: {
1121
+ name: string | null;
1078
1122
  type: string;
1079
1123
  interval: string;
1080
1124
  id: string;
1081
- name: string | null;
1082
1125
  product: {
1126
+ name: string;
1083
1127
  type: string;
1084
1128
  id: string;
1085
- name: string;
1086
1129
  createdAt: Date;
1087
1130
  updatedAt: Date;
1088
1131
  deletedAt: Date | null;
@@ -1091,9 +1134,9 @@ export declare const subscriptionContract: {
1091
1134
  omnichannel: string;
1092
1135
  usageType: string | null;
1093
1136
  productPrice: {
1094
- id: string;
1095
- name: string | null;
1096
1137
  currency: string | null;
1138
+ name: string | null;
1139
+ id: string;
1097
1140
  createdAt: Date;
1098
1141
  updatedAt: Date;
1099
1142
  deletedAt: Date | null;
@@ -1104,9 +1147,9 @@ export declare const subscriptionContract: {
1104
1147
  relatedProducts: {
1105
1148
  id: string;
1106
1149
  product: {
1150
+ name: string;
1107
1151
  type: string;
1108
1152
  id: string;
1109
- name: string;
1110
1153
  createdAt: Date;
1111
1154
  updatedAt: Date;
1112
1155
  deletedAt: Date | null;
@@ -1115,9 +1158,9 @@ export declare const subscriptionContract: {
1115
1158
  omnichannel: string;
1116
1159
  usageType: string | null;
1117
1160
  productPrice: {
1118
- id: string;
1119
- name: string | null;
1120
1161
  currency: string | null;
1162
+ name: string | null;
1163
+ id: string;
1121
1164
  createdAt: Date;
1122
1165
  updatedAt: Date;
1123
1166
  deletedAt: Date | null;
@@ -1138,9 +1181,9 @@ export declare const subscriptionContract: {
1138
1181
  deletedAt: Date | null;
1139
1182
  provider: string;
1140
1183
  productPrice: {
1141
- id: string;
1142
- name: string | null;
1143
1184
  currency: string | null;
1185
+ name: string | null;
1186
+ id: string;
1144
1187
  createdAt: Date;
1145
1188
  updatedAt: Date;
1146
1189
  deletedAt: Date | null;
@@ -1156,9 +1199,9 @@ export declare const subscriptionContract: {
1156
1199
  subscriptionProducts: {
1157
1200
  id: string;
1158
1201
  product: {
1202
+ name: string;
1159
1203
  type: string;
1160
1204
  id: string;
1161
- name: string;
1162
1205
  createdAt: Date;
1163
1206
  updatedAt: Date;
1164
1207
  deletedAt: Date | null;
@@ -1167,9 +1210,9 @@ export declare const subscriptionContract: {
1167
1210
  omnichannel: string;
1168
1211
  usageType: string | null;
1169
1212
  productPrice: {
1170
- id: string;
1171
- name: string | null;
1172
1213
  currency: string | null;
1214
+ name: string | null;
1215
+ id: string;
1173
1216
  createdAt: Date;
1174
1217
  updatedAt: Date;
1175
1218
  deletedAt: Date | null;
@@ -1180,9 +1223,9 @@ export declare const subscriptionContract: {
1180
1223
  relatedProducts: {
1181
1224
  id: string;
1182
1225
  product: {
1226
+ name: string;
1183
1227
  type: string;
1184
1228
  id: string;
1185
- name: string;
1186
1229
  createdAt: Date;
1187
1230
  updatedAt: Date;
1188
1231
  deletedAt: Date | null;
@@ -1191,9 +1234,9 @@ export declare const subscriptionContract: {
1191
1234
  omnichannel: string;
1192
1235
  usageType: string | null;
1193
1236
  productPrice: {
1194
- id: string;
1195
- name: string | null;
1196
1237
  currency: string | null;
1238
+ name: string | null;
1239
+ id: string;
1197
1240
  createdAt: Date;
1198
1241
  updatedAt: Date;
1199
1242
  deletedAt: Date | null;
@@ -1218,15 +1261,26 @@ export declare const subscriptionContract: {
1218
1261
  };
1219
1262
  }, {
1220
1263
  requestId: string;
1264
+ customer: {
1265
+ name: string;
1266
+ id: string;
1267
+ email: string;
1268
+ createdAt: Date;
1269
+ updatedAt: Date;
1270
+ deletedAt: Date | null;
1271
+ provider: string;
1272
+ customerId: string;
1273
+ balance: number;
1274
+ };
1221
1275
  subscription: {
1276
+ name: string | null;
1222
1277
  type: string;
1223
1278
  interval: string;
1224
1279
  id: string;
1225
- name: string | null;
1226
1280
  product: {
1281
+ name: string;
1227
1282
  type: string;
1228
1283
  id: string;
1229
- name: string;
1230
1284
  createdAt: Date;
1231
1285
  updatedAt: Date;
1232
1286
  deletedAt: Date | null;
@@ -1235,9 +1289,9 @@ export declare const subscriptionContract: {
1235
1289
  omnichannel: string;
1236
1290
  usageType: string | null;
1237
1291
  productPrice: {
1238
- id: string;
1239
- name: string | null;
1240
1292
  currency: string | null;
1293
+ name: string | null;
1294
+ id: string;
1241
1295
  createdAt: Date;
1242
1296
  updatedAt: Date;
1243
1297
  deletedAt: Date | null;
@@ -1248,9 +1302,9 @@ export declare const subscriptionContract: {
1248
1302
  relatedProducts: {
1249
1303
  id: string;
1250
1304
  product: {
1305
+ name: string;
1251
1306
  type: string;
1252
1307
  id: string;
1253
- name: string;
1254
1308
  createdAt: Date;
1255
1309
  updatedAt: Date;
1256
1310
  deletedAt: Date | null;
@@ -1259,9 +1313,9 @@ export declare const subscriptionContract: {
1259
1313
  omnichannel: string;
1260
1314
  usageType: string | null;
1261
1315
  productPrice: {
1262
- id: string;
1263
- name: string | null;
1264
1316
  currency: string | null;
1317
+ name: string | null;
1318
+ id: string;
1265
1319
  createdAt: Date;
1266
1320
  updatedAt: Date;
1267
1321
  deletedAt: Date | null;
@@ -1282,9 +1336,9 @@ export declare const subscriptionContract: {
1282
1336
  deletedAt: Date | null;
1283
1337
  provider: string;
1284
1338
  productPrice: {
1285
- id: string;
1286
- name: string | null;
1287
1339
  currency: string | null;
1340
+ name: string | null;
1341
+ id: string;
1288
1342
  createdAt: Date;
1289
1343
  updatedAt: Date;
1290
1344
  deletedAt: Date | null;
@@ -1300,9 +1354,9 @@ export declare const subscriptionContract: {
1300
1354
  subscriptionProducts: {
1301
1355
  id: string;
1302
1356
  product: {
1357
+ name: string;
1303
1358
  type: string;
1304
1359
  id: string;
1305
- name: string;
1306
1360
  createdAt: Date;
1307
1361
  updatedAt: Date;
1308
1362
  deletedAt: Date | null;
@@ -1311,9 +1365,9 @@ export declare const subscriptionContract: {
1311
1365
  omnichannel: string;
1312
1366
  usageType: string | null;
1313
1367
  productPrice: {
1314
- id: string;
1315
- name: string | null;
1316
1368
  currency: string | null;
1369
+ name: string | null;
1370
+ id: string;
1317
1371
  createdAt: Date;
1318
1372
  updatedAt: Date;
1319
1373
  deletedAt: Date | null;
@@ -1324,9 +1378,9 @@ export declare const subscriptionContract: {
1324
1378
  relatedProducts: {
1325
1379
  id: string;
1326
1380
  product: {
1381
+ name: string;
1327
1382
  type: string;
1328
1383
  id: string;
1329
- name: string;
1330
1384
  createdAt: Date;
1331
1385
  updatedAt: Date;
1332
1386
  deletedAt: Date | null;
@@ -1335,9 +1389,9 @@ export declare const subscriptionContract: {
1335
1389
  omnichannel: string;
1336
1390
  usageType: string | null;
1337
1391
  productPrice: {
1338
- id: string;
1339
- name: string | null;
1340
1392
  currency: string | null;
1393
+ name: string | null;
1394
+ id: string;
1341
1395
  createdAt: Date;
1342
1396
  updatedAt: Date;
1343
1397
  deletedAt: Date | null;
@@ -1377,31 +1431,39 @@ export declare const subscriptionContract: {
1377
1431
  updateSubscription: {
1378
1432
  body: z.ZodObject<{
1379
1433
  planProductId: z.ZodString;
1434
+ planProductPriceId: z.ZodString;
1380
1435
  subscriptionId: z.ZodString;
1381
1436
  subscriptionProducts: z.ZodArray<z.ZodObject<{
1382
1437
  productId: z.ZodString;
1438
+ productPriceId: z.ZodString;
1383
1439
  quantity: z.ZodNumber;
1384
1440
  }, "strip", z.ZodTypeAny, {
1385
1441
  productId: string;
1386
1442
  quantity: number;
1443
+ productPriceId: string;
1387
1444
  }, {
1388
1445
  productId: string;
1389
1446
  quantity: number;
1447
+ productPriceId: string;
1390
1448
  }>, "many">;
1391
1449
  }, "strip", z.ZodTypeAny, {
1392
1450
  subscriptionId: string;
1393
1451
  subscriptionProducts: {
1394
1452
  productId: string;
1395
1453
  quantity: number;
1454
+ productPriceId: string;
1396
1455
  }[];
1397
1456
  planProductId: string;
1457
+ planProductPriceId: string;
1398
1458
  }, {
1399
1459
  subscriptionId: string;
1400
1460
  subscriptionProducts: {
1401
1461
  productId: string;
1402
1462
  quantity: number;
1463
+ productPriceId: string;
1403
1464
  }[];
1404
1465
  planProductId: string;
1466
+ planProductPriceId: string;
1405
1467
  }>;
1406
1468
  method: "PATCH";
1407
1469
  responses: {
@@ -1421,6 +1483,16 @@ export declare const subscriptionContract: {
1421
1483
  requireCheckout: boolean;
1422
1484
  checkoutUrl: string | null;
1423
1485
  }>;
1486
+ 402: z.ZodObject<{
1487
+ message: z.ZodString;
1488
+ error: z.ZodAny;
1489
+ }, "strip", z.ZodTypeAny, {
1490
+ message: string;
1491
+ error?: any;
1492
+ }, {
1493
+ message: string;
1494
+ error?: any;
1495
+ }>;
1424
1496
  500: z.ZodObject<{
1425
1497
  message: z.ZodString;
1426
1498
  error: z.ZodAny;
@@ -1469,7 +1541,16 @@ export declare const subscriptionContract: {
1469
1541
  };
1470
1542
  getAvailablePlan: {
1471
1543
  method: "GET";
1472
- query: null;
1544
+ query: z.ZodObject<{
1545
+ type: z.ZodString;
1546
+ currency: z.ZodString;
1547
+ }, "strip", z.ZodTypeAny, {
1548
+ currency: string;
1549
+ type: string;
1550
+ }, {
1551
+ currency: string;
1552
+ type: string;
1553
+ }>;
1473
1554
  responses: {
1474
1555
  200: z.ZodObject<{
1475
1556
  requestId: z.ZodString;
@@ -1495,9 +1576,9 @@ export declare const subscriptionContract: {
1495
1576
  price: z.ZodNumber;
1496
1577
  currency: z.ZodNullable<z.ZodString>;
1497
1578
  }, "strip", z.ZodTypeAny, {
1498
- id: string;
1499
- name: string | null;
1500
1579
  currency: string | null;
1580
+ name: string | null;
1581
+ id: string;
1501
1582
  createdAt: Date;
1502
1583
  updatedAt: Date;
1503
1584
  deletedAt: Date | null;
@@ -1505,9 +1586,9 @@ export declare const subscriptionContract: {
1505
1586
  perUnit: number;
1506
1587
  price: number;
1507
1588
  }, {
1508
- id: string;
1509
- name: string | null;
1510
1589
  currency: string | null;
1590
+ name: string | null;
1591
+ id: string;
1511
1592
  createdAt: Date;
1512
1593
  updatedAt: Date;
1513
1594
  deletedAt: Date | null;
@@ -1543,9 +1624,9 @@ export declare const subscriptionContract: {
1543
1624
  price: z.ZodNumber;
1544
1625
  currency: z.ZodNullable<z.ZodString>;
1545
1626
  }, "strip", z.ZodTypeAny, {
1546
- id: string;
1547
- name: string | null;
1548
1627
  currency: string | null;
1628
+ name: string | null;
1629
+ id: string;
1549
1630
  createdAt: Date;
1550
1631
  updatedAt: Date;
1551
1632
  deletedAt: Date | null;
@@ -1553,9 +1634,9 @@ export declare const subscriptionContract: {
1553
1634
  perUnit: number;
1554
1635
  price: number;
1555
1636
  }, {
1556
- id: string;
1557
- name: string | null;
1558
1637
  currency: string | null;
1638
+ name: string | null;
1639
+ id: string;
1559
1640
  createdAt: Date;
1560
1641
  updatedAt: Date;
1561
1642
  deletedAt: Date | null;
@@ -1564,9 +1645,9 @@ export declare const subscriptionContract: {
1564
1645
  price: number;
1565
1646
  }>;
1566
1647
  }, "strip", z.ZodTypeAny, {
1648
+ name: string;
1567
1649
  type: string;
1568
1650
  id: string;
1569
- name: string;
1570
1651
  createdAt: Date;
1571
1652
  updatedAt: Date;
1572
1653
  deletedAt: Date | null;
@@ -1575,9 +1656,9 @@ export declare const subscriptionContract: {
1575
1656
  omnichannel: string;
1576
1657
  usageType: string | null;
1577
1658
  productPrice: {
1578
- id: string;
1579
- name: string | null;
1580
1659
  currency: string | null;
1660
+ name: string | null;
1661
+ id: string;
1581
1662
  createdAt: Date;
1582
1663
  updatedAt: Date;
1583
1664
  deletedAt: Date | null;
@@ -1586,9 +1667,9 @@ export declare const subscriptionContract: {
1586
1667
  price: number;
1587
1668
  };
1588
1669
  }, {
1670
+ name: string;
1589
1671
  type: string;
1590
1672
  id: string;
1591
- name: string;
1592
1673
  createdAt: Date;
1593
1674
  updatedAt: Date;
1594
1675
  deletedAt: Date | null;
@@ -1597,9 +1678,9 @@ export declare const subscriptionContract: {
1597
1678
  omnichannel: string;
1598
1679
  usageType: string | null;
1599
1680
  productPrice: {
1600
- id: string;
1601
- name: string | null;
1602
1681
  currency: string | null;
1682
+ name: string | null;
1683
+ id: string;
1603
1684
  createdAt: Date;
1604
1685
  updatedAt: Date;
1605
1686
  deletedAt: Date | null;
@@ -1611,9 +1692,9 @@ export declare const subscriptionContract: {
1611
1692
  }, "strip", z.ZodTypeAny, {
1612
1693
  id: string;
1613
1694
  product: {
1695
+ name: string;
1614
1696
  type: string;
1615
1697
  id: string;
1616
- name: string;
1617
1698
  createdAt: Date;
1618
1699
  updatedAt: Date;
1619
1700
  deletedAt: Date | null;
@@ -1622,9 +1703,9 @@ export declare const subscriptionContract: {
1622
1703
  omnichannel: string;
1623
1704
  usageType: string | null;
1624
1705
  productPrice: {
1625
- id: string;
1626
- name: string | null;
1627
1706
  currency: string | null;
1707
+ name: string | null;
1708
+ id: string;
1628
1709
  createdAt: Date;
1629
1710
  updatedAt: Date;
1630
1711
  deletedAt: Date | null;
@@ -1640,9 +1721,9 @@ export declare const subscriptionContract: {
1640
1721
  }, {
1641
1722
  id: string;
1642
1723
  product: {
1724
+ name: string;
1643
1725
  type: string;
1644
1726
  id: string;
1645
- name: string;
1646
1727
  createdAt: Date;
1647
1728
  updatedAt: Date;
1648
1729
  deletedAt: Date | null;
@@ -1651,9 +1732,9 @@ export declare const subscriptionContract: {
1651
1732
  omnichannel: string;
1652
1733
  usageType: string | null;
1653
1734
  productPrice: {
1654
- id: string;
1655
- name: string | null;
1656
1735
  currency: string | null;
1736
+ name: string | null;
1737
+ id: string;
1657
1738
  createdAt: Date;
1658
1739
  updatedAt: Date;
1659
1740
  deletedAt: Date | null;
@@ -1668,9 +1749,9 @@ export declare const subscriptionContract: {
1668
1749
  includedQuantity: number;
1669
1750
  }>, "many">;
1670
1751
  }, "strip", z.ZodTypeAny, {
1752
+ name: string;
1671
1753
  type: string;
1672
1754
  id: string;
1673
- name: string;
1674
1755
  createdAt: Date;
1675
1756
  updatedAt: Date;
1676
1757
  deletedAt: Date | null;
@@ -1679,9 +1760,9 @@ export declare const subscriptionContract: {
1679
1760
  omnichannel: string;
1680
1761
  usageType: string | null;
1681
1762
  productPrice: {
1682
- id: string;
1683
- name: string | null;
1684
1763
  currency: string | null;
1764
+ name: string | null;
1765
+ id: string;
1685
1766
  createdAt: Date;
1686
1767
  updatedAt: Date;
1687
1768
  deletedAt: Date | null;
@@ -1692,9 +1773,9 @@ export declare const subscriptionContract: {
1692
1773
  relatedProducts: {
1693
1774
  id: string;
1694
1775
  product: {
1776
+ name: string;
1695
1777
  type: string;
1696
1778
  id: string;
1697
- name: string;
1698
1779
  createdAt: Date;
1699
1780
  updatedAt: Date;
1700
1781
  deletedAt: Date | null;
@@ -1703,9 +1784,9 @@ export declare const subscriptionContract: {
1703
1784
  omnichannel: string;
1704
1785
  usageType: string | null;
1705
1786
  productPrice: {
1706
- id: string;
1707
- name: string | null;
1708
1787
  currency: string | null;
1788
+ name: string | null;
1789
+ id: string;
1709
1790
  createdAt: Date;
1710
1791
  updatedAt: Date;
1711
1792
  deletedAt: Date | null;
@@ -1720,9 +1801,9 @@ export declare const subscriptionContract: {
1720
1801
  includedQuantity: number;
1721
1802
  }[];
1722
1803
  }, {
1804
+ name: string;
1723
1805
  type: string;
1724
1806
  id: string;
1725
- name: string;
1726
1807
  createdAt: Date;
1727
1808
  updatedAt: Date;
1728
1809
  deletedAt: Date | null;
@@ -1731,9 +1812,9 @@ export declare const subscriptionContract: {
1731
1812
  omnichannel: string;
1732
1813
  usageType: string | null;
1733
1814
  productPrice: {
1734
- id: string;
1735
- name: string | null;
1736
1815
  currency: string | null;
1816
+ name: string | null;
1817
+ id: string;
1737
1818
  createdAt: Date;
1738
1819
  updatedAt: Date;
1739
1820
  deletedAt: Date | null;
@@ -1744,9 +1825,9 @@ export declare const subscriptionContract: {
1744
1825
  relatedProducts: {
1745
1826
  id: string;
1746
1827
  product: {
1828
+ name: string;
1747
1829
  type: string;
1748
1830
  id: string;
1749
- name: string;
1750
1831
  createdAt: Date;
1751
1832
  updatedAt: Date;
1752
1833
  deletedAt: Date | null;
@@ -1755,9 +1836,9 @@ export declare const subscriptionContract: {
1755
1836
  omnichannel: string;
1756
1837
  usageType: string | null;
1757
1838
  productPrice: {
1758
- id: string;
1759
- name: string | null;
1760
1839
  currency: string | null;
1840
+ name: string | null;
1841
+ id: string;
1761
1842
  createdAt: Date;
1762
1843
  updatedAt: Date;
1763
1844
  deletedAt: Date | null;
@@ -1774,9 +1855,9 @@ export declare const subscriptionContract: {
1774
1855
  }>, "many">;
1775
1856
  }, "strip", z.ZodTypeAny, {
1776
1857
  data: {
1858
+ name: string;
1777
1859
  type: string;
1778
1860
  id: string;
1779
- name: string;
1780
1861
  createdAt: Date;
1781
1862
  updatedAt: Date;
1782
1863
  deletedAt: Date | null;
@@ -1785,9 +1866,9 @@ export declare const subscriptionContract: {
1785
1866
  omnichannel: string;
1786
1867
  usageType: string | null;
1787
1868
  productPrice: {
1788
- id: string;
1789
- name: string | null;
1790
1869
  currency: string | null;
1870
+ name: string | null;
1871
+ id: string;
1791
1872
  createdAt: Date;
1792
1873
  updatedAt: Date;
1793
1874
  deletedAt: Date | null;
@@ -1798,9 +1879,9 @@ export declare const subscriptionContract: {
1798
1879
  relatedProducts: {
1799
1880
  id: string;
1800
1881
  product: {
1882
+ name: string;
1801
1883
  type: string;
1802
1884
  id: string;
1803
- name: string;
1804
1885
  createdAt: Date;
1805
1886
  updatedAt: Date;
1806
1887
  deletedAt: Date | null;
@@ -1809,9 +1890,9 @@ export declare const subscriptionContract: {
1809
1890
  omnichannel: string;
1810
1891
  usageType: string | null;
1811
1892
  productPrice: {
1812
- id: string;
1813
- name: string | null;
1814
1893
  currency: string | null;
1894
+ name: string | null;
1895
+ id: string;
1815
1896
  createdAt: Date;
1816
1897
  updatedAt: Date;
1817
1898
  deletedAt: Date | null;
@@ -1829,9 +1910,9 @@ export declare const subscriptionContract: {
1829
1910
  requestId: string;
1830
1911
  }, {
1831
1912
  data: {
1913
+ name: string;
1832
1914
  type: string;
1833
1915
  id: string;
1834
- name: string;
1835
1916
  createdAt: Date;
1836
1917
  updatedAt: Date;
1837
1918
  deletedAt: Date | null;
@@ -1840,9 +1921,9 @@ export declare const subscriptionContract: {
1840
1921
  omnichannel: string;
1841
1922
  usageType: string | null;
1842
1923
  productPrice: {
1843
- id: string;
1844
- name: string | null;
1845
1924
  currency: string | null;
1925
+ name: string | null;
1926
+ id: string;
1846
1927
  createdAt: Date;
1847
1928
  updatedAt: Date;
1848
1929
  deletedAt: Date | null;
@@ -1853,9 +1934,9 @@ export declare const subscriptionContract: {
1853
1934
  relatedProducts: {
1854
1935
  id: string;
1855
1936
  product: {
1937
+ name: string;
1856
1938
  type: string;
1857
1939
  id: string;
1858
- name: string;
1859
1940
  createdAt: Date;
1860
1941
  updatedAt: Date;
1861
1942
  deletedAt: Date | null;
@@ -1864,9 +1945,9 @@ export declare const subscriptionContract: {
1864
1945
  omnichannel: string;
1865
1946
  usageType: string | null;
1866
1947
  productPrice: {
1867
- id: string;
1868
- name: string | null;
1869
1948
  currency: string | null;
1949
+ name: string | null;
1950
+ id: string;
1870
1951
  createdAt: Date;
1871
1952
  updatedAt: Date;
1872
1953
  deletedAt: Date | null;