@deliverart/sdk-js-subscription 2.13.0
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.
- package/README.md +3 -0
- package/dist/index.cjs +15237 -0
- package/dist/index.d.cts +3796 -0
- package/dist/index.d.ts +3796 -0
- package/dist/index.js +15071 -0
- package/package.json +32 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3796 @@
|
|
|
1
|
+
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
+
export { CreditTransactionType, RenewalStatus, SubscriptionStatus, SubscriptionType, creditTransactionTypeSchema, creditTransactionTypes, renewalStatusSchema, renewalStatuses, subscriptionStatusSchema, subscriptionStatuses, subscriptionTypeSchema, subscriptionTypes } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
5
|
+
|
|
6
|
+
declare const subscriptionInfiniteSchema: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
status: z.ZodEnum<{
|
|
9
|
+
created: "created";
|
|
10
|
+
active: "active";
|
|
11
|
+
pending_renewal: "pending_renewal";
|
|
12
|
+
expired: "expired";
|
|
13
|
+
suspended: "suspended";
|
|
14
|
+
cancelled: "cancelled";
|
|
15
|
+
}>;
|
|
16
|
+
autoRenewal: z.ZodBoolean;
|
|
17
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
18
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
19
|
+
createdAt: z.ZodString;
|
|
20
|
+
updatedAt: z.ZodString;
|
|
21
|
+
type: z.ZodLiteral<"infinite">;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
type SubscriptionInfinite = z.infer<typeof subscriptionInfiniteSchema>;
|
|
24
|
+
declare const subscriptionInfiniteDetailsSchema: z.ZodObject<{
|
|
25
|
+
id: z.ZodString;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
created: "created";
|
|
28
|
+
active: "active";
|
|
29
|
+
pending_renewal: "pending_renewal";
|
|
30
|
+
expired: "expired";
|
|
31
|
+
suspended: "suspended";
|
|
32
|
+
cancelled: "cancelled";
|
|
33
|
+
}>;
|
|
34
|
+
autoRenewal: z.ZodBoolean;
|
|
35
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
36
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
updatedAt: z.ZodString;
|
|
39
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
40
|
+
type: z.ZodLiteral<"infinite">;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
type SubscriptionInfiniteDetails = z.infer<typeof subscriptionInfiniteDetailsSchema>;
|
|
43
|
+
declare const subscriptionConsumptionSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
status: z.ZodEnum<{
|
|
46
|
+
created: "created";
|
|
47
|
+
active: "active";
|
|
48
|
+
pending_renewal: "pending_renewal";
|
|
49
|
+
expired: "expired";
|
|
50
|
+
suspended: "suspended";
|
|
51
|
+
cancelled: "cancelled";
|
|
52
|
+
}>;
|
|
53
|
+
autoRenewal: z.ZodBoolean;
|
|
54
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
55
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
type: z.ZodLiteral<"consumption">;
|
|
59
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
60
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
61
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
62
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
type SubscriptionConsumption = z.infer<typeof subscriptionConsumptionSchema>;
|
|
65
|
+
declare const subscriptionConsumptionDetailsSchema: z.ZodObject<{
|
|
66
|
+
id: z.ZodString;
|
|
67
|
+
status: z.ZodEnum<{
|
|
68
|
+
created: "created";
|
|
69
|
+
active: "active";
|
|
70
|
+
pending_renewal: "pending_renewal";
|
|
71
|
+
expired: "expired";
|
|
72
|
+
suspended: "suspended";
|
|
73
|
+
cancelled: "cancelled";
|
|
74
|
+
}>;
|
|
75
|
+
autoRenewal: z.ZodBoolean;
|
|
76
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
77
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
78
|
+
createdAt: z.ZodString;
|
|
79
|
+
updatedAt: z.ZodString;
|
|
80
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
81
|
+
type: z.ZodLiteral<"consumption">;
|
|
82
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
83
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
84
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
85
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
type SubscriptionConsumptionDetails = z.infer<typeof subscriptionConsumptionDetailsSchema>;
|
|
88
|
+
declare const subscriptionTimeBasedSchema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
status: z.ZodEnum<{
|
|
91
|
+
created: "created";
|
|
92
|
+
active: "active";
|
|
93
|
+
pending_renewal: "pending_renewal";
|
|
94
|
+
expired: "expired";
|
|
95
|
+
suspended: "suspended";
|
|
96
|
+
cancelled: "cancelled";
|
|
97
|
+
}>;
|
|
98
|
+
autoRenewal: z.ZodBoolean;
|
|
99
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
100
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
101
|
+
createdAt: z.ZodString;
|
|
102
|
+
updatedAt: z.ZodString;
|
|
103
|
+
type: z.ZodLiteral<"time_based">;
|
|
104
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
105
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
106
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
type SubscriptionTimeBased = z.infer<typeof subscriptionTimeBasedSchema>;
|
|
109
|
+
declare const subscriptionTimeBasedDetailsSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
status: z.ZodEnum<{
|
|
112
|
+
created: "created";
|
|
113
|
+
active: "active";
|
|
114
|
+
pending_renewal: "pending_renewal";
|
|
115
|
+
expired: "expired";
|
|
116
|
+
suspended: "suspended";
|
|
117
|
+
cancelled: "cancelled";
|
|
118
|
+
}>;
|
|
119
|
+
autoRenewal: z.ZodBoolean;
|
|
120
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
121
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
122
|
+
createdAt: z.ZodString;
|
|
123
|
+
updatedAt: z.ZodString;
|
|
124
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
125
|
+
type: z.ZodLiteral<"time_based">;
|
|
126
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
127
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
128
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
129
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
type SubscriptionTimeBasedDetails = z.infer<typeof subscriptionTimeBasedDetailsSchema>;
|
|
132
|
+
declare const subscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
status: z.ZodEnum<{
|
|
135
|
+
created: "created";
|
|
136
|
+
active: "active";
|
|
137
|
+
pending_renewal: "pending_renewal";
|
|
138
|
+
expired: "expired";
|
|
139
|
+
suspended: "suspended";
|
|
140
|
+
cancelled: "cancelled";
|
|
141
|
+
}>;
|
|
142
|
+
autoRenewal: z.ZodBoolean;
|
|
143
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
144
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
145
|
+
createdAt: z.ZodString;
|
|
146
|
+
updatedAt: z.ZodString;
|
|
147
|
+
type: z.ZodLiteral<"infinite">;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
id: z.ZodString;
|
|
150
|
+
status: z.ZodEnum<{
|
|
151
|
+
created: "created";
|
|
152
|
+
active: "active";
|
|
153
|
+
pending_renewal: "pending_renewal";
|
|
154
|
+
expired: "expired";
|
|
155
|
+
suspended: "suspended";
|
|
156
|
+
cancelled: "cancelled";
|
|
157
|
+
}>;
|
|
158
|
+
autoRenewal: z.ZodBoolean;
|
|
159
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
160
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
161
|
+
createdAt: z.ZodString;
|
|
162
|
+
updatedAt: z.ZodString;
|
|
163
|
+
type: z.ZodLiteral<"consumption">;
|
|
164
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
165
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
166
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
167
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
168
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
status: z.ZodEnum<{
|
|
171
|
+
created: "created";
|
|
172
|
+
active: "active";
|
|
173
|
+
pending_renewal: "pending_renewal";
|
|
174
|
+
expired: "expired";
|
|
175
|
+
suspended: "suspended";
|
|
176
|
+
cancelled: "cancelled";
|
|
177
|
+
}>;
|
|
178
|
+
autoRenewal: z.ZodBoolean;
|
|
179
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
180
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
181
|
+
createdAt: z.ZodString;
|
|
182
|
+
updatedAt: z.ZodString;
|
|
183
|
+
type: z.ZodLiteral<"time_based">;
|
|
184
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
185
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
186
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
187
|
+
}, z.core.$strip>], "type">;
|
|
188
|
+
type Subscription = z.infer<typeof subscriptionSchema>;
|
|
189
|
+
declare const subscriptionDetailsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
status: z.ZodEnum<{
|
|
192
|
+
created: "created";
|
|
193
|
+
active: "active";
|
|
194
|
+
pending_renewal: "pending_renewal";
|
|
195
|
+
expired: "expired";
|
|
196
|
+
suspended: "suspended";
|
|
197
|
+
cancelled: "cancelled";
|
|
198
|
+
}>;
|
|
199
|
+
autoRenewal: z.ZodBoolean;
|
|
200
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
201
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
202
|
+
createdAt: z.ZodString;
|
|
203
|
+
updatedAt: z.ZodString;
|
|
204
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
205
|
+
type: z.ZodLiteral<"infinite">;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
status: z.ZodEnum<{
|
|
209
|
+
created: "created";
|
|
210
|
+
active: "active";
|
|
211
|
+
pending_renewal: "pending_renewal";
|
|
212
|
+
expired: "expired";
|
|
213
|
+
suspended: "suspended";
|
|
214
|
+
cancelled: "cancelled";
|
|
215
|
+
}>;
|
|
216
|
+
autoRenewal: z.ZodBoolean;
|
|
217
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
218
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
219
|
+
createdAt: z.ZodString;
|
|
220
|
+
updatedAt: z.ZodString;
|
|
221
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
222
|
+
type: z.ZodLiteral<"consumption">;
|
|
223
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
224
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
225
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
226
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
227
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
228
|
+
id: z.ZodString;
|
|
229
|
+
status: z.ZodEnum<{
|
|
230
|
+
created: "created";
|
|
231
|
+
active: "active";
|
|
232
|
+
pending_renewal: "pending_renewal";
|
|
233
|
+
expired: "expired";
|
|
234
|
+
suspended: "suspended";
|
|
235
|
+
cancelled: "cancelled";
|
|
236
|
+
}>;
|
|
237
|
+
autoRenewal: z.ZodBoolean;
|
|
238
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
239
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
240
|
+
createdAt: z.ZodString;
|
|
241
|
+
updatedAt: z.ZodString;
|
|
242
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
243
|
+
type: z.ZodLiteral<"time_based">;
|
|
244
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
245
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
246
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
247
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
248
|
+
}, z.core.$strip>], "type">;
|
|
249
|
+
type SubscriptionDetails = z.infer<typeof subscriptionDetailsSchema>;
|
|
250
|
+
declare const subscriptionConsumptionRenewalSchema: z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
status: z.ZodEnum<{
|
|
253
|
+
pending: "pending";
|
|
254
|
+
failed: "failed";
|
|
255
|
+
cancelled: "cancelled";
|
|
256
|
+
completed: "completed";
|
|
257
|
+
}>;
|
|
258
|
+
price: z.ZodString;
|
|
259
|
+
createdAt: z.ZodString;
|
|
260
|
+
updatedAt: z.ZodString;
|
|
261
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
262
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
type SubscriptionConsumptionRenewal = z.infer<typeof subscriptionConsumptionRenewalSchema>;
|
|
265
|
+
declare const subscriptionConsumptionRenewalDetailsSchema: z.ZodObject<{
|
|
266
|
+
id: z.ZodString;
|
|
267
|
+
status: z.ZodEnum<{
|
|
268
|
+
pending: "pending";
|
|
269
|
+
failed: "failed";
|
|
270
|
+
cancelled: "cancelled";
|
|
271
|
+
completed: "completed";
|
|
272
|
+
}>;
|
|
273
|
+
price: z.ZodString;
|
|
274
|
+
createdAt: z.ZodString;
|
|
275
|
+
updatedAt: z.ZodString;
|
|
276
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
277
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
278
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
type SubscriptionConsumptionRenewalDetails = z.infer<typeof subscriptionConsumptionRenewalDetailsSchema>;
|
|
281
|
+
declare const subscriptionTimeBasedRenewalSchema: z.ZodObject<{
|
|
282
|
+
id: z.ZodString;
|
|
283
|
+
status: z.ZodEnum<{
|
|
284
|
+
pending: "pending";
|
|
285
|
+
failed: "failed";
|
|
286
|
+
cancelled: "cancelled";
|
|
287
|
+
completed: "completed";
|
|
288
|
+
}>;
|
|
289
|
+
price: z.ZodString;
|
|
290
|
+
createdAt: z.ZodString;
|
|
291
|
+
updatedAt: z.ZodString;
|
|
292
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
293
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
294
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
295
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
type SubscriptionTimeBasedRenewal = z.infer<typeof subscriptionTimeBasedRenewalSchema>;
|
|
298
|
+
declare const subscriptionTimeBasedRenewalDetailsSchema: z.ZodObject<{
|
|
299
|
+
id: z.ZodString;
|
|
300
|
+
status: z.ZodEnum<{
|
|
301
|
+
pending: "pending";
|
|
302
|
+
failed: "failed";
|
|
303
|
+
cancelled: "cancelled";
|
|
304
|
+
completed: "completed";
|
|
305
|
+
}>;
|
|
306
|
+
price: z.ZodString;
|
|
307
|
+
createdAt: z.ZodString;
|
|
308
|
+
updatedAt: z.ZodString;
|
|
309
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
310
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
311
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
312
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
313
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
314
|
+
}, z.core.$strip>;
|
|
315
|
+
type SubscriptionTimeBasedRenewalDetails = z.infer<typeof subscriptionTimeBasedRenewalDetailsSchema>;
|
|
316
|
+
declare const subscriptionPriceSchema: z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
type: z.ZodEnum<{
|
|
319
|
+
infinite: "infinite";
|
|
320
|
+
time_based: "time_based";
|
|
321
|
+
consumption: "consumption";
|
|
322
|
+
}>;
|
|
323
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
324
|
+
unitPrice: z.ZodString;
|
|
325
|
+
createdAt: z.ZodString;
|
|
326
|
+
updatedAt: z.ZodString;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
type SubscriptionPrice = z.infer<typeof subscriptionPriceSchema>;
|
|
329
|
+
declare const creditUsageLogSchema: z.ZodObject<{
|
|
330
|
+
id: z.ZodString;
|
|
331
|
+
type: z.ZodEnum<{
|
|
332
|
+
consumption: "consumption";
|
|
333
|
+
renewal: "renewal";
|
|
334
|
+
gift: "gift";
|
|
335
|
+
bonus: "bonus";
|
|
336
|
+
refund: "refund";
|
|
337
|
+
manual_adjustment: "manual_adjustment";
|
|
338
|
+
}>;
|
|
339
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
340
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
341
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
342
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
343
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
344
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
345
|
+
createdAt: z.ZodString;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
type CreditUsageLog = z.infer<typeof creditUsageLogSchema>;
|
|
348
|
+
declare const creditUsageLogDetailsSchema: z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
type: z.ZodEnum<{
|
|
351
|
+
consumption: "consumption";
|
|
352
|
+
renewal: "renewal";
|
|
353
|
+
gift: "gift";
|
|
354
|
+
bonus: "bonus";
|
|
355
|
+
refund: "refund";
|
|
356
|
+
manual_adjustment: "manual_adjustment";
|
|
357
|
+
}>;
|
|
358
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
359
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
360
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
361
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
362
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
363
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
364
|
+
createdAt: z.ZodString;
|
|
365
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
366
|
+
subscription: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>>;
|
|
367
|
+
}, z.core.$strip>;
|
|
368
|
+
type CreditUsageLogDetails = z.infer<typeof creditUsageLogDetailsSchema>;
|
|
369
|
+
declare const writableSubscriptionCommonSchema: z.ZodObject<{
|
|
370
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
371
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
372
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
type WritableSubscriptionCommon = z.infer<typeof writableSubscriptionCommonSchema>;
|
|
375
|
+
declare const writableSubscriptionInfiniteSchema: z.ZodObject<{
|
|
376
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
377
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
378
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
379
|
+
}, z.core.$strip>;
|
|
380
|
+
type WritableSubscriptionInfinite = z.infer<typeof writableSubscriptionInfiniteSchema>;
|
|
381
|
+
declare const writableSubscriptionConsumptionSchema: z.ZodObject<{
|
|
382
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
383
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
384
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
385
|
+
autoRenewalExtensionCredits: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
386
|
+
autoRenewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
387
|
+
}, z.core.$strip>;
|
|
388
|
+
type WritableSubscriptionConsumption = z.infer<typeof writableSubscriptionConsumptionSchema>;
|
|
389
|
+
declare const writableSubscriptionTimeBasedSchema: z.ZodObject<{
|
|
390
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
391
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
392
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
393
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
394
|
+
autoRenewalExtensionDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
395
|
+
autoRenewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
type WritableSubscriptionTimeBased = z.infer<typeof writableSubscriptionTimeBasedSchema>;
|
|
398
|
+
declare const writableSubscriptionPriceSchema: z.ZodObject<{
|
|
399
|
+
type: z.ZodEnum<{
|
|
400
|
+
infinite: "infinite";
|
|
401
|
+
time_based: "time_based";
|
|
402
|
+
consumption: "consumption";
|
|
403
|
+
}>;
|
|
404
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
405
|
+
unitPrice: z.ZodString;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
type WritableSubscriptionPrice = z.infer<typeof writableSubscriptionPriceSchema>;
|
|
408
|
+
declare const writableSubscriptionConsumptionRenewalSchema: z.ZodObject<{
|
|
409
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
410
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
411
|
+
}, z.core.$strip>;
|
|
412
|
+
type WritableSubscriptionConsumptionRenewal = z.infer<typeof writableSubscriptionConsumptionRenewalSchema>;
|
|
413
|
+
declare const writableSubscriptionTimeBasedRenewalSchema: z.ZodObject<{
|
|
414
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
415
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
type WritableSubscriptionTimeBasedRenewal = z.infer<typeof writableSubscriptionTimeBasedRenewalSchema>;
|
|
418
|
+
declare const subscriptionQuerySchema: z.ZodObject<{
|
|
419
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
420
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
421
|
+
created: "created";
|
|
422
|
+
active: "active";
|
|
423
|
+
pending_renewal: "pending_renewal";
|
|
424
|
+
expired: "expired";
|
|
425
|
+
suspended: "suspended";
|
|
426
|
+
cancelled: "cancelled";
|
|
427
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
428
|
+
created: "created";
|
|
429
|
+
active: "active";
|
|
430
|
+
pending_renewal: "pending_renewal";
|
|
431
|
+
expired: "expired";
|
|
432
|
+
suspended: "suspended";
|
|
433
|
+
cancelled: "cancelled";
|
|
434
|
+
}>>]>>;
|
|
435
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
436
|
+
infinite: "infinite";
|
|
437
|
+
time_based: "time_based";
|
|
438
|
+
consumption: "consumption";
|
|
439
|
+
}>>;
|
|
440
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
441
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
442
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
443
|
+
asc: "asc";
|
|
444
|
+
desc: "desc";
|
|
445
|
+
}>>;
|
|
446
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
447
|
+
asc: "asc";
|
|
448
|
+
desc: "desc";
|
|
449
|
+
}>>;
|
|
450
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
451
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
452
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
453
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
454
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
455
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
456
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
457
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
458
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
459
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
460
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
461
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
462
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
type SubscriptionQueryParams = z.infer<typeof subscriptionQuerySchema>;
|
|
465
|
+
declare const subscriptionConsumptionQuerySchema: z.ZodObject<{
|
|
466
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
467
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
468
|
+
created: "created";
|
|
469
|
+
active: "active";
|
|
470
|
+
pending_renewal: "pending_renewal";
|
|
471
|
+
expired: "expired";
|
|
472
|
+
suspended: "suspended";
|
|
473
|
+
cancelled: "cancelled";
|
|
474
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
475
|
+
created: "created";
|
|
476
|
+
active: "active";
|
|
477
|
+
pending_renewal: "pending_renewal";
|
|
478
|
+
expired: "expired";
|
|
479
|
+
suspended: "suspended";
|
|
480
|
+
cancelled: "cancelled";
|
|
481
|
+
}>>]>>;
|
|
482
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
483
|
+
infinite: "infinite";
|
|
484
|
+
time_based: "time_based";
|
|
485
|
+
consumption: "consumption";
|
|
486
|
+
}>>;
|
|
487
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
488
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
489
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
asc: "asc";
|
|
491
|
+
desc: "desc";
|
|
492
|
+
}>>;
|
|
493
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
494
|
+
asc: "asc";
|
|
495
|
+
desc: "desc";
|
|
496
|
+
}>>;
|
|
497
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
498
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
499
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
500
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
501
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
502
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
503
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
504
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
505
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
506
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
507
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
508
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
509
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
510
|
+
'credits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
511
|
+
'credits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
512
|
+
'credits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
513
|
+
'credits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
514
|
+
'credits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
515
|
+
'autoRenewalExtensionCredits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
516
|
+
'autoRenewalExtensionCredits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
517
|
+
'autoRenewalExtensionCredits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
518
|
+
'autoRenewalExtensionCredits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
519
|
+
'autoRenewalExtensionCredits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
520
|
+
'autoRenewalThreshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
521
|
+
'autoRenewalThreshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
522
|
+
'autoRenewalThreshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
523
|
+
'autoRenewalThreshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
524
|
+
'autoRenewalThreshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
525
|
+
}, z.core.$strip>;
|
|
526
|
+
type SubscriptionConsumptionQueryParams = z.infer<typeof subscriptionConsumptionQuerySchema>;
|
|
527
|
+
declare const subscriptionTimeBasedQuerySchema: z.ZodObject<{
|
|
528
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
529
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
530
|
+
created: "created";
|
|
531
|
+
active: "active";
|
|
532
|
+
pending_renewal: "pending_renewal";
|
|
533
|
+
expired: "expired";
|
|
534
|
+
suspended: "suspended";
|
|
535
|
+
cancelled: "cancelled";
|
|
536
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
537
|
+
created: "created";
|
|
538
|
+
active: "active";
|
|
539
|
+
pending_renewal: "pending_renewal";
|
|
540
|
+
expired: "expired";
|
|
541
|
+
suspended: "suspended";
|
|
542
|
+
cancelled: "cancelled";
|
|
543
|
+
}>>]>>;
|
|
544
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
545
|
+
infinite: "infinite";
|
|
546
|
+
time_based: "time_based";
|
|
547
|
+
consumption: "consumption";
|
|
548
|
+
}>>;
|
|
549
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
550
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
551
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
552
|
+
asc: "asc";
|
|
553
|
+
desc: "desc";
|
|
554
|
+
}>>;
|
|
555
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
asc: "asc";
|
|
557
|
+
desc: "desc";
|
|
558
|
+
}>>;
|
|
559
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
560
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
561
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
562
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
563
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
564
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
565
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
566
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
567
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
568
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
569
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
570
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
571
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
572
|
+
'expiresAt[before]': z.ZodOptional<z.ZodString>;
|
|
573
|
+
'expiresAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
574
|
+
'expiresAt[after]': z.ZodOptional<z.ZodString>;
|
|
575
|
+
'expiresAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
576
|
+
'autoRenewalExtensionDays[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
577
|
+
'autoRenewalExtensionDays[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
578
|
+
'autoRenewalExtensionDays[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
579
|
+
'autoRenewalExtensionDays[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
580
|
+
'autoRenewalExtensionDays[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
581
|
+
'autoRenewalOffsetDays[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
582
|
+
'autoRenewalOffsetDays[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
583
|
+
'autoRenewalOffsetDays[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
584
|
+
'autoRenewalOffsetDays[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
585
|
+
'autoRenewalOffsetDays[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
type SubscriptionTimeBasedQueryParams = z.infer<typeof subscriptionTimeBasedQuerySchema>;
|
|
588
|
+
declare const subscriptionConsumptionRenewalsQuerySchema: z.ZodObject<{
|
|
589
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
590
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
591
|
+
pending: "pending";
|
|
592
|
+
failed: "failed";
|
|
593
|
+
cancelled: "cancelled";
|
|
594
|
+
completed: "completed";
|
|
595
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
596
|
+
pending: "pending";
|
|
597
|
+
failed: "failed";
|
|
598
|
+
cancelled: "cancelled";
|
|
599
|
+
completed: "completed";
|
|
600
|
+
}>>]>>;
|
|
601
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
602
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
603
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
604
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
605
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
606
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
607
|
+
asc: "asc";
|
|
608
|
+
desc: "desc";
|
|
609
|
+
}>>;
|
|
610
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
611
|
+
asc: "asc";
|
|
612
|
+
desc: "desc";
|
|
613
|
+
}>>;
|
|
614
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
615
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
616
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
617
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
618
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
619
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
620
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
621
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
622
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
623
|
+
'credits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
624
|
+
'credits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
625
|
+
'credits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
626
|
+
'credits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
627
|
+
'credits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
type SubscriptionConsumptionRenewalsQueryParams = z.infer<typeof subscriptionConsumptionRenewalsQuerySchema>;
|
|
630
|
+
declare const subscriptionTimeBasedRenewalsQuerySchema: z.ZodObject<{
|
|
631
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
632
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
633
|
+
pending: "pending";
|
|
634
|
+
failed: "failed";
|
|
635
|
+
cancelled: "cancelled";
|
|
636
|
+
completed: "completed";
|
|
637
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
638
|
+
pending: "pending";
|
|
639
|
+
failed: "failed";
|
|
640
|
+
cancelled: "cancelled";
|
|
641
|
+
completed: "completed";
|
|
642
|
+
}>>]>>;
|
|
643
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
644
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
645
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
646
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
647
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
648
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
649
|
+
asc: "asc";
|
|
650
|
+
desc: "desc";
|
|
651
|
+
}>>;
|
|
652
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
653
|
+
asc: "asc";
|
|
654
|
+
desc: "desc";
|
|
655
|
+
}>>;
|
|
656
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
657
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
658
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
659
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
660
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
661
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
662
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
663
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
664
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
665
|
+
'days[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
666
|
+
'days[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
667
|
+
'days[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
668
|
+
'days[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
669
|
+
'days[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
670
|
+
}, z.core.$strip>;
|
|
671
|
+
type SubscriptionTimeBasedRenewalsQueryParams = z.infer<typeof subscriptionTimeBasedRenewalsQuerySchema>;
|
|
672
|
+
declare const subscriptionPricesQuerySchema: z.ZodObject<{
|
|
673
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
674
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
675
|
+
infinite: "infinite";
|
|
676
|
+
time_based: "time_based";
|
|
677
|
+
consumption: "consumption";
|
|
678
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
679
|
+
infinite: "infinite";
|
|
680
|
+
time_based: "time_based";
|
|
681
|
+
consumption: "consumption";
|
|
682
|
+
}>>]>>;
|
|
683
|
+
'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
684
|
+
'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
685
|
+
'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
686
|
+
'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
687
|
+
'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
688
|
+
'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
689
|
+
'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
690
|
+
'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
691
|
+
'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
692
|
+
'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
693
|
+
'order[threshold]': z.ZodOptional<z.ZodEnum<{
|
|
694
|
+
asc: "asc";
|
|
695
|
+
desc: "desc";
|
|
696
|
+
}>>;
|
|
697
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
698
|
+
asc: "asc";
|
|
699
|
+
desc: "desc";
|
|
700
|
+
}>>;
|
|
701
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
702
|
+
asc: "asc";
|
|
703
|
+
desc: "desc";
|
|
704
|
+
}>>;
|
|
705
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
706
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
707
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
708
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
709
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
710
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
711
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
712
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
713
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
714
|
+
}, z.core.$strip>;
|
|
715
|
+
type SubscriptionPricesQueryParams = z.infer<typeof subscriptionPricesQuerySchema>;
|
|
716
|
+
declare const creditUsageLogsQuerySchema: z.ZodObject<{
|
|
717
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
718
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
719
|
+
consumption: "consumption";
|
|
720
|
+
renewal: "renewal";
|
|
721
|
+
gift: "gift";
|
|
722
|
+
bonus: "bonus";
|
|
723
|
+
refund: "refund";
|
|
724
|
+
manual_adjustment: "manual_adjustment";
|
|
725
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
726
|
+
consumption: "consumption";
|
|
727
|
+
renewal: "renewal";
|
|
728
|
+
gift: "gift";
|
|
729
|
+
bonus: "bonus";
|
|
730
|
+
refund: "refund";
|
|
731
|
+
manual_adjustment: "manual_adjustment";
|
|
732
|
+
}>>]>>;
|
|
733
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
734
|
+
asc: "asc";
|
|
735
|
+
desc: "desc";
|
|
736
|
+
}>>;
|
|
737
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
738
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
739
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
740
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
741
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
742
|
+
}, z.core.$strip>;
|
|
743
|
+
type CreditUsageLogsQueryParams = z.infer<typeof creditUsageLogsQuerySchema>;
|
|
744
|
+
declare const getSubscriptionsResponseSchema: z.ZodObject<{
|
|
745
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
746
|
+
id: z.ZodString;
|
|
747
|
+
status: z.ZodEnum<{
|
|
748
|
+
created: "created";
|
|
749
|
+
active: "active";
|
|
750
|
+
pending_renewal: "pending_renewal";
|
|
751
|
+
expired: "expired";
|
|
752
|
+
suspended: "suspended";
|
|
753
|
+
cancelled: "cancelled";
|
|
754
|
+
}>;
|
|
755
|
+
autoRenewal: z.ZodBoolean;
|
|
756
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
757
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
758
|
+
createdAt: z.ZodString;
|
|
759
|
+
updatedAt: z.ZodString;
|
|
760
|
+
type: z.ZodLiteral<"infinite">;
|
|
761
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
762
|
+
id: z.ZodString;
|
|
763
|
+
status: z.ZodEnum<{
|
|
764
|
+
created: "created";
|
|
765
|
+
active: "active";
|
|
766
|
+
pending_renewal: "pending_renewal";
|
|
767
|
+
expired: "expired";
|
|
768
|
+
suspended: "suspended";
|
|
769
|
+
cancelled: "cancelled";
|
|
770
|
+
}>;
|
|
771
|
+
autoRenewal: z.ZodBoolean;
|
|
772
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
773
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
774
|
+
createdAt: z.ZodString;
|
|
775
|
+
updatedAt: z.ZodString;
|
|
776
|
+
type: z.ZodLiteral<"consumption">;
|
|
777
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
778
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
779
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
780
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
782
|
+
id: z.ZodString;
|
|
783
|
+
status: z.ZodEnum<{
|
|
784
|
+
created: "created";
|
|
785
|
+
active: "active";
|
|
786
|
+
pending_renewal: "pending_renewal";
|
|
787
|
+
expired: "expired";
|
|
788
|
+
suspended: "suspended";
|
|
789
|
+
cancelled: "cancelled";
|
|
790
|
+
}>;
|
|
791
|
+
autoRenewal: z.ZodBoolean;
|
|
792
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
793
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
794
|
+
createdAt: z.ZodString;
|
|
795
|
+
updatedAt: z.ZodString;
|
|
796
|
+
type: z.ZodLiteral<"time_based">;
|
|
797
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
798
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
799
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
800
|
+
}, z.core.$strip>], "type">>;
|
|
801
|
+
pagination: z.ZodObject<{
|
|
802
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
803
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
804
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
805
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
806
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
807
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
808
|
+
}, z.core.$strip>;
|
|
809
|
+
}, z.core.$strip>;
|
|
810
|
+
declare const getSubscriptionConsumptionListResponseSchema: z.ZodObject<{
|
|
811
|
+
data: z.ZodArray<z.ZodObject<{
|
|
812
|
+
id: z.ZodString;
|
|
813
|
+
status: z.ZodEnum<{
|
|
814
|
+
created: "created";
|
|
815
|
+
active: "active";
|
|
816
|
+
pending_renewal: "pending_renewal";
|
|
817
|
+
expired: "expired";
|
|
818
|
+
suspended: "suspended";
|
|
819
|
+
cancelled: "cancelled";
|
|
820
|
+
}>;
|
|
821
|
+
autoRenewal: z.ZodBoolean;
|
|
822
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
823
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
824
|
+
createdAt: z.ZodString;
|
|
825
|
+
updatedAt: z.ZodString;
|
|
826
|
+
type: z.ZodLiteral<"consumption">;
|
|
827
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
828
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
829
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
830
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
831
|
+
}, z.core.$strip>>;
|
|
832
|
+
pagination: z.ZodObject<{
|
|
833
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
834
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
835
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
836
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
837
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
838
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
839
|
+
}, z.core.$strip>;
|
|
840
|
+
}, z.core.$strip>;
|
|
841
|
+
declare const getSubscriptionTimeBasedListResponseSchema: z.ZodObject<{
|
|
842
|
+
data: z.ZodArray<z.ZodObject<{
|
|
843
|
+
id: z.ZodString;
|
|
844
|
+
status: z.ZodEnum<{
|
|
845
|
+
created: "created";
|
|
846
|
+
active: "active";
|
|
847
|
+
pending_renewal: "pending_renewal";
|
|
848
|
+
expired: "expired";
|
|
849
|
+
suspended: "suspended";
|
|
850
|
+
cancelled: "cancelled";
|
|
851
|
+
}>;
|
|
852
|
+
autoRenewal: z.ZodBoolean;
|
|
853
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
854
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
855
|
+
createdAt: z.ZodString;
|
|
856
|
+
updatedAt: z.ZodString;
|
|
857
|
+
type: z.ZodLiteral<"time_based">;
|
|
858
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
859
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
860
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
861
|
+
}, z.core.$strip>>;
|
|
862
|
+
pagination: z.ZodObject<{
|
|
863
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
864
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
865
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
866
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
867
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
868
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
869
|
+
}, z.core.$strip>;
|
|
870
|
+
}, z.core.$strip>;
|
|
871
|
+
declare const getSubscriptionInfiniteListResponseSchema: z.ZodObject<{
|
|
872
|
+
data: z.ZodArray<z.ZodObject<{
|
|
873
|
+
id: z.ZodString;
|
|
874
|
+
status: z.ZodEnum<{
|
|
875
|
+
created: "created";
|
|
876
|
+
active: "active";
|
|
877
|
+
pending_renewal: "pending_renewal";
|
|
878
|
+
expired: "expired";
|
|
879
|
+
suspended: "suspended";
|
|
880
|
+
cancelled: "cancelled";
|
|
881
|
+
}>;
|
|
882
|
+
autoRenewal: z.ZodBoolean;
|
|
883
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
884
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
885
|
+
createdAt: z.ZodString;
|
|
886
|
+
updatedAt: z.ZodString;
|
|
887
|
+
type: z.ZodLiteral<"infinite">;
|
|
888
|
+
}, z.core.$strip>>;
|
|
889
|
+
pagination: z.ZodObject<{
|
|
890
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
891
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
892
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
893
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
894
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
895
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
896
|
+
}, z.core.$strip>;
|
|
897
|
+
}, z.core.$strip>;
|
|
898
|
+
declare const getSubscriptionPricesResponseSchema: z.ZodObject<{
|
|
899
|
+
data: z.ZodArray<z.ZodObject<{
|
|
900
|
+
id: z.ZodString;
|
|
901
|
+
type: z.ZodEnum<{
|
|
902
|
+
infinite: "infinite";
|
|
903
|
+
time_based: "time_based";
|
|
904
|
+
consumption: "consumption";
|
|
905
|
+
}>;
|
|
906
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
907
|
+
unitPrice: z.ZodString;
|
|
908
|
+
createdAt: z.ZodString;
|
|
909
|
+
updatedAt: z.ZodString;
|
|
910
|
+
}, z.core.$strip>>;
|
|
911
|
+
pagination: z.ZodObject<{
|
|
912
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
913
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
914
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
915
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
916
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
917
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
918
|
+
}, z.core.$strip>;
|
|
919
|
+
}, z.core.$strip>;
|
|
920
|
+
declare const getCreditUsageLogsResponseSchema: z.ZodObject<{
|
|
921
|
+
data: z.ZodArray<z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
type: z.ZodEnum<{
|
|
924
|
+
consumption: "consumption";
|
|
925
|
+
renewal: "renewal";
|
|
926
|
+
gift: "gift";
|
|
927
|
+
bonus: "bonus";
|
|
928
|
+
refund: "refund";
|
|
929
|
+
manual_adjustment: "manual_adjustment";
|
|
930
|
+
}>;
|
|
931
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
932
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
933
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
934
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
935
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
936
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
937
|
+
createdAt: z.ZodString;
|
|
938
|
+
}, z.core.$strip>>;
|
|
939
|
+
pagination: z.ZodObject<{
|
|
940
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
941
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
942
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
943
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
944
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
945
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
946
|
+
}, z.core.$strip>;
|
|
947
|
+
}, z.core.$strip>;
|
|
948
|
+
declare const getSubscriptionConsumptionRenewalsResponseSchema: z.ZodObject<{
|
|
949
|
+
data: z.ZodArray<z.ZodObject<{
|
|
950
|
+
id: z.ZodString;
|
|
951
|
+
status: z.ZodEnum<{
|
|
952
|
+
pending: "pending";
|
|
953
|
+
failed: "failed";
|
|
954
|
+
cancelled: "cancelled";
|
|
955
|
+
completed: "completed";
|
|
956
|
+
}>;
|
|
957
|
+
price: z.ZodString;
|
|
958
|
+
createdAt: z.ZodString;
|
|
959
|
+
updatedAt: z.ZodString;
|
|
960
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
961
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
962
|
+
}, z.core.$strip>>;
|
|
963
|
+
pagination: z.ZodObject<{
|
|
964
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
965
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
966
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
967
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
968
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
969
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
970
|
+
}, z.core.$strip>;
|
|
971
|
+
}, z.core.$strip>;
|
|
972
|
+
declare const getSubscriptionTimeBasedRenewalsResponseSchema: z.ZodObject<{
|
|
973
|
+
data: z.ZodArray<z.ZodObject<{
|
|
974
|
+
id: z.ZodString;
|
|
975
|
+
status: z.ZodEnum<{
|
|
976
|
+
pending: "pending";
|
|
977
|
+
failed: "failed";
|
|
978
|
+
cancelled: "cancelled";
|
|
979
|
+
completed: "completed";
|
|
980
|
+
}>;
|
|
981
|
+
price: z.ZodString;
|
|
982
|
+
createdAt: z.ZodString;
|
|
983
|
+
updatedAt: z.ZodString;
|
|
984
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
985
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
986
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
987
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
988
|
+
}, z.core.$strip>>;
|
|
989
|
+
pagination: z.ZodObject<{
|
|
990
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
991
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
992
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
993
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
994
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
995
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
996
|
+
}, z.core.$strip>;
|
|
997
|
+
}, z.core.$strip>;
|
|
998
|
+
|
|
999
|
+
declare const deleteCreditUsageLogInputSchema: z.ZodUndefined;
|
|
1000
|
+
declare const deleteCreditUsageLogResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1001
|
+
declare class DeleteCreditUsageLog extends AbstractApiRequest<typeof deleteCreditUsageLogInputSchema, typeof deleteCreditUsageLogResponseSchema> {
|
|
1002
|
+
readonly method = "DELETE";
|
|
1003
|
+
readonly contentType = "application/json";
|
|
1004
|
+
readonly accept = "application/json";
|
|
1005
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1006
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1007
|
+
readonly querySchema: undefined;
|
|
1008
|
+
readonly headersSchema: undefined;
|
|
1009
|
+
private readonly logId;
|
|
1010
|
+
constructor(logId: string);
|
|
1011
|
+
getPath(): string;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
declare const getCreditUsageLogDetailsInputSchema: z.ZodUndefined;
|
|
1015
|
+
type GetCreditUsageLogDetailsInput = z.input<typeof getCreditUsageLogDetailsInputSchema>;
|
|
1016
|
+
declare const getCreditUsageLogDetailsResponseSchema: z.ZodObject<{
|
|
1017
|
+
id: z.ZodString;
|
|
1018
|
+
type: z.ZodEnum<{
|
|
1019
|
+
consumption: "consumption";
|
|
1020
|
+
renewal: "renewal";
|
|
1021
|
+
gift: "gift";
|
|
1022
|
+
bonus: "bonus";
|
|
1023
|
+
refund: "refund";
|
|
1024
|
+
manual_adjustment: "manual_adjustment";
|
|
1025
|
+
}>;
|
|
1026
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1027
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1028
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1029
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1030
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1031
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1032
|
+
createdAt: z.ZodString;
|
|
1033
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1034
|
+
subscription: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>>;
|
|
1035
|
+
}, z.core.$strip>;
|
|
1036
|
+
type GetCreditUsageLogDetailsResponse = z.infer<typeof getCreditUsageLogDetailsResponseSchema>;
|
|
1037
|
+
declare class GetCreditUsageLogDetails extends AbstractApiRequest<typeof getCreditUsageLogDetailsInputSchema, typeof getCreditUsageLogDetailsResponseSchema> {
|
|
1038
|
+
readonly method = "GET";
|
|
1039
|
+
readonly contentType = "application/json";
|
|
1040
|
+
readonly accept = "application/json";
|
|
1041
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1042
|
+
readonly outputSchema: z.ZodObject<{
|
|
1043
|
+
id: z.ZodString;
|
|
1044
|
+
type: z.ZodEnum<{
|
|
1045
|
+
consumption: "consumption";
|
|
1046
|
+
renewal: "renewal";
|
|
1047
|
+
gift: "gift";
|
|
1048
|
+
bonus: "bonus";
|
|
1049
|
+
refund: "refund";
|
|
1050
|
+
manual_adjustment: "manual_adjustment";
|
|
1051
|
+
}>;
|
|
1052
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1053
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1054
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1055
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1056
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1057
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1058
|
+
createdAt: z.ZodString;
|
|
1059
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1060
|
+
subscription: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>>;
|
|
1061
|
+
}, z.core.$strip>;
|
|
1062
|
+
readonly querySchema: undefined;
|
|
1063
|
+
readonly headersSchema: undefined;
|
|
1064
|
+
private readonly logId;
|
|
1065
|
+
constructor(logId: string);
|
|
1066
|
+
getPath(): string;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
type GetCreditUsageLogsQueryParams = CreditUsageLogsQueryParams;
|
|
1070
|
+
declare const getCreditUsageLogsInputSchema: z.ZodUndefined;
|
|
1071
|
+
type GetCreditUsageLogsInput = z.input<typeof getCreditUsageLogsInputSchema>;
|
|
1072
|
+
type GetCreditUsageLogsResponse = z.infer<typeof getCreditUsageLogsResponseSchema>;
|
|
1073
|
+
declare class GetCreditUsageLogs extends AbstractApiRequest<typeof getCreditUsageLogsInputSchema, typeof getCreditUsageLogsResponseSchema, GetCreditUsageLogsQueryParams> {
|
|
1074
|
+
readonly method: "GET";
|
|
1075
|
+
readonly contentType: "application/json";
|
|
1076
|
+
readonly accept: "application/json";
|
|
1077
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1078
|
+
readonly outputSchema: z.ZodObject<{
|
|
1079
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1080
|
+
id: z.ZodString;
|
|
1081
|
+
type: z.ZodEnum<{
|
|
1082
|
+
consumption: "consumption";
|
|
1083
|
+
renewal: "renewal";
|
|
1084
|
+
gift: "gift";
|
|
1085
|
+
bonus: "bonus";
|
|
1086
|
+
refund: "refund";
|
|
1087
|
+
manual_adjustment: "manual_adjustment";
|
|
1088
|
+
}>;
|
|
1089
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1090
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1091
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1092
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1093
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1094
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1095
|
+
createdAt: z.ZodString;
|
|
1096
|
+
}, z.core.$strip>>;
|
|
1097
|
+
pagination: z.ZodObject<{
|
|
1098
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1099
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1100
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1101
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1102
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1103
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1104
|
+
}, z.core.$strip>;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
readonly querySchema: z.ZodObject<{
|
|
1107
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1108
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1109
|
+
consumption: "consumption";
|
|
1110
|
+
renewal: "renewal";
|
|
1111
|
+
gift: "gift";
|
|
1112
|
+
bonus: "bonus";
|
|
1113
|
+
refund: "refund";
|
|
1114
|
+
manual_adjustment: "manual_adjustment";
|
|
1115
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1116
|
+
consumption: "consumption";
|
|
1117
|
+
renewal: "renewal";
|
|
1118
|
+
gift: "gift";
|
|
1119
|
+
bonus: "bonus";
|
|
1120
|
+
refund: "refund";
|
|
1121
|
+
manual_adjustment: "manual_adjustment";
|
|
1122
|
+
}>>]>>;
|
|
1123
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1124
|
+
asc: "asc";
|
|
1125
|
+
desc: "desc";
|
|
1126
|
+
}>>;
|
|
1127
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1128
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1129
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1130
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1131
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1132
|
+
}, z.core.$strip>;
|
|
1133
|
+
readonly headersSchema: undefined;
|
|
1134
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1135
|
+
id: z.ZodString;
|
|
1136
|
+
type: z.ZodEnum<{
|
|
1137
|
+
consumption: "consumption";
|
|
1138
|
+
renewal: "renewal";
|
|
1139
|
+
gift: "gift";
|
|
1140
|
+
bonus: "bonus";
|
|
1141
|
+
refund: "refund";
|
|
1142
|
+
manual_adjustment: "manual_adjustment";
|
|
1143
|
+
}>;
|
|
1144
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1145
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1146
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1147
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1148
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1149
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1150
|
+
createdAt: z.ZodString;
|
|
1151
|
+
}, z.core.$strip>;
|
|
1152
|
+
readonly paginationDefaultEnabled = true;
|
|
1153
|
+
constructor(options?: {
|
|
1154
|
+
query?: GetCreditUsageLogsQueryParams;
|
|
1155
|
+
});
|
|
1156
|
+
getPath(): string;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
type GetCreditUsageLogsFromPointOfSaleQueryParams = CreditUsageLogsQueryParams;
|
|
1160
|
+
declare const getCreditUsageLogsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
1161
|
+
type GetCreditUsageLogsFromPointOfSaleInput = z.input<typeof getCreditUsageLogsFromPointOfSaleInputSchema>;
|
|
1162
|
+
declare const getCreditUsageLogsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1163
|
+
id: z.ZodString;
|
|
1164
|
+
type: z.ZodEnum<{
|
|
1165
|
+
consumption: "consumption";
|
|
1166
|
+
renewal: "renewal";
|
|
1167
|
+
gift: "gift";
|
|
1168
|
+
bonus: "bonus";
|
|
1169
|
+
refund: "refund";
|
|
1170
|
+
manual_adjustment: "manual_adjustment";
|
|
1171
|
+
}>;
|
|
1172
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1173
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1174
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1175
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1176
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1177
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1178
|
+
createdAt: z.ZodString;
|
|
1179
|
+
}, z.core.$strip>>;
|
|
1180
|
+
type GetCreditUsageLogsFromPointOfSaleResponse = z.infer<typeof getCreditUsageLogsFromPointOfSaleResponseSchema>;
|
|
1181
|
+
declare class GetCreditUsageLogsFromPointOfSale extends AbstractApiRequest<typeof getCreditUsageLogsFromPointOfSaleInputSchema, typeof getCreditUsageLogsFromPointOfSaleResponseSchema, GetCreditUsageLogsFromPointOfSaleQueryParams> {
|
|
1182
|
+
readonly method: "GET";
|
|
1183
|
+
readonly contentType: "application/json";
|
|
1184
|
+
readonly accept: "application/json";
|
|
1185
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1186
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
1187
|
+
id: z.ZodString;
|
|
1188
|
+
type: z.ZodEnum<{
|
|
1189
|
+
consumption: "consumption";
|
|
1190
|
+
renewal: "renewal";
|
|
1191
|
+
gift: "gift";
|
|
1192
|
+
bonus: "bonus";
|
|
1193
|
+
refund: "refund";
|
|
1194
|
+
manual_adjustment: "manual_adjustment";
|
|
1195
|
+
}>;
|
|
1196
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1197
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1198
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1199
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1200
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1201
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1202
|
+
createdAt: z.ZodString;
|
|
1203
|
+
}, z.core.$strip>>;
|
|
1204
|
+
readonly querySchema: z.ZodObject<{
|
|
1205
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1206
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1207
|
+
consumption: "consumption";
|
|
1208
|
+
renewal: "renewal";
|
|
1209
|
+
gift: "gift";
|
|
1210
|
+
bonus: "bonus";
|
|
1211
|
+
refund: "refund";
|
|
1212
|
+
manual_adjustment: "manual_adjustment";
|
|
1213
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1214
|
+
consumption: "consumption";
|
|
1215
|
+
renewal: "renewal";
|
|
1216
|
+
gift: "gift";
|
|
1217
|
+
bonus: "bonus";
|
|
1218
|
+
refund: "refund";
|
|
1219
|
+
manual_adjustment: "manual_adjustment";
|
|
1220
|
+
}>>]>>;
|
|
1221
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1222
|
+
asc: "asc";
|
|
1223
|
+
desc: "desc";
|
|
1224
|
+
}>>;
|
|
1225
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1226
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1227
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1228
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1229
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1230
|
+
}, z.core.$strip>;
|
|
1231
|
+
readonly headersSchema: undefined;
|
|
1232
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1233
|
+
id: z.ZodString;
|
|
1234
|
+
type: z.ZodEnum<{
|
|
1235
|
+
consumption: "consumption";
|
|
1236
|
+
renewal: "renewal";
|
|
1237
|
+
gift: "gift";
|
|
1238
|
+
bonus: "bonus";
|
|
1239
|
+
refund: "refund";
|
|
1240
|
+
manual_adjustment: "manual_adjustment";
|
|
1241
|
+
}>;
|
|
1242
|
+
creditsUsed: z.ZodCoercedNumber<unknown>;
|
|
1243
|
+
creditsDelta: z.ZodCoercedNumber<unknown>;
|
|
1244
|
+
balanceBefore: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1245
|
+
balanceAfter: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1246
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
1247
|
+
context: z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
1248
|
+
createdAt: z.ZodString;
|
|
1249
|
+
}, z.core.$strip>;
|
|
1250
|
+
readonly paginationDefaultEnabled = false;
|
|
1251
|
+
private readonly pointOfSaleId;
|
|
1252
|
+
constructor(pointOfSaleId: string, options?: {
|
|
1253
|
+
query?: GetCreditUsageLogsFromPointOfSaleQueryParams;
|
|
1254
|
+
});
|
|
1255
|
+
getPath(): string;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
declare const createSubscriptionConsumptionInputSchema: z.ZodObject<{
|
|
1259
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1260
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1261
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1262
|
+
autoRenewalExtensionCredits: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1263
|
+
autoRenewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1264
|
+
}, z.core.$strip>;
|
|
1265
|
+
type CreateSubscriptionConsumptionInput = z.input<typeof createSubscriptionConsumptionInputSchema>;
|
|
1266
|
+
declare const createSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
1267
|
+
id: z.ZodString;
|
|
1268
|
+
status: z.ZodEnum<{
|
|
1269
|
+
created: "created";
|
|
1270
|
+
active: "active";
|
|
1271
|
+
pending_renewal: "pending_renewal";
|
|
1272
|
+
expired: "expired";
|
|
1273
|
+
suspended: "suspended";
|
|
1274
|
+
cancelled: "cancelled";
|
|
1275
|
+
}>;
|
|
1276
|
+
autoRenewal: z.ZodBoolean;
|
|
1277
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1278
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1279
|
+
createdAt: z.ZodString;
|
|
1280
|
+
updatedAt: z.ZodString;
|
|
1281
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1282
|
+
type: z.ZodLiteral<"consumption">;
|
|
1283
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1284
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1285
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1286
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1287
|
+
}, z.core.$strip>;
|
|
1288
|
+
type CreateSubscriptionConsumptionResponse = z.infer<typeof createSubscriptionConsumptionResponseSchema>;
|
|
1289
|
+
declare class CreateSubscriptionConsumption extends AbstractApiRequest<typeof createSubscriptionConsumptionInputSchema, typeof createSubscriptionConsumptionResponseSchema> {
|
|
1290
|
+
readonly method = "POST";
|
|
1291
|
+
readonly contentType = "application/json";
|
|
1292
|
+
readonly accept = "application/json";
|
|
1293
|
+
readonly inputSchema: z.ZodObject<{
|
|
1294
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1295
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1296
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1297
|
+
autoRenewalExtensionCredits: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1298
|
+
autoRenewalThreshold: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
1299
|
+
}, z.core.$strip>;
|
|
1300
|
+
readonly outputSchema: z.ZodObject<{
|
|
1301
|
+
id: z.ZodString;
|
|
1302
|
+
status: z.ZodEnum<{
|
|
1303
|
+
created: "created";
|
|
1304
|
+
active: "active";
|
|
1305
|
+
pending_renewal: "pending_renewal";
|
|
1306
|
+
expired: "expired";
|
|
1307
|
+
suspended: "suspended";
|
|
1308
|
+
cancelled: "cancelled";
|
|
1309
|
+
}>;
|
|
1310
|
+
autoRenewal: z.ZodBoolean;
|
|
1311
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1312
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1313
|
+
createdAt: z.ZodString;
|
|
1314
|
+
updatedAt: z.ZodString;
|
|
1315
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1316
|
+
type: z.ZodLiteral<"consumption">;
|
|
1317
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1318
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1319
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1320
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1321
|
+
}, z.core.$strip>;
|
|
1322
|
+
readonly querySchema: undefined;
|
|
1323
|
+
readonly headersSchema: undefined;
|
|
1324
|
+
constructor(input: CreateSubscriptionConsumptionInput);
|
|
1325
|
+
getPath(): string;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
declare const deleteSubscriptionConsumptionInputSchema: z.ZodUndefined;
|
|
1329
|
+
declare const deleteSubscriptionConsumptionResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1330
|
+
declare class DeleteSubscriptionConsumption extends AbstractApiRequest<typeof deleteSubscriptionConsumptionInputSchema, typeof deleteSubscriptionConsumptionResponseSchema> {
|
|
1331
|
+
readonly method = "DELETE";
|
|
1332
|
+
readonly contentType = "application/json";
|
|
1333
|
+
readonly accept = "application/json";
|
|
1334
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1335
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1336
|
+
readonly querySchema: undefined;
|
|
1337
|
+
readonly headersSchema: undefined;
|
|
1338
|
+
private readonly subscriptionId;
|
|
1339
|
+
constructor(subscriptionId: string);
|
|
1340
|
+
getPath(): string;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
declare const getSubscriptionConsumptionDetailsInputSchema: z.ZodUndefined;
|
|
1344
|
+
type GetSubscriptionConsumptionDetailsInput = z.input<typeof getSubscriptionConsumptionDetailsInputSchema>;
|
|
1345
|
+
declare const getSubscriptionConsumptionDetailsResponseSchema: z.ZodObject<{
|
|
1346
|
+
id: z.ZodString;
|
|
1347
|
+
status: z.ZodEnum<{
|
|
1348
|
+
created: "created";
|
|
1349
|
+
active: "active";
|
|
1350
|
+
pending_renewal: "pending_renewal";
|
|
1351
|
+
expired: "expired";
|
|
1352
|
+
suspended: "suspended";
|
|
1353
|
+
cancelled: "cancelled";
|
|
1354
|
+
}>;
|
|
1355
|
+
autoRenewal: z.ZodBoolean;
|
|
1356
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1357
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1358
|
+
createdAt: z.ZodString;
|
|
1359
|
+
updatedAt: z.ZodString;
|
|
1360
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1361
|
+
type: z.ZodLiteral<"consumption">;
|
|
1362
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1363
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1364
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1365
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1366
|
+
}, z.core.$strip>;
|
|
1367
|
+
type GetSubscriptionConsumptionDetailsResponse = z.infer<typeof getSubscriptionConsumptionDetailsResponseSchema>;
|
|
1368
|
+
declare class GetSubscriptionConsumptionDetails extends AbstractApiRequest<typeof getSubscriptionConsumptionDetailsInputSchema, typeof getSubscriptionConsumptionDetailsResponseSchema> {
|
|
1369
|
+
readonly method = "GET";
|
|
1370
|
+
readonly contentType = "application/json";
|
|
1371
|
+
readonly accept = "application/json";
|
|
1372
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1373
|
+
readonly outputSchema: z.ZodObject<{
|
|
1374
|
+
id: z.ZodString;
|
|
1375
|
+
status: z.ZodEnum<{
|
|
1376
|
+
created: "created";
|
|
1377
|
+
active: "active";
|
|
1378
|
+
pending_renewal: "pending_renewal";
|
|
1379
|
+
expired: "expired";
|
|
1380
|
+
suspended: "suspended";
|
|
1381
|
+
cancelled: "cancelled";
|
|
1382
|
+
}>;
|
|
1383
|
+
autoRenewal: z.ZodBoolean;
|
|
1384
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1385
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1386
|
+
createdAt: z.ZodString;
|
|
1387
|
+
updatedAt: z.ZodString;
|
|
1388
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1389
|
+
type: z.ZodLiteral<"consumption">;
|
|
1390
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1391
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1392
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1393
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1394
|
+
}, z.core.$strip>;
|
|
1395
|
+
readonly querySchema: undefined;
|
|
1396
|
+
readonly headersSchema: undefined;
|
|
1397
|
+
private readonly subscriptionId;
|
|
1398
|
+
constructor(subscriptionId: string);
|
|
1399
|
+
getPath(): string;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
type GetSubscriptionConsumptionListQueryParams = SubscriptionConsumptionQueryParams;
|
|
1403
|
+
declare const getSubscriptionConsumptionListInputSchema: z.ZodUndefined;
|
|
1404
|
+
type GetSubscriptionConsumptionListInput = z.input<typeof getSubscriptionConsumptionListInputSchema>;
|
|
1405
|
+
type GetSubscriptionConsumptionListResponse = z.infer<typeof getSubscriptionConsumptionListResponseSchema>;
|
|
1406
|
+
declare class GetSubscriptionConsumptionList extends AbstractApiRequest<typeof getSubscriptionConsumptionListInputSchema, typeof getSubscriptionConsumptionListResponseSchema, GetSubscriptionConsumptionListQueryParams> {
|
|
1407
|
+
readonly method: "GET";
|
|
1408
|
+
readonly contentType: "application/json";
|
|
1409
|
+
readonly accept: "application/json";
|
|
1410
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1411
|
+
readonly outputSchema: z.ZodObject<{
|
|
1412
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1413
|
+
id: z.ZodString;
|
|
1414
|
+
status: z.ZodEnum<{
|
|
1415
|
+
created: "created";
|
|
1416
|
+
active: "active";
|
|
1417
|
+
pending_renewal: "pending_renewal";
|
|
1418
|
+
expired: "expired";
|
|
1419
|
+
suspended: "suspended";
|
|
1420
|
+
cancelled: "cancelled";
|
|
1421
|
+
}>;
|
|
1422
|
+
autoRenewal: z.ZodBoolean;
|
|
1423
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1424
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1425
|
+
createdAt: z.ZodString;
|
|
1426
|
+
updatedAt: z.ZodString;
|
|
1427
|
+
type: z.ZodLiteral<"consumption">;
|
|
1428
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1429
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1430
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1431
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1432
|
+
}, z.core.$strip>>;
|
|
1433
|
+
pagination: z.ZodObject<{
|
|
1434
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1435
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1436
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1437
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1438
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1439
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1440
|
+
}, z.core.$strip>;
|
|
1441
|
+
}, z.core.$strip>;
|
|
1442
|
+
readonly querySchema: z.ZodObject<{
|
|
1443
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1444
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1445
|
+
created: "created";
|
|
1446
|
+
active: "active";
|
|
1447
|
+
pending_renewal: "pending_renewal";
|
|
1448
|
+
expired: "expired";
|
|
1449
|
+
suspended: "suspended";
|
|
1450
|
+
cancelled: "cancelled";
|
|
1451
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1452
|
+
created: "created";
|
|
1453
|
+
active: "active";
|
|
1454
|
+
pending_renewal: "pending_renewal";
|
|
1455
|
+
expired: "expired";
|
|
1456
|
+
suspended: "suspended";
|
|
1457
|
+
cancelled: "cancelled";
|
|
1458
|
+
}>>]>>;
|
|
1459
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1460
|
+
infinite: "infinite";
|
|
1461
|
+
time_based: "time_based";
|
|
1462
|
+
consumption: "consumption";
|
|
1463
|
+
}>>;
|
|
1464
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1465
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1466
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1467
|
+
asc: "asc";
|
|
1468
|
+
desc: "desc";
|
|
1469
|
+
}>>;
|
|
1470
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1471
|
+
asc: "asc";
|
|
1472
|
+
desc: "desc";
|
|
1473
|
+
}>>;
|
|
1474
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
1475
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1476
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
1477
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1478
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1479
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1480
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1481
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1482
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1483
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1484
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1485
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1486
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1487
|
+
'credits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1488
|
+
'credits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1489
|
+
'credits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1490
|
+
'credits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1491
|
+
'credits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1492
|
+
'autoRenewalExtensionCredits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1493
|
+
'autoRenewalExtensionCredits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1494
|
+
'autoRenewalExtensionCredits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1495
|
+
'autoRenewalExtensionCredits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1496
|
+
'autoRenewalExtensionCredits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1497
|
+
'autoRenewalThreshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1498
|
+
'autoRenewalThreshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1499
|
+
'autoRenewalThreshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1500
|
+
'autoRenewalThreshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1501
|
+
'autoRenewalThreshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1502
|
+
}, z.core.$strip>;
|
|
1503
|
+
readonly headersSchema: undefined;
|
|
1504
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1505
|
+
id: z.ZodString;
|
|
1506
|
+
status: z.ZodEnum<{
|
|
1507
|
+
created: "created";
|
|
1508
|
+
active: "active";
|
|
1509
|
+
pending_renewal: "pending_renewal";
|
|
1510
|
+
expired: "expired";
|
|
1511
|
+
suspended: "suspended";
|
|
1512
|
+
cancelled: "cancelled";
|
|
1513
|
+
}>;
|
|
1514
|
+
autoRenewal: z.ZodBoolean;
|
|
1515
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1516
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1517
|
+
createdAt: z.ZodString;
|
|
1518
|
+
updatedAt: z.ZodString;
|
|
1519
|
+
type: z.ZodLiteral<"consumption">;
|
|
1520
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1521
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1522
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1523
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1524
|
+
}, z.core.$strip>;
|
|
1525
|
+
readonly paginationDefaultEnabled = true;
|
|
1526
|
+
constructor(options?: {
|
|
1527
|
+
query?: GetSubscriptionConsumptionListQueryParams;
|
|
1528
|
+
});
|
|
1529
|
+
getPath(): string;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
declare const updateSubscriptionConsumptionInputSchema: z.ZodObject<{
|
|
1533
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
1534
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
1535
|
+
autoRenewalExtensionCredits: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
1536
|
+
autoRenewalThreshold: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
1537
|
+
}, z.core.$strip>;
|
|
1538
|
+
type UpdateSubscriptionConsumptionInput = z.input<typeof updateSubscriptionConsumptionInputSchema>;
|
|
1539
|
+
declare const updateSubscriptionConsumptionResponseSchema: z.ZodObject<{
|
|
1540
|
+
id: z.ZodString;
|
|
1541
|
+
status: z.ZodEnum<{
|
|
1542
|
+
created: "created";
|
|
1543
|
+
active: "active";
|
|
1544
|
+
pending_renewal: "pending_renewal";
|
|
1545
|
+
expired: "expired";
|
|
1546
|
+
suspended: "suspended";
|
|
1547
|
+
cancelled: "cancelled";
|
|
1548
|
+
}>;
|
|
1549
|
+
autoRenewal: z.ZodBoolean;
|
|
1550
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1551
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1552
|
+
createdAt: z.ZodString;
|
|
1553
|
+
updatedAt: z.ZodString;
|
|
1554
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1555
|
+
type: z.ZodLiteral<"consumption">;
|
|
1556
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1557
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1558
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1559
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1560
|
+
}, z.core.$strip>;
|
|
1561
|
+
type UpdateSubscriptionConsumptionResponse = z.infer<typeof updateSubscriptionConsumptionResponseSchema>;
|
|
1562
|
+
declare class UpdateSubscriptionConsumption extends AbstractApiRequest<typeof updateSubscriptionConsumptionInputSchema, typeof updateSubscriptionConsumptionResponseSchema> {
|
|
1563
|
+
readonly method = "PATCH";
|
|
1564
|
+
readonly contentType = "application/merge-patch+json";
|
|
1565
|
+
readonly accept = "application/json";
|
|
1566
|
+
readonly inputSchema: z.ZodObject<{
|
|
1567
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
1568
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
1569
|
+
autoRenewalExtensionCredits: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
1570
|
+
autoRenewalThreshold: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
1571
|
+
}, z.core.$strip>;
|
|
1572
|
+
readonly outputSchema: z.ZodObject<{
|
|
1573
|
+
id: z.ZodString;
|
|
1574
|
+
status: z.ZodEnum<{
|
|
1575
|
+
created: "created";
|
|
1576
|
+
active: "active";
|
|
1577
|
+
pending_renewal: "pending_renewal";
|
|
1578
|
+
expired: "expired";
|
|
1579
|
+
suspended: "suspended";
|
|
1580
|
+
cancelled: "cancelled";
|
|
1581
|
+
}>;
|
|
1582
|
+
autoRenewal: z.ZodBoolean;
|
|
1583
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1584
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1585
|
+
createdAt: z.ZodString;
|
|
1586
|
+
updatedAt: z.ZodString;
|
|
1587
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1588
|
+
type: z.ZodLiteral<"consumption">;
|
|
1589
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1590
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1591
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
1592
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
1593
|
+
}, z.core.$strip>;
|
|
1594
|
+
readonly querySchema: undefined;
|
|
1595
|
+
readonly headersSchema: undefined;
|
|
1596
|
+
private readonly subscriptionId;
|
|
1597
|
+
constructor(subscriptionId: string, input: UpdateSubscriptionConsumptionInput);
|
|
1598
|
+
getPath(): string;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
declare const createSubscriptionConsumptionRenewalInputSchema: z.ZodObject<{
|
|
1602
|
+
subscription: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>>;
|
|
1603
|
+
credits: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1604
|
+
}, z.core.$strip>;
|
|
1605
|
+
type CreateSubscriptionConsumptionRenewalInput = z.input<typeof createSubscriptionConsumptionRenewalInputSchema>;
|
|
1606
|
+
declare const createSubscriptionConsumptionRenewalResponseSchema: z.ZodObject<{
|
|
1607
|
+
id: z.ZodString;
|
|
1608
|
+
status: z.ZodEnum<{
|
|
1609
|
+
pending: "pending";
|
|
1610
|
+
failed: "failed";
|
|
1611
|
+
cancelled: "cancelled";
|
|
1612
|
+
completed: "completed";
|
|
1613
|
+
}>;
|
|
1614
|
+
price: z.ZodString;
|
|
1615
|
+
createdAt: z.ZodString;
|
|
1616
|
+
updatedAt: z.ZodString;
|
|
1617
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1618
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1619
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
1620
|
+
}, z.core.$strip>;
|
|
1621
|
+
type CreateSubscriptionConsumptionRenewalResponse = z.infer<typeof createSubscriptionConsumptionRenewalResponseSchema>;
|
|
1622
|
+
declare class CreateSubscriptionConsumptionRenewal extends AbstractApiRequest<typeof createSubscriptionConsumptionRenewalInputSchema, typeof createSubscriptionConsumptionRenewalResponseSchema> {
|
|
1623
|
+
readonly method = "POST";
|
|
1624
|
+
readonly contentType = "application/json";
|
|
1625
|
+
readonly accept = "application/json";
|
|
1626
|
+
readonly inputSchema: z.ZodObject<{
|
|
1627
|
+
subscription: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>>;
|
|
1628
|
+
credits: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
1629
|
+
}, z.core.$strip>;
|
|
1630
|
+
readonly outputSchema: z.ZodObject<{
|
|
1631
|
+
id: z.ZodString;
|
|
1632
|
+
status: z.ZodEnum<{
|
|
1633
|
+
pending: "pending";
|
|
1634
|
+
failed: "failed";
|
|
1635
|
+
cancelled: "cancelled";
|
|
1636
|
+
completed: "completed";
|
|
1637
|
+
}>;
|
|
1638
|
+
price: z.ZodString;
|
|
1639
|
+
createdAt: z.ZodString;
|
|
1640
|
+
updatedAt: z.ZodString;
|
|
1641
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1642
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1643
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
1644
|
+
}, z.core.$strip>;
|
|
1645
|
+
readonly querySchema: undefined;
|
|
1646
|
+
readonly headersSchema: undefined;
|
|
1647
|
+
constructor(input: CreateSubscriptionConsumptionRenewalInput);
|
|
1648
|
+
getPath(): string;
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
declare const deleteSubscriptionConsumptionRenewalInputSchema: z.ZodUndefined;
|
|
1652
|
+
declare const deleteSubscriptionConsumptionRenewalResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1653
|
+
declare class DeleteSubscriptionConsumptionRenewal extends AbstractApiRequest<typeof deleteSubscriptionConsumptionRenewalInputSchema, typeof deleteSubscriptionConsumptionRenewalResponseSchema> {
|
|
1654
|
+
readonly method = "DELETE";
|
|
1655
|
+
readonly contentType = "application/json";
|
|
1656
|
+
readonly accept = "application/json";
|
|
1657
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1658
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1659
|
+
readonly querySchema: undefined;
|
|
1660
|
+
readonly headersSchema: undefined;
|
|
1661
|
+
private readonly renewalId;
|
|
1662
|
+
constructor(renewalId: string);
|
|
1663
|
+
getPath(): string;
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
declare const getSubscriptionConsumptionRenewalDetailsInputSchema: z.ZodUndefined;
|
|
1667
|
+
type GetSubscriptionConsumptionRenewalDetailsInput = z.input<typeof getSubscriptionConsumptionRenewalDetailsInputSchema>;
|
|
1668
|
+
declare const getSubscriptionConsumptionRenewalDetailsResponseSchema: z.ZodObject<{
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
status: z.ZodEnum<{
|
|
1671
|
+
pending: "pending";
|
|
1672
|
+
failed: "failed";
|
|
1673
|
+
cancelled: "cancelled";
|
|
1674
|
+
completed: "completed";
|
|
1675
|
+
}>;
|
|
1676
|
+
price: z.ZodString;
|
|
1677
|
+
createdAt: z.ZodString;
|
|
1678
|
+
updatedAt: z.ZodString;
|
|
1679
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1680
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1681
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
type GetSubscriptionConsumptionRenewalDetailsResponse = z.infer<typeof getSubscriptionConsumptionRenewalDetailsResponseSchema>;
|
|
1684
|
+
declare class GetSubscriptionConsumptionRenewalDetails extends AbstractApiRequest<typeof getSubscriptionConsumptionRenewalDetailsInputSchema, typeof getSubscriptionConsumptionRenewalDetailsResponseSchema> {
|
|
1685
|
+
readonly method = "GET";
|
|
1686
|
+
readonly contentType = "application/json";
|
|
1687
|
+
readonly accept = "application/json";
|
|
1688
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1689
|
+
readonly outputSchema: z.ZodObject<{
|
|
1690
|
+
id: z.ZodString;
|
|
1691
|
+
status: z.ZodEnum<{
|
|
1692
|
+
pending: "pending";
|
|
1693
|
+
failed: "failed";
|
|
1694
|
+
cancelled: "cancelled";
|
|
1695
|
+
completed: "completed";
|
|
1696
|
+
}>;
|
|
1697
|
+
price: z.ZodString;
|
|
1698
|
+
createdAt: z.ZodString;
|
|
1699
|
+
updatedAt: z.ZodString;
|
|
1700
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1701
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1702
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
1703
|
+
}, z.core.$strip>;
|
|
1704
|
+
readonly querySchema: undefined;
|
|
1705
|
+
readonly headersSchema: undefined;
|
|
1706
|
+
private readonly renewalId;
|
|
1707
|
+
constructor(renewalId: string);
|
|
1708
|
+
getPath(): string;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
type GetSubscriptionConsumptionRenewalsQueryParams = SubscriptionConsumptionRenewalsQueryParams;
|
|
1712
|
+
declare const getSubscriptionConsumptionRenewalsInputSchema: z.ZodUndefined;
|
|
1713
|
+
type GetSubscriptionConsumptionRenewalsInput = z.input<typeof getSubscriptionConsumptionRenewalsInputSchema>;
|
|
1714
|
+
type GetSubscriptionConsumptionRenewalsResponse = z.infer<typeof getSubscriptionConsumptionRenewalsResponseSchema>;
|
|
1715
|
+
declare class GetSubscriptionConsumptionRenewals extends AbstractApiRequest<typeof getSubscriptionConsumptionRenewalsInputSchema, typeof getSubscriptionConsumptionRenewalsResponseSchema, GetSubscriptionConsumptionRenewalsQueryParams> {
|
|
1716
|
+
readonly method: "GET";
|
|
1717
|
+
readonly contentType: "application/json";
|
|
1718
|
+
readonly accept: "application/json";
|
|
1719
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1720
|
+
readonly outputSchema: z.ZodObject<{
|
|
1721
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1722
|
+
id: z.ZodString;
|
|
1723
|
+
status: z.ZodEnum<{
|
|
1724
|
+
pending: "pending";
|
|
1725
|
+
failed: "failed";
|
|
1726
|
+
cancelled: "cancelled";
|
|
1727
|
+
completed: "completed";
|
|
1728
|
+
}>;
|
|
1729
|
+
price: z.ZodString;
|
|
1730
|
+
createdAt: z.ZodString;
|
|
1731
|
+
updatedAt: z.ZodString;
|
|
1732
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1733
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1734
|
+
}, z.core.$strip>>;
|
|
1735
|
+
pagination: z.ZodObject<{
|
|
1736
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1737
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1738
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1739
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1740
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1741
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1742
|
+
}, z.core.$strip>;
|
|
1743
|
+
}, z.core.$strip>;
|
|
1744
|
+
readonly querySchema: z.ZodObject<{
|
|
1745
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1746
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1747
|
+
pending: "pending";
|
|
1748
|
+
failed: "failed";
|
|
1749
|
+
cancelled: "cancelled";
|
|
1750
|
+
completed: "completed";
|
|
1751
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1752
|
+
pending: "pending";
|
|
1753
|
+
failed: "failed";
|
|
1754
|
+
cancelled: "cancelled";
|
|
1755
|
+
completed: "completed";
|
|
1756
|
+
}>>]>>;
|
|
1757
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1758
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1759
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1760
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1761
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1762
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1763
|
+
asc: "asc";
|
|
1764
|
+
desc: "desc";
|
|
1765
|
+
}>>;
|
|
1766
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1767
|
+
asc: "asc";
|
|
1768
|
+
desc: "desc";
|
|
1769
|
+
}>>;
|
|
1770
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1771
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1772
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1773
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1774
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1775
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1776
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1777
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1778
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1779
|
+
'credits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1780
|
+
'credits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1781
|
+
'credits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1782
|
+
'credits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1783
|
+
'credits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1784
|
+
}, z.core.$strip>;
|
|
1785
|
+
readonly headersSchema: undefined;
|
|
1786
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1787
|
+
id: z.ZodString;
|
|
1788
|
+
status: z.ZodEnum<{
|
|
1789
|
+
pending: "pending";
|
|
1790
|
+
failed: "failed";
|
|
1791
|
+
cancelled: "cancelled";
|
|
1792
|
+
completed: "completed";
|
|
1793
|
+
}>;
|
|
1794
|
+
price: z.ZodString;
|
|
1795
|
+
createdAt: z.ZodString;
|
|
1796
|
+
updatedAt: z.ZodString;
|
|
1797
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1798
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1799
|
+
}, z.core.$strip>;
|
|
1800
|
+
readonly paginationDefaultEnabled = true;
|
|
1801
|
+
constructor(options?: {
|
|
1802
|
+
query?: GetSubscriptionConsumptionRenewalsQueryParams;
|
|
1803
|
+
});
|
|
1804
|
+
getPath(): string;
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams = SubscriptionConsumptionRenewalsQueryParams;
|
|
1808
|
+
declare const getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema: z.ZodUndefined;
|
|
1809
|
+
type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInput = z.input<typeof getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema>;
|
|
1810
|
+
type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionResponse = z.infer<typeof getSubscriptionConsumptionRenewalsResponseSchema>;
|
|
1811
|
+
declare class GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption extends AbstractApiRequest<typeof getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema, typeof getSubscriptionConsumptionRenewalsResponseSchema, GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams> {
|
|
1812
|
+
readonly method: "GET";
|
|
1813
|
+
readonly contentType: "application/json";
|
|
1814
|
+
readonly accept: "application/json";
|
|
1815
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1816
|
+
readonly outputSchema: z.ZodObject<{
|
|
1817
|
+
data: z.ZodArray<z.ZodObject<{
|
|
1818
|
+
id: z.ZodString;
|
|
1819
|
+
status: z.ZodEnum<{
|
|
1820
|
+
pending: "pending";
|
|
1821
|
+
failed: "failed";
|
|
1822
|
+
cancelled: "cancelled";
|
|
1823
|
+
completed: "completed";
|
|
1824
|
+
}>;
|
|
1825
|
+
price: z.ZodString;
|
|
1826
|
+
createdAt: z.ZodString;
|
|
1827
|
+
updatedAt: z.ZodString;
|
|
1828
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1829
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1830
|
+
}, z.core.$strip>>;
|
|
1831
|
+
pagination: z.ZodObject<{
|
|
1832
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
1833
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
1834
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
1835
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
1836
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
1837
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
1838
|
+
}, z.core.$strip>;
|
|
1839
|
+
}, z.core.$strip>;
|
|
1840
|
+
readonly querySchema: z.ZodObject<{
|
|
1841
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
1842
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1843
|
+
pending: "pending";
|
|
1844
|
+
failed: "failed";
|
|
1845
|
+
cancelled: "cancelled";
|
|
1846
|
+
completed: "completed";
|
|
1847
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1848
|
+
pending: "pending";
|
|
1849
|
+
failed: "failed";
|
|
1850
|
+
cancelled: "cancelled";
|
|
1851
|
+
completed: "completed";
|
|
1852
|
+
}>>]>>;
|
|
1853
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1854
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1855
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1856
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1857
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1858
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
1859
|
+
asc: "asc";
|
|
1860
|
+
desc: "desc";
|
|
1861
|
+
}>>;
|
|
1862
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
1863
|
+
asc: "asc";
|
|
1864
|
+
desc: "desc";
|
|
1865
|
+
}>>;
|
|
1866
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1867
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
1868
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1869
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
1870
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1871
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
1872
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
1873
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
1874
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
1875
|
+
'credits[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1876
|
+
'credits[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1877
|
+
'credits[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1878
|
+
'credits[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1879
|
+
'credits[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1880
|
+
}, z.core.$strip>;
|
|
1881
|
+
readonly headersSchema: undefined;
|
|
1882
|
+
readonly listItemSchema: z.ZodObject<{
|
|
1883
|
+
id: z.ZodString;
|
|
1884
|
+
status: z.ZodEnum<{
|
|
1885
|
+
pending: "pending";
|
|
1886
|
+
failed: "failed";
|
|
1887
|
+
cancelled: "cancelled";
|
|
1888
|
+
completed: "completed";
|
|
1889
|
+
}>;
|
|
1890
|
+
price: z.ZodString;
|
|
1891
|
+
createdAt: z.ZodString;
|
|
1892
|
+
updatedAt: z.ZodString;
|
|
1893
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
1894
|
+
pricePerCredit: z.ZodCoercedNumber<unknown>;
|
|
1895
|
+
}, z.core.$strip>;
|
|
1896
|
+
readonly paginationDefaultEnabled = true;
|
|
1897
|
+
private readonly subscriptionId;
|
|
1898
|
+
constructor(subscriptionId: string, options?: {
|
|
1899
|
+
query?: GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams;
|
|
1900
|
+
});
|
|
1901
|
+
getPath(): string;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
declare const createSubscriptionInfiniteInputSchema: z.ZodObject<{
|
|
1905
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1906
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1907
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1908
|
+
}, z.core.$strip>;
|
|
1909
|
+
type CreateSubscriptionInfiniteInput = z.input<typeof createSubscriptionInfiniteInputSchema>;
|
|
1910
|
+
declare const createSubscriptionInfiniteResponseSchema: z.ZodObject<{
|
|
1911
|
+
id: z.ZodString;
|
|
1912
|
+
status: z.ZodEnum<{
|
|
1913
|
+
created: "created";
|
|
1914
|
+
active: "active";
|
|
1915
|
+
pending_renewal: "pending_renewal";
|
|
1916
|
+
expired: "expired";
|
|
1917
|
+
suspended: "suspended";
|
|
1918
|
+
cancelled: "cancelled";
|
|
1919
|
+
}>;
|
|
1920
|
+
autoRenewal: z.ZodBoolean;
|
|
1921
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1922
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1923
|
+
createdAt: z.ZodString;
|
|
1924
|
+
updatedAt: z.ZodString;
|
|
1925
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1926
|
+
type: z.ZodLiteral<"infinite">;
|
|
1927
|
+
}, z.core.$strip>;
|
|
1928
|
+
type CreateSubscriptionInfiniteResponse = z.infer<typeof createSubscriptionInfiniteResponseSchema>;
|
|
1929
|
+
declare class CreateSubscriptionInfinite extends AbstractApiRequest<typeof createSubscriptionInfiniteInputSchema, typeof createSubscriptionInfiniteResponseSchema> {
|
|
1930
|
+
readonly method = "POST";
|
|
1931
|
+
readonly contentType = "application/json";
|
|
1932
|
+
readonly accept = "application/json";
|
|
1933
|
+
readonly inputSchema: z.ZodObject<{
|
|
1934
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1935
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
1936
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
1937
|
+
}, z.core.$strip>;
|
|
1938
|
+
readonly outputSchema: z.ZodObject<{
|
|
1939
|
+
id: z.ZodString;
|
|
1940
|
+
status: z.ZodEnum<{
|
|
1941
|
+
created: "created";
|
|
1942
|
+
active: "active";
|
|
1943
|
+
pending_renewal: "pending_renewal";
|
|
1944
|
+
expired: "expired";
|
|
1945
|
+
suspended: "suspended";
|
|
1946
|
+
cancelled: "cancelled";
|
|
1947
|
+
}>;
|
|
1948
|
+
autoRenewal: z.ZodBoolean;
|
|
1949
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1950
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1951
|
+
createdAt: z.ZodString;
|
|
1952
|
+
updatedAt: z.ZodString;
|
|
1953
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1954
|
+
type: z.ZodLiteral<"infinite">;
|
|
1955
|
+
}, z.core.$strip>;
|
|
1956
|
+
readonly querySchema: undefined;
|
|
1957
|
+
readonly headersSchema: undefined;
|
|
1958
|
+
constructor(input: CreateSubscriptionInfiniteInput);
|
|
1959
|
+
getPath(): string;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
declare const deleteSubscriptionInfiniteInputSchema: z.ZodUndefined;
|
|
1963
|
+
declare const deleteSubscriptionInfiniteResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1964
|
+
declare class DeleteSubscriptionInfinite extends AbstractApiRequest<typeof deleteSubscriptionInfiniteInputSchema, typeof deleteSubscriptionInfiniteResponseSchema> {
|
|
1965
|
+
readonly method = "DELETE";
|
|
1966
|
+
readonly contentType = "application/json";
|
|
1967
|
+
readonly accept = "application/json";
|
|
1968
|
+
readonly inputSchema: z.ZodUndefined;
|
|
1969
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
1970
|
+
readonly querySchema: undefined;
|
|
1971
|
+
readonly headersSchema: undefined;
|
|
1972
|
+
private readonly subscriptionId;
|
|
1973
|
+
constructor(subscriptionId: string);
|
|
1974
|
+
getPath(): string;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
declare const getSubscriptionInfiniteDetailsInputSchema: z.ZodUndefined;
|
|
1978
|
+
type GetSubscriptionInfiniteDetailsInput = z.input<typeof getSubscriptionInfiniteDetailsInputSchema>;
|
|
1979
|
+
declare const getSubscriptionInfiniteDetailsResponseSchema: z.ZodObject<{
|
|
1980
|
+
id: z.ZodString;
|
|
1981
|
+
status: z.ZodEnum<{
|
|
1982
|
+
created: "created";
|
|
1983
|
+
active: "active";
|
|
1984
|
+
pending_renewal: "pending_renewal";
|
|
1985
|
+
expired: "expired";
|
|
1986
|
+
suspended: "suspended";
|
|
1987
|
+
cancelled: "cancelled";
|
|
1988
|
+
}>;
|
|
1989
|
+
autoRenewal: z.ZodBoolean;
|
|
1990
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
1991
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
1992
|
+
createdAt: z.ZodString;
|
|
1993
|
+
updatedAt: z.ZodString;
|
|
1994
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
1995
|
+
type: z.ZodLiteral<"infinite">;
|
|
1996
|
+
}, z.core.$strip>;
|
|
1997
|
+
type GetSubscriptionInfiniteDetailsResponse = z.infer<typeof getSubscriptionInfiniteDetailsResponseSchema>;
|
|
1998
|
+
declare class GetSubscriptionInfiniteDetails extends AbstractApiRequest<typeof getSubscriptionInfiniteDetailsInputSchema, typeof getSubscriptionInfiniteDetailsResponseSchema> {
|
|
1999
|
+
readonly method = "GET";
|
|
2000
|
+
readonly contentType = "application/json";
|
|
2001
|
+
readonly accept = "application/json";
|
|
2002
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2003
|
+
readonly outputSchema: z.ZodObject<{
|
|
2004
|
+
id: z.ZodString;
|
|
2005
|
+
status: z.ZodEnum<{
|
|
2006
|
+
created: "created";
|
|
2007
|
+
active: "active";
|
|
2008
|
+
pending_renewal: "pending_renewal";
|
|
2009
|
+
expired: "expired";
|
|
2010
|
+
suspended: "suspended";
|
|
2011
|
+
cancelled: "cancelled";
|
|
2012
|
+
}>;
|
|
2013
|
+
autoRenewal: z.ZodBoolean;
|
|
2014
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2015
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2016
|
+
createdAt: z.ZodString;
|
|
2017
|
+
updatedAt: z.ZodString;
|
|
2018
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2019
|
+
type: z.ZodLiteral<"infinite">;
|
|
2020
|
+
}, z.core.$strip>;
|
|
2021
|
+
readonly querySchema: undefined;
|
|
2022
|
+
readonly headersSchema: undefined;
|
|
2023
|
+
private readonly subscriptionId;
|
|
2024
|
+
constructor(subscriptionId: string);
|
|
2025
|
+
getPath(): string;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
type GetSubscriptionInfiniteListQueryParams = SubscriptionQueryParams;
|
|
2029
|
+
declare const getSubscriptionInfiniteListInputSchema: z.ZodUndefined;
|
|
2030
|
+
type GetSubscriptionInfiniteListInput = z.input<typeof getSubscriptionInfiniteListInputSchema>;
|
|
2031
|
+
type GetSubscriptionInfiniteListResponse = z.infer<typeof getSubscriptionInfiniteListResponseSchema>;
|
|
2032
|
+
declare class GetSubscriptionInfiniteList extends AbstractApiRequest<typeof getSubscriptionInfiniteListInputSchema, typeof getSubscriptionInfiniteListResponseSchema, GetSubscriptionInfiniteListQueryParams> {
|
|
2033
|
+
readonly method: "GET";
|
|
2034
|
+
readonly contentType: "application/json";
|
|
2035
|
+
readonly accept: "application/json";
|
|
2036
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2037
|
+
readonly outputSchema: z.ZodObject<{
|
|
2038
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2039
|
+
id: z.ZodString;
|
|
2040
|
+
status: z.ZodEnum<{
|
|
2041
|
+
created: "created";
|
|
2042
|
+
active: "active";
|
|
2043
|
+
pending_renewal: "pending_renewal";
|
|
2044
|
+
expired: "expired";
|
|
2045
|
+
suspended: "suspended";
|
|
2046
|
+
cancelled: "cancelled";
|
|
2047
|
+
}>;
|
|
2048
|
+
autoRenewal: z.ZodBoolean;
|
|
2049
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2050
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2051
|
+
createdAt: z.ZodString;
|
|
2052
|
+
updatedAt: z.ZodString;
|
|
2053
|
+
type: z.ZodLiteral<"infinite">;
|
|
2054
|
+
}, z.core.$strip>>;
|
|
2055
|
+
pagination: z.ZodObject<{
|
|
2056
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2057
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2058
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2059
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2060
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2061
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2062
|
+
}, z.core.$strip>;
|
|
2063
|
+
}, z.core.$strip>;
|
|
2064
|
+
readonly querySchema: z.ZodObject<{
|
|
2065
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2066
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2067
|
+
created: "created";
|
|
2068
|
+
active: "active";
|
|
2069
|
+
pending_renewal: "pending_renewal";
|
|
2070
|
+
expired: "expired";
|
|
2071
|
+
suspended: "suspended";
|
|
2072
|
+
cancelled: "cancelled";
|
|
2073
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2074
|
+
created: "created";
|
|
2075
|
+
active: "active";
|
|
2076
|
+
pending_renewal: "pending_renewal";
|
|
2077
|
+
expired: "expired";
|
|
2078
|
+
suspended: "suspended";
|
|
2079
|
+
cancelled: "cancelled";
|
|
2080
|
+
}>>]>>;
|
|
2081
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2082
|
+
infinite: "infinite";
|
|
2083
|
+
time_based: "time_based";
|
|
2084
|
+
consumption: "consumption";
|
|
2085
|
+
}>>;
|
|
2086
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2087
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2088
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2089
|
+
asc: "asc";
|
|
2090
|
+
desc: "desc";
|
|
2091
|
+
}>>;
|
|
2092
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2093
|
+
asc: "asc";
|
|
2094
|
+
desc: "desc";
|
|
2095
|
+
}>>;
|
|
2096
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
2097
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2098
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
2099
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2100
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2101
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2102
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2103
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2104
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2105
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2106
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2107
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2108
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2109
|
+
}, z.core.$strip>;
|
|
2110
|
+
readonly headersSchema: undefined;
|
|
2111
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2112
|
+
id: z.ZodString;
|
|
2113
|
+
status: z.ZodEnum<{
|
|
2114
|
+
created: "created";
|
|
2115
|
+
active: "active";
|
|
2116
|
+
pending_renewal: "pending_renewal";
|
|
2117
|
+
expired: "expired";
|
|
2118
|
+
suspended: "suspended";
|
|
2119
|
+
cancelled: "cancelled";
|
|
2120
|
+
}>;
|
|
2121
|
+
autoRenewal: z.ZodBoolean;
|
|
2122
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2123
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2124
|
+
createdAt: z.ZodString;
|
|
2125
|
+
updatedAt: z.ZodString;
|
|
2126
|
+
type: z.ZodLiteral<"infinite">;
|
|
2127
|
+
}, z.core.$strip>;
|
|
2128
|
+
readonly paginationDefaultEnabled = true;
|
|
2129
|
+
constructor(options?: {
|
|
2130
|
+
query?: GetSubscriptionInfiniteListQueryParams;
|
|
2131
|
+
});
|
|
2132
|
+
getPath(): string;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
declare const createSubscriptionPriceInputSchema: z.ZodObject<{
|
|
2136
|
+
type: z.ZodNonOptional<z.ZodEnum<{
|
|
2137
|
+
infinite: "infinite";
|
|
2138
|
+
time_based: "time_based";
|
|
2139
|
+
consumption: "consumption";
|
|
2140
|
+
}>>;
|
|
2141
|
+
threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2142
|
+
unitPrice: z.ZodNonOptional<z.ZodString>;
|
|
2143
|
+
}, z.core.$strip>;
|
|
2144
|
+
type CreateSubscriptionPriceInput = z.input<typeof createSubscriptionPriceInputSchema>;
|
|
2145
|
+
declare const createSubscriptionPriceResponseSchema: z.ZodObject<{
|
|
2146
|
+
id: z.ZodString;
|
|
2147
|
+
type: z.ZodEnum<{
|
|
2148
|
+
infinite: "infinite";
|
|
2149
|
+
time_based: "time_based";
|
|
2150
|
+
consumption: "consumption";
|
|
2151
|
+
}>;
|
|
2152
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2153
|
+
unitPrice: z.ZodString;
|
|
2154
|
+
createdAt: z.ZodString;
|
|
2155
|
+
updatedAt: z.ZodString;
|
|
2156
|
+
}, z.core.$strip>;
|
|
2157
|
+
type CreateSubscriptionPriceResponse = z.infer<typeof createSubscriptionPriceResponseSchema>;
|
|
2158
|
+
declare class CreateSubscriptionPrice extends AbstractApiRequest<typeof createSubscriptionPriceInputSchema, typeof createSubscriptionPriceResponseSchema> {
|
|
2159
|
+
readonly method = "POST";
|
|
2160
|
+
readonly contentType = "application/json";
|
|
2161
|
+
readonly accept = "application/json";
|
|
2162
|
+
readonly inputSchema: z.ZodObject<{
|
|
2163
|
+
type: z.ZodNonOptional<z.ZodEnum<{
|
|
2164
|
+
infinite: "infinite";
|
|
2165
|
+
time_based: "time_based";
|
|
2166
|
+
consumption: "consumption";
|
|
2167
|
+
}>>;
|
|
2168
|
+
threshold: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2169
|
+
unitPrice: z.ZodNonOptional<z.ZodString>;
|
|
2170
|
+
}, z.core.$strip>;
|
|
2171
|
+
readonly outputSchema: z.ZodObject<{
|
|
2172
|
+
id: z.ZodString;
|
|
2173
|
+
type: z.ZodEnum<{
|
|
2174
|
+
infinite: "infinite";
|
|
2175
|
+
time_based: "time_based";
|
|
2176
|
+
consumption: "consumption";
|
|
2177
|
+
}>;
|
|
2178
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2179
|
+
unitPrice: z.ZodString;
|
|
2180
|
+
createdAt: z.ZodString;
|
|
2181
|
+
updatedAt: z.ZodString;
|
|
2182
|
+
}, z.core.$strip>;
|
|
2183
|
+
readonly querySchema: undefined;
|
|
2184
|
+
readonly headersSchema: undefined;
|
|
2185
|
+
constructor(input: CreateSubscriptionPriceInput);
|
|
2186
|
+
getPath(): string;
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
declare const deleteSubscriptionPriceInputSchema: z.ZodUndefined;
|
|
2190
|
+
declare const deleteSubscriptionPriceResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2191
|
+
declare class DeleteSubscriptionPrice extends AbstractApiRequest<typeof deleteSubscriptionPriceInputSchema, typeof deleteSubscriptionPriceResponseSchema> {
|
|
2192
|
+
readonly method = "DELETE";
|
|
2193
|
+
readonly contentType = "application/json";
|
|
2194
|
+
readonly accept = "application/json";
|
|
2195
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2196
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2197
|
+
readonly querySchema: undefined;
|
|
2198
|
+
readonly headersSchema: undefined;
|
|
2199
|
+
private readonly priceId;
|
|
2200
|
+
constructor(priceId: string);
|
|
2201
|
+
getPath(): string;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
declare const getSubscriptionPriceDetailsInputSchema: z.ZodUndefined;
|
|
2205
|
+
type GetSubscriptionPriceDetailsInput = z.input<typeof getSubscriptionPriceDetailsInputSchema>;
|
|
2206
|
+
declare const getSubscriptionPriceDetailsResponseSchema: z.ZodObject<{
|
|
2207
|
+
id: z.ZodString;
|
|
2208
|
+
type: z.ZodEnum<{
|
|
2209
|
+
infinite: "infinite";
|
|
2210
|
+
time_based: "time_based";
|
|
2211
|
+
consumption: "consumption";
|
|
2212
|
+
}>;
|
|
2213
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2214
|
+
unitPrice: z.ZodString;
|
|
2215
|
+
createdAt: z.ZodString;
|
|
2216
|
+
updatedAt: z.ZodString;
|
|
2217
|
+
}, z.core.$strip>;
|
|
2218
|
+
type GetSubscriptionPriceDetailsResponse = z.infer<typeof getSubscriptionPriceDetailsResponseSchema>;
|
|
2219
|
+
declare class GetSubscriptionPriceDetails extends AbstractApiRequest<typeof getSubscriptionPriceDetailsInputSchema, typeof getSubscriptionPriceDetailsResponseSchema> {
|
|
2220
|
+
readonly method = "GET";
|
|
2221
|
+
readonly contentType = "application/json";
|
|
2222
|
+
readonly accept = "application/json";
|
|
2223
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2224
|
+
readonly outputSchema: z.ZodObject<{
|
|
2225
|
+
id: z.ZodString;
|
|
2226
|
+
type: z.ZodEnum<{
|
|
2227
|
+
infinite: "infinite";
|
|
2228
|
+
time_based: "time_based";
|
|
2229
|
+
consumption: "consumption";
|
|
2230
|
+
}>;
|
|
2231
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2232
|
+
unitPrice: z.ZodString;
|
|
2233
|
+
createdAt: z.ZodString;
|
|
2234
|
+
updatedAt: z.ZodString;
|
|
2235
|
+
}, z.core.$strip>;
|
|
2236
|
+
readonly querySchema: undefined;
|
|
2237
|
+
readonly headersSchema: undefined;
|
|
2238
|
+
private readonly priceId;
|
|
2239
|
+
constructor(priceId: string);
|
|
2240
|
+
getPath(): string;
|
|
2241
|
+
}
|
|
2242
|
+
|
|
2243
|
+
type GetSubscriptionPricesQueryParams = SubscriptionPricesQueryParams;
|
|
2244
|
+
declare const getSubscriptionPricesInputSchema: z.ZodUndefined;
|
|
2245
|
+
type GetSubscriptionPricesInput = z.input<typeof getSubscriptionPricesInputSchema>;
|
|
2246
|
+
type GetSubscriptionPricesResponse = z.infer<typeof getSubscriptionPricesResponseSchema>;
|
|
2247
|
+
declare class GetSubscriptionPrices extends AbstractApiRequest<typeof getSubscriptionPricesInputSchema, typeof getSubscriptionPricesResponseSchema, GetSubscriptionPricesQueryParams> {
|
|
2248
|
+
readonly method: "GET";
|
|
2249
|
+
readonly contentType: "application/json";
|
|
2250
|
+
readonly accept: "application/json";
|
|
2251
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2252
|
+
readonly outputSchema: z.ZodObject<{
|
|
2253
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2254
|
+
id: z.ZodString;
|
|
2255
|
+
type: z.ZodEnum<{
|
|
2256
|
+
infinite: "infinite";
|
|
2257
|
+
time_based: "time_based";
|
|
2258
|
+
consumption: "consumption";
|
|
2259
|
+
}>;
|
|
2260
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2261
|
+
unitPrice: z.ZodString;
|
|
2262
|
+
createdAt: z.ZodString;
|
|
2263
|
+
updatedAt: z.ZodString;
|
|
2264
|
+
}, z.core.$strip>>;
|
|
2265
|
+
pagination: z.ZodObject<{
|
|
2266
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2267
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2268
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2269
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2270
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2271
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2272
|
+
}, z.core.$strip>;
|
|
2273
|
+
}, z.core.$strip>;
|
|
2274
|
+
readonly querySchema: z.ZodObject<{
|
|
2275
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2276
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2277
|
+
infinite: "infinite";
|
|
2278
|
+
time_based: "time_based";
|
|
2279
|
+
consumption: "consumption";
|
|
2280
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2281
|
+
infinite: "infinite";
|
|
2282
|
+
time_based: "time_based";
|
|
2283
|
+
consumption: "consumption";
|
|
2284
|
+
}>>]>>;
|
|
2285
|
+
'threshold[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2286
|
+
'threshold[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2287
|
+
'threshold[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2288
|
+
'threshold[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2289
|
+
'threshold[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2290
|
+
'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2291
|
+
'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2292
|
+
'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2293
|
+
'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2294
|
+
'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2295
|
+
'order[threshold]': z.ZodOptional<z.ZodEnum<{
|
|
2296
|
+
asc: "asc";
|
|
2297
|
+
desc: "desc";
|
|
2298
|
+
}>>;
|
|
2299
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2300
|
+
asc: "asc";
|
|
2301
|
+
desc: "desc";
|
|
2302
|
+
}>>;
|
|
2303
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2304
|
+
asc: "asc";
|
|
2305
|
+
desc: "desc";
|
|
2306
|
+
}>>;
|
|
2307
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2308
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2309
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2310
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2311
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2312
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2313
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2314
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2315
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2316
|
+
}, z.core.$strip>;
|
|
2317
|
+
readonly headersSchema: undefined;
|
|
2318
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2319
|
+
id: z.ZodString;
|
|
2320
|
+
type: z.ZodEnum<{
|
|
2321
|
+
infinite: "infinite";
|
|
2322
|
+
time_based: "time_based";
|
|
2323
|
+
consumption: "consumption";
|
|
2324
|
+
}>;
|
|
2325
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2326
|
+
unitPrice: z.ZodString;
|
|
2327
|
+
createdAt: z.ZodString;
|
|
2328
|
+
updatedAt: z.ZodString;
|
|
2329
|
+
}, z.core.$strip>;
|
|
2330
|
+
readonly paginationDefaultEnabled = true;
|
|
2331
|
+
constructor(options?: {
|
|
2332
|
+
query?: GetSubscriptionPricesQueryParams;
|
|
2333
|
+
});
|
|
2334
|
+
getPath(): string;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
declare const updateSubscriptionPriceInputSchema: z.ZodObject<{
|
|
2338
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2339
|
+
infinite: "infinite";
|
|
2340
|
+
time_based: "time_based";
|
|
2341
|
+
consumption: "consumption";
|
|
2342
|
+
}>>;
|
|
2343
|
+
threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2344
|
+
unitPrice: z.ZodOptional<z.ZodString>;
|
|
2345
|
+
}, z.core.$strip>;
|
|
2346
|
+
type UpdateSubscriptionPriceInput = z.input<typeof updateSubscriptionPriceInputSchema>;
|
|
2347
|
+
declare const updateSubscriptionPriceResponseSchema: z.ZodObject<{
|
|
2348
|
+
id: z.ZodString;
|
|
2349
|
+
type: z.ZodEnum<{
|
|
2350
|
+
infinite: "infinite";
|
|
2351
|
+
time_based: "time_based";
|
|
2352
|
+
consumption: "consumption";
|
|
2353
|
+
}>;
|
|
2354
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2355
|
+
unitPrice: z.ZodString;
|
|
2356
|
+
createdAt: z.ZodString;
|
|
2357
|
+
updatedAt: z.ZodString;
|
|
2358
|
+
}, z.core.$strip>;
|
|
2359
|
+
type UpdateSubscriptionPriceResponse = z.infer<typeof updateSubscriptionPriceResponseSchema>;
|
|
2360
|
+
declare class UpdateSubscriptionPrice extends AbstractApiRequest<typeof updateSubscriptionPriceInputSchema, typeof updateSubscriptionPriceResponseSchema> {
|
|
2361
|
+
readonly method = "PATCH";
|
|
2362
|
+
readonly contentType = "application/merge-patch+json";
|
|
2363
|
+
readonly accept = "application/json";
|
|
2364
|
+
readonly inputSchema: z.ZodObject<{
|
|
2365
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2366
|
+
infinite: "infinite";
|
|
2367
|
+
time_based: "time_based";
|
|
2368
|
+
consumption: "consumption";
|
|
2369
|
+
}>>;
|
|
2370
|
+
threshold: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2371
|
+
unitPrice: z.ZodOptional<z.ZodString>;
|
|
2372
|
+
}, z.core.$strip>;
|
|
2373
|
+
readonly outputSchema: z.ZodObject<{
|
|
2374
|
+
id: z.ZodString;
|
|
2375
|
+
type: z.ZodEnum<{
|
|
2376
|
+
infinite: "infinite";
|
|
2377
|
+
time_based: "time_based";
|
|
2378
|
+
consumption: "consumption";
|
|
2379
|
+
}>;
|
|
2380
|
+
threshold: z.ZodCoercedNumber<unknown>;
|
|
2381
|
+
unitPrice: z.ZodString;
|
|
2382
|
+
createdAt: z.ZodString;
|
|
2383
|
+
updatedAt: z.ZodString;
|
|
2384
|
+
}, z.core.$strip>;
|
|
2385
|
+
readonly querySchema: undefined;
|
|
2386
|
+
readonly headersSchema: undefined;
|
|
2387
|
+
private readonly priceId;
|
|
2388
|
+
constructor(priceId: string, input: UpdateSubscriptionPriceInput);
|
|
2389
|
+
getPath(): string;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
declare const createSubscriptionTimeBasedInputSchema: z.ZodObject<{
|
|
2393
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2394
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2395
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2396
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2397
|
+
autoRenewalExtensionDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2398
|
+
autoRenewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2399
|
+
}, z.core.$strip>;
|
|
2400
|
+
type CreateSubscriptionTimeBasedInput = z.input<typeof createSubscriptionTimeBasedInputSchema>;
|
|
2401
|
+
declare const createSubscriptionTimeBasedResponseSchema: z.ZodObject<{
|
|
2402
|
+
id: z.ZodString;
|
|
2403
|
+
status: z.ZodEnum<{
|
|
2404
|
+
created: "created";
|
|
2405
|
+
active: "active";
|
|
2406
|
+
pending_renewal: "pending_renewal";
|
|
2407
|
+
expired: "expired";
|
|
2408
|
+
suspended: "suspended";
|
|
2409
|
+
cancelled: "cancelled";
|
|
2410
|
+
}>;
|
|
2411
|
+
autoRenewal: z.ZodBoolean;
|
|
2412
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2413
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2414
|
+
createdAt: z.ZodString;
|
|
2415
|
+
updatedAt: z.ZodString;
|
|
2416
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2417
|
+
type: z.ZodLiteral<"time_based">;
|
|
2418
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2419
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2420
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2421
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2422
|
+
}, z.core.$strip>;
|
|
2423
|
+
type CreateSubscriptionTimeBasedResponse = z.infer<typeof createSubscriptionTimeBasedResponseSchema>;
|
|
2424
|
+
declare class CreateSubscriptionTimeBased extends AbstractApiRequest<typeof createSubscriptionTimeBasedInputSchema, typeof createSubscriptionTimeBasedResponseSchema> {
|
|
2425
|
+
readonly method = "POST";
|
|
2426
|
+
readonly contentType = "application/json";
|
|
2427
|
+
readonly accept = "application/json";
|
|
2428
|
+
readonly inputSchema: z.ZodObject<{
|
|
2429
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2430
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2431
|
+
startsAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2432
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2433
|
+
autoRenewalExtensionDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2434
|
+
autoRenewalOffsetDays: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
2435
|
+
}, z.core.$strip>;
|
|
2436
|
+
readonly outputSchema: z.ZodObject<{
|
|
2437
|
+
id: z.ZodString;
|
|
2438
|
+
status: z.ZodEnum<{
|
|
2439
|
+
created: "created";
|
|
2440
|
+
active: "active";
|
|
2441
|
+
pending_renewal: "pending_renewal";
|
|
2442
|
+
expired: "expired";
|
|
2443
|
+
suspended: "suspended";
|
|
2444
|
+
cancelled: "cancelled";
|
|
2445
|
+
}>;
|
|
2446
|
+
autoRenewal: z.ZodBoolean;
|
|
2447
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2448
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2449
|
+
createdAt: z.ZodString;
|
|
2450
|
+
updatedAt: z.ZodString;
|
|
2451
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2452
|
+
type: z.ZodLiteral<"time_based">;
|
|
2453
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2454
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2455
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2456
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2457
|
+
}, z.core.$strip>;
|
|
2458
|
+
readonly querySchema: undefined;
|
|
2459
|
+
readonly headersSchema: undefined;
|
|
2460
|
+
constructor(input: CreateSubscriptionTimeBasedInput);
|
|
2461
|
+
getPath(): string;
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
declare const deleteSubscriptionTimeBasedInputSchema: z.ZodUndefined;
|
|
2465
|
+
declare const deleteSubscriptionTimeBasedResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2466
|
+
declare class DeleteSubscriptionTimeBased extends AbstractApiRequest<typeof deleteSubscriptionTimeBasedInputSchema, typeof deleteSubscriptionTimeBasedResponseSchema> {
|
|
2467
|
+
readonly method = "DELETE";
|
|
2468
|
+
readonly contentType = "application/json";
|
|
2469
|
+
readonly accept = "application/json";
|
|
2470
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2471
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2472
|
+
readonly querySchema: undefined;
|
|
2473
|
+
readonly headersSchema: undefined;
|
|
2474
|
+
private readonly subscriptionId;
|
|
2475
|
+
constructor(subscriptionId: string);
|
|
2476
|
+
getPath(): string;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
declare const getSubscriptionTimeBasedDetailsInputSchema: z.ZodUndefined;
|
|
2480
|
+
type GetSubscriptionTimeBasedDetailsInput = z.input<typeof getSubscriptionTimeBasedDetailsInputSchema>;
|
|
2481
|
+
declare const getSubscriptionTimeBasedDetailsResponseSchema: z.ZodObject<{
|
|
2482
|
+
id: z.ZodString;
|
|
2483
|
+
status: z.ZodEnum<{
|
|
2484
|
+
created: "created";
|
|
2485
|
+
active: "active";
|
|
2486
|
+
pending_renewal: "pending_renewal";
|
|
2487
|
+
expired: "expired";
|
|
2488
|
+
suspended: "suspended";
|
|
2489
|
+
cancelled: "cancelled";
|
|
2490
|
+
}>;
|
|
2491
|
+
autoRenewal: z.ZodBoolean;
|
|
2492
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2493
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2494
|
+
createdAt: z.ZodString;
|
|
2495
|
+
updatedAt: z.ZodString;
|
|
2496
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2497
|
+
type: z.ZodLiteral<"time_based">;
|
|
2498
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2499
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2500
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2501
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2502
|
+
}, z.core.$strip>;
|
|
2503
|
+
type GetSubscriptionTimeBasedDetailsResponse = z.infer<typeof getSubscriptionTimeBasedDetailsResponseSchema>;
|
|
2504
|
+
declare class GetSubscriptionTimeBasedDetails extends AbstractApiRequest<typeof getSubscriptionTimeBasedDetailsInputSchema, typeof getSubscriptionTimeBasedDetailsResponseSchema> {
|
|
2505
|
+
readonly method = "GET";
|
|
2506
|
+
readonly contentType = "application/json";
|
|
2507
|
+
readonly accept = "application/json";
|
|
2508
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2509
|
+
readonly outputSchema: z.ZodObject<{
|
|
2510
|
+
id: z.ZodString;
|
|
2511
|
+
status: z.ZodEnum<{
|
|
2512
|
+
created: "created";
|
|
2513
|
+
active: "active";
|
|
2514
|
+
pending_renewal: "pending_renewal";
|
|
2515
|
+
expired: "expired";
|
|
2516
|
+
suspended: "suspended";
|
|
2517
|
+
cancelled: "cancelled";
|
|
2518
|
+
}>;
|
|
2519
|
+
autoRenewal: z.ZodBoolean;
|
|
2520
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2521
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2522
|
+
createdAt: z.ZodString;
|
|
2523
|
+
updatedAt: z.ZodString;
|
|
2524
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2525
|
+
type: z.ZodLiteral<"time_based">;
|
|
2526
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2527
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2528
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2529
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2530
|
+
}, z.core.$strip>;
|
|
2531
|
+
readonly querySchema: undefined;
|
|
2532
|
+
readonly headersSchema: undefined;
|
|
2533
|
+
private readonly subscriptionId;
|
|
2534
|
+
constructor(subscriptionId: string);
|
|
2535
|
+
getPath(): string;
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
type GetSubscriptionTimeBasedListQueryParams = SubscriptionTimeBasedQueryParams;
|
|
2539
|
+
declare const getSubscriptionTimeBasedListInputSchema: z.ZodUndefined;
|
|
2540
|
+
type GetSubscriptionTimeBasedListInput = z.input<typeof getSubscriptionTimeBasedListInputSchema>;
|
|
2541
|
+
type GetSubscriptionTimeBasedListResponse = z.infer<typeof getSubscriptionTimeBasedListResponseSchema>;
|
|
2542
|
+
declare class GetSubscriptionTimeBasedList extends AbstractApiRequest<typeof getSubscriptionTimeBasedListInputSchema, typeof getSubscriptionTimeBasedListResponseSchema, GetSubscriptionTimeBasedListQueryParams> {
|
|
2543
|
+
readonly method: "GET";
|
|
2544
|
+
readonly contentType: "application/json";
|
|
2545
|
+
readonly accept: "application/json";
|
|
2546
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2547
|
+
readonly outputSchema: z.ZodObject<{
|
|
2548
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2549
|
+
id: z.ZodString;
|
|
2550
|
+
status: z.ZodEnum<{
|
|
2551
|
+
created: "created";
|
|
2552
|
+
active: "active";
|
|
2553
|
+
pending_renewal: "pending_renewal";
|
|
2554
|
+
expired: "expired";
|
|
2555
|
+
suspended: "suspended";
|
|
2556
|
+
cancelled: "cancelled";
|
|
2557
|
+
}>;
|
|
2558
|
+
autoRenewal: z.ZodBoolean;
|
|
2559
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2560
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2561
|
+
createdAt: z.ZodString;
|
|
2562
|
+
updatedAt: z.ZodString;
|
|
2563
|
+
type: z.ZodLiteral<"time_based">;
|
|
2564
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2565
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2566
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2567
|
+
}, z.core.$strip>>;
|
|
2568
|
+
pagination: z.ZodObject<{
|
|
2569
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2570
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2571
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2572
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2573
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2574
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2575
|
+
}, z.core.$strip>;
|
|
2576
|
+
}, z.core.$strip>;
|
|
2577
|
+
readonly querySchema: z.ZodObject<{
|
|
2578
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2579
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2580
|
+
created: "created";
|
|
2581
|
+
active: "active";
|
|
2582
|
+
pending_renewal: "pending_renewal";
|
|
2583
|
+
expired: "expired";
|
|
2584
|
+
suspended: "suspended";
|
|
2585
|
+
cancelled: "cancelled";
|
|
2586
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2587
|
+
created: "created";
|
|
2588
|
+
active: "active";
|
|
2589
|
+
pending_renewal: "pending_renewal";
|
|
2590
|
+
expired: "expired";
|
|
2591
|
+
suspended: "suspended";
|
|
2592
|
+
cancelled: "cancelled";
|
|
2593
|
+
}>>]>>;
|
|
2594
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
2595
|
+
infinite: "infinite";
|
|
2596
|
+
time_based: "time_based";
|
|
2597
|
+
consumption: "consumption";
|
|
2598
|
+
}>>;
|
|
2599
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2600
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2601
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2602
|
+
asc: "asc";
|
|
2603
|
+
desc: "desc";
|
|
2604
|
+
}>>;
|
|
2605
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2606
|
+
asc: "asc";
|
|
2607
|
+
desc: "desc";
|
|
2608
|
+
}>>;
|
|
2609
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
2610
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2611
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
2612
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2613
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2614
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2615
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2616
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2617
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2618
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2619
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2620
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2621
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2622
|
+
'expiresAt[before]': z.ZodOptional<z.ZodString>;
|
|
2623
|
+
'expiresAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2624
|
+
'expiresAt[after]': z.ZodOptional<z.ZodString>;
|
|
2625
|
+
'expiresAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2626
|
+
'autoRenewalExtensionDays[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2627
|
+
'autoRenewalExtensionDays[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2628
|
+
'autoRenewalExtensionDays[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2629
|
+
'autoRenewalExtensionDays[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2630
|
+
'autoRenewalExtensionDays[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2631
|
+
'autoRenewalOffsetDays[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2632
|
+
'autoRenewalOffsetDays[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2633
|
+
'autoRenewalOffsetDays[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2634
|
+
'autoRenewalOffsetDays[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2635
|
+
'autoRenewalOffsetDays[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2636
|
+
}, z.core.$strip>;
|
|
2637
|
+
readonly headersSchema: undefined;
|
|
2638
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2639
|
+
id: z.ZodString;
|
|
2640
|
+
status: z.ZodEnum<{
|
|
2641
|
+
created: "created";
|
|
2642
|
+
active: "active";
|
|
2643
|
+
pending_renewal: "pending_renewal";
|
|
2644
|
+
expired: "expired";
|
|
2645
|
+
suspended: "suspended";
|
|
2646
|
+
cancelled: "cancelled";
|
|
2647
|
+
}>;
|
|
2648
|
+
autoRenewal: z.ZodBoolean;
|
|
2649
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2650
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2651
|
+
createdAt: z.ZodString;
|
|
2652
|
+
updatedAt: z.ZodString;
|
|
2653
|
+
type: z.ZodLiteral<"time_based">;
|
|
2654
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2655
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2656
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2657
|
+
}, z.core.$strip>;
|
|
2658
|
+
readonly paginationDefaultEnabled = true;
|
|
2659
|
+
constructor(options?: {
|
|
2660
|
+
query?: GetSubscriptionTimeBasedListQueryParams;
|
|
2661
|
+
});
|
|
2662
|
+
getPath(): string;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
declare const updateSubscriptionTimeBasedInputSchema: z.ZodObject<{
|
|
2666
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
2667
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
2668
|
+
expiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2669
|
+
autoRenewalExtensionDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
2670
|
+
autoRenewalOffsetDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
2671
|
+
}, z.core.$strip>;
|
|
2672
|
+
type UpdateSubscriptionTimeBasedInput = z.input<typeof updateSubscriptionTimeBasedInputSchema>;
|
|
2673
|
+
declare const updateSubscriptionTimeBasedResponseSchema: z.ZodObject<{
|
|
2674
|
+
id: z.ZodString;
|
|
2675
|
+
status: z.ZodEnum<{
|
|
2676
|
+
created: "created";
|
|
2677
|
+
active: "active";
|
|
2678
|
+
pending_renewal: "pending_renewal";
|
|
2679
|
+
expired: "expired";
|
|
2680
|
+
suspended: "suspended";
|
|
2681
|
+
cancelled: "cancelled";
|
|
2682
|
+
}>;
|
|
2683
|
+
autoRenewal: z.ZodBoolean;
|
|
2684
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2685
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2686
|
+
createdAt: z.ZodString;
|
|
2687
|
+
updatedAt: z.ZodString;
|
|
2688
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2689
|
+
type: z.ZodLiteral<"time_based">;
|
|
2690
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2691
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2692
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2693
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2694
|
+
}, z.core.$strip>;
|
|
2695
|
+
type UpdateSubscriptionTimeBasedResponse = z.infer<typeof updateSubscriptionTimeBasedResponseSchema>;
|
|
2696
|
+
declare class UpdateSubscriptionTimeBased extends AbstractApiRequest<typeof updateSubscriptionTimeBasedInputSchema, typeof updateSubscriptionTimeBasedResponseSchema> {
|
|
2697
|
+
readonly method = "PATCH";
|
|
2698
|
+
readonly contentType = "application/merge-patch+json";
|
|
2699
|
+
readonly accept = "application/json";
|
|
2700
|
+
readonly inputSchema: z.ZodObject<{
|
|
2701
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
2702
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
2703
|
+
expiresAt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
|
|
2704
|
+
autoRenewalExtensionDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
2705
|
+
autoRenewalOffsetDays: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>>;
|
|
2706
|
+
}, z.core.$strip>;
|
|
2707
|
+
readonly outputSchema: z.ZodObject<{
|
|
2708
|
+
id: z.ZodString;
|
|
2709
|
+
status: z.ZodEnum<{
|
|
2710
|
+
created: "created";
|
|
2711
|
+
active: "active";
|
|
2712
|
+
pending_renewal: "pending_renewal";
|
|
2713
|
+
expired: "expired";
|
|
2714
|
+
suspended: "suspended";
|
|
2715
|
+
cancelled: "cancelled";
|
|
2716
|
+
}>;
|
|
2717
|
+
autoRenewal: z.ZodBoolean;
|
|
2718
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2719
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
2720
|
+
createdAt: z.ZodString;
|
|
2721
|
+
updatedAt: z.ZodString;
|
|
2722
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
2723
|
+
type: z.ZodLiteral<"time_based">;
|
|
2724
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2725
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2726
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
2727
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
2728
|
+
}, z.core.$strip>;
|
|
2729
|
+
readonly querySchema: undefined;
|
|
2730
|
+
readonly headersSchema: undefined;
|
|
2731
|
+
private readonly subscriptionId;
|
|
2732
|
+
constructor(subscriptionId: string, input: UpdateSubscriptionTimeBasedInput);
|
|
2733
|
+
getPath(): string;
|
|
2734
|
+
}
|
|
2735
|
+
|
|
2736
|
+
declare const createSubscriptionTimeBasedRenewalInputSchema: z.ZodObject<{
|
|
2737
|
+
subscription: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>>;
|
|
2738
|
+
days: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2739
|
+
}, z.core.$strip>;
|
|
2740
|
+
type CreateSubscriptionTimeBasedRenewalInput = z.input<typeof createSubscriptionTimeBasedRenewalInputSchema>;
|
|
2741
|
+
declare const createSubscriptionTimeBasedRenewalResponseSchema: z.ZodObject<{
|
|
2742
|
+
id: z.ZodString;
|
|
2743
|
+
status: z.ZodEnum<{
|
|
2744
|
+
pending: "pending";
|
|
2745
|
+
failed: "failed";
|
|
2746
|
+
cancelled: "cancelled";
|
|
2747
|
+
completed: "completed";
|
|
2748
|
+
}>;
|
|
2749
|
+
price: z.ZodString;
|
|
2750
|
+
createdAt: z.ZodString;
|
|
2751
|
+
updatedAt: z.ZodString;
|
|
2752
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2753
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2754
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2755
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2756
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
2757
|
+
}, z.core.$strip>;
|
|
2758
|
+
type CreateSubscriptionTimeBasedRenewalResponse = z.infer<typeof createSubscriptionTimeBasedRenewalResponseSchema>;
|
|
2759
|
+
declare class CreateSubscriptionTimeBasedRenewal extends AbstractApiRequest<typeof createSubscriptionTimeBasedRenewalInputSchema, typeof createSubscriptionTimeBasedRenewalResponseSchema> {
|
|
2760
|
+
readonly method = "POST";
|
|
2761
|
+
readonly contentType = "application/json";
|
|
2762
|
+
readonly accept = "application/json";
|
|
2763
|
+
readonly inputSchema: z.ZodObject<{
|
|
2764
|
+
subscription: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>>;
|
|
2765
|
+
days: z.ZodNonOptional<z.ZodCoercedNumber<unknown>>;
|
|
2766
|
+
}, z.core.$strip>;
|
|
2767
|
+
readonly outputSchema: z.ZodObject<{
|
|
2768
|
+
id: z.ZodString;
|
|
2769
|
+
status: z.ZodEnum<{
|
|
2770
|
+
pending: "pending";
|
|
2771
|
+
failed: "failed";
|
|
2772
|
+
cancelled: "cancelled";
|
|
2773
|
+
completed: "completed";
|
|
2774
|
+
}>;
|
|
2775
|
+
price: z.ZodString;
|
|
2776
|
+
createdAt: z.ZodString;
|
|
2777
|
+
updatedAt: z.ZodString;
|
|
2778
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2779
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2780
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2781
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2782
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
2783
|
+
}, z.core.$strip>;
|
|
2784
|
+
readonly querySchema: undefined;
|
|
2785
|
+
readonly headersSchema: undefined;
|
|
2786
|
+
constructor(input: CreateSubscriptionTimeBasedRenewalInput);
|
|
2787
|
+
getPath(): string;
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2790
|
+
declare const deleteSubscriptionTimeBasedRenewalInputSchema: z.ZodUndefined;
|
|
2791
|
+
declare const deleteSubscriptionTimeBasedRenewalResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2792
|
+
declare class DeleteSubscriptionTimeBasedRenewal extends AbstractApiRequest<typeof deleteSubscriptionTimeBasedRenewalInputSchema, typeof deleteSubscriptionTimeBasedRenewalResponseSchema> {
|
|
2793
|
+
readonly method = "DELETE";
|
|
2794
|
+
readonly contentType = "application/json";
|
|
2795
|
+
readonly accept = "application/json";
|
|
2796
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2797
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
2798
|
+
readonly querySchema: undefined;
|
|
2799
|
+
readonly headersSchema: undefined;
|
|
2800
|
+
private readonly renewalId;
|
|
2801
|
+
constructor(renewalId: string);
|
|
2802
|
+
getPath(): string;
|
|
2803
|
+
}
|
|
2804
|
+
|
|
2805
|
+
declare const getSubscriptionTimeBasedRenewalDetailsInputSchema: z.ZodUndefined;
|
|
2806
|
+
type GetSubscriptionTimeBasedRenewalDetailsInput = z.input<typeof getSubscriptionTimeBasedRenewalDetailsInputSchema>;
|
|
2807
|
+
declare const getSubscriptionTimeBasedRenewalDetailsResponseSchema: z.ZodObject<{
|
|
2808
|
+
id: z.ZodString;
|
|
2809
|
+
status: z.ZodEnum<{
|
|
2810
|
+
pending: "pending";
|
|
2811
|
+
failed: "failed";
|
|
2812
|
+
cancelled: "cancelled";
|
|
2813
|
+
completed: "completed";
|
|
2814
|
+
}>;
|
|
2815
|
+
price: z.ZodString;
|
|
2816
|
+
createdAt: z.ZodString;
|
|
2817
|
+
updatedAt: z.ZodString;
|
|
2818
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2819
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2820
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2821
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2822
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
2823
|
+
}, z.core.$strip>;
|
|
2824
|
+
type GetSubscriptionTimeBasedRenewalDetailsResponse = z.infer<typeof getSubscriptionTimeBasedRenewalDetailsResponseSchema>;
|
|
2825
|
+
declare class GetSubscriptionTimeBasedRenewalDetails extends AbstractApiRequest<typeof getSubscriptionTimeBasedRenewalDetailsInputSchema, typeof getSubscriptionTimeBasedRenewalDetailsResponseSchema> {
|
|
2826
|
+
readonly method = "GET";
|
|
2827
|
+
readonly contentType = "application/json";
|
|
2828
|
+
readonly accept = "application/json";
|
|
2829
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2830
|
+
readonly outputSchema: z.ZodObject<{
|
|
2831
|
+
id: z.ZodString;
|
|
2832
|
+
status: z.ZodEnum<{
|
|
2833
|
+
pending: "pending";
|
|
2834
|
+
failed: "failed";
|
|
2835
|
+
cancelled: "cancelled";
|
|
2836
|
+
completed: "completed";
|
|
2837
|
+
}>;
|
|
2838
|
+
price: z.ZodString;
|
|
2839
|
+
createdAt: z.ZodString;
|
|
2840
|
+
updatedAt: z.ZodString;
|
|
2841
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2842
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2843
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2844
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2845
|
+
subscription: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
2846
|
+
}, z.core.$strip>;
|
|
2847
|
+
readonly querySchema: undefined;
|
|
2848
|
+
readonly headersSchema: undefined;
|
|
2849
|
+
private readonly renewalId;
|
|
2850
|
+
constructor(renewalId: string);
|
|
2851
|
+
getPath(): string;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
type GetSubscriptionTimeBasedRenewalsQueryParams = SubscriptionTimeBasedRenewalsQueryParams;
|
|
2855
|
+
declare const getSubscriptionTimeBasedRenewalsInputSchema: z.ZodUndefined;
|
|
2856
|
+
type GetSubscriptionTimeBasedRenewalsInput = z.input<typeof getSubscriptionTimeBasedRenewalsInputSchema>;
|
|
2857
|
+
type GetSubscriptionTimeBasedRenewalsResponse = z.infer<typeof getSubscriptionTimeBasedRenewalsResponseSchema>;
|
|
2858
|
+
declare class GetSubscriptionTimeBasedRenewals extends AbstractApiRequest<typeof getSubscriptionTimeBasedRenewalsInputSchema, typeof getSubscriptionTimeBasedRenewalsResponseSchema, GetSubscriptionTimeBasedRenewalsQueryParams> {
|
|
2859
|
+
readonly method: "GET";
|
|
2860
|
+
readonly contentType: "application/json";
|
|
2861
|
+
readonly accept: "application/json";
|
|
2862
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2863
|
+
readonly outputSchema: z.ZodObject<{
|
|
2864
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2865
|
+
id: z.ZodString;
|
|
2866
|
+
status: z.ZodEnum<{
|
|
2867
|
+
pending: "pending";
|
|
2868
|
+
failed: "failed";
|
|
2869
|
+
cancelled: "cancelled";
|
|
2870
|
+
completed: "completed";
|
|
2871
|
+
}>;
|
|
2872
|
+
price: z.ZodString;
|
|
2873
|
+
createdAt: z.ZodString;
|
|
2874
|
+
updatedAt: z.ZodString;
|
|
2875
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2876
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2877
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2878
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2879
|
+
}, z.core.$strip>>;
|
|
2880
|
+
pagination: z.ZodObject<{
|
|
2881
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2882
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2883
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2884
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2885
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2886
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2887
|
+
}, z.core.$strip>;
|
|
2888
|
+
}, z.core.$strip>;
|
|
2889
|
+
readonly querySchema: z.ZodObject<{
|
|
2890
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2891
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2892
|
+
pending: "pending";
|
|
2893
|
+
failed: "failed";
|
|
2894
|
+
cancelled: "cancelled";
|
|
2895
|
+
completed: "completed";
|
|
2896
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2897
|
+
pending: "pending";
|
|
2898
|
+
failed: "failed";
|
|
2899
|
+
cancelled: "cancelled";
|
|
2900
|
+
completed: "completed";
|
|
2901
|
+
}>>]>>;
|
|
2902
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2903
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2904
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2905
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2906
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2907
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2908
|
+
asc: "asc";
|
|
2909
|
+
desc: "desc";
|
|
2910
|
+
}>>;
|
|
2911
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2912
|
+
asc: "asc";
|
|
2913
|
+
desc: "desc";
|
|
2914
|
+
}>>;
|
|
2915
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2916
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2917
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2918
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2919
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2920
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2921
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2922
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2923
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2924
|
+
'days[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2925
|
+
'days[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2926
|
+
'days[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2927
|
+
'days[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2928
|
+
'days[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2929
|
+
}, z.core.$strip>;
|
|
2930
|
+
readonly headersSchema: undefined;
|
|
2931
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2932
|
+
id: z.ZodString;
|
|
2933
|
+
status: z.ZodEnum<{
|
|
2934
|
+
pending: "pending";
|
|
2935
|
+
failed: "failed";
|
|
2936
|
+
cancelled: "cancelled";
|
|
2937
|
+
completed: "completed";
|
|
2938
|
+
}>;
|
|
2939
|
+
price: z.ZodString;
|
|
2940
|
+
createdAt: z.ZodString;
|
|
2941
|
+
updatedAt: z.ZodString;
|
|
2942
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2943
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2944
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2945
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2946
|
+
}, z.core.$strip>;
|
|
2947
|
+
readonly paginationDefaultEnabled = true;
|
|
2948
|
+
constructor(options?: {
|
|
2949
|
+
query?: GetSubscriptionTimeBasedRenewalsQueryParams;
|
|
2950
|
+
});
|
|
2951
|
+
getPath(): string;
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams = SubscriptionTimeBasedRenewalsQueryParams;
|
|
2955
|
+
declare const getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema: z.ZodUndefined;
|
|
2956
|
+
type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInput = z.input<typeof getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema>;
|
|
2957
|
+
type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedResponse = z.infer<typeof getSubscriptionTimeBasedRenewalsResponseSchema>;
|
|
2958
|
+
declare class GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased extends AbstractApiRequest<typeof getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema, typeof getSubscriptionTimeBasedRenewalsResponseSchema, GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams> {
|
|
2959
|
+
readonly method: "GET";
|
|
2960
|
+
readonly contentType: "application/json";
|
|
2961
|
+
readonly accept: "application/json";
|
|
2962
|
+
readonly inputSchema: z.ZodUndefined;
|
|
2963
|
+
readonly outputSchema: z.ZodObject<{
|
|
2964
|
+
data: z.ZodArray<z.ZodObject<{
|
|
2965
|
+
id: z.ZodString;
|
|
2966
|
+
status: z.ZodEnum<{
|
|
2967
|
+
pending: "pending";
|
|
2968
|
+
failed: "failed";
|
|
2969
|
+
cancelled: "cancelled";
|
|
2970
|
+
completed: "completed";
|
|
2971
|
+
}>;
|
|
2972
|
+
price: z.ZodString;
|
|
2973
|
+
createdAt: z.ZodString;
|
|
2974
|
+
updatedAt: z.ZodString;
|
|
2975
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
2976
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2977
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
2978
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
2979
|
+
}, z.core.$strip>>;
|
|
2980
|
+
pagination: z.ZodObject<{
|
|
2981
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2982
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2983
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2984
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2985
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2986
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2987
|
+
}, z.core.$strip>;
|
|
2988
|
+
}, z.core.$strip>;
|
|
2989
|
+
readonly querySchema: z.ZodObject<{
|
|
2990
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
2991
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2992
|
+
pending: "pending";
|
|
2993
|
+
failed: "failed";
|
|
2994
|
+
cancelled: "cancelled";
|
|
2995
|
+
completed: "completed";
|
|
2996
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2997
|
+
pending: "pending";
|
|
2998
|
+
failed: "failed";
|
|
2999
|
+
cancelled: "cancelled";
|
|
3000
|
+
completed: "completed";
|
|
3001
|
+
}>>]>>;
|
|
3002
|
+
'price[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3003
|
+
'price[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3004
|
+
'price[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3005
|
+
'price[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3006
|
+
'price[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3007
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
3008
|
+
asc: "asc";
|
|
3009
|
+
desc: "desc";
|
|
3010
|
+
}>>;
|
|
3011
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
3012
|
+
asc: "asc";
|
|
3013
|
+
desc: "desc";
|
|
3014
|
+
}>>;
|
|
3015
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3016
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
3017
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3018
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
3019
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3020
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
3021
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3022
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
3023
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3024
|
+
'days[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3025
|
+
'days[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3026
|
+
'days[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3027
|
+
'days[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3028
|
+
'days[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3029
|
+
}, z.core.$strip>;
|
|
3030
|
+
readonly headersSchema: undefined;
|
|
3031
|
+
readonly listItemSchema: z.ZodObject<{
|
|
3032
|
+
id: z.ZodString;
|
|
3033
|
+
status: z.ZodEnum<{
|
|
3034
|
+
pending: "pending";
|
|
3035
|
+
failed: "failed";
|
|
3036
|
+
cancelled: "cancelled";
|
|
3037
|
+
completed: "completed";
|
|
3038
|
+
}>;
|
|
3039
|
+
price: z.ZodString;
|
|
3040
|
+
createdAt: z.ZodString;
|
|
3041
|
+
updatedAt: z.ZodString;
|
|
3042
|
+
days: z.ZodCoercedNumber<unknown>;
|
|
3043
|
+
previousExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3044
|
+
newExpiresDate: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3045
|
+
pricePerDay: z.ZodCoercedNumber<unknown>;
|
|
3046
|
+
}, z.core.$strip>;
|
|
3047
|
+
readonly paginationDefaultEnabled = true;
|
|
3048
|
+
private readonly subscriptionId;
|
|
3049
|
+
constructor(subscriptionId: string, options?: {
|
|
3050
|
+
query?: GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams;
|
|
3051
|
+
});
|
|
3052
|
+
getPath(): string;
|
|
3053
|
+
}
|
|
3054
|
+
|
|
3055
|
+
declare const deleteSubscriptionInputSchema: z.ZodUndefined;
|
|
3056
|
+
declare const deleteSubscriptionResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
3057
|
+
declare class DeleteSubscription extends AbstractApiRequest<typeof deleteSubscriptionInputSchema, typeof deleteSubscriptionResponseSchema> {
|
|
3058
|
+
readonly method = "DELETE";
|
|
3059
|
+
readonly contentType = "application/json";
|
|
3060
|
+
readonly accept = "application/json";
|
|
3061
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3062
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
3063
|
+
readonly querySchema: undefined;
|
|
3064
|
+
readonly headersSchema: undefined;
|
|
3065
|
+
private readonly subscriptionId;
|
|
3066
|
+
constructor(subscriptionId: string);
|
|
3067
|
+
getPath(): string;
|
|
3068
|
+
}
|
|
3069
|
+
|
|
3070
|
+
declare const getSubscriptionDetailsInputSchema: z.ZodUndefined;
|
|
3071
|
+
type GetSubscriptionDetailsInput = z.input<typeof getSubscriptionDetailsInputSchema>;
|
|
3072
|
+
declare const getSubscriptionDetailsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3073
|
+
id: z.ZodString;
|
|
3074
|
+
status: z.ZodEnum<{
|
|
3075
|
+
created: "created";
|
|
3076
|
+
active: "active";
|
|
3077
|
+
pending_renewal: "pending_renewal";
|
|
3078
|
+
expired: "expired";
|
|
3079
|
+
suspended: "suspended";
|
|
3080
|
+
cancelled: "cancelled";
|
|
3081
|
+
}>;
|
|
3082
|
+
autoRenewal: z.ZodBoolean;
|
|
3083
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3084
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3085
|
+
createdAt: z.ZodString;
|
|
3086
|
+
updatedAt: z.ZodString;
|
|
3087
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3088
|
+
type: z.ZodLiteral<"infinite">;
|
|
3089
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3090
|
+
id: z.ZodString;
|
|
3091
|
+
status: z.ZodEnum<{
|
|
3092
|
+
created: "created";
|
|
3093
|
+
active: "active";
|
|
3094
|
+
pending_renewal: "pending_renewal";
|
|
3095
|
+
expired: "expired";
|
|
3096
|
+
suspended: "suspended";
|
|
3097
|
+
cancelled: "cancelled";
|
|
3098
|
+
}>;
|
|
3099
|
+
autoRenewal: z.ZodBoolean;
|
|
3100
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3101
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3102
|
+
createdAt: z.ZodString;
|
|
3103
|
+
updatedAt: z.ZodString;
|
|
3104
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3105
|
+
type: z.ZodLiteral<"consumption">;
|
|
3106
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3107
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3108
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3109
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3110
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3111
|
+
id: z.ZodString;
|
|
3112
|
+
status: z.ZodEnum<{
|
|
3113
|
+
created: "created";
|
|
3114
|
+
active: "active";
|
|
3115
|
+
pending_renewal: "pending_renewal";
|
|
3116
|
+
expired: "expired";
|
|
3117
|
+
suspended: "suspended";
|
|
3118
|
+
cancelled: "cancelled";
|
|
3119
|
+
}>;
|
|
3120
|
+
autoRenewal: z.ZodBoolean;
|
|
3121
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3122
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3123
|
+
createdAt: z.ZodString;
|
|
3124
|
+
updatedAt: z.ZodString;
|
|
3125
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3126
|
+
type: z.ZodLiteral<"time_based">;
|
|
3127
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3128
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3129
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3130
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
3131
|
+
}, z.core.$strip>], "type">;
|
|
3132
|
+
type GetSubscriptionDetailsResponse = z.infer<typeof getSubscriptionDetailsResponseSchema>;
|
|
3133
|
+
declare class GetSubscriptionDetails extends AbstractApiRequest<typeof getSubscriptionDetailsInputSchema, typeof getSubscriptionDetailsResponseSchema> {
|
|
3134
|
+
readonly method = "GET";
|
|
3135
|
+
readonly contentType = "application/json";
|
|
3136
|
+
readonly accept = "application/json";
|
|
3137
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3138
|
+
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3139
|
+
id: z.ZodString;
|
|
3140
|
+
status: z.ZodEnum<{
|
|
3141
|
+
created: "created";
|
|
3142
|
+
active: "active";
|
|
3143
|
+
pending_renewal: "pending_renewal";
|
|
3144
|
+
expired: "expired";
|
|
3145
|
+
suspended: "suspended";
|
|
3146
|
+
cancelled: "cancelled";
|
|
3147
|
+
}>;
|
|
3148
|
+
autoRenewal: z.ZodBoolean;
|
|
3149
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3150
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3151
|
+
createdAt: z.ZodString;
|
|
3152
|
+
updatedAt: z.ZodString;
|
|
3153
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3154
|
+
type: z.ZodLiteral<"infinite">;
|
|
3155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3156
|
+
id: z.ZodString;
|
|
3157
|
+
status: z.ZodEnum<{
|
|
3158
|
+
created: "created";
|
|
3159
|
+
active: "active";
|
|
3160
|
+
pending_renewal: "pending_renewal";
|
|
3161
|
+
expired: "expired";
|
|
3162
|
+
suspended: "suspended";
|
|
3163
|
+
cancelled: "cancelled";
|
|
3164
|
+
}>;
|
|
3165
|
+
autoRenewal: z.ZodBoolean;
|
|
3166
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3167
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3168
|
+
createdAt: z.ZodString;
|
|
3169
|
+
updatedAt: z.ZodString;
|
|
3170
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3171
|
+
type: z.ZodLiteral<"consumption">;
|
|
3172
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3173
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3174
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3175
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3176
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3177
|
+
id: z.ZodString;
|
|
3178
|
+
status: z.ZodEnum<{
|
|
3179
|
+
created: "created";
|
|
3180
|
+
active: "active";
|
|
3181
|
+
pending_renewal: "pending_renewal";
|
|
3182
|
+
expired: "expired";
|
|
3183
|
+
suspended: "suspended";
|
|
3184
|
+
cancelled: "cancelled";
|
|
3185
|
+
}>;
|
|
3186
|
+
autoRenewal: z.ZodBoolean;
|
|
3187
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3188
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3189
|
+
createdAt: z.ZodString;
|
|
3190
|
+
updatedAt: z.ZodString;
|
|
3191
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3192
|
+
type: z.ZodLiteral<"time_based">;
|
|
3193
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3194
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3195
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3196
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
3197
|
+
}, z.core.$strip>], "type">;
|
|
3198
|
+
readonly querySchema: undefined;
|
|
3199
|
+
readonly headersSchema: undefined;
|
|
3200
|
+
private readonly subscriptionId;
|
|
3201
|
+
constructor(subscriptionId: string);
|
|
3202
|
+
getPath(): string;
|
|
3203
|
+
}
|
|
3204
|
+
|
|
3205
|
+
type GetSubscriptionsQueryParams = SubscriptionQueryParams;
|
|
3206
|
+
declare const getSubscriptionsInputSchema: z.ZodUndefined;
|
|
3207
|
+
type GetSubscriptionsInput = z.input<typeof getSubscriptionsInputSchema>;
|
|
3208
|
+
type GetSubscriptionsResponse = z.infer<typeof getSubscriptionsResponseSchema>;
|
|
3209
|
+
declare class GetSubscriptions extends AbstractApiRequest<typeof getSubscriptionsInputSchema, typeof getSubscriptionsResponseSchema, GetSubscriptionsQueryParams> {
|
|
3210
|
+
readonly method: "GET";
|
|
3211
|
+
readonly contentType: "application/json";
|
|
3212
|
+
readonly accept: "application/json";
|
|
3213
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3214
|
+
readonly outputSchema: z.ZodObject<{
|
|
3215
|
+
data: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3216
|
+
id: z.ZodString;
|
|
3217
|
+
status: z.ZodEnum<{
|
|
3218
|
+
created: "created";
|
|
3219
|
+
active: "active";
|
|
3220
|
+
pending_renewal: "pending_renewal";
|
|
3221
|
+
expired: "expired";
|
|
3222
|
+
suspended: "suspended";
|
|
3223
|
+
cancelled: "cancelled";
|
|
3224
|
+
}>;
|
|
3225
|
+
autoRenewal: z.ZodBoolean;
|
|
3226
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3227
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3228
|
+
createdAt: z.ZodString;
|
|
3229
|
+
updatedAt: z.ZodString;
|
|
3230
|
+
type: z.ZodLiteral<"infinite">;
|
|
3231
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3232
|
+
id: z.ZodString;
|
|
3233
|
+
status: z.ZodEnum<{
|
|
3234
|
+
created: "created";
|
|
3235
|
+
active: "active";
|
|
3236
|
+
pending_renewal: "pending_renewal";
|
|
3237
|
+
expired: "expired";
|
|
3238
|
+
suspended: "suspended";
|
|
3239
|
+
cancelled: "cancelled";
|
|
3240
|
+
}>;
|
|
3241
|
+
autoRenewal: z.ZodBoolean;
|
|
3242
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3243
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3244
|
+
createdAt: z.ZodString;
|
|
3245
|
+
updatedAt: z.ZodString;
|
|
3246
|
+
type: z.ZodLiteral<"consumption">;
|
|
3247
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3248
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3249
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3250
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3251
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3252
|
+
id: z.ZodString;
|
|
3253
|
+
status: z.ZodEnum<{
|
|
3254
|
+
created: "created";
|
|
3255
|
+
active: "active";
|
|
3256
|
+
pending_renewal: "pending_renewal";
|
|
3257
|
+
expired: "expired";
|
|
3258
|
+
suspended: "suspended";
|
|
3259
|
+
cancelled: "cancelled";
|
|
3260
|
+
}>;
|
|
3261
|
+
autoRenewal: z.ZodBoolean;
|
|
3262
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3263
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3264
|
+
createdAt: z.ZodString;
|
|
3265
|
+
updatedAt: z.ZodString;
|
|
3266
|
+
type: z.ZodLiteral<"time_based">;
|
|
3267
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3268
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3269
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3270
|
+
}, z.core.$strip>], "type">>;
|
|
3271
|
+
pagination: z.ZodObject<{
|
|
3272
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
3273
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
3274
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
3275
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
3276
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3277
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3278
|
+
}, z.core.$strip>;
|
|
3279
|
+
}, z.core.$strip>;
|
|
3280
|
+
readonly querySchema: z.ZodObject<{
|
|
3281
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3282
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3283
|
+
created: "created";
|
|
3284
|
+
active: "active";
|
|
3285
|
+
pending_renewal: "pending_renewal";
|
|
3286
|
+
expired: "expired";
|
|
3287
|
+
suspended: "suspended";
|
|
3288
|
+
cancelled: "cancelled";
|
|
3289
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
3290
|
+
created: "created";
|
|
3291
|
+
active: "active";
|
|
3292
|
+
pending_renewal: "pending_renewal";
|
|
3293
|
+
expired: "expired";
|
|
3294
|
+
suspended: "suspended";
|
|
3295
|
+
cancelled: "cancelled";
|
|
3296
|
+
}>>]>>;
|
|
3297
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3298
|
+
infinite: "infinite";
|
|
3299
|
+
time_based: "time_based";
|
|
3300
|
+
consumption: "consumption";
|
|
3301
|
+
}>>;
|
|
3302
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3303
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3304
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
3305
|
+
asc: "asc";
|
|
3306
|
+
desc: "desc";
|
|
3307
|
+
}>>;
|
|
3308
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
3309
|
+
asc: "asc";
|
|
3310
|
+
desc: "desc";
|
|
3311
|
+
}>>;
|
|
3312
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
3313
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3314
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
3315
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3316
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3317
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
3318
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3319
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
3320
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3321
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
3322
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3323
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
3324
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3325
|
+
}, z.core.$strip>;
|
|
3326
|
+
readonly headersSchema: undefined;
|
|
3327
|
+
readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3328
|
+
id: z.ZodString;
|
|
3329
|
+
status: z.ZodEnum<{
|
|
3330
|
+
created: "created";
|
|
3331
|
+
active: "active";
|
|
3332
|
+
pending_renewal: "pending_renewal";
|
|
3333
|
+
expired: "expired";
|
|
3334
|
+
suspended: "suspended";
|
|
3335
|
+
cancelled: "cancelled";
|
|
3336
|
+
}>;
|
|
3337
|
+
autoRenewal: z.ZodBoolean;
|
|
3338
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3339
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3340
|
+
createdAt: z.ZodString;
|
|
3341
|
+
updatedAt: z.ZodString;
|
|
3342
|
+
type: z.ZodLiteral<"infinite">;
|
|
3343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3344
|
+
id: z.ZodString;
|
|
3345
|
+
status: z.ZodEnum<{
|
|
3346
|
+
created: "created";
|
|
3347
|
+
active: "active";
|
|
3348
|
+
pending_renewal: "pending_renewal";
|
|
3349
|
+
expired: "expired";
|
|
3350
|
+
suspended: "suspended";
|
|
3351
|
+
cancelled: "cancelled";
|
|
3352
|
+
}>;
|
|
3353
|
+
autoRenewal: z.ZodBoolean;
|
|
3354
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3355
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3356
|
+
createdAt: z.ZodString;
|
|
3357
|
+
updatedAt: z.ZodString;
|
|
3358
|
+
type: z.ZodLiteral<"consumption">;
|
|
3359
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3360
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3361
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3362
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3364
|
+
id: z.ZodString;
|
|
3365
|
+
status: z.ZodEnum<{
|
|
3366
|
+
created: "created";
|
|
3367
|
+
active: "active";
|
|
3368
|
+
pending_renewal: "pending_renewal";
|
|
3369
|
+
expired: "expired";
|
|
3370
|
+
suspended: "suspended";
|
|
3371
|
+
cancelled: "cancelled";
|
|
3372
|
+
}>;
|
|
3373
|
+
autoRenewal: z.ZodBoolean;
|
|
3374
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3375
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3376
|
+
createdAt: z.ZodString;
|
|
3377
|
+
updatedAt: z.ZodString;
|
|
3378
|
+
type: z.ZodLiteral<"time_based">;
|
|
3379
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3380
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3381
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3382
|
+
}, z.core.$strip>], "type">;
|
|
3383
|
+
readonly paginationDefaultEnabled = true;
|
|
3384
|
+
constructor(options?: {
|
|
3385
|
+
query?: GetSubscriptionsQueryParams;
|
|
3386
|
+
});
|
|
3387
|
+
getPath(): string;
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
type GetSubscriptionsFromPointOfSaleQueryParams = SubscriptionQueryParams;
|
|
3391
|
+
declare const getSubscriptionsFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
3392
|
+
type GetSubscriptionsFromPointOfSaleInput = z.input<typeof getSubscriptionsFromPointOfSaleInputSchema>;
|
|
3393
|
+
declare const getSubscriptionsFromPointOfSaleResponseSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3394
|
+
id: z.ZodString;
|
|
3395
|
+
status: z.ZodEnum<{
|
|
3396
|
+
created: "created";
|
|
3397
|
+
active: "active";
|
|
3398
|
+
pending_renewal: "pending_renewal";
|
|
3399
|
+
expired: "expired";
|
|
3400
|
+
suspended: "suspended";
|
|
3401
|
+
cancelled: "cancelled";
|
|
3402
|
+
}>;
|
|
3403
|
+
autoRenewal: z.ZodBoolean;
|
|
3404
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3405
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3406
|
+
createdAt: z.ZodString;
|
|
3407
|
+
updatedAt: z.ZodString;
|
|
3408
|
+
type: z.ZodLiteral<"infinite">;
|
|
3409
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3410
|
+
id: z.ZodString;
|
|
3411
|
+
status: z.ZodEnum<{
|
|
3412
|
+
created: "created";
|
|
3413
|
+
active: "active";
|
|
3414
|
+
pending_renewal: "pending_renewal";
|
|
3415
|
+
expired: "expired";
|
|
3416
|
+
suspended: "suspended";
|
|
3417
|
+
cancelled: "cancelled";
|
|
3418
|
+
}>;
|
|
3419
|
+
autoRenewal: z.ZodBoolean;
|
|
3420
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3421
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3422
|
+
createdAt: z.ZodString;
|
|
3423
|
+
updatedAt: z.ZodString;
|
|
3424
|
+
type: z.ZodLiteral<"consumption">;
|
|
3425
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3426
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3427
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3428
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3430
|
+
id: z.ZodString;
|
|
3431
|
+
status: z.ZodEnum<{
|
|
3432
|
+
created: "created";
|
|
3433
|
+
active: "active";
|
|
3434
|
+
pending_renewal: "pending_renewal";
|
|
3435
|
+
expired: "expired";
|
|
3436
|
+
suspended: "suspended";
|
|
3437
|
+
cancelled: "cancelled";
|
|
3438
|
+
}>;
|
|
3439
|
+
autoRenewal: z.ZodBoolean;
|
|
3440
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3441
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3442
|
+
createdAt: z.ZodString;
|
|
3443
|
+
updatedAt: z.ZodString;
|
|
3444
|
+
type: z.ZodLiteral<"time_based">;
|
|
3445
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3446
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3447
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3448
|
+
}, z.core.$strip>], "type">>;
|
|
3449
|
+
type GetSubscriptionsFromPointOfSaleResponse = z.infer<typeof getSubscriptionsFromPointOfSaleResponseSchema>;
|
|
3450
|
+
declare class GetSubscriptionsFromPointOfSale extends AbstractApiRequest<typeof getSubscriptionsFromPointOfSaleInputSchema, typeof getSubscriptionsFromPointOfSaleResponseSchema, GetSubscriptionsFromPointOfSaleQueryParams> {
|
|
3451
|
+
readonly method: "GET";
|
|
3452
|
+
readonly contentType: "application/json";
|
|
3453
|
+
readonly accept: "application/json";
|
|
3454
|
+
readonly inputSchema: z.ZodUndefined;
|
|
3455
|
+
readonly outputSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3456
|
+
id: z.ZodString;
|
|
3457
|
+
status: z.ZodEnum<{
|
|
3458
|
+
created: "created";
|
|
3459
|
+
active: "active";
|
|
3460
|
+
pending_renewal: "pending_renewal";
|
|
3461
|
+
expired: "expired";
|
|
3462
|
+
suspended: "suspended";
|
|
3463
|
+
cancelled: "cancelled";
|
|
3464
|
+
}>;
|
|
3465
|
+
autoRenewal: z.ZodBoolean;
|
|
3466
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3467
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3468
|
+
createdAt: z.ZodString;
|
|
3469
|
+
updatedAt: z.ZodString;
|
|
3470
|
+
type: z.ZodLiteral<"infinite">;
|
|
3471
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3472
|
+
id: z.ZodString;
|
|
3473
|
+
status: z.ZodEnum<{
|
|
3474
|
+
created: "created";
|
|
3475
|
+
active: "active";
|
|
3476
|
+
pending_renewal: "pending_renewal";
|
|
3477
|
+
expired: "expired";
|
|
3478
|
+
suspended: "suspended";
|
|
3479
|
+
cancelled: "cancelled";
|
|
3480
|
+
}>;
|
|
3481
|
+
autoRenewal: z.ZodBoolean;
|
|
3482
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3483
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3484
|
+
createdAt: z.ZodString;
|
|
3485
|
+
updatedAt: z.ZodString;
|
|
3486
|
+
type: z.ZodLiteral<"consumption">;
|
|
3487
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3488
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3489
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3490
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3491
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3492
|
+
id: z.ZodString;
|
|
3493
|
+
status: z.ZodEnum<{
|
|
3494
|
+
created: "created";
|
|
3495
|
+
active: "active";
|
|
3496
|
+
pending_renewal: "pending_renewal";
|
|
3497
|
+
expired: "expired";
|
|
3498
|
+
suspended: "suspended";
|
|
3499
|
+
cancelled: "cancelled";
|
|
3500
|
+
}>;
|
|
3501
|
+
autoRenewal: z.ZodBoolean;
|
|
3502
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3503
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3504
|
+
createdAt: z.ZodString;
|
|
3505
|
+
updatedAt: z.ZodString;
|
|
3506
|
+
type: z.ZodLiteral<"time_based">;
|
|
3507
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3508
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3509
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3510
|
+
}, z.core.$strip>], "type">>;
|
|
3511
|
+
readonly querySchema: z.ZodObject<{
|
|
3512
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
3513
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3514
|
+
created: "created";
|
|
3515
|
+
active: "active";
|
|
3516
|
+
pending_renewal: "pending_renewal";
|
|
3517
|
+
expired: "expired";
|
|
3518
|
+
suspended: "suspended";
|
|
3519
|
+
cancelled: "cancelled";
|
|
3520
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
3521
|
+
created: "created";
|
|
3522
|
+
active: "active";
|
|
3523
|
+
pending_renewal: "pending_renewal";
|
|
3524
|
+
expired: "expired";
|
|
3525
|
+
suspended: "suspended";
|
|
3526
|
+
cancelled: "cancelled";
|
|
3527
|
+
}>>]>>;
|
|
3528
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3529
|
+
infinite: "infinite";
|
|
3530
|
+
time_based: "time_based";
|
|
3531
|
+
consumption: "consumption";
|
|
3532
|
+
}>>;
|
|
3533
|
+
autoRenewal: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3534
|
+
'exists[customUnitPrice]': z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3535
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
3536
|
+
asc: "asc";
|
|
3537
|
+
desc: "desc";
|
|
3538
|
+
}>>;
|
|
3539
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
3540
|
+
asc: "asc";
|
|
3541
|
+
desc: "desc";
|
|
3542
|
+
}>>;
|
|
3543
|
+
'startsAt[before]': z.ZodOptional<z.ZodString>;
|
|
3544
|
+
'startsAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3545
|
+
'startsAt[after]': z.ZodOptional<z.ZodString>;
|
|
3546
|
+
'startsAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3547
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
3548
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
3549
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3550
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
3551
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3552
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
3553
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
3554
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
3555
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3556
|
+
}, z.core.$strip>;
|
|
3557
|
+
readonly headersSchema: undefined;
|
|
3558
|
+
readonly listItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3559
|
+
id: z.ZodString;
|
|
3560
|
+
status: z.ZodEnum<{
|
|
3561
|
+
created: "created";
|
|
3562
|
+
active: "active";
|
|
3563
|
+
pending_renewal: "pending_renewal";
|
|
3564
|
+
expired: "expired";
|
|
3565
|
+
suspended: "suspended";
|
|
3566
|
+
cancelled: "cancelled";
|
|
3567
|
+
}>;
|
|
3568
|
+
autoRenewal: z.ZodBoolean;
|
|
3569
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3570
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3571
|
+
createdAt: z.ZodString;
|
|
3572
|
+
updatedAt: z.ZodString;
|
|
3573
|
+
type: z.ZodLiteral<"infinite">;
|
|
3574
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3575
|
+
id: z.ZodString;
|
|
3576
|
+
status: z.ZodEnum<{
|
|
3577
|
+
created: "created";
|
|
3578
|
+
active: "active";
|
|
3579
|
+
pending_renewal: "pending_renewal";
|
|
3580
|
+
expired: "expired";
|
|
3581
|
+
suspended: "suspended";
|
|
3582
|
+
cancelled: "cancelled";
|
|
3583
|
+
}>;
|
|
3584
|
+
autoRenewal: z.ZodBoolean;
|
|
3585
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3586
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3587
|
+
createdAt: z.ZodString;
|
|
3588
|
+
updatedAt: z.ZodString;
|
|
3589
|
+
type: z.ZodLiteral<"consumption">;
|
|
3590
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3591
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3592
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3593
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3594
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3595
|
+
id: z.ZodString;
|
|
3596
|
+
status: z.ZodEnum<{
|
|
3597
|
+
created: "created";
|
|
3598
|
+
active: "active";
|
|
3599
|
+
pending_renewal: "pending_renewal";
|
|
3600
|
+
expired: "expired";
|
|
3601
|
+
suspended: "suspended";
|
|
3602
|
+
cancelled: "cancelled";
|
|
3603
|
+
}>;
|
|
3604
|
+
autoRenewal: z.ZodBoolean;
|
|
3605
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3606
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3607
|
+
createdAt: z.ZodString;
|
|
3608
|
+
updatedAt: z.ZodString;
|
|
3609
|
+
type: z.ZodLiteral<"time_based">;
|
|
3610
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3611
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3612
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3613
|
+
}, z.core.$strip>], "type">;
|
|
3614
|
+
readonly paginationDefaultEnabled = false;
|
|
3615
|
+
private readonly pointOfSaleId;
|
|
3616
|
+
constructor(pointOfSaleId: string, options?: {
|
|
3617
|
+
query?: GetSubscriptionsFromPointOfSaleQueryParams;
|
|
3618
|
+
});
|
|
3619
|
+
getPath(): string;
|
|
3620
|
+
}
|
|
3621
|
+
|
|
3622
|
+
declare const updateSubscriptionInputSchema: z.ZodObject<{
|
|
3623
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
3624
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
3625
|
+
}, z.core.$strip>;
|
|
3626
|
+
type UpdateSubscriptionInput = z.input<typeof updateSubscriptionInputSchema>;
|
|
3627
|
+
declare const updateSubscriptionResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3628
|
+
id: z.ZodString;
|
|
3629
|
+
status: z.ZodEnum<{
|
|
3630
|
+
created: "created";
|
|
3631
|
+
active: "active";
|
|
3632
|
+
pending_renewal: "pending_renewal";
|
|
3633
|
+
expired: "expired";
|
|
3634
|
+
suspended: "suspended";
|
|
3635
|
+
cancelled: "cancelled";
|
|
3636
|
+
}>;
|
|
3637
|
+
autoRenewal: z.ZodBoolean;
|
|
3638
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3639
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3640
|
+
createdAt: z.ZodString;
|
|
3641
|
+
updatedAt: z.ZodString;
|
|
3642
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3643
|
+
type: z.ZodLiteral<"infinite">;
|
|
3644
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3645
|
+
id: z.ZodString;
|
|
3646
|
+
status: z.ZodEnum<{
|
|
3647
|
+
created: "created";
|
|
3648
|
+
active: "active";
|
|
3649
|
+
pending_renewal: "pending_renewal";
|
|
3650
|
+
expired: "expired";
|
|
3651
|
+
suspended: "suspended";
|
|
3652
|
+
cancelled: "cancelled";
|
|
3653
|
+
}>;
|
|
3654
|
+
autoRenewal: z.ZodBoolean;
|
|
3655
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3656
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3657
|
+
createdAt: z.ZodString;
|
|
3658
|
+
updatedAt: z.ZodString;
|
|
3659
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3660
|
+
type: z.ZodLiteral<"consumption">;
|
|
3661
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3662
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3663
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3664
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3665
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3666
|
+
id: z.ZodString;
|
|
3667
|
+
status: z.ZodEnum<{
|
|
3668
|
+
created: "created";
|
|
3669
|
+
active: "active";
|
|
3670
|
+
pending_renewal: "pending_renewal";
|
|
3671
|
+
expired: "expired";
|
|
3672
|
+
suspended: "suspended";
|
|
3673
|
+
cancelled: "cancelled";
|
|
3674
|
+
}>;
|
|
3675
|
+
autoRenewal: z.ZodBoolean;
|
|
3676
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3677
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3678
|
+
createdAt: z.ZodString;
|
|
3679
|
+
updatedAt: z.ZodString;
|
|
3680
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3681
|
+
type: z.ZodLiteral<"time_based">;
|
|
3682
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3683
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3684
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3685
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
3686
|
+
}, z.core.$strip>], "type">;
|
|
3687
|
+
type UpdateSubscriptionResponse = z.infer<typeof updateSubscriptionResponseSchema>;
|
|
3688
|
+
declare class UpdateSubscription extends AbstractApiRequest<typeof updateSubscriptionInputSchema, typeof updateSubscriptionResponseSchema> {
|
|
3689
|
+
readonly method = "PATCH";
|
|
3690
|
+
readonly contentType = "application/merge-patch+json";
|
|
3691
|
+
readonly accept = "application/json";
|
|
3692
|
+
readonly inputSchema: z.ZodObject<{
|
|
3693
|
+
startsAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
3694
|
+
autoRenewal: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>>;
|
|
3695
|
+
}, z.core.$strip>;
|
|
3696
|
+
readonly outputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3697
|
+
id: z.ZodString;
|
|
3698
|
+
status: z.ZodEnum<{
|
|
3699
|
+
created: "created";
|
|
3700
|
+
active: "active";
|
|
3701
|
+
pending_renewal: "pending_renewal";
|
|
3702
|
+
expired: "expired";
|
|
3703
|
+
suspended: "suspended";
|
|
3704
|
+
cancelled: "cancelled";
|
|
3705
|
+
}>;
|
|
3706
|
+
autoRenewal: z.ZodBoolean;
|
|
3707
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3708
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3709
|
+
createdAt: z.ZodString;
|
|
3710
|
+
updatedAt: z.ZodString;
|
|
3711
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3712
|
+
type: z.ZodLiteral<"infinite">;
|
|
3713
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3714
|
+
id: z.ZodString;
|
|
3715
|
+
status: z.ZodEnum<{
|
|
3716
|
+
created: "created";
|
|
3717
|
+
active: "active";
|
|
3718
|
+
pending_renewal: "pending_renewal";
|
|
3719
|
+
expired: "expired";
|
|
3720
|
+
suspended: "suspended";
|
|
3721
|
+
cancelled: "cancelled";
|
|
3722
|
+
}>;
|
|
3723
|
+
autoRenewal: z.ZodBoolean;
|
|
3724
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3725
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3726
|
+
createdAt: z.ZodString;
|
|
3727
|
+
updatedAt: z.ZodString;
|
|
3728
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3729
|
+
type: z.ZodLiteral<"consumption">;
|
|
3730
|
+
credits: z.ZodCoercedNumber<unknown>;
|
|
3731
|
+
autoRenewalExtensionCredits: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3732
|
+
autoRenewalThreshold: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3733
|
+
hasAvailableCredits: z.ZodBoolean;
|
|
3734
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3735
|
+
id: z.ZodString;
|
|
3736
|
+
status: z.ZodEnum<{
|
|
3737
|
+
created: "created";
|
|
3738
|
+
active: "active";
|
|
3739
|
+
pending_renewal: "pending_renewal";
|
|
3740
|
+
expired: "expired";
|
|
3741
|
+
suspended: "suspended";
|
|
3742
|
+
cancelled: "cancelled";
|
|
3743
|
+
}>;
|
|
3744
|
+
autoRenewal: z.ZodBoolean;
|
|
3745
|
+
startsAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3746
|
+
customUnitPrice: z.ZodNullable<z.ZodString>;
|
|
3747
|
+
createdAt: z.ZodString;
|
|
3748
|
+
updatedAt: z.ZodString;
|
|
3749
|
+
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
3750
|
+
type: z.ZodLiteral<"time_based">;
|
|
3751
|
+
expiresAt: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
|
|
3752
|
+
autoRenewalExtensionDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3753
|
+
autoRenewalOffsetDays: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3754
|
+
latestCompletedRenewal: z.ZodNullable<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>>;
|
|
3755
|
+
}, z.core.$strip>], "type">;
|
|
3756
|
+
readonly querySchema: undefined;
|
|
3757
|
+
readonly headersSchema: undefined;
|
|
3758
|
+
private readonly subscriptionId;
|
|
3759
|
+
constructor(subscriptionId: string, input: UpdateSubscriptionInput);
|
|
3760
|
+
getPath(): string;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
declare const subscriptionIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id">, unknown>>;
|
|
3764
|
+
type SubscriptionIri = z.infer<typeof subscriptionIriSchema>;
|
|
3765
|
+
declare const subscriptionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/:id"> | null, unknown>>;
|
|
3766
|
+
type SubscriptionNullableIri = z.infer<typeof subscriptionNullableIriSchema>;
|
|
3767
|
+
declare const subscriptionInfiniteIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id">, unknown>>;
|
|
3768
|
+
type SubscriptionInfiniteIri = z.infer<typeof subscriptionInfiniteIriSchema>;
|
|
3769
|
+
declare const subscriptionInfiniteNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/infinite/:id"> | null, unknown>>;
|
|
3770
|
+
type SubscriptionInfiniteNullableIri = z.infer<typeof subscriptionInfiniteNullableIriSchema>;
|
|
3771
|
+
declare const subscriptionConsumptionIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id">, unknown>>;
|
|
3772
|
+
type SubscriptionConsumptionIri = z.infer<typeof subscriptionConsumptionIriSchema>;
|
|
3773
|
+
declare const subscriptionConsumptionNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/:id"> | null, unknown>>;
|
|
3774
|
+
type SubscriptionConsumptionNullableIri = z.infer<typeof subscriptionConsumptionNullableIriSchema>;
|
|
3775
|
+
declare const subscriptionTimeBasedIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id">, unknown>>;
|
|
3776
|
+
type SubscriptionTimeBasedIri = z.infer<typeof subscriptionTimeBasedIriSchema>;
|
|
3777
|
+
declare const subscriptionTimeBasedNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/:id"> | null, unknown>>;
|
|
3778
|
+
type SubscriptionTimeBasedNullableIri = z.infer<typeof subscriptionTimeBasedNullableIriSchema>;
|
|
3779
|
+
declare const subscriptionPriceIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id">, unknown>>;
|
|
3780
|
+
type SubscriptionPriceIri = z.infer<typeof subscriptionPriceIriSchema>;
|
|
3781
|
+
declare const subscriptionPriceNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/prices/:id"> | null, unknown>>;
|
|
3782
|
+
type SubscriptionPriceNullableIri = z.infer<typeof subscriptionPriceNullableIriSchema>;
|
|
3783
|
+
declare const subscriptionConsumptionRenewalIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id">, unknown>>;
|
|
3784
|
+
type SubscriptionConsumptionRenewalIri = z.infer<typeof subscriptionConsumptionRenewalIriSchema>;
|
|
3785
|
+
declare const subscriptionConsumptionRenewalNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/consumption/renewals/:id"> | null, unknown>>;
|
|
3786
|
+
type SubscriptionConsumptionRenewalNullableIri = z.infer<typeof subscriptionConsumptionRenewalNullableIriSchema>;
|
|
3787
|
+
declare const subscriptionTimeBasedRenewalIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id">, unknown>>;
|
|
3788
|
+
type SubscriptionTimeBasedRenewalIri = z.infer<typeof subscriptionTimeBasedRenewalIriSchema>;
|
|
3789
|
+
declare const subscriptionTimeBasedRenewalNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/subscriptions/time_based/renewals/:id"> | null, unknown>>;
|
|
3790
|
+
type SubscriptionTimeBasedRenewalNullableIri = z.infer<typeof subscriptionTimeBasedRenewalNullableIriSchema>;
|
|
3791
|
+
declare const creditUsageLogIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/credit_usage_logs/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/credit_usage_logs/:id">, unknown>>;
|
|
3792
|
+
type CreditUsageLogIri = z.infer<typeof creditUsageLogIriSchema>;
|
|
3793
|
+
declare const creditUsageLogNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/credit_usage_logs/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/credit_usage_logs/:id"> | null, unknown>>;
|
|
3794
|
+
type CreditUsageLogNullableIri = z.infer<typeof creditUsageLogNullableIriSchema>;
|
|
3795
|
+
|
|
3796
|
+
export { CreateSubscriptionConsumption, type CreateSubscriptionConsumptionInput, CreateSubscriptionConsumptionRenewal, type CreateSubscriptionConsumptionRenewalInput, type CreateSubscriptionConsumptionRenewalResponse, type CreateSubscriptionConsumptionResponse, CreateSubscriptionInfinite, type CreateSubscriptionInfiniteInput, type CreateSubscriptionInfiniteResponse, CreateSubscriptionPrice, type CreateSubscriptionPriceInput, type CreateSubscriptionPriceResponse, CreateSubscriptionTimeBased, type CreateSubscriptionTimeBasedInput, CreateSubscriptionTimeBasedRenewal, type CreateSubscriptionTimeBasedRenewalInput, type CreateSubscriptionTimeBasedRenewalResponse, type CreateSubscriptionTimeBasedResponse, type CreditUsageLog, type CreditUsageLogDetails, type CreditUsageLogIri, type CreditUsageLogNullableIri, type CreditUsageLogsQueryParams, DeleteCreditUsageLog, DeleteSubscription, DeleteSubscriptionConsumption, DeleteSubscriptionConsumptionRenewal, DeleteSubscriptionInfinite, DeleteSubscriptionPrice, DeleteSubscriptionTimeBased, DeleteSubscriptionTimeBasedRenewal, GetCreditUsageLogDetails, type GetCreditUsageLogDetailsInput, type GetCreditUsageLogDetailsResponse, GetCreditUsageLogs, GetCreditUsageLogsFromPointOfSale, type GetCreditUsageLogsFromPointOfSaleInput, type GetCreditUsageLogsFromPointOfSaleQueryParams, type GetCreditUsageLogsFromPointOfSaleResponse, type GetCreditUsageLogsInput, type GetCreditUsageLogsQueryParams, type GetCreditUsageLogsResponse, GetSubscriptionConsumptionDetails, type GetSubscriptionConsumptionDetailsInput, type GetSubscriptionConsumptionDetailsResponse, GetSubscriptionConsumptionList, type GetSubscriptionConsumptionListInput, type GetSubscriptionConsumptionListQueryParams, type GetSubscriptionConsumptionListResponse, GetSubscriptionConsumptionRenewalDetails, type GetSubscriptionConsumptionRenewalDetailsInput, type GetSubscriptionConsumptionRenewalDetailsResponse, GetSubscriptionConsumptionRenewals, GetSubscriptionConsumptionRenewalsFromSubscriptionConsumption, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInput, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionQueryParams, type GetSubscriptionConsumptionRenewalsFromSubscriptionConsumptionResponse, type GetSubscriptionConsumptionRenewalsInput, type GetSubscriptionConsumptionRenewalsQueryParams, type GetSubscriptionConsumptionRenewalsResponse, GetSubscriptionDetails, type GetSubscriptionDetailsInput, type GetSubscriptionDetailsResponse, GetSubscriptionInfiniteDetails, type GetSubscriptionInfiniteDetailsInput, type GetSubscriptionInfiniteDetailsResponse, GetSubscriptionInfiniteList, type GetSubscriptionInfiniteListInput, type GetSubscriptionInfiniteListQueryParams, type GetSubscriptionInfiniteListResponse, GetSubscriptionPriceDetails, type GetSubscriptionPriceDetailsInput, type GetSubscriptionPriceDetailsResponse, GetSubscriptionPrices, type GetSubscriptionPricesInput, type GetSubscriptionPricesQueryParams, type GetSubscriptionPricesResponse, GetSubscriptionTimeBasedDetails, type GetSubscriptionTimeBasedDetailsInput, type GetSubscriptionTimeBasedDetailsResponse, GetSubscriptionTimeBasedList, type GetSubscriptionTimeBasedListInput, type GetSubscriptionTimeBasedListQueryParams, type GetSubscriptionTimeBasedListResponse, GetSubscriptionTimeBasedRenewalDetails, type GetSubscriptionTimeBasedRenewalDetailsInput, type GetSubscriptionTimeBasedRenewalDetailsResponse, GetSubscriptionTimeBasedRenewals, GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBased, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInput, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedQueryParams, type GetSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedResponse, type GetSubscriptionTimeBasedRenewalsInput, type GetSubscriptionTimeBasedRenewalsQueryParams, type GetSubscriptionTimeBasedRenewalsResponse, GetSubscriptions, GetSubscriptionsFromPointOfSale, type GetSubscriptionsFromPointOfSaleInput, type GetSubscriptionsFromPointOfSaleQueryParams, type GetSubscriptionsFromPointOfSaleResponse, type GetSubscriptionsInput, type GetSubscriptionsQueryParams, type GetSubscriptionsResponse, type Subscription, type SubscriptionConsumption, type SubscriptionConsumptionDetails, type SubscriptionConsumptionIri, type SubscriptionConsumptionNullableIri, type SubscriptionConsumptionQueryParams, type SubscriptionConsumptionRenewal, type SubscriptionConsumptionRenewalDetails, type SubscriptionConsumptionRenewalIri, type SubscriptionConsumptionRenewalNullableIri, type SubscriptionConsumptionRenewalsQueryParams, type SubscriptionDetails, type SubscriptionInfinite, type SubscriptionInfiniteDetails, type SubscriptionInfiniteIri, type SubscriptionInfiniteNullableIri, type SubscriptionIri, type SubscriptionNullableIri, type SubscriptionPrice, type SubscriptionPriceIri, type SubscriptionPriceNullableIri, type SubscriptionPricesQueryParams, type SubscriptionQueryParams, type SubscriptionTimeBased, type SubscriptionTimeBasedDetails, type SubscriptionTimeBasedIri, type SubscriptionTimeBasedNullableIri, type SubscriptionTimeBasedQueryParams, type SubscriptionTimeBasedRenewal, type SubscriptionTimeBasedRenewalDetails, type SubscriptionTimeBasedRenewalIri, type SubscriptionTimeBasedRenewalNullableIri, type SubscriptionTimeBasedRenewalsQueryParams, UpdateSubscription, UpdateSubscriptionConsumption, type UpdateSubscriptionConsumptionInput, type UpdateSubscriptionConsumptionResponse, type UpdateSubscriptionInput, UpdateSubscriptionPrice, type UpdateSubscriptionPriceInput, type UpdateSubscriptionPriceResponse, type UpdateSubscriptionResponse, UpdateSubscriptionTimeBased, type UpdateSubscriptionTimeBasedInput, type UpdateSubscriptionTimeBasedResponse, type WritableSubscriptionCommon, type WritableSubscriptionConsumption, type WritableSubscriptionConsumptionRenewal, type WritableSubscriptionInfinite, type WritableSubscriptionPrice, type WritableSubscriptionTimeBased, type WritableSubscriptionTimeBasedRenewal, createSubscriptionConsumptionInputSchema, createSubscriptionConsumptionRenewalInputSchema, createSubscriptionConsumptionRenewalResponseSchema, createSubscriptionConsumptionResponseSchema, createSubscriptionInfiniteInputSchema, createSubscriptionInfiniteResponseSchema, createSubscriptionPriceInputSchema, createSubscriptionPriceResponseSchema, createSubscriptionTimeBasedInputSchema, createSubscriptionTimeBasedRenewalInputSchema, createSubscriptionTimeBasedRenewalResponseSchema, createSubscriptionTimeBasedResponseSchema, creditUsageLogDetailsSchema, creditUsageLogIriSchema, creditUsageLogNullableIriSchema, creditUsageLogSchema, creditUsageLogsQuerySchema, deleteCreditUsageLogInputSchema, deleteCreditUsageLogResponseSchema, deleteSubscriptionConsumptionInputSchema, deleteSubscriptionConsumptionRenewalInputSchema, deleteSubscriptionConsumptionRenewalResponseSchema, deleteSubscriptionConsumptionResponseSchema, deleteSubscriptionInfiniteInputSchema, deleteSubscriptionInfiniteResponseSchema, deleteSubscriptionInputSchema, deleteSubscriptionPriceInputSchema, deleteSubscriptionPriceResponseSchema, deleteSubscriptionResponseSchema, deleteSubscriptionTimeBasedInputSchema, deleteSubscriptionTimeBasedRenewalInputSchema, deleteSubscriptionTimeBasedRenewalResponseSchema, deleteSubscriptionTimeBasedResponseSchema, getCreditUsageLogDetailsInputSchema, getCreditUsageLogDetailsResponseSchema, getCreditUsageLogsFromPointOfSaleInputSchema, getCreditUsageLogsFromPointOfSaleResponseSchema, getCreditUsageLogsInputSchema, getCreditUsageLogsResponseSchema, getSubscriptionConsumptionDetailsInputSchema, getSubscriptionConsumptionDetailsResponseSchema, getSubscriptionConsumptionListInputSchema, getSubscriptionConsumptionListResponseSchema, getSubscriptionConsumptionRenewalDetailsInputSchema, getSubscriptionConsumptionRenewalDetailsResponseSchema, getSubscriptionConsumptionRenewalsFromSubscriptionConsumptionInputSchema, getSubscriptionConsumptionRenewalsInputSchema, getSubscriptionConsumptionRenewalsResponseSchema, getSubscriptionDetailsInputSchema, getSubscriptionDetailsResponseSchema, getSubscriptionInfiniteDetailsInputSchema, getSubscriptionInfiniteDetailsResponseSchema, getSubscriptionInfiniteListInputSchema, getSubscriptionInfiniteListResponseSchema, getSubscriptionPriceDetailsInputSchema, getSubscriptionPriceDetailsResponseSchema, getSubscriptionPricesInputSchema, getSubscriptionPricesResponseSchema, getSubscriptionTimeBasedDetailsInputSchema, getSubscriptionTimeBasedDetailsResponseSchema, getSubscriptionTimeBasedListInputSchema, getSubscriptionTimeBasedListResponseSchema, getSubscriptionTimeBasedRenewalDetailsInputSchema, getSubscriptionTimeBasedRenewalDetailsResponseSchema, getSubscriptionTimeBasedRenewalsFromSubscriptionTimeBasedInputSchema, getSubscriptionTimeBasedRenewalsInputSchema, getSubscriptionTimeBasedRenewalsResponseSchema, getSubscriptionsFromPointOfSaleInputSchema, getSubscriptionsFromPointOfSaleResponseSchema, getSubscriptionsInputSchema, getSubscriptionsResponseSchema, subscriptionConsumptionDetailsSchema, subscriptionConsumptionIriSchema, subscriptionConsumptionNullableIriSchema, subscriptionConsumptionQuerySchema, subscriptionConsumptionRenewalDetailsSchema, subscriptionConsumptionRenewalIriSchema, subscriptionConsumptionRenewalNullableIriSchema, subscriptionConsumptionRenewalSchema, subscriptionConsumptionRenewalsQuerySchema, subscriptionConsumptionSchema, subscriptionDetailsSchema, subscriptionInfiniteDetailsSchema, subscriptionInfiniteIriSchema, subscriptionInfiniteNullableIriSchema, subscriptionInfiniteSchema, subscriptionIriSchema, subscriptionNullableIriSchema, subscriptionPriceIriSchema, subscriptionPriceNullableIriSchema, subscriptionPriceSchema, subscriptionPricesQuerySchema, subscriptionQuerySchema, subscriptionSchema, subscriptionTimeBasedDetailsSchema, subscriptionTimeBasedIriSchema, subscriptionTimeBasedNullableIriSchema, subscriptionTimeBasedQuerySchema, subscriptionTimeBasedRenewalDetailsSchema, subscriptionTimeBasedRenewalIriSchema, subscriptionTimeBasedRenewalNullableIriSchema, subscriptionTimeBasedRenewalSchema, subscriptionTimeBasedRenewalsQuerySchema, subscriptionTimeBasedSchema, updateSubscriptionConsumptionInputSchema, updateSubscriptionConsumptionResponseSchema, updateSubscriptionInputSchema, updateSubscriptionPriceInputSchema, updateSubscriptionPriceResponseSchema, updateSubscriptionResponseSchema, updateSubscriptionTimeBasedInputSchema, updateSubscriptionTimeBasedResponseSchema, writableSubscriptionCommonSchema, writableSubscriptionConsumptionRenewalSchema, writableSubscriptionConsumptionSchema, writableSubscriptionInfiniteSchema, writableSubscriptionPriceSchema, writableSubscriptionTimeBasedRenewalSchema, writableSubscriptionTimeBasedSchema };
|