@atomic-solutions/schemas 0.2.1 → 0.2.2
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/dist/index.cjs +620 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +585 -1
- package/dist/index.js.map +1 -1
- package/dist/woocommerce-admin/index.d.cts +946 -946
- package/dist/woocommerce-admin/index.d.ts +946 -946
- package/package.json +5 -2
|
@@ -15,22 +15,22 @@ declare const paymentMethodFilterSchema: z.ZodObject<{
|
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
page: number;
|
|
17
17
|
per_page: number;
|
|
18
|
-
exclude: number[];
|
|
19
|
-
include: number[];
|
|
20
18
|
order: "asc" | "desc";
|
|
19
|
+
include: number[];
|
|
20
|
+
exclude: number[];
|
|
21
21
|
offset?: number | undefined;
|
|
22
|
-
search?: string | undefined;
|
|
23
22
|
orderby?: string | undefined;
|
|
23
|
+
search?: string | undefined;
|
|
24
24
|
enabled?: boolean | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
page?: number | undefined;
|
|
27
27
|
per_page?: number | undefined;
|
|
28
28
|
offset?: number | undefined;
|
|
29
|
-
search?: string | undefined;
|
|
30
|
-
exclude?: number[] | undefined;
|
|
31
|
-
include?: number[] | undefined;
|
|
32
29
|
order?: "asc" | "desc" | undefined;
|
|
33
30
|
orderby?: string | undefined;
|
|
31
|
+
include?: number[] | undefined;
|
|
32
|
+
search?: string | undefined;
|
|
33
|
+
exclude?: number[] | undefined;
|
|
34
34
|
enabled?: boolean | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
type PaymentMethodFilterParams = z.infer<typeof paymentMethodFilterSchema>;
|
|
@@ -49,23 +49,23 @@ declare const couponFilterSchema: z.ZodObject<{
|
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
page: number;
|
|
51
51
|
per_page: number;
|
|
52
|
-
exclude: number[];
|
|
53
|
-
include: number[];
|
|
54
52
|
order: "asc" | "desc";
|
|
55
|
-
orderby: "
|
|
56
|
-
|
|
53
|
+
orderby: "id" | "date" | "slug" | "include" | "title" | "modified";
|
|
54
|
+
include: number[];
|
|
55
|
+
exclude: number[];
|
|
57
56
|
code?: string | undefined;
|
|
57
|
+
offset?: number | undefined;
|
|
58
58
|
search?: string | undefined;
|
|
59
59
|
}, {
|
|
60
|
+
code?: string | undefined;
|
|
60
61
|
page?: number | undefined;
|
|
61
62
|
per_page?: number | undefined;
|
|
62
63
|
offset?: number | undefined;
|
|
63
|
-
|
|
64
|
+
order?: "asc" | "desc" | undefined;
|
|
65
|
+
orderby?: "id" | "date" | "slug" | "include" | "title" | "modified" | undefined;
|
|
66
|
+
include?: number[] | undefined;
|
|
64
67
|
search?: string | undefined;
|
|
65
68
|
exclude?: number[] | undefined;
|
|
66
|
-
include?: number[] | undefined;
|
|
67
|
-
order?: "asc" | "desc" | undefined;
|
|
68
|
-
orderby?: "include" | "date" | "id" | "title" | "slug" | "modified" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
type CouponFilterParams = z.infer<typeof couponFilterSchema>;
|
|
71
71
|
|
|
@@ -109,12 +109,12 @@ declare const couponSchema: z.ZodObject<{
|
|
|
109
109
|
collection: {
|
|
110
110
|
href: string;
|
|
111
111
|
}[];
|
|
112
|
-
|
|
112
|
+
about?: {
|
|
113
113
|
href: string;
|
|
114
|
-
embeddable?: boolean | undefined;
|
|
115
114
|
}[] | undefined;
|
|
116
|
-
|
|
115
|
+
author?: {
|
|
117
116
|
href: string;
|
|
117
|
+
embeddable?: boolean | undefined;
|
|
118
118
|
}[] | undefined;
|
|
119
119
|
}, {
|
|
120
120
|
self: {
|
|
@@ -123,12 +123,12 @@ declare const couponSchema: z.ZodObject<{
|
|
|
123
123
|
collection: {
|
|
124
124
|
href: string;
|
|
125
125
|
}[];
|
|
126
|
-
|
|
126
|
+
about?: {
|
|
127
127
|
href: string;
|
|
128
|
-
embeddable?: boolean | undefined;
|
|
129
128
|
}[] | undefined;
|
|
130
|
-
|
|
129
|
+
author?: {
|
|
131
130
|
href: string;
|
|
131
|
+
embeddable?: boolean | undefined;
|
|
132
132
|
}[] | undefined;
|
|
133
133
|
}>;
|
|
134
134
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -136,12 +136,12 @@ declare const couponSchema: z.ZodObject<{
|
|
|
136
136
|
key: z.ZodString;
|
|
137
137
|
value: z.ZodAny;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
id: number;
|
|
140
139
|
key: string;
|
|
140
|
+
id: number;
|
|
141
141
|
value?: any;
|
|
142
142
|
}, {
|
|
143
|
-
id: number;
|
|
144
143
|
key: string;
|
|
144
|
+
id: number;
|
|
145
145
|
value?: any;
|
|
146
146
|
}>, "many">>;
|
|
147
147
|
} & {
|
|
@@ -178,12 +178,12 @@ declare const couponSchema: z.ZodObject<{
|
|
|
178
178
|
collection: {
|
|
179
179
|
href: string;
|
|
180
180
|
}[];
|
|
181
|
-
|
|
181
|
+
about?: {
|
|
182
182
|
href: string;
|
|
183
|
-
embeddable?: boolean | undefined;
|
|
184
183
|
}[] | undefined;
|
|
185
|
-
|
|
184
|
+
author?: {
|
|
186
185
|
href: string;
|
|
186
|
+
embeddable?: boolean | undefined;
|
|
187
187
|
}[] | undefined;
|
|
188
188
|
};
|
|
189
189
|
amount: string;
|
|
@@ -204,8 +204,8 @@ declare const couponSchema: z.ZodObject<{
|
|
|
204
204
|
maximum_amount: string;
|
|
205
205
|
email_restrictions: string[];
|
|
206
206
|
meta_data?: {
|
|
207
|
-
id: number;
|
|
208
207
|
key: string;
|
|
208
|
+
id: number;
|
|
209
209
|
value?: any;
|
|
210
210
|
}[] | undefined;
|
|
211
211
|
}, {
|
|
@@ -220,12 +220,12 @@ declare const couponSchema: z.ZodObject<{
|
|
|
220
220
|
collection: {
|
|
221
221
|
href: string;
|
|
222
222
|
}[];
|
|
223
|
-
|
|
223
|
+
about?: {
|
|
224
224
|
href: string;
|
|
225
|
-
embeddable?: boolean | undefined;
|
|
226
225
|
}[] | undefined;
|
|
227
|
-
|
|
226
|
+
author?: {
|
|
228
227
|
href: string;
|
|
228
|
+
embeddable?: boolean | undefined;
|
|
229
229
|
}[] | undefined;
|
|
230
230
|
};
|
|
231
231
|
amount: string;
|
|
@@ -246,8 +246,8 @@ declare const couponSchema: z.ZodObject<{
|
|
|
246
246
|
maximum_amount: string;
|
|
247
247
|
email_restrictions: string[];
|
|
248
248
|
meta_data?: {
|
|
249
|
-
id: number;
|
|
250
249
|
key: string;
|
|
250
|
+
id: number;
|
|
251
251
|
value?: any;
|
|
252
252
|
}[] | undefined;
|
|
253
253
|
}>;
|
|
@@ -268,25 +268,25 @@ declare const customerFilterSchema: z.ZodObject<{
|
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
269
|
page: number;
|
|
270
270
|
per_page: number;
|
|
271
|
-
exclude: number[];
|
|
272
|
-
include: number[];
|
|
273
271
|
order: "asc" | "desc";
|
|
274
|
-
orderby: "
|
|
275
|
-
|
|
272
|
+
orderby: "id" | "name" | "include" | "registered_date";
|
|
273
|
+
include: number[];
|
|
274
|
+
exclude: number[];
|
|
275
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
276
|
+
email?: string | undefined;
|
|
276
277
|
offset?: number | undefined;
|
|
277
278
|
search?: string | undefined;
|
|
278
|
-
email?: string | undefined;
|
|
279
279
|
}, {
|
|
280
|
+
email?: string | undefined;
|
|
280
281
|
page?: number | undefined;
|
|
281
282
|
per_page?: number | undefined;
|
|
282
283
|
offset?: number | undefined;
|
|
284
|
+
order?: "asc" | "desc" | undefined;
|
|
285
|
+
orderby?: "id" | "name" | "include" | "registered_date" | undefined;
|
|
286
|
+
include?: number[] | undefined;
|
|
283
287
|
search?: string | undefined;
|
|
284
288
|
exclude?: number[] | undefined;
|
|
285
|
-
|
|
286
|
-
order?: "asc" | "desc" | undefined;
|
|
287
|
-
orderby?: "include" | "id" | "name" | "registered_date" | undefined;
|
|
288
|
-
email?: string | undefined;
|
|
289
|
-
role?: "all" | "administrator" | "editor" | "author" | "contributor" | "subscriber" | "customer" | "shop_manager" | undefined;
|
|
289
|
+
role?: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager" | undefined;
|
|
290
290
|
}>;
|
|
291
291
|
type CustomerFilterParams = z.infer<typeof customerFilterSchema>;
|
|
292
292
|
|
|
@@ -330,12 +330,12 @@ declare const customerSchema: z.ZodObject<{
|
|
|
330
330
|
collection: {
|
|
331
331
|
href: string;
|
|
332
332
|
}[];
|
|
333
|
-
|
|
333
|
+
about?: {
|
|
334
334
|
href: string;
|
|
335
|
-
embeddable?: boolean | undefined;
|
|
336
335
|
}[] | undefined;
|
|
337
|
-
|
|
336
|
+
author?: {
|
|
338
337
|
href: string;
|
|
338
|
+
embeddable?: boolean | undefined;
|
|
339
339
|
}[] | undefined;
|
|
340
340
|
}, {
|
|
341
341
|
self: {
|
|
@@ -344,12 +344,12 @@ declare const customerSchema: z.ZodObject<{
|
|
|
344
344
|
collection: {
|
|
345
345
|
href: string;
|
|
346
346
|
}[];
|
|
347
|
-
|
|
347
|
+
about?: {
|
|
348
348
|
href: string;
|
|
349
|
-
embeddable?: boolean | undefined;
|
|
350
349
|
}[] | undefined;
|
|
351
|
-
|
|
350
|
+
author?: {
|
|
352
351
|
href: string;
|
|
352
|
+
embeddable?: boolean | undefined;
|
|
353
353
|
}[] | undefined;
|
|
354
354
|
}>;
|
|
355
355
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -357,12 +357,12 @@ declare const customerSchema: z.ZodObject<{
|
|
|
357
357
|
key: z.ZodString;
|
|
358
358
|
value: z.ZodAny;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
id: number;
|
|
361
360
|
key: string;
|
|
361
|
+
id: number;
|
|
362
362
|
value?: any;
|
|
363
363
|
}, {
|
|
364
|
-
id: number;
|
|
365
364
|
key: string;
|
|
365
|
+
id: number;
|
|
366
366
|
value?: any;
|
|
367
367
|
}>, "many">>;
|
|
368
368
|
} & {
|
|
@@ -452,27 +452,11 @@ declare const customerSchema: z.ZodObject<{
|
|
|
452
452
|
email?: string | undefined;
|
|
453
453
|
}>;
|
|
454
454
|
}, "strip", z.ZodTypeAny, {
|
|
455
|
-
id: number;
|
|
456
|
-
_links: {
|
|
457
|
-
self: {
|
|
458
|
-
href: string;
|
|
459
|
-
}[];
|
|
460
|
-
collection: {
|
|
461
|
-
href: string;
|
|
462
|
-
}[];
|
|
463
|
-
author?: {
|
|
464
|
-
href: string;
|
|
465
|
-
embeddable?: boolean | undefined;
|
|
466
|
-
}[] | undefined;
|
|
467
|
-
about?: {
|
|
468
|
-
href: string;
|
|
469
|
-
}[] | undefined;
|
|
470
|
-
};
|
|
471
|
-
date_created: string;
|
|
472
|
-
date_modified: string;
|
|
473
455
|
first_name: string;
|
|
474
456
|
last_name: string;
|
|
475
457
|
email: string;
|
|
458
|
+
id: number;
|
|
459
|
+
date_created: string;
|
|
476
460
|
billing: {
|
|
477
461
|
first_name: string;
|
|
478
462
|
last_name: string;
|
|
@@ -499,17 +483,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
499
483
|
phone: string;
|
|
500
484
|
email?: string | undefined;
|
|
501
485
|
};
|
|
502
|
-
|
|
503
|
-
username: string;
|
|
504
|
-
is_paying_customer: boolean;
|
|
505
|
-
avatar_url: string;
|
|
506
|
-
meta_data?: {
|
|
507
|
-
id: number;
|
|
508
|
-
key: string;
|
|
509
|
-
value?: any;
|
|
510
|
-
}[] | undefined;
|
|
511
|
-
}, {
|
|
512
|
-
id: number;
|
|
486
|
+
date_modified: string;
|
|
513
487
|
_links: {
|
|
514
488
|
self: {
|
|
515
489
|
href: string;
|
|
@@ -517,19 +491,29 @@ declare const customerSchema: z.ZodObject<{
|
|
|
517
491
|
collection: {
|
|
518
492
|
href: string;
|
|
519
493
|
}[];
|
|
520
|
-
|
|
494
|
+
about?: {
|
|
521
495
|
href: string;
|
|
522
|
-
embeddable?: boolean | undefined;
|
|
523
496
|
}[] | undefined;
|
|
524
|
-
|
|
497
|
+
author?: {
|
|
525
498
|
href: string;
|
|
499
|
+
embeddable?: boolean | undefined;
|
|
526
500
|
}[] | undefined;
|
|
527
501
|
};
|
|
528
|
-
|
|
529
|
-
|
|
502
|
+
username: string;
|
|
503
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
504
|
+
is_paying_customer: boolean;
|
|
505
|
+
avatar_url: string;
|
|
506
|
+
meta_data?: {
|
|
507
|
+
key: string;
|
|
508
|
+
id: number;
|
|
509
|
+
value?: any;
|
|
510
|
+
}[] | undefined;
|
|
511
|
+
}, {
|
|
530
512
|
first_name: string;
|
|
531
513
|
last_name: string;
|
|
532
514
|
email: string;
|
|
515
|
+
id: number;
|
|
516
|
+
date_created: string;
|
|
533
517
|
billing: {
|
|
534
518
|
email: string;
|
|
535
519
|
first_name?: string | undefined;
|
|
@@ -556,13 +540,29 @@ declare const customerSchema: z.ZodObject<{
|
|
|
556
540
|
phone?: string | undefined;
|
|
557
541
|
email?: string | undefined;
|
|
558
542
|
};
|
|
559
|
-
|
|
543
|
+
date_modified: string;
|
|
544
|
+
_links: {
|
|
545
|
+
self: {
|
|
546
|
+
href: string;
|
|
547
|
+
}[];
|
|
548
|
+
collection: {
|
|
549
|
+
href: string;
|
|
550
|
+
}[];
|
|
551
|
+
about?: {
|
|
552
|
+
href: string;
|
|
553
|
+
}[] | undefined;
|
|
554
|
+
author?: {
|
|
555
|
+
href: string;
|
|
556
|
+
embeddable?: boolean | undefined;
|
|
557
|
+
}[] | undefined;
|
|
558
|
+
};
|
|
560
559
|
username: string;
|
|
560
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
561
561
|
is_paying_customer: boolean;
|
|
562
562
|
avatar_url: string;
|
|
563
563
|
meta_data?: {
|
|
564
|
-
id: number;
|
|
565
564
|
key: string;
|
|
565
|
+
id: number;
|
|
566
566
|
value?: any;
|
|
567
567
|
}[] | undefined;
|
|
568
568
|
}>;
|
|
@@ -606,12 +606,12 @@ declare const createCustomerSchema: z.ZodObject<Pick<{
|
|
|
606
606
|
collection: {
|
|
607
607
|
href: string;
|
|
608
608
|
}[];
|
|
609
|
-
|
|
609
|
+
about?: {
|
|
610
610
|
href: string;
|
|
611
|
-
embeddable?: boolean | undefined;
|
|
612
611
|
}[] | undefined;
|
|
613
|
-
|
|
612
|
+
author?: {
|
|
614
613
|
href: string;
|
|
614
|
+
embeddable?: boolean | undefined;
|
|
615
615
|
}[] | undefined;
|
|
616
616
|
}, {
|
|
617
617
|
self: {
|
|
@@ -620,12 +620,12 @@ declare const createCustomerSchema: z.ZodObject<Pick<{
|
|
|
620
620
|
collection: {
|
|
621
621
|
href: string;
|
|
622
622
|
}[];
|
|
623
|
-
|
|
623
|
+
about?: {
|
|
624
624
|
href: string;
|
|
625
|
-
embeddable?: boolean | undefined;
|
|
626
625
|
}[] | undefined;
|
|
627
|
-
|
|
626
|
+
author?: {
|
|
628
627
|
href: string;
|
|
628
|
+
embeddable?: boolean | undefined;
|
|
629
629
|
}[] | undefined;
|
|
630
630
|
}>;
|
|
631
631
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -633,12 +633,12 @@ declare const createCustomerSchema: z.ZodObject<Pick<{
|
|
|
633
633
|
key: z.ZodString;
|
|
634
634
|
value: z.ZodAny;
|
|
635
635
|
}, "strip", z.ZodTypeAny, {
|
|
636
|
-
id: number;
|
|
637
636
|
key: string;
|
|
637
|
+
id: number;
|
|
638
638
|
value?: any;
|
|
639
639
|
}, {
|
|
640
|
-
id: number;
|
|
641
640
|
key: string;
|
|
641
|
+
id: number;
|
|
642
642
|
value?: any;
|
|
643
643
|
}>, "many">>;
|
|
644
644
|
} & {
|
|
@@ -934,37 +934,37 @@ declare const orderFilterSchema: z.ZodObject<{
|
|
|
934
934
|
}, "strip", z.ZodTypeAny, {
|
|
935
935
|
page: number;
|
|
936
936
|
per_page: number;
|
|
937
|
-
exclude: number[];
|
|
938
|
-
include: number[];
|
|
939
937
|
order: "asc" | "desc";
|
|
940
|
-
orderby: "
|
|
938
|
+
orderby: "id" | "date" | "slug" | "include" | "title" | "modified";
|
|
939
|
+
include: number[];
|
|
940
|
+
exclude: number[];
|
|
941
941
|
dates_are_gmt: boolean;
|
|
942
|
+
status?: ("pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft")[] | undefined;
|
|
942
943
|
offset?: number | undefined;
|
|
943
|
-
status?: ("cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft")[] | undefined;
|
|
944
944
|
search?: string | undefined;
|
|
945
|
-
customer?: number | undefined;
|
|
946
|
-
product?: number | undefined;
|
|
947
945
|
after?: string | undefined;
|
|
948
946
|
before?: string | undefined;
|
|
949
947
|
modified_after?: string | undefined;
|
|
950
948
|
modified_before?: string | undefined;
|
|
949
|
+
customer?: number | undefined;
|
|
950
|
+
product?: number | undefined;
|
|
951
951
|
dp?: number | undefined;
|
|
952
952
|
}, {
|
|
953
|
+
status?: ("pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft")[] | undefined;
|
|
953
954
|
page?: number | undefined;
|
|
954
955
|
per_page?: number | undefined;
|
|
955
956
|
offset?: number | undefined;
|
|
956
|
-
status?: ("cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft")[] | undefined;
|
|
957
|
-
search?: string | undefined;
|
|
958
|
-
exclude?: number[] | undefined;
|
|
959
|
-
include?: number[] | undefined;
|
|
960
|
-
customer?: number | undefined;
|
|
961
|
-
product?: number | undefined;
|
|
962
957
|
order?: "asc" | "desc" | undefined;
|
|
963
|
-
orderby?: "
|
|
958
|
+
orderby?: "id" | "date" | "slug" | "include" | "title" | "modified" | undefined;
|
|
959
|
+
include?: number[] | undefined;
|
|
960
|
+
search?: string | undefined;
|
|
964
961
|
after?: string | undefined;
|
|
965
962
|
before?: string | undefined;
|
|
966
963
|
modified_after?: string | undefined;
|
|
967
964
|
modified_before?: string | undefined;
|
|
965
|
+
exclude?: number[] | undefined;
|
|
966
|
+
customer?: number | undefined;
|
|
967
|
+
product?: number | undefined;
|
|
968
968
|
dates_are_gmt?: boolean | undefined;
|
|
969
969
|
dp?: number | undefined;
|
|
970
970
|
}>;
|
|
@@ -984,31 +984,31 @@ declare const orderLineItemSchema: z.ZodObject<{
|
|
|
984
984
|
sku: z.ZodString;
|
|
985
985
|
price: z.ZodNumber;
|
|
986
986
|
}, "strip", z.ZodTypeAny, {
|
|
987
|
-
|
|
987
|
+
total: string;
|
|
988
988
|
price: number;
|
|
989
|
+
id: number;
|
|
990
|
+
quantity: number;
|
|
989
991
|
name: string;
|
|
990
992
|
sku: string;
|
|
991
|
-
|
|
993
|
+
total_tax: string;
|
|
994
|
+
subtotal: string;
|
|
992
995
|
product_id: number;
|
|
993
996
|
variation_id: number;
|
|
994
|
-
quantity: number;
|
|
995
997
|
tax_class: string;
|
|
996
|
-
subtotal: string;
|
|
997
998
|
subtotal_tax: string;
|
|
998
|
-
total_tax: string;
|
|
999
999
|
}, {
|
|
1000
|
-
|
|
1000
|
+
total: string;
|
|
1001
1001
|
price: number;
|
|
1002
|
+
id: number;
|
|
1003
|
+
quantity: number;
|
|
1002
1004
|
name: string;
|
|
1003
1005
|
sku: string;
|
|
1004
|
-
|
|
1006
|
+
total_tax: string;
|
|
1007
|
+
subtotal: string;
|
|
1005
1008
|
product_id: number;
|
|
1006
1009
|
variation_id: number;
|
|
1007
|
-
quantity: number;
|
|
1008
1010
|
tax_class: string;
|
|
1009
|
-
subtotal: string;
|
|
1010
1011
|
subtotal_tax: string;
|
|
1011
|
-
total_tax: string;
|
|
1012
1012
|
}>;
|
|
1013
1013
|
declare const orderSchema: z.ZodObject<{
|
|
1014
1014
|
_links: z.ZodObject<{
|
|
@@ -1050,12 +1050,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1050
1050
|
collection: {
|
|
1051
1051
|
href: string;
|
|
1052
1052
|
}[];
|
|
1053
|
-
|
|
1053
|
+
about?: {
|
|
1054
1054
|
href: string;
|
|
1055
|
-
embeddable?: boolean | undefined;
|
|
1056
1055
|
}[] | undefined;
|
|
1057
|
-
|
|
1056
|
+
author?: {
|
|
1058
1057
|
href: string;
|
|
1058
|
+
embeddable?: boolean | undefined;
|
|
1059
1059
|
}[] | undefined;
|
|
1060
1060
|
}, {
|
|
1061
1061
|
self: {
|
|
@@ -1064,12 +1064,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1064
1064
|
collection: {
|
|
1065
1065
|
href: string;
|
|
1066
1066
|
}[];
|
|
1067
|
-
|
|
1067
|
+
about?: {
|
|
1068
1068
|
href: string;
|
|
1069
|
-
embeddable?: boolean | undefined;
|
|
1070
1069
|
}[] | undefined;
|
|
1071
|
-
|
|
1070
|
+
author?: {
|
|
1072
1071
|
href: string;
|
|
1072
|
+
embeddable?: boolean | undefined;
|
|
1073
1073
|
}[] | undefined;
|
|
1074
1074
|
}>;
|
|
1075
1075
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1077,12 +1077,12 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1077
1077
|
key: z.ZodString;
|
|
1078
1078
|
value: z.ZodAny;
|
|
1079
1079
|
}, "strip", z.ZodTypeAny, {
|
|
1080
|
-
id: number;
|
|
1081
1080
|
key: string;
|
|
1081
|
+
id: number;
|
|
1082
1082
|
value?: any;
|
|
1083
1083
|
}, {
|
|
1084
|
-
id: number;
|
|
1085
1084
|
key: string;
|
|
1085
|
+
id: number;
|
|
1086
1086
|
value?: any;
|
|
1087
1087
|
}>, "many">>;
|
|
1088
1088
|
} & {
|
|
@@ -1191,31 +1191,31 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1191
1191
|
sku: z.ZodString;
|
|
1192
1192
|
price: z.ZodNumber;
|
|
1193
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
|
-
|
|
1194
|
+
total: string;
|
|
1195
1195
|
price: number;
|
|
1196
|
+
id: number;
|
|
1197
|
+
quantity: number;
|
|
1196
1198
|
name: string;
|
|
1197
1199
|
sku: string;
|
|
1198
|
-
|
|
1200
|
+
total_tax: string;
|
|
1201
|
+
subtotal: string;
|
|
1199
1202
|
product_id: number;
|
|
1200
1203
|
variation_id: number;
|
|
1201
|
-
quantity: number;
|
|
1202
1204
|
tax_class: string;
|
|
1203
|
-
subtotal: string;
|
|
1204
1205
|
subtotal_tax: string;
|
|
1205
|
-
total_tax: string;
|
|
1206
1206
|
}, {
|
|
1207
|
-
|
|
1207
|
+
total: string;
|
|
1208
1208
|
price: number;
|
|
1209
|
+
id: number;
|
|
1210
|
+
quantity: number;
|
|
1209
1211
|
name: string;
|
|
1210
1212
|
sku: string;
|
|
1211
|
-
|
|
1213
|
+
total_tax: string;
|
|
1214
|
+
subtotal: string;
|
|
1212
1215
|
product_id: number;
|
|
1213
1216
|
variation_id: number;
|
|
1214
|
-
quantity: number;
|
|
1215
1217
|
tax_class: string;
|
|
1216
|
-
subtotal: string;
|
|
1217
1218
|
subtotal_tax: string;
|
|
1218
|
-
total_tax: string;
|
|
1219
1219
|
}>, "many">;
|
|
1220
1220
|
payment_url: z.ZodOptional<z.ZodString>;
|
|
1221
1221
|
pikpay_transaction_id: z.ZodOptional<z.ZodString>;
|
|
@@ -1223,35 +1223,14 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1223
1223
|
monri_transaction_id: z.ZodOptional<z.ZodString>;
|
|
1224
1224
|
monri_status: z.ZodOptional<z.ZodString>;
|
|
1225
1225
|
}, "strip", z.ZodTypeAny, {
|
|
1226
|
-
status: "
|
|
1226
|
+
status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft";
|
|
1227
|
+
total: string;
|
|
1227
1228
|
id: number;
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
href: string;
|
|
1231
|
-
}[];
|
|
1232
|
-
collection: {
|
|
1233
|
-
href: string;
|
|
1234
|
-
}[];
|
|
1235
|
-
author?: {
|
|
1236
|
-
href: string;
|
|
1237
|
-
embeddable?: boolean | undefined;
|
|
1238
|
-
}[] | undefined;
|
|
1239
|
-
about?: {
|
|
1240
|
-
href: string;
|
|
1241
|
-
}[] | undefined;
|
|
1242
|
-
};
|
|
1243
|
-
date_created: string;
|
|
1244
|
-
date_modified: string;
|
|
1245
|
-
parent_id: number;
|
|
1246
|
-
currency: string;
|
|
1247
|
-
version: string;
|
|
1248
|
-
prices_include_tax: boolean;
|
|
1249
|
-
discount_total: string;
|
|
1250
|
-
shipping_total: string;
|
|
1251
|
-
cart_tax: string;
|
|
1252
|
-
total: string;
|
|
1253
|
-
customer_id: number;
|
|
1229
|
+
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1230
|
+
payment_method_title: string;
|
|
1254
1231
|
order_key: string;
|
|
1232
|
+
currency: string;
|
|
1233
|
+
date_created: string;
|
|
1255
1234
|
billing: {
|
|
1256
1235
|
first_name: string;
|
|
1257
1236
|
last_name: string;
|
|
@@ -1278,35 +1257,22 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1278
1257
|
phone: string;
|
|
1279
1258
|
email?: string | undefined;
|
|
1280
1259
|
};
|
|
1281
|
-
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1282
|
-
payment_method_title: string;
|
|
1283
1260
|
line_items: {
|
|
1284
|
-
|
|
1261
|
+
total: string;
|
|
1285
1262
|
price: number;
|
|
1263
|
+
id: number;
|
|
1264
|
+
quantity: number;
|
|
1286
1265
|
name: string;
|
|
1287
1266
|
sku: string;
|
|
1288
|
-
|
|
1267
|
+
total_tax: string;
|
|
1268
|
+
subtotal: string;
|
|
1289
1269
|
product_id: number;
|
|
1290
1270
|
variation_id: number;
|
|
1291
|
-
quantity: number;
|
|
1292
1271
|
tax_class: string;
|
|
1293
|
-
subtotal: string;
|
|
1294
1272
|
subtotal_tax: string;
|
|
1295
|
-
total_tax: string;
|
|
1296
1273
|
}[];
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
key: string;
|
|
1300
|
-
value?: any;
|
|
1301
|
-
}[] | undefined;
|
|
1302
|
-
payment_url?: string | undefined;
|
|
1303
|
-
pikpay_transaction_id?: string | undefined;
|
|
1304
|
-
pikpay_status?: string | undefined;
|
|
1305
|
-
monri_transaction_id?: string | undefined;
|
|
1306
|
-
monri_status?: string | undefined;
|
|
1307
|
-
}, {
|
|
1308
|
-
status: "cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft";
|
|
1309
|
-
id: number;
|
|
1274
|
+
customer_id: number;
|
|
1275
|
+
date_modified: string;
|
|
1310
1276
|
_links: {
|
|
1311
1277
|
self: {
|
|
1312
1278
|
href: string;
|
|
@@ -1314,26 +1280,39 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1314
1280
|
collection: {
|
|
1315
1281
|
href: string;
|
|
1316
1282
|
}[];
|
|
1317
|
-
|
|
1283
|
+
about?: {
|
|
1318
1284
|
href: string;
|
|
1319
|
-
embeddable?: boolean | undefined;
|
|
1320
1285
|
}[] | undefined;
|
|
1321
|
-
|
|
1286
|
+
author?: {
|
|
1322
1287
|
href: string;
|
|
1288
|
+
embeddable?: boolean | undefined;
|
|
1323
1289
|
}[] | undefined;
|
|
1324
1290
|
};
|
|
1325
|
-
date_created: string;
|
|
1326
|
-
date_modified: string;
|
|
1327
1291
|
parent_id: number;
|
|
1328
|
-
currency: string;
|
|
1329
1292
|
version: string;
|
|
1330
1293
|
prices_include_tax: boolean;
|
|
1331
1294
|
discount_total: string;
|
|
1332
1295
|
shipping_total: string;
|
|
1333
1296
|
cart_tax: string;
|
|
1297
|
+
meta_data?: {
|
|
1298
|
+
key: string;
|
|
1299
|
+
id: number;
|
|
1300
|
+
value?: any;
|
|
1301
|
+
}[] | undefined;
|
|
1302
|
+
payment_url?: string | undefined;
|
|
1303
|
+
pikpay_transaction_id?: string | undefined;
|
|
1304
|
+
pikpay_status?: string | undefined;
|
|
1305
|
+
monri_transaction_id?: string | undefined;
|
|
1306
|
+
monri_status?: string | undefined;
|
|
1307
|
+
}, {
|
|
1308
|
+
status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft";
|
|
1334
1309
|
total: string;
|
|
1335
|
-
|
|
1310
|
+
id: number;
|
|
1311
|
+
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1312
|
+
payment_method_title: string;
|
|
1336
1313
|
order_key: string;
|
|
1314
|
+
currency: string;
|
|
1315
|
+
date_created: string;
|
|
1337
1316
|
billing: {
|
|
1338
1317
|
email: string;
|
|
1339
1318
|
first_name?: string | undefined;
|
|
@@ -1360,25 +1339,46 @@ declare const orderSchema: z.ZodObject<{
|
|
|
1360
1339
|
phone?: string | undefined;
|
|
1361
1340
|
email?: string | undefined;
|
|
1362
1341
|
};
|
|
1363
|
-
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1364
|
-
payment_method_title: string;
|
|
1365
1342
|
line_items: {
|
|
1366
|
-
|
|
1343
|
+
total: string;
|
|
1367
1344
|
price: number;
|
|
1345
|
+
id: number;
|
|
1346
|
+
quantity: number;
|
|
1368
1347
|
name: string;
|
|
1369
1348
|
sku: string;
|
|
1370
|
-
|
|
1349
|
+
total_tax: string;
|
|
1350
|
+
subtotal: string;
|
|
1371
1351
|
product_id: number;
|
|
1372
1352
|
variation_id: number;
|
|
1373
|
-
quantity: number;
|
|
1374
1353
|
tax_class: string;
|
|
1375
|
-
subtotal: string;
|
|
1376
1354
|
subtotal_tax: string;
|
|
1377
|
-
total_tax: string;
|
|
1378
1355
|
}[];
|
|
1356
|
+
customer_id: number;
|
|
1357
|
+
date_modified: string;
|
|
1358
|
+
_links: {
|
|
1359
|
+
self: {
|
|
1360
|
+
href: string;
|
|
1361
|
+
}[];
|
|
1362
|
+
collection: {
|
|
1363
|
+
href: string;
|
|
1364
|
+
}[];
|
|
1365
|
+
about?: {
|
|
1366
|
+
href: string;
|
|
1367
|
+
}[] | undefined;
|
|
1368
|
+
author?: {
|
|
1369
|
+
href: string;
|
|
1370
|
+
embeddable?: boolean | undefined;
|
|
1371
|
+
}[] | undefined;
|
|
1372
|
+
};
|
|
1373
|
+
parent_id: number;
|
|
1374
|
+
version: string;
|
|
1375
|
+
prices_include_tax: boolean;
|
|
1376
|
+
discount_total: string;
|
|
1377
|
+
shipping_total: string;
|
|
1378
|
+
cart_tax: string;
|
|
1379
1379
|
meta_data?: {
|
|
1380
|
-
id: number;
|
|
1381
1380
|
key: string;
|
|
1381
|
+
id: number;
|
|
1382
1382
|
value?: any;
|
|
1383
1383
|
}[] | undefined;
|
|
1384
1384
|
payment_url?: string | undefined;
|
|
@@ -1429,12 +1429,12 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1429
1429
|
collection: {
|
|
1430
1430
|
href: string;
|
|
1431
1431
|
}[];
|
|
1432
|
-
|
|
1432
|
+
about?: {
|
|
1433
1433
|
href: string;
|
|
1434
|
-
embeddable?: boolean | undefined;
|
|
1435
1434
|
}[] | undefined;
|
|
1436
|
-
|
|
1435
|
+
author?: {
|
|
1437
1436
|
href: string;
|
|
1437
|
+
embeddable?: boolean | undefined;
|
|
1438
1438
|
}[] | undefined;
|
|
1439
1439
|
}, {
|
|
1440
1440
|
self: {
|
|
@@ -1443,12 +1443,12 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1443
1443
|
collection: {
|
|
1444
1444
|
href: string;
|
|
1445
1445
|
}[];
|
|
1446
|
-
|
|
1446
|
+
about?: {
|
|
1447
1447
|
href: string;
|
|
1448
|
-
embeddable?: boolean | undefined;
|
|
1449
1448
|
}[] | undefined;
|
|
1450
|
-
|
|
1449
|
+
author?: {
|
|
1451
1450
|
href: string;
|
|
1451
|
+
embeddable?: boolean | undefined;
|
|
1452
1452
|
}[] | undefined;
|
|
1453
1453
|
}>;
|
|
1454
1454
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1456,12 +1456,12 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1456
1456
|
key: z.ZodString;
|
|
1457
1457
|
value: z.ZodAny;
|
|
1458
1458
|
}, "strip", z.ZodTypeAny, {
|
|
1459
|
-
id: number;
|
|
1460
1459
|
key: string;
|
|
1460
|
+
id: number;
|
|
1461
1461
|
value?: any;
|
|
1462
1462
|
}, {
|
|
1463
|
-
id: number;
|
|
1464
1463
|
key: string;
|
|
1464
|
+
id: number;
|
|
1465
1465
|
value?: any;
|
|
1466
1466
|
}>, "many">>;
|
|
1467
1467
|
} & {
|
|
@@ -1473,8 +1473,8 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1473
1473
|
method_description: z.ZodString;
|
|
1474
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1475
1475
|
id: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1476
|
-
title: string;
|
|
1477
1476
|
description: string;
|
|
1477
|
+
title: string;
|
|
1478
1478
|
_links: {
|
|
1479
1479
|
self: {
|
|
1480
1480
|
href: string;
|
|
@@ -1482,26 +1482,26 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1482
1482
|
collection: {
|
|
1483
1483
|
href: string;
|
|
1484
1484
|
}[];
|
|
1485
|
-
|
|
1485
|
+
about?: {
|
|
1486
1486
|
href: string;
|
|
1487
|
-
embeddable?: boolean | undefined;
|
|
1488
1487
|
}[] | undefined;
|
|
1489
|
-
|
|
1488
|
+
author?: {
|
|
1490
1489
|
href: string;
|
|
1490
|
+
embeddable?: boolean | undefined;
|
|
1491
1491
|
}[] | undefined;
|
|
1492
1492
|
};
|
|
1493
1493
|
enabled: boolean;
|
|
1494
1494
|
method_title: string;
|
|
1495
1495
|
method_description: string;
|
|
1496
1496
|
meta_data?: {
|
|
1497
|
-
id: number;
|
|
1498
1497
|
key: string;
|
|
1498
|
+
id: number;
|
|
1499
1499
|
value?: any;
|
|
1500
1500
|
}[] | undefined;
|
|
1501
1501
|
}, {
|
|
1502
1502
|
id: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
1503
|
-
title: string;
|
|
1504
1503
|
description: string;
|
|
1504
|
+
title: string;
|
|
1505
1505
|
_links: {
|
|
1506
1506
|
self: {
|
|
1507
1507
|
href: string;
|
|
@@ -1509,20 +1509,20 @@ declare const paymentMethodSchema: z.ZodObject<{
|
|
|
1509
1509
|
collection: {
|
|
1510
1510
|
href: string;
|
|
1511
1511
|
}[];
|
|
1512
|
-
|
|
1512
|
+
about?: {
|
|
1513
1513
|
href: string;
|
|
1514
|
-
embeddable?: boolean | undefined;
|
|
1515
1514
|
}[] | undefined;
|
|
1516
|
-
|
|
1515
|
+
author?: {
|
|
1517
1516
|
href: string;
|
|
1517
|
+
embeddable?: boolean | undefined;
|
|
1518
1518
|
}[] | undefined;
|
|
1519
1519
|
};
|
|
1520
1520
|
enabled: boolean;
|
|
1521
1521
|
method_title: string;
|
|
1522
1522
|
method_description: string;
|
|
1523
1523
|
meta_data?: {
|
|
1524
|
-
id: number;
|
|
1525
1524
|
key: string;
|
|
1525
|
+
id: number;
|
|
1526
1526
|
value?: any;
|
|
1527
1527
|
}[] | undefined;
|
|
1528
1528
|
}>;
|
|
@@ -1545,29 +1545,29 @@ declare const categoryFilterSchema: z.ZodObject<{
|
|
|
1545
1545
|
}, "strip", z.ZodTypeAny, {
|
|
1546
1546
|
page: number;
|
|
1547
1547
|
per_page: number;
|
|
1548
|
-
exclude: number[];
|
|
1549
|
-
include: number[];
|
|
1550
|
-
product: number | null;
|
|
1551
1548
|
order: "asc" | "desc";
|
|
1552
|
-
orderby: "
|
|
1549
|
+
orderby: "id" | "name" | "description" | "slug" | "count" | "include" | "term_group";
|
|
1550
|
+
include: number[];
|
|
1551
|
+
exclude: number[];
|
|
1553
1552
|
hide_empty: boolean;
|
|
1553
|
+
product: number | null;
|
|
1554
1554
|
offset?: number | undefined;
|
|
1555
|
-
search?: string | undefined;
|
|
1556
1555
|
slug?: string | undefined;
|
|
1557
1556
|
parent?: number | undefined;
|
|
1557
|
+
search?: string | undefined;
|
|
1558
1558
|
}, {
|
|
1559
1559
|
page?: number | undefined;
|
|
1560
1560
|
per_page?: number | undefined;
|
|
1561
1561
|
offset?: number | undefined;
|
|
1562
|
+
order?: "asc" | "desc" | undefined;
|
|
1563
|
+
orderby?: "id" | "name" | "description" | "slug" | "count" | "include" | "term_group" | undefined;
|
|
1564
|
+
slug?: string | undefined;
|
|
1565
|
+
parent?: number | undefined;
|
|
1566
|
+
include?: number[] | undefined;
|
|
1562
1567
|
search?: string | undefined;
|
|
1563
1568
|
exclude?: number[] | undefined;
|
|
1564
|
-
include?: number[] | undefined;
|
|
1565
|
-
slug?: string | undefined;
|
|
1566
|
-
product?: number | null | undefined;
|
|
1567
|
-
order?: "asc" | "desc" | undefined;
|
|
1568
|
-
orderby?: "include" | "id" | "slug" | "name" | "term_group" | "description" | "count" | undefined;
|
|
1569
1569
|
hide_empty?: boolean | undefined;
|
|
1570
|
-
|
|
1570
|
+
product?: number | null | undefined;
|
|
1571
1571
|
}>;
|
|
1572
1572
|
type CategoryFilterParams = z.infer<typeof categoryFilterSchema>;
|
|
1573
1573
|
|
|
@@ -1611,12 +1611,12 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1611
1611
|
collection: {
|
|
1612
1612
|
href: string;
|
|
1613
1613
|
}[];
|
|
1614
|
-
|
|
1614
|
+
about?: {
|
|
1615
1615
|
href: string;
|
|
1616
|
-
embeddable?: boolean | undefined;
|
|
1617
1616
|
}[] | undefined;
|
|
1618
|
-
|
|
1617
|
+
author?: {
|
|
1619
1618
|
href: string;
|
|
1619
|
+
embeddable?: boolean | undefined;
|
|
1620
1620
|
}[] | undefined;
|
|
1621
1621
|
}, {
|
|
1622
1622
|
self: {
|
|
@@ -1625,12 +1625,12 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1625
1625
|
collection: {
|
|
1626
1626
|
href: string;
|
|
1627
1627
|
}[];
|
|
1628
|
-
|
|
1628
|
+
about?: {
|
|
1629
1629
|
href: string;
|
|
1630
|
-
embeddable?: boolean | undefined;
|
|
1631
1630
|
}[] | undefined;
|
|
1632
|
-
|
|
1631
|
+
author?: {
|
|
1633
1632
|
href: string;
|
|
1633
|
+
embeddable?: boolean | undefined;
|
|
1634
1634
|
}[] | undefined;
|
|
1635
1635
|
}>;
|
|
1636
1636
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1638,12 +1638,12 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1638
1638
|
key: z.ZodString;
|
|
1639
1639
|
value: z.ZodAny;
|
|
1640
1640
|
}, "strip", z.ZodTypeAny, {
|
|
1641
|
-
id: number;
|
|
1642
1641
|
key: string;
|
|
1642
|
+
id: number;
|
|
1643
1643
|
value?: any;
|
|
1644
1644
|
}, {
|
|
1645
|
-
id: number;
|
|
1646
1645
|
key: string;
|
|
1646
|
+
id: number;
|
|
1647
1647
|
value?: any;
|
|
1648
1648
|
}>, "many">>;
|
|
1649
1649
|
} & {
|
|
@@ -1663,26 +1663,36 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1663
1663
|
}, "strip", z.ZodTypeAny, {
|
|
1664
1664
|
id: number;
|
|
1665
1665
|
name: string;
|
|
1666
|
-
date_created: string;
|
|
1667
|
-
date_modified: string;
|
|
1668
1666
|
src: string;
|
|
1669
1667
|
alt: string;
|
|
1668
|
+
date_created: string;
|
|
1669
|
+
date_modified: string;
|
|
1670
1670
|
}, {
|
|
1671
1671
|
id: number;
|
|
1672
1672
|
name: string;
|
|
1673
|
-
date_created: string;
|
|
1674
|
-
date_modified: string;
|
|
1675
1673
|
src: string;
|
|
1676
1674
|
alt: string;
|
|
1675
|
+
date_created: string;
|
|
1676
|
+
date_modified: string;
|
|
1677
1677
|
}>>;
|
|
1678
1678
|
menu_order: z.ZodNumber;
|
|
1679
1679
|
count: z.ZodNumber;
|
|
1680
1680
|
}, "strip", z.ZodTypeAny, {
|
|
1681
1681
|
id: number;
|
|
1682
|
-
slug: string;
|
|
1683
|
-
menu_order: number;
|
|
1684
1682
|
name: string;
|
|
1685
1683
|
description: string;
|
|
1684
|
+
slug: string;
|
|
1685
|
+
parent: number;
|
|
1686
|
+
display: string;
|
|
1687
|
+
image: {
|
|
1688
|
+
id: number;
|
|
1689
|
+
name: string;
|
|
1690
|
+
src: string;
|
|
1691
|
+
alt: string;
|
|
1692
|
+
date_created: string;
|
|
1693
|
+
date_modified: string;
|
|
1694
|
+
} | null;
|
|
1695
|
+
menu_order: number;
|
|
1686
1696
|
count: number;
|
|
1687
1697
|
_links: {
|
|
1688
1698
|
self: {
|
|
@@ -1691,35 +1701,35 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1691
1701
|
collection: {
|
|
1692
1702
|
href: string;
|
|
1693
1703
|
}[];
|
|
1694
|
-
|
|
1704
|
+
about?: {
|
|
1695
1705
|
href: string;
|
|
1696
|
-
embeddable?: boolean | undefined;
|
|
1697
1706
|
}[] | undefined;
|
|
1698
|
-
|
|
1707
|
+
author?: {
|
|
1699
1708
|
href: string;
|
|
1709
|
+
embeddable?: boolean | undefined;
|
|
1700
1710
|
}[] | undefined;
|
|
1701
1711
|
};
|
|
1712
|
+
meta_data?: {
|
|
1713
|
+
key: string;
|
|
1714
|
+
id: number;
|
|
1715
|
+
value?: any;
|
|
1716
|
+
}[] | undefined;
|
|
1717
|
+
}, {
|
|
1718
|
+
id: number;
|
|
1719
|
+
name: string;
|
|
1720
|
+
description: string;
|
|
1721
|
+
slug: string;
|
|
1702
1722
|
parent: number;
|
|
1703
1723
|
display: string;
|
|
1704
1724
|
image: {
|
|
1705
1725
|
id: number;
|
|
1706
1726
|
name: string;
|
|
1707
|
-
date_created: string;
|
|
1708
|
-
date_modified: string;
|
|
1709
1727
|
src: string;
|
|
1710
1728
|
alt: string;
|
|
1729
|
+
date_created: string;
|
|
1730
|
+
date_modified: string;
|
|
1711
1731
|
} | null;
|
|
1712
|
-
meta_data?: {
|
|
1713
|
-
id: number;
|
|
1714
|
-
key: string;
|
|
1715
|
-
value?: any;
|
|
1716
|
-
}[] | undefined;
|
|
1717
|
-
}, {
|
|
1718
|
-
id: number;
|
|
1719
|
-
slug: string;
|
|
1720
1732
|
menu_order: number;
|
|
1721
|
-
name: string;
|
|
1722
|
-
description: string;
|
|
1723
1733
|
count: number;
|
|
1724
1734
|
_links: {
|
|
1725
1735
|
self: {
|
|
@@ -1728,27 +1738,17 @@ declare const productCategorySchema: z.ZodObject<{
|
|
|
1728
1738
|
collection: {
|
|
1729
1739
|
href: string;
|
|
1730
1740
|
}[];
|
|
1731
|
-
|
|
1741
|
+
about?: {
|
|
1732
1742
|
href: string;
|
|
1733
|
-
embeddable?: boolean | undefined;
|
|
1734
1743
|
}[] | undefined;
|
|
1735
|
-
|
|
1744
|
+
author?: {
|
|
1736
1745
|
href: string;
|
|
1746
|
+
embeddable?: boolean | undefined;
|
|
1737
1747
|
}[] | undefined;
|
|
1738
1748
|
};
|
|
1739
|
-
parent: number;
|
|
1740
|
-
display: string;
|
|
1741
|
-
image: {
|
|
1742
|
-
id: number;
|
|
1743
|
-
name: string;
|
|
1744
|
-
date_created: string;
|
|
1745
|
-
date_modified: string;
|
|
1746
|
-
src: string;
|
|
1747
|
-
alt: string;
|
|
1748
|
-
} | null;
|
|
1749
1749
|
meta_data?: {
|
|
1750
|
-
id: number;
|
|
1751
1750
|
key: string;
|
|
1751
|
+
id: number;
|
|
1752
1752
|
value?: any;
|
|
1753
1753
|
}[] | undefined;
|
|
1754
1754
|
}>;
|
|
@@ -1784,59 +1784,59 @@ declare const productFilterSchema: z.ZodObject<{
|
|
|
1784
1784
|
modified_before: z.ZodOptional<z.ZodString>;
|
|
1785
1785
|
dates_are_gmt: z.ZodDefault<z.ZodBoolean>;
|
|
1786
1786
|
}, "strip", z.ZodTypeAny, {
|
|
1787
|
+
status: "pending" | "any" | "draft" | "private" | "publish" | "future" | "trash";
|
|
1787
1788
|
page: number;
|
|
1788
1789
|
per_page: number;
|
|
1789
|
-
status: "pending" | "trash" | "any" | "future" | "draft" | "private" | "publish";
|
|
1790
|
-
exclude: number[];
|
|
1791
|
-
include: number[];
|
|
1792
1790
|
order: "asc" | "desc";
|
|
1793
|
-
orderby: "
|
|
1791
|
+
orderby: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "modified";
|
|
1792
|
+
include: number[];
|
|
1793
|
+
exclude: number[];
|
|
1794
1794
|
dates_are_gmt: boolean;
|
|
1795
|
+
type?: "simple" | "variable" | "grouped" | "external" | undefined;
|
|
1795
1796
|
offset?: number | undefined;
|
|
1796
|
-
type?: "simple" | "grouped" | "external" | "variable" | undefined;
|
|
1797
|
-
search?: string | undefined;
|
|
1798
1797
|
sku?: string | undefined;
|
|
1799
|
-
featured?: boolean | undefined;
|
|
1800
|
-
category?: string | undefined;
|
|
1801
|
-
tag?: string | undefined;
|
|
1802
|
-
shipping_class?: string | undefined;
|
|
1803
1798
|
attribute?: string | undefined;
|
|
1804
|
-
|
|
1805
|
-
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
1806
|
-
on_sale?: boolean | undefined;
|
|
1807
|
-
min_price?: string | undefined;
|
|
1808
|
-
max_price?: string | undefined;
|
|
1799
|
+
search?: string | undefined;
|
|
1809
1800
|
after?: string | undefined;
|
|
1810
1801
|
before?: string | undefined;
|
|
1811
1802
|
modified_after?: string | undefined;
|
|
1812
1803
|
modified_before?: string | undefined;
|
|
1804
|
+
featured?: boolean | undefined;
|
|
1805
|
+
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
1806
|
+
category?: string | undefined;
|
|
1807
|
+
tag?: string | undefined;
|
|
1808
|
+
min_price?: string | undefined;
|
|
1809
|
+
max_price?: string | undefined;
|
|
1810
|
+
on_sale?: boolean | undefined;
|
|
1811
|
+
shipping_class?: string | undefined;
|
|
1812
|
+
attribute_term?: string | undefined;
|
|
1813
1813
|
}, {
|
|
1814
|
+
type?: "simple" | "variable" | "grouped" | "external" | undefined;
|
|
1815
|
+
status?: "pending" | "any" | "draft" | "private" | "publish" | "future" | "trash" | undefined;
|
|
1814
1816
|
page?: number | undefined;
|
|
1815
1817
|
per_page?: number | undefined;
|
|
1816
1818
|
offset?: number | undefined;
|
|
1817
|
-
type?: "simple" | "grouped" | "external" | "variable" | undefined;
|
|
1818
|
-
status?: "pending" | "trash" | "any" | "future" | "draft" | "private" | "publish" | undefined;
|
|
1819
|
-
search?: string | undefined;
|
|
1820
|
-
exclude?: number[] | undefined;
|
|
1821
|
-
include?: number[] | undefined;
|
|
1822
1819
|
order?: "asc" | "desc" | undefined;
|
|
1823
|
-
orderby?: "
|
|
1820
|
+
orderby?: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "modified" | undefined;
|
|
1824
1821
|
sku?: string | undefined;
|
|
1825
|
-
featured?: boolean | undefined;
|
|
1826
|
-
category?: string | undefined;
|
|
1827
|
-
tag?: string | undefined;
|
|
1828
|
-
shipping_class?: string | undefined;
|
|
1829
1822
|
attribute?: string | undefined;
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
on_sale?: boolean | undefined;
|
|
1833
|
-
min_price?: string | undefined;
|
|
1834
|
-
max_price?: string | undefined;
|
|
1823
|
+
include?: number[] | undefined;
|
|
1824
|
+
search?: string | undefined;
|
|
1835
1825
|
after?: string | undefined;
|
|
1836
1826
|
before?: string | undefined;
|
|
1837
1827
|
modified_after?: string | undefined;
|
|
1838
1828
|
modified_before?: string | undefined;
|
|
1829
|
+
exclude?: number[] | undefined;
|
|
1830
|
+
featured?: boolean | undefined;
|
|
1831
|
+
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
1832
|
+
category?: string | undefined;
|
|
1833
|
+
tag?: string | undefined;
|
|
1834
|
+
min_price?: string | undefined;
|
|
1835
|
+
max_price?: string | undefined;
|
|
1836
|
+
on_sale?: boolean | undefined;
|
|
1839
1837
|
dates_are_gmt?: boolean | undefined;
|
|
1838
|
+
shipping_class?: string | undefined;
|
|
1839
|
+
attribute_term?: string | undefined;
|
|
1840
1840
|
}>;
|
|
1841
1841
|
type ProductFilterParams = z.infer<typeof productFilterSchema>;
|
|
1842
1842
|
|
|
@@ -1850,17 +1850,17 @@ declare const productImageSchema: z.ZodObject<{
|
|
|
1850
1850
|
}, "strip", z.ZodTypeAny, {
|
|
1851
1851
|
id: number;
|
|
1852
1852
|
name: string;
|
|
1853
|
-
date_created: string;
|
|
1854
|
-
date_modified: string;
|
|
1855
1853
|
src: string;
|
|
1856
1854
|
alt: string;
|
|
1855
|
+
date_created: string;
|
|
1856
|
+
date_modified: string;
|
|
1857
1857
|
}, {
|
|
1858
1858
|
id: number;
|
|
1859
1859
|
name: string;
|
|
1860
|
-
date_created: string;
|
|
1861
|
-
date_modified: string;
|
|
1862
1860
|
src: string;
|
|
1863
1861
|
alt: string;
|
|
1862
|
+
date_created: string;
|
|
1863
|
+
date_modified: string;
|
|
1864
1864
|
}>;
|
|
1865
1865
|
declare const productSchema: z.ZodObject<{
|
|
1866
1866
|
_links: z.ZodObject<{
|
|
@@ -1902,12 +1902,12 @@ declare const productSchema: z.ZodObject<{
|
|
|
1902
1902
|
collection: {
|
|
1903
1903
|
href: string;
|
|
1904
1904
|
}[];
|
|
1905
|
-
|
|
1905
|
+
about?: {
|
|
1906
1906
|
href: string;
|
|
1907
|
-
embeddable?: boolean | undefined;
|
|
1908
1907
|
}[] | undefined;
|
|
1909
|
-
|
|
1908
|
+
author?: {
|
|
1910
1909
|
href: string;
|
|
1910
|
+
embeddable?: boolean | undefined;
|
|
1911
1911
|
}[] | undefined;
|
|
1912
1912
|
}, {
|
|
1913
1913
|
self: {
|
|
@@ -1916,12 +1916,12 @@ declare const productSchema: z.ZodObject<{
|
|
|
1916
1916
|
collection: {
|
|
1917
1917
|
href: string;
|
|
1918
1918
|
}[];
|
|
1919
|
-
|
|
1919
|
+
about?: {
|
|
1920
1920
|
href: string;
|
|
1921
|
-
embeddable?: boolean | undefined;
|
|
1922
1921
|
}[] | undefined;
|
|
1923
|
-
|
|
1922
|
+
author?: {
|
|
1924
1923
|
href: string;
|
|
1924
|
+
embeddable?: boolean | undefined;
|
|
1925
1925
|
}[] | undefined;
|
|
1926
1926
|
}>;
|
|
1927
1927
|
} & {
|
|
@@ -1948,12 +1948,12 @@ declare const productSchema: z.ZodObject<{
|
|
|
1948
1948
|
slug: z.ZodString;
|
|
1949
1949
|
}, "strip", z.ZodTypeAny, {
|
|
1950
1950
|
id: number;
|
|
1951
|
-
slug: string;
|
|
1952
1951
|
name: string;
|
|
1952
|
+
slug: string;
|
|
1953
1953
|
}, {
|
|
1954
1954
|
id: number;
|
|
1955
|
-
slug: string;
|
|
1956
1955
|
name: string;
|
|
1956
|
+
slug: string;
|
|
1957
1957
|
}>, "many">;
|
|
1958
1958
|
images: z.ZodArray<z.ZodObject<{
|
|
1959
1959
|
id: z.ZodNumber;
|
|
@@ -1965,17 +1965,17 @@ declare const productSchema: z.ZodObject<{
|
|
|
1965
1965
|
}, "strip", z.ZodTypeAny, {
|
|
1966
1966
|
id: number;
|
|
1967
1967
|
name: string;
|
|
1968
|
-
date_created: string;
|
|
1969
|
-
date_modified: string;
|
|
1970
1968
|
src: string;
|
|
1971
1969
|
alt: string;
|
|
1970
|
+
date_created: string;
|
|
1971
|
+
date_modified: string;
|
|
1972
1972
|
}, {
|
|
1973
1973
|
id: number;
|
|
1974
1974
|
name: string;
|
|
1975
|
-
date_created: string;
|
|
1976
|
-
date_modified: string;
|
|
1977
1975
|
src: string;
|
|
1978
1976
|
alt: string;
|
|
1977
|
+
date_created: string;
|
|
1978
|
+
date_modified: string;
|
|
1979
1979
|
}>, "many">;
|
|
1980
1980
|
attributes: z.ZodArray<z.ZodObject<{
|
|
1981
1981
|
id: z.ZodNumber;
|
|
@@ -1987,29 +1987,29 @@ declare const productSchema: z.ZodObject<{
|
|
|
1987
1987
|
}, "strip", z.ZodTypeAny, {
|
|
1988
1988
|
options: string[];
|
|
1989
1989
|
id: number;
|
|
1990
|
-
visible: boolean;
|
|
1991
1990
|
name: string;
|
|
1992
|
-
position: number;
|
|
1993
1991
|
variation: boolean;
|
|
1992
|
+
visible: boolean;
|
|
1993
|
+
position: number;
|
|
1994
1994
|
}, {
|
|
1995
1995
|
options: string[];
|
|
1996
1996
|
id: number;
|
|
1997
|
-
visible: boolean;
|
|
1998
1997
|
name: string;
|
|
1999
|
-
position: number;
|
|
2000
1998
|
variation: boolean;
|
|
1999
|
+
visible: boolean;
|
|
2000
|
+
position: number;
|
|
2001
2001
|
}>, "many">;
|
|
2002
2002
|
meta_data: z.ZodArray<z.ZodObject<{
|
|
2003
2003
|
id: z.ZodNumber;
|
|
2004
2004
|
key: z.ZodString;
|
|
2005
2005
|
value: z.ZodAny;
|
|
2006
2006
|
}, "strip", z.ZodTypeAny, {
|
|
2007
|
-
id: number;
|
|
2008
2007
|
key: string;
|
|
2008
|
+
id: number;
|
|
2009
2009
|
value?: any;
|
|
2010
2010
|
}, {
|
|
2011
|
-
id: number;
|
|
2012
2011
|
key: string;
|
|
2012
|
+
id: number;
|
|
2013
2013
|
value?: any;
|
|
2014
2014
|
}>, "many">;
|
|
2015
2015
|
on_sale: z.ZodBoolean;
|
|
@@ -2017,15 +2017,47 @@ declare const productSchema: z.ZodObject<{
|
|
|
2017
2017
|
}, "strip", z.ZodTypeAny, {
|
|
2018
2018
|
type: string;
|
|
2019
2019
|
status: string;
|
|
2020
|
-
id: number;
|
|
2021
|
-
slug: string;
|
|
2022
2020
|
price: string;
|
|
2021
|
+
regular_price: string;
|
|
2022
|
+
sale_price: string;
|
|
2023
|
+
id: number;
|
|
2023
2024
|
name: string;
|
|
2025
|
+
short_description: string;
|
|
2024
2026
|
description: string;
|
|
2025
2027
|
sku: string;
|
|
2028
|
+
images: {
|
|
2029
|
+
id: number;
|
|
2030
|
+
name: string;
|
|
2031
|
+
src: string;
|
|
2032
|
+
alt: string;
|
|
2033
|
+
date_created: string;
|
|
2034
|
+
date_modified: string;
|
|
2035
|
+
}[];
|
|
2036
|
+
catalog_visibility: string;
|
|
2037
|
+
meta_data: {
|
|
2038
|
+
key: string;
|
|
2039
|
+
id: number;
|
|
2040
|
+
value?: any;
|
|
2041
|
+
}[];
|
|
2042
|
+
date_created: string;
|
|
2043
|
+
slug: string;
|
|
2044
|
+
date_modified: string;
|
|
2026
2045
|
featured: boolean;
|
|
2027
2046
|
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
2047
|
+
attributes: {
|
|
2048
|
+
options: string[];
|
|
2049
|
+
id: number;
|
|
2050
|
+
name: string;
|
|
2051
|
+
variation: boolean;
|
|
2052
|
+
visible: boolean;
|
|
2053
|
+
position: number;
|
|
2054
|
+
}[];
|
|
2028
2055
|
on_sale: boolean;
|
|
2056
|
+
categories: {
|
|
2057
|
+
id: number;
|
|
2058
|
+
name: string;
|
|
2059
|
+
slug: string;
|
|
2060
|
+
}[];
|
|
2029
2061
|
_links: {
|
|
2030
2062
|
self: {
|
|
2031
2063
|
href: string;
|
|
@@ -2033,60 +2065,60 @@ declare const productSchema: z.ZodObject<{
|
|
|
2033
2065
|
collection: {
|
|
2034
2066
|
href: string;
|
|
2035
2067
|
}[];
|
|
2036
|
-
|
|
2068
|
+
about?: {
|
|
2037
2069
|
href: string;
|
|
2038
|
-
embeddable?: boolean | undefined;
|
|
2039
2070
|
}[] | undefined;
|
|
2040
|
-
|
|
2071
|
+
author?: {
|
|
2041
2072
|
href: string;
|
|
2073
|
+
embeddable?: boolean | undefined;
|
|
2042
2074
|
}[] | undefined;
|
|
2043
2075
|
};
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
date_modified: string;
|
|
2051
|
-
catalog_visibility: string;
|
|
2052
|
-
short_description: string;
|
|
2076
|
+
stock_quantity: number | null;
|
|
2077
|
+
manufacturer?: string | undefined;
|
|
2078
|
+
}, {
|
|
2079
|
+
type: string;
|
|
2080
|
+
status: string;
|
|
2081
|
+
price: string;
|
|
2053
2082
|
regular_price: string;
|
|
2054
2083
|
sale_price: string;
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
}[];
|
|
2084
|
+
id: number;
|
|
2085
|
+
name: string;
|
|
2086
|
+
short_description: string;
|
|
2087
|
+
description: string;
|
|
2088
|
+
sku: string;
|
|
2061
2089
|
images: {
|
|
2062
2090
|
id: number;
|
|
2063
2091
|
name: string;
|
|
2064
|
-
date_created: string;
|
|
2065
|
-
date_modified: string;
|
|
2066
2092
|
src: string;
|
|
2067
2093
|
alt: string;
|
|
2094
|
+
date_created: string;
|
|
2095
|
+
date_modified: string;
|
|
2096
|
+
}[];
|
|
2097
|
+
catalog_visibility: string;
|
|
2098
|
+
meta_data: {
|
|
2099
|
+
key: string;
|
|
2100
|
+
id: number;
|
|
2101
|
+
value?: any;
|
|
2068
2102
|
}[];
|
|
2103
|
+
date_created: string;
|
|
2104
|
+
slug: string;
|
|
2105
|
+
date_modified: string;
|
|
2106
|
+
featured: boolean;
|
|
2107
|
+
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
2069
2108
|
attributes: {
|
|
2070
2109
|
options: string[];
|
|
2071
2110
|
id: number;
|
|
2072
|
-
visible: boolean;
|
|
2073
2111
|
name: string;
|
|
2074
|
-
position: number;
|
|
2075
2112
|
variation: boolean;
|
|
2113
|
+
visible: boolean;
|
|
2114
|
+
position: number;
|
|
2076
2115
|
}[];
|
|
2077
|
-
manufacturer?: string | undefined;
|
|
2078
|
-
}, {
|
|
2079
|
-
type: string;
|
|
2080
|
-
status: string;
|
|
2081
|
-
id: number;
|
|
2082
|
-
slug: string;
|
|
2083
|
-
price: string;
|
|
2084
|
-
name: string;
|
|
2085
|
-
description: string;
|
|
2086
|
-
sku: string;
|
|
2087
|
-
featured: boolean;
|
|
2088
|
-
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
2089
2116
|
on_sale: boolean;
|
|
2117
|
+
categories: {
|
|
2118
|
+
id: number;
|
|
2119
|
+
name: string;
|
|
2120
|
+
slug: string;
|
|
2121
|
+
}[];
|
|
2090
2122
|
_links: {
|
|
2091
2123
|
self: {
|
|
2092
2124
|
href: string;
|
|
@@ -2094,47 +2126,15 @@ declare const productSchema: z.ZodObject<{
|
|
|
2094
2126
|
collection: {
|
|
2095
2127
|
href: string;
|
|
2096
2128
|
}[];
|
|
2097
|
-
|
|
2129
|
+
about?: {
|
|
2098
2130
|
href: string;
|
|
2099
|
-
embeddable?: boolean | undefined;
|
|
2100
2131
|
}[] | undefined;
|
|
2101
|
-
|
|
2132
|
+
author?: {
|
|
2102
2133
|
href: string;
|
|
2134
|
+
embeddable?: boolean | undefined;
|
|
2103
2135
|
}[] | undefined;
|
|
2104
2136
|
};
|
|
2105
|
-
meta_data: {
|
|
2106
|
-
id: number;
|
|
2107
|
-
key: string;
|
|
2108
|
-
value?: any;
|
|
2109
|
-
}[];
|
|
2110
|
-
date_created: string;
|
|
2111
|
-
date_modified: string;
|
|
2112
|
-
catalog_visibility: string;
|
|
2113
|
-
short_description: string;
|
|
2114
|
-
regular_price: string;
|
|
2115
|
-
sale_price: string;
|
|
2116
2137
|
stock_quantity: number | null;
|
|
2117
|
-
categories: {
|
|
2118
|
-
id: number;
|
|
2119
|
-
slug: string;
|
|
2120
|
-
name: string;
|
|
2121
|
-
}[];
|
|
2122
|
-
images: {
|
|
2123
|
-
id: number;
|
|
2124
|
-
name: string;
|
|
2125
|
-
date_created: string;
|
|
2126
|
-
date_modified: string;
|
|
2127
|
-
src: string;
|
|
2128
|
-
alt: string;
|
|
2129
|
-
}[];
|
|
2130
|
-
attributes: {
|
|
2131
|
-
options: string[];
|
|
2132
|
-
id: number;
|
|
2133
|
-
visible: boolean;
|
|
2134
|
-
name: string;
|
|
2135
|
-
position: number;
|
|
2136
|
-
variation: boolean;
|
|
2137
|
-
}[];
|
|
2138
2138
|
manufacturer?: string | undefined;
|
|
2139
2139
|
}>;
|
|
2140
2140
|
type Product = z.infer<typeof productSchema>;
|
|
@@ -2145,6 +2145,19 @@ type Product = z.infer<typeof productSchema>;
|
|
|
2145
2145
|
declare const createCouponSchema: z.ZodObject<{
|
|
2146
2146
|
status: z.ZodString;
|
|
2147
2147
|
description: z.ZodString;
|
|
2148
|
+
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2149
|
+
id: z.ZodNumber;
|
|
2150
|
+
key: z.ZodString;
|
|
2151
|
+
value: z.ZodAny;
|
|
2152
|
+
}, "strip", z.ZodTypeAny, {
|
|
2153
|
+
key: string;
|
|
2154
|
+
id: number;
|
|
2155
|
+
value?: any;
|
|
2156
|
+
}, {
|
|
2157
|
+
key: string;
|
|
2158
|
+
id: number;
|
|
2159
|
+
value?: any;
|
|
2160
|
+
}>, "many">>;
|
|
2148
2161
|
_links: z.ZodObject<{
|
|
2149
2162
|
self: z.ZodArray<z.ZodObject<{
|
|
2150
2163
|
href: z.ZodString;
|
|
@@ -2184,12 +2197,12 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2184
2197
|
collection: {
|
|
2185
2198
|
href: string;
|
|
2186
2199
|
}[];
|
|
2187
|
-
|
|
2200
|
+
about?: {
|
|
2188
2201
|
href: string;
|
|
2189
|
-
embeddable?: boolean | undefined;
|
|
2190
2202
|
}[] | undefined;
|
|
2191
|
-
|
|
2203
|
+
author?: {
|
|
2192
2204
|
href: string;
|
|
2205
|
+
embeddable?: boolean | undefined;
|
|
2193
2206
|
}[] | undefined;
|
|
2194
2207
|
}, {
|
|
2195
2208
|
self: {
|
|
@@ -2198,27 +2211,14 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2198
2211
|
collection: {
|
|
2199
2212
|
href: string;
|
|
2200
2213
|
}[];
|
|
2201
|
-
author?: {
|
|
2202
|
-
href: string;
|
|
2203
|
-
embeddable?: boolean | undefined;
|
|
2204
|
-
}[] | undefined;
|
|
2205
2214
|
about?: {
|
|
2206
2215
|
href: string;
|
|
2207
2216
|
}[] | undefined;
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
}, "strip", z.ZodTypeAny, {
|
|
2214
|
-
id: number;
|
|
2215
|
-
key: string;
|
|
2216
|
-
value?: any;
|
|
2217
|
-
}, {
|
|
2218
|
-
id: number;
|
|
2219
|
-
key: string;
|
|
2220
|
-
value?: any;
|
|
2221
|
-
}>, "many">>;
|
|
2217
|
+
author?: {
|
|
2218
|
+
href: string;
|
|
2219
|
+
embeddable?: boolean | undefined;
|
|
2220
|
+
}[] | undefined;
|
|
2221
|
+
}>;
|
|
2222
2222
|
discount_type: z.ZodEnum<["percent", "fixed_cart", "fixed_product"]>;
|
|
2223
2223
|
date_expires: z.ZodNullable<z.ZodString>;
|
|
2224
2224
|
individual_use: z.ZodBoolean;
|
|
@@ -2248,12 +2248,12 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2248
2248
|
collection: {
|
|
2249
2249
|
href: string;
|
|
2250
2250
|
}[];
|
|
2251
|
-
|
|
2251
|
+
about?: {
|
|
2252
2252
|
href: string;
|
|
2253
|
-
embeddable?: boolean | undefined;
|
|
2254
2253
|
}[] | undefined;
|
|
2255
|
-
|
|
2254
|
+
author?: {
|
|
2256
2255
|
href: string;
|
|
2256
|
+
embeddable?: boolean | undefined;
|
|
2257
2257
|
}[] | undefined;
|
|
2258
2258
|
};
|
|
2259
2259
|
amount: string;
|
|
@@ -2273,8 +2273,8 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2273
2273
|
maximum_amount: string;
|
|
2274
2274
|
email_restrictions: string[];
|
|
2275
2275
|
meta_data?: {
|
|
2276
|
-
id: number;
|
|
2277
2276
|
key: string;
|
|
2277
|
+
id: number;
|
|
2278
2278
|
value?: any;
|
|
2279
2279
|
}[] | undefined;
|
|
2280
2280
|
}, {
|
|
@@ -2288,12 +2288,12 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2288
2288
|
collection: {
|
|
2289
2289
|
href: string;
|
|
2290
2290
|
}[];
|
|
2291
|
-
|
|
2291
|
+
about?: {
|
|
2292
2292
|
href: string;
|
|
2293
|
-
embeddable?: boolean | undefined;
|
|
2294
2293
|
}[] | undefined;
|
|
2295
|
-
|
|
2294
|
+
author?: {
|
|
2296
2295
|
href: string;
|
|
2296
|
+
embeddable?: boolean | undefined;
|
|
2297
2297
|
}[] | undefined;
|
|
2298
2298
|
};
|
|
2299
2299
|
amount: string;
|
|
@@ -2313,8 +2313,8 @@ declare const createCouponSchema: z.ZodObject<{
|
|
|
2313
2313
|
maximum_amount: string;
|
|
2314
2314
|
email_restrictions: string[];
|
|
2315
2315
|
meta_data?: {
|
|
2316
|
-
id: number;
|
|
2317
2316
|
key: string;
|
|
2317
|
+
id: number;
|
|
2318
2318
|
value?: any;
|
|
2319
2319
|
}[] | undefined;
|
|
2320
2320
|
}>;
|
|
@@ -2324,9 +2324,46 @@ type CreateCouponInput = z.infer<typeof createCouponSchema>;
|
|
|
2324
2324
|
* Schema for creating a product category - omits server-generated fields
|
|
2325
2325
|
*/
|
|
2326
2326
|
declare const createCategorySchema: z.ZodObject<{
|
|
2327
|
+
description: z.ZodString;
|
|
2328
|
+
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2329
|
+
id: z.ZodNumber;
|
|
2330
|
+
key: z.ZodString;
|
|
2331
|
+
value: z.ZodAny;
|
|
2332
|
+
}, "strip", z.ZodTypeAny, {
|
|
2333
|
+
key: string;
|
|
2334
|
+
id: number;
|
|
2335
|
+
value?: any;
|
|
2336
|
+
}, {
|
|
2337
|
+
key: string;
|
|
2338
|
+
id: number;
|
|
2339
|
+
value?: any;
|
|
2340
|
+
}>, "many">>;
|
|
2327
2341
|
slug: z.ZodString;
|
|
2342
|
+
parent: z.ZodNumber;
|
|
2343
|
+
display: z.ZodString;
|
|
2344
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
2345
|
+
id: z.ZodNumber;
|
|
2346
|
+
date_created: z.ZodString;
|
|
2347
|
+
date_modified: z.ZodString;
|
|
2348
|
+
src: z.ZodString;
|
|
2349
|
+
name: z.ZodString;
|
|
2350
|
+
alt: z.ZodString;
|
|
2351
|
+
}, "strip", z.ZodTypeAny, {
|
|
2352
|
+
id: number;
|
|
2353
|
+
name: string;
|
|
2354
|
+
src: string;
|
|
2355
|
+
alt: string;
|
|
2356
|
+
date_created: string;
|
|
2357
|
+
date_modified: string;
|
|
2358
|
+
}, {
|
|
2359
|
+
id: number;
|
|
2360
|
+
name: string;
|
|
2361
|
+
src: string;
|
|
2362
|
+
alt: string;
|
|
2363
|
+
date_created: string;
|
|
2364
|
+
date_modified: string;
|
|
2365
|
+
}>>;
|
|
2328
2366
|
menu_order: z.ZodNumber;
|
|
2329
|
-
description: z.ZodString;
|
|
2330
2367
|
_links: z.ZodObject<{
|
|
2331
2368
|
self: z.ZodArray<z.ZodObject<{
|
|
2332
2369
|
href: z.ZodString;
|
|
@@ -2366,12 +2403,12 @@ declare const createCategorySchema: z.ZodObject<{
|
|
|
2366
2403
|
collection: {
|
|
2367
2404
|
href: string;
|
|
2368
2405
|
}[];
|
|
2369
|
-
|
|
2406
|
+
about?: {
|
|
2370
2407
|
href: string;
|
|
2371
|
-
embeddable?: boolean | undefined;
|
|
2372
2408
|
}[] | undefined;
|
|
2373
|
-
|
|
2409
|
+
author?: {
|
|
2374
2410
|
href: string;
|
|
2411
|
+
embeddable?: boolean | undefined;
|
|
2375
2412
|
}[] | undefined;
|
|
2376
2413
|
}, {
|
|
2377
2414
|
self: {
|
|
@@ -2380,58 +2417,31 @@ declare const createCategorySchema: z.ZodObject<{
|
|
|
2380
2417
|
collection: {
|
|
2381
2418
|
href: string;
|
|
2382
2419
|
}[];
|
|
2383
|
-
|
|
2420
|
+
about?: {
|
|
2384
2421
|
href: string;
|
|
2385
|
-
embeddable?: boolean | undefined;
|
|
2386
2422
|
}[] | undefined;
|
|
2387
|
-
|
|
2423
|
+
author?: {
|
|
2388
2424
|
href: string;
|
|
2425
|
+
embeddable?: boolean | undefined;
|
|
2389
2426
|
}[] | undefined;
|
|
2390
2427
|
}>;
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
id: number;
|
|
2401
|
-
key: string;
|
|
2402
|
-
value?: any;
|
|
2403
|
-
}>, "many">>;
|
|
2404
|
-
parent: z.ZodNumber;
|
|
2405
|
-
display: z.ZodString;
|
|
2406
|
-
image: z.ZodNullable<z.ZodObject<{
|
|
2407
|
-
id: z.ZodNumber;
|
|
2408
|
-
date_created: z.ZodString;
|
|
2409
|
-
date_modified: z.ZodString;
|
|
2410
|
-
src: z.ZodString;
|
|
2411
|
-
name: z.ZodString;
|
|
2412
|
-
alt: z.ZodString;
|
|
2413
|
-
}, "strip", z.ZodTypeAny, {
|
|
2428
|
+
} & {
|
|
2429
|
+
name: z.ZodString;
|
|
2430
|
+
}, "strip", z.ZodTypeAny, {
|
|
2431
|
+
name: string;
|
|
2432
|
+
description: string;
|
|
2433
|
+
slug: string;
|
|
2434
|
+
parent: number;
|
|
2435
|
+
display: string;
|
|
2436
|
+
image: {
|
|
2414
2437
|
id: number;
|
|
2415
2438
|
name: string;
|
|
2416
|
-
date_created: string;
|
|
2417
|
-
date_modified: string;
|
|
2418
2439
|
src: string;
|
|
2419
2440
|
alt: string;
|
|
2420
|
-
}, {
|
|
2421
|
-
id: number;
|
|
2422
|
-
name: string;
|
|
2423
2441
|
date_created: string;
|
|
2424
2442
|
date_modified: string;
|
|
2425
|
-
|
|
2426
|
-
alt: string;
|
|
2427
|
-
}>>;
|
|
2428
|
-
} & {
|
|
2429
|
-
name: z.ZodString;
|
|
2430
|
-
}, "strip", z.ZodTypeAny, {
|
|
2431
|
-
slug: string;
|
|
2443
|
+
} | null;
|
|
2432
2444
|
menu_order: number;
|
|
2433
|
-
name: string;
|
|
2434
|
-
description: string;
|
|
2435
2445
|
_links: {
|
|
2436
2446
|
self: {
|
|
2437
2447
|
href: string;
|
|
@@ -2439,34 +2449,34 @@ declare const createCategorySchema: z.ZodObject<{
|
|
|
2439
2449
|
collection: {
|
|
2440
2450
|
href: string;
|
|
2441
2451
|
}[];
|
|
2442
|
-
|
|
2452
|
+
about?: {
|
|
2443
2453
|
href: string;
|
|
2444
|
-
embeddable?: boolean | undefined;
|
|
2445
2454
|
}[] | undefined;
|
|
2446
|
-
|
|
2455
|
+
author?: {
|
|
2447
2456
|
href: string;
|
|
2457
|
+
embeddable?: boolean | undefined;
|
|
2448
2458
|
}[] | undefined;
|
|
2449
2459
|
};
|
|
2460
|
+
meta_data?: {
|
|
2461
|
+
key: string;
|
|
2462
|
+
id: number;
|
|
2463
|
+
value?: any;
|
|
2464
|
+
}[] | undefined;
|
|
2465
|
+
}, {
|
|
2466
|
+
name: string;
|
|
2467
|
+
description: string;
|
|
2468
|
+
slug: string;
|
|
2450
2469
|
parent: number;
|
|
2451
2470
|
display: string;
|
|
2452
2471
|
image: {
|
|
2453
2472
|
id: number;
|
|
2454
2473
|
name: string;
|
|
2455
|
-
date_created: string;
|
|
2456
|
-
date_modified: string;
|
|
2457
2474
|
src: string;
|
|
2458
2475
|
alt: string;
|
|
2476
|
+
date_created: string;
|
|
2477
|
+
date_modified: string;
|
|
2459
2478
|
} | null;
|
|
2460
|
-
meta_data?: {
|
|
2461
|
-
id: number;
|
|
2462
|
-
key: string;
|
|
2463
|
-
value?: any;
|
|
2464
|
-
}[] | undefined;
|
|
2465
|
-
}, {
|
|
2466
|
-
slug: string;
|
|
2467
2479
|
menu_order: number;
|
|
2468
|
-
name: string;
|
|
2469
|
-
description: string;
|
|
2470
2480
|
_links: {
|
|
2471
2481
|
self: {
|
|
2472
2482
|
href: string;
|
|
@@ -2474,27 +2484,17 @@ declare const createCategorySchema: z.ZodObject<{
|
|
|
2474
2484
|
collection: {
|
|
2475
2485
|
href: string;
|
|
2476
2486
|
}[];
|
|
2477
|
-
|
|
2487
|
+
about?: {
|
|
2478
2488
|
href: string;
|
|
2479
|
-
embeddable?: boolean | undefined;
|
|
2480
2489
|
}[] | undefined;
|
|
2481
|
-
|
|
2490
|
+
author?: {
|
|
2482
2491
|
href: string;
|
|
2492
|
+
embeddable?: boolean | undefined;
|
|
2483
2493
|
}[] | undefined;
|
|
2484
2494
|
};
|
|
2485
|
-
parent: number;
|
|
2486
|
-
display: string;
|
|
2487
|
-
image: {
|
|
2488
|
-
id: number;
|
|
2489
|
-
name: string;
|
|
2490
|
-
date_created: string;
|
|
2491
|
-
date_modified: string;
|
|
2492
|
-
src: string;
|
|
2493
|
-
alt: string;
|
|
2494
|
-
} | null;
|
|
2495
2495
|
meta_data?: {
|
|
2496
|
-
id: number;
|
|
2497
2496
|
key: string;
|
|
2497
|
+
id: number;
|
|
2498
2498
|
value?: any;
|
|
2499
2499
|
}[] | undefined;
|
|
2500
2500
|
}>;
|
|
@@ -2518,13 +2518,13 @@ declare const baseFilteringSchema: z.ZodObject<{
|
|
|
2518
2518
|
exclude: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
2519
2519
|
include: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
2520
2520
|
}, "strip", z.ZodTypeAny, {
|
|
2521
|
-
exclude: number[];
|
|
2522
2521
|
include: number[];
|
|
2522
|
+
exclude: number[];
|
|
2523
2523
|
search?: string | undefined;
|
|
2524
2524
|
}, {
|
|
2525
|
+
include?: number[] | undefined;
|
|
2525
2526
|
search?: string | undefined;
|
|
2526
2527
|
exclude?: number[] | undefined;
|
|
2527
|
-
include?: number[] | undefined;
|
|
2528
2528
|
}>;
|
|
2529
2529
|
|
|
2530
2530
|
declare const wcSortingSchema: z.ZodObject<{
|
|
@@ -2561,12 +2561,12 @@ declare const wcMetaDataSchema: z.ZodObject<{
|
|
|
2561
2561
|
key: z.ZodString;
|
|
2562
2562
|
value: z.ZodAny;
|
|
2563
2563
|
}, "strip", z.ZodTypeAny, {
|
|
2564
|
-
id: number;
|
|
2565
2564
|
key: string;
|
|
2565
|
+
id: number;
|
|
2566
2566
|
value?: any;
|
|
2567
2567
|
}, {
|
|
2568
|
-
id: number;
|
|
2569
2568
|
key: string;
|
|
2569
|
+
id: number;
|
|
2570
2570
|
value?: any;
|
|
2571
2571
|
}>;
|
|
2572
2572
|
declare const wcAddressSchema: z.ZodObject<{
|
|
@@ -2618,21 +2618,21 @@ declare const wcBaseParamsSchema: z.ZodObject<{
|
|
|
2618
2618
|
}, "strip", z.ZodTypeAny, {
|
|
2619
2619
|
page: number;
|
|
2620
2620
|
per_page: number;
|
|
2621
|
-
exclude: number[];
|
|
2622
|
-
include: number[];
|
|
2623
2621
|
order: "asc" | "desc";
|
|
2622
|
+
include: number[];
|
|
2623
|
+
exclude: number[];
|
|
2624
2624
|
offset?: number | undefined;
|
|
2625
|
-
search?: string | undefined;
|
|
2626
2625
|
orderby?: string | undefined;
|
|
2626
|
+
search?: string | undefined;
|
|
2627
2627
|
}, {
|
|
2628
2628
|
page?: number | undefined;
|
|
2629
2629
|
per_page?: number | undefined;
|
|
2630
2630
|
offset?: number | undefined;
|
|
2631
|
-
search?: string | undefined;
|
|
2632
|
-
exclude?: number[] | undefined;
|
|
2633
|
-
include?: number[] | undefined;
|
|
2634
2631
|
order?: "asc" | "desc" | undefined;
|
|
2635
2632
|
orderby?: string | undefined;
|
|
2633
|
+
include?: number[] | undefined;
|
|
2634
|
+
search?: string | undefined;
|
|
2635
|
+
exclude?: number[] | undefined;
|
|
2636
2636
|
}>;
|
|
2637
2637
|
declare const wcBaseResponseSchema: z.ZodObject<{
|
|
2638
2638
|
_links: z.ZodObject<{
|
|
@@ -2674,12 +2674,12 @@ declare const wcBaseResponseSchema: z.ZodObject<{
|
|
|
2674
2674
|
collection: {
|
|
2675
2675
|
href: string;
|
|
2676
2676
|
}[];
|
|
2677
|
-
|
|
2677
|
+
about?: {
|
|
2678
2678
|
href: string;
|
|
2679
|
-
embeddable?: boolean | undefined;
|
|
2680
2679
|
}[] | undefined;
|
|
2681
|
-
|
|
2680
|
+
author?: {
|
|
2682
2681
|
href: string;
|
|
2682
|
+
embeddable?: boolean | undefined;
|
|
2683
2683
|
}[] | undefined;
|
|
2684
2684
|
}, {
|
|
2685
2685
|
self: {
|
|
@@ -2688,12 +2688,12 @@ declare const wcBaseResponseSchema: z.ZodObject<{
|
|
|
2688
2688
|
collection: {
|
|
2689
2689
|
href: string;
|
|
2690
2690
|
}[];
|
|
2691
|
-
|
|
2691
|
+
about?: {
|
|
2692
2692
|
href: string;
|
|
2693
|
-
embeddable?: boolean | undefined;
|
|
2694
2693
|
}[] | undefined;
|
|
2695
|
-
|
|
2694
|
+
author?: {
|
|
2696
2695
|
href: string;
|
|
2696
|
+
embeddable?: boolean | undefined;
|
|
2697
2697
|
}[] | undefined;
|
|
2698
2698
|
}>;
|
|
2699
2699
|
meta_data: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2701,12 +2701,12 @@ declare const wcBaseResponseSchema: z.ZodObject<{
|
|
|
2701
2701
|
key: z.ZodString;
|
|
2702
2702
|
value: z.ZodAny;
|
|
2703
2703
|
}, "strip", z.ZodTypeAny, {
|
|
2704
|
-
id: number;
|
|
2705
2704
|
key: string;
|
|
2705
|
+
id: number;
|
|
2706
2706
|
value?: any;
|
|
2707
2707
|
}, {
|
|
2708
|
-
id: number;
|
|
2709
2708
|
key: string;
|
|
2709
|
+
id: number;
|
|
2710
2710
|
value?: any;
|
|
2711
2711
|
}>, "many">>;
|
|
2712
2712
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2717,17 +2717,17 @@ declare const wcBaseResponseSchema: z.ZodObject<{
|
|
|
2717
2717
|
collection: {
|
|
2718
2718
|
href: string;
|
|
2719
2719
|
}[];
|
|
2720
|
-
|
|
2720
|
+
about?: {
|
|
2721
2721
|
href: string;
|
|
2722
|
-
embeddable?: boolean | undefined;
|
|
2723
2722
|
}[] | undefined;
|
|
2724
|
-
|
|
2723
|
+
author?: {
|
|
2725
2724
|
href: string;
|
|
2725
|
+
embeddable?: boolean | undefined;
|
|
2726
2726
|
}[] | undefined;
|
|
2727
2727
|
};
|
|
2728
2728
|
meta_data?: {
|
|
2729
|
-
id: number;
|
|
2730
2729
|
key: string;
|
|
2730
|
+
id: number;
|
|
2731
2731
|
value?: any;
|
|
2732
2732
|
}[] | undefined;
|
|
2733
2733
|
}, {
|
|
@@ -2738,17 +2738,17 @@ declare const wcBaseResponseSchema: z.ZodObject<{
|
|
|
2738
2738
|
collection: {
|
|
2739
2739
|
href: string;
|
|
2740
2740
|
}[];
|
|
2741
|
-
|
|
2741
|
+
about?: {
|
|
2742
2742
|
href: string;
|
|
2743
|
-
embeddable?: boolean | undefined;
|
|
2744
2743
|
}[] | undefined;
|
|
2745
|
-
|
|
2744
|
+
author?: {
|
|
2746
2745
|
href: string;
|
|
2746
|
+
embeddable?: boolean | undefined;
|
|
2747
2747
|
}[] | undefined;
|
|
2748
2748
|
};
|
|
2749
2749
|
meta_data?: {
|
|
2750
|
-
id: number;
|
|
2751
2750
|
key: string;
|
|
2751
|
+
id: number;
|
|
2752
2752
|
value?: any;
|
|
2753
2753
|
}[] | undefined;
|
|
2754
2754
|
}>;
|
|
@@ -2825,29 +2825,29 @@ declare const createPaginatedSchema: <T extends z.ZodType<any>>(schema: T) => z.
|
|
|
2825
2825
|
perPage: number;
|
|
2826
2826
|
}>;
|
|
2827
2827
|
}, "strip", z.ZodTypeAny, {
|
|
2828
|
-
data: T["_output"][];
|
|
2829
2828
|
meta: {
|
|
2830
2829
|
total: number;
|
|
2831
2830
|
totalPages: number;
|
|
2832
2831
|
currentPage: number;
|
|
2833
2832
|
perPage: number;
|
|
2834
2833
|
};
|
|
2834
|
+
data: T["_output"][];
|
|
2835
2835
|
}, {
|
|
2836
|
-
data: T["_input"][];
|
|
2837
2836
|
meta: {
|
|
2838
2837
|
total: number;
|
|
2839
2838
|
totalPages: number;
|
|
2840
2839
|
currentPage: number;
|
|
2841
2840
|
perPage: number;
|
|
2842
2841
|
};
|
|
2842
|
+
data: T["_input"][];
|
|
2843
2843
|
}>;
|
|
2844
2844
|
|
|
2845
2845
|
declare const wpStatusSchema: z.ZodObject<{
|
|
2846
2846
|
status: z.ZodOptional<z.ZodEnum<["publish", "future", "draft", "pending", "private"]>>;
|
|
2847
2847
|
}, "strip", z.ZodTypeAny, {
|
|
2848
|
-
status?: "pending" | "
|
|
2848
|
+
status?: "pending" | "draft" | "private" | "publish" | "future" | undefined;
|
|
2849
2849
|
}, {
|
|
2850
|
-
status?: "pending" | "
|
|
2850
|
+
status?: "pending" | "draft" | "private" | "publish" | "future" | undefined;
|
|
2851
2851
|
}>;
|
|
2852
2852
|
declare const wpPaginationHeadersSchema: z.ZodObject<{
|
|
2853
2853
|
'x-wp-total': z.ZodEffects<z.ZodString, number, string>;
|
|
@@ -2870,8 +2870,8 @@ declare const wpBaseParamsSchema: z.ZodObject<{
|
|
|
2870
2870
|
}, "strip", z.ZodTypeAny, {
|
|
2871
2871
|
page: number;
|
|
2872
2872
|
per_page: number;
|
|
2873
|
-
exclude: number[];
|
|
2874
2873
|
include: number[];
|
|
2874
|
+
exclude: number[];
|
|
2875
2875
|
context: "view" | "edit";
|
|
2876
2876
|
offset?: number | undefined;
|
|
2877
2877
|
search?: string | undefined;
|
|
@@ -2879,9 +2879,9 @@ declare const wpBaseParamsSchema: z.ZodObject<{
|
|
|
2879
2879
|
page?: number | undefined;
|
|
2880
2880
|
per_page?: number | undefined;
|
|
2881
2881
|
offset?: number | undefined;
|
|
2882
|
+
include?: number[] | undefined;
|
|
2882
2883
|
search?: string | undefined;
|
|
2883
2884
|
exclude?: number[] | undefined;
|
|
2884
|
-
include?: number[] | undefined;
|
|
2885
2885
|
context?: "view" | "edit" | undefined;
|
|
2886
2886
|
}>;
|
|
2887
2887
|
declare const wpLinksSchema: z.ZodObject<{
|
|
@@ -2923,12 +2923,12 @@ declare const wpLinksSchema: z.ZodObject<{
|
|
|
2923
2923
|
collection: {
|
|
2924
2924
|
href: string;
|
|
2925
2925
|
}[];
|
|
2926
|
-
|
|
2926
|
+
about?: {
|
|
2927
2927
|
href: string;
|
|
2928
|
-
embeddable?: boolean | undefined;
|
|
2929
2928
|
}[] | undefined;
|
|
2930
|
-
|
|
2929
|
+
author?: {
|
|
2931
2930
|
href: string;
|
|
2931
|
+
embeddable?: boolean | undefined;
|
|
2932
2932
|
}[] | undefined;
|
|
2933
2933
|
}, {
|
|
2934
2934
|
self: {
|
|
@@ -2937,12 +2937,12 @@ declare const wpLinksSchema: z.ZodObject<{
|
|
|
2937
2937
|
collection: {
|
|
2938
2938
|
href: string;
|
|
2939
2939
|
}[];
|
|
2940
|
-
|
|
2940
|
+
about?: {
|
|
2941
2941
|
href: string;
|
|
2942
|
-
embeddable?: boolean | undefined;
|
|
2943
2942
|
}[] | undefined;
|
|
2944
|
-
|
|
2943
|
+
author?: {
|
|
2945
2944
|
href: string;
|
|
2945
|
+
embeddable?: boolean | undefined;
|
|
2946
2946
|
}[] | undefined;
|
|
2947
2947
|
}>;
|
|
2948
2948
|
type WPPaginationHeaders = z.infer<typeof wpPaginationHeadersSchema>;
|
|
@@ -3156,59 +3156,59 @@ declare const schemas: {
|
|
|
3156
3156
|
modified_before: zod.ZodOptional<zod.ZodString>;
|
|
3157
3157
|
dates_are_gmt: zod.ZodDefault<zod.ZodBoolean>;
|
|
3158
3158
|
}, "strip", zod.ZodTypeAny, {
|
|
3159
|
+
status: "pending" | "any" | "draft" | "private" | "publish" | "future" | "trash";
|
|
3159
3160
|
page: number;
|
|
3160
3161
|
per_page: number;
|
|
3161
|
-
status: "pending" | "trash" | "any" | "future" | "draft" | "private" | "publish";
|
|
3162
|
-
exclude: number[];
|
|
3163
|
-
include: number[];
|
|
3164
3162
|
order: "asc" | "desc";
|
|
3165
|
-
orderby: "
|
|
3163
|
+
orderby: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "modified";
|
|
3164
|
+
include: number[];
|
|
3165
|
+
exclude: number[];
|
|
3166
3166
|
dates_are_gmt: boolean;
|
|
3167
|
+
type?: "simple" | "variable" | "grouped" | "external" | undefined;
|
|
3167
3168
|
offset?: number | undefined;
|
|
3168
|
-
type?: "simple" | "grouped" | "external" | "variable" | undefined;
|
|
3169
|
-
search?: string | undefined;
|
|
3170
3169
|
sku?: string | undefined;
|
|
3171
|
-
featured?: boolean | undefined;
|
|
3172
|
-
category?: string | undefined;
|
|
3173
|
-
tag?: string | undefined;
|
|
3174
|
-
shipping_class?: string | undefined;
|
|
3175
3170
|
attribute?: string | undefined;
|
|
3176
|
-
|
|
3177
|
-
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
3178
|
-
on_sale?: boolean | undefined;
|
|
3179
|
-
min_price?: string | undefined;
|
|
3180
|
-
max_price?: string | undefined;
|
|
3171
|
+
search?: string | undefined;
|
|
3181
3172
|
after?: string | undefined;
|
|
3182
3173
|
before?: string | undefined;
|
|
3183
3174
|
modified_after?: string | undefined;
|
|
3184
3175
|
modified_before?: string | undefined;
|
|
3176
|
+
featured?: boolean | undefined;
|
|
3177
|
+
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
3178
|
+
category?: string | undefined;
|
|
3179
|
+
tag?: string | undefined;
|
|
3180
|
+
min_price?: string | undefined;
|
|
3181
|
+
max_price?: string | undefined;
|
|
3182
|
+
on_sale?: boolean | undefined;
|
|
3183
|
+
shipping_class?: string | undefined;
|
|
3184
|
+
attribute_term?: string | undefined;
|
|
3185
3185
|
}, {
|
|
3186
|
+
type?: "simple" | "variable" | "grouped" | "external" | undefined;
|
|
3187
|
+
status?: "pending" | "any" | "draft" | "private" | "publish" | "future" | "trash" | undefined;
|
|
3186
3188
|
page?: number | undefined;
|
|
3187
3189
|
per_page?: number | undefined;
|
|
3188
3190
|
offset?: number | undefined;
|
|
3189
|
-
type?: "simple" | "grouped" | "external" | "variable" | undefined;
|
|
3190
|
-
status?: "pending" | "trash" | "any" | "future" | "draft" | "private" | "publish" | undefined;
|
|
3191
|
-
search?: string | undefined;
|
|
3192
|
-
exclude?: number[] | undefined;
|
|
3193
|
-
include?: number[] | undefined;
|
|
3194
3191
|
order?: "asc" | "desc" | undefined;
|
|
3195
|
-
orderby?: "
|
|
3192
|
+
orderby?: "price" | "id" | "date" | "slug" | "menu_order" | "include" | "title" | "popularity" | "rating" | "modified" | undefined;
|
|
3196
3193
|
sku?: string | undefined;
|
|
3197
|
-
featured?: boolean | undefined;
|
|
3198
|
-
category?: string | undefined;
|
|
3199
|
-
tag?: string | undefined;
|
|
3200
|
-
shipping_class?: string | undefined;
|
|
3201
3194
|
attribute?: string | undefined;
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
on_sale?: boolean | undefined;
|
|
3205
|
-
min_price?: string | undefined;
|
|
3206
|
-
max_price?: string | undefined;
|
|
3195
|
+
include?: number[] | undefined;
|
|
3196
|
+
search?: string | undefined;
|
|
3207
3197
|
after?: string | undefined;
|
|
3208
3198
|
before?: string | undefined;
|
|
3209
3199
|
modified_after?: string | undefined;
|
|
3210
3200
|
modified_before?: string | undefined;
|
|
3201
|
+
exclude?: number[] | undefined;
|
|
3202
|
+
featured?: boolean | undefined;
|
|
3203
|
+
stock_status?: "instock" | "outofstock" | "onbackorder" | undefined;
|
|
3204
|
+
category?: string | undefined;
|
|
3205
|
+
tag?: string | undefined;
|
|
3206
|
+
min_price?: string | undefined;
|
|
3207
|
+
max_price?: string | undefined;
|
|
3208
|
+
on_sale?: boolean | undefined;
|
|
3211
3209
|
dates_are_gmt?: boolean | undefined;
|
|
3210
|
+
shipping_class?: string | undefined;
|
|
3211
|
+
attribute_term?: string | undefined;
|
|
3212
3212
|
}>;
|
|
3213
3213
|
readonly entity: zod.ZodObject<{
|
|
3214
3214
|
_links: zod.ZodObject<{
|
|
@@ -3250,12 +3250,12 @@ declare const schemas: {
|
|
|
3250
3250
|
collection: {
|
|
3251
3251
|
href: string;
|
|
3252
3252
|
}[];
|
|
3253
|
-
|
|
3253
|
+
about?: {
|
|
3254
3254
|
href: string;
|
|
3255
|
-
embeddable?: boolean | undefined;
|
|
3256
3255
|
}[] | undefined;
|
|
3257
|
-
|
|
3256
|
+
author?: {
|
|
3258
3257
|
href: string;
|
|
3258
|
+
embeddable?: boolean | undefined;
|
|
3259
3259
|
}[] | undefined;
|
|
3260
3260
|
}, {
|
|
3261
3261
|
self: {
|
|
@@ -3264,12 +3264,12 @@ declare const schemas: {
|
|
|
3264
3264
|
collection: {
|
|
3265
3265
|
href: string;
|
|
3266
3266
|
}[];
|
|
3267
|
-
|
|
3267
|
+
about?: {
|
|
3268
3268
|
href: string;
|
|
3269
|
-
embeddable?: boolean | undefined;
|
|
3270
3269
|
}[] | undefined;
|
|
3271
|
-
|
|
3270
|
+
author?: {
|
|
3272
3271
|
href: string;
|
|
3272
|
+
embeddable?: boolean | undefined;
|
|
3273
3273
|
}[] | undefined;
|
|
3274
3274
|
}>;
|
|
3275
3275
|
} & {
|
|
@@ -3296,12 +3296,12 @@ declare const schemas: {
|
|
|
3296
3296
|
slug: zod.ZodString;
|
|
3297
3297
|
}, "strip", zod.ZodTypeAny, {
|
|
3298
3298
|
id: number;
|
|
3299
|
-
slug: string;
|
|
3300
3299
|
name: string;
|
|
3300
|
+
slug: string;
|
|
3301
3301
|
}, {
|
|
3302
3302
|
id: number;
|
|
3303
|
-
slug: string;
|
|
3304
3303
|
name: string;
|
|
3304
|
+
slug: string;
|
|
3305
3305
|
}>, "many">;
|
|
3306
3306
|
images: zod.ZodArray<zod.ZodObject<{
|
|
3307
3307
|
id: zod.ZodNumber;
|
|
@@ -3313,17 +3313,17 @@ declare const schemas: {
|
|
|
3313
3313
|
}, "strip", zod.ZodTypeAny, {
|
|
3314
3314
|
id: number;
|
|
3315
3315
|
name: string;
|
|
3316
|
-
date_created: string;
|
|
3317
|
-
date_modified: string;
|
|
3318
3316
|
src: string;
|
|
3319
3317
|
alt: string;
|
|
3318
|
+
date_created: string;
|
|
3319
|
+
date_modified: string;
|
|
3320
3320
|
}, {
|
|
3321
3321
|
id: number;
|
|
3322
3322
|
name: string;
|
|
3323
|
-
date_created: string;
|
|
3324
|
-
date_modified: string;
|
|
3325
3323
|
src: string;
|
|
3326
3324
|
alt: string;
|
|
3325
|
+
date_created: string;
|
|
3326
|
+
date_modified: string;
|
|
3327
3327
|
}>, "many">;
|
|
3328
3328
|
attributes: zod.ZodArray<zod.ZodObject<{
|
|
3329
3329
|
id: zod.ZodNumber;
|
|
@@ -3335,29 +3335,29 @@ declare const schemas: {
|
|
|
3335
3335
|
}, "strip", zod.ZodTypeAny, {
|
|
3336
3336
|
options: string[];
|
|
3337
3337
|
id: number;
|
|
3338
|
-
visible: boolean;
|
|
3339
3338
|
name: string;
|
|
3340
|
-
position: number;
|
|
3341
3339
|
variation: boolean;
|
|
3340
|
+
visible: boolean;
|
|
3341
|
+
position: number;
|
|
3342
3342
|
}, {
|
|
3343
3343
|
options: string[];
|
|
3344
3344
|
id: number;
|
|
3345
|
-
visible: boolean;
|
|
3346
3345
|
name: string;
|
|
3347
|
-
position: number;
|
|
3348
3346
|
variation: boolean;
|
|
3347
|
+
visible: boolean;
|
|
3348
|
+
position: number;
|
|
3349
3349
|
}>, "many">;
|
|
3350
3350
|
meta_data: zod.ZodArray<zod.ZodObject<{
|
|
3351
3351
|
id: zod.ZodNumber;
|
|
3352
3352
|
key: zod.ZodString;
|
|
3353
3353
|
value: zod.ZodAny;
|
|
3354
3354
|
}, "strip", zod.ZodTypeAny, {
|
|
3355
|
-
id: number;
|
|
3356
3355
|
key: string;
|
|
3356
|
+
id: number;
|
|
3357
3357
|
value?: any;
|
|
3358
3358
|
}, {
|
|
3359
|
-
id: number;
|
|
3360
3359
|
key: string;
|
|
3360
|
+
id: number;
|
|
3361
3361
|
value?: any;
|
|
3362
3362
|
}>, "many">;
|
|
3363
3363
|
on_sale: zod.ZodBoolean;
|
|
@@ -3365,15 +3365,47 @@ declare const schemas: {
|
|
|
3365
3365
|
}, "strip", zod.ZodTypeAny, {
|
|
3366
3366
|
type: string;
|
|
3367
3367
|
status: string;
|
|
3368
|
-
id: number;
|
|
3369
|
-
slug: string;
|
|
3370
3368
|
price: string;
|
|
3369
|
+
regular_price: string;
|
|
3370
|
+
sale_price: string;
|
|
3371
|
+
id: number;
|
|
3371
3372
|
name: string;
|
|
3373
|
+
short_description: string;
|
|
3372
3374
|
description: string;
|
|
3373
3375
|
sku: string;
|
|
3376
|
+
images: {
|
|
3377
|
+
id: number;
|
|
3378
|
+
name: string;
|
|
3379
|
+
src: string;
|
|
3380
|
+
alt: string;
|
|
3381
|
+
date_created: string;
|
|
3382
|
+
date_modified: string;
|
|
3383
|
+
}[];
|
|
3384
|
+
catalog_visibility: string;
|
|
3385
|
+
meta_data: {
|
|
3386
|
+
key: string;
|
|
3387
|
+
id: number;
|
|
3388
|
+
value?: any;
|
|
3389
|
+
}[];
|
|
3390
|
+
date_created: string;
|
|
3391
|
+
slug: string;
|
|
3392
|
+
date_modified: string;
|
|
3374
3393
|
featured: boolean;
|
|
3375
3394
|
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
3395
|
+
attributes: {
|
|
3396
|
+
options: string[];
|
|
3397
|
+
id: number;
|
|
3398
|
+
name: string;
|
|
3399
|
+
variation: boolean;
|
|
3400
|
+
visible: boolean;
|
|
3401
|
+
position: number;
|
|
3402
|
+
}[];
|
|
3376
3403
|
on_sale: boolean;
|
|
3404
|
+
categories: {
|
|
3405
|
+
id: number;
|
|
3406
|
+
name: string;
|
|
3407
|
+
slug: string;
|
|
3408
|
+
}[];
|
|
3377
3409
|
_links: {
|
|
3378
3410
|
self: {
|
|
3379
3411
|
href: string;
|
|
@@ -3381,60 +3413,60 @@ declare const schemas: {
|
|
|
3381
3413
|
collection: {
|
|
3382
3414
|
href: string;
|
|
3383
3415
|
}[];
|
|
3384
|
-
|
|
3416
|
+
about?: {
|
|
3385
3417
|
href: string;
|
|
3386
|
-
embeddable?: boolean | undefined;
|
|
3387
3418
|
}[] | undefined;
|
|
3388
|
-
|
|
3419
|
+
author?: {
|
|
3389
3420
|
href: string;
|
|
3421
|
+
embeddable?: boolean | undefined;
|
|
3390
3422
|
}[] | undefined;
|
|
3391
3423
|
};
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
date_modified: string;
|
|
3399
|
-
catalog_visibility: string;
|
|
3400
|
-
short_description: string;
|
|
3424
|
+
stock_quantity: number | null;
|
|
3425
|
+
manufacturer?: string | undefined;
|
|
3426
|
+
}, {
|
|
3427
|
+
type: string;
|
|
3428
|
+
status: string;
|
|
3429
|
+
price: string;
|
|
3401
3430
|
regular_price: string;
|
|
3402
3431
|
sale_price: string;
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
}[];
|
|
3432
|
+
id: number;
|
|
3433
|
+
name: string;
|
|
3434
|
+
short_description: string;
|
|
3435
|
+
description: string;
|
|
3436
|
+
sku: string;
|
|
3409
3437
|
images: {
|
|
3410
3438
|
id: number;
|
|
3411
3439
|
name: string;
|
|
3412
|
-
date_created: string;
|
|
3413
|
-
date_modified: string;
|
|
3414
3440
|
src: string;
|
|
3415
3441
|
alt: string;
|
|
3442
|
+
date_created: string;
|
|
3443
|
+
date_modified: string;
|
|
3444
|
+
}[];
|
|
3445
|
+
catalog_visibility: string;
|
|
3446
|
+
meta_data: {
|
|
3447
|
+
key: string;
|
|
3448
|
+
id: number;
|
|
3449
|
+
value?: any;
|
|
3416
3450
|
}[];
|
|
3451
|
+
date_created: string;
|
|
3452
|
+
slug: string;
|
|
3453
|
+
date_modified: string;
|
|
3454
|
+
featured: boolean;
|
|
3455
|
+
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
3417
3456
|
attributes: {
|
|
3418
3457
|
options: string[];
|
|
3419
3458
|
id: number;
|
|
3420
|
-
visible: boolean;
|
|
3421
3459
|
name: string;
|
|
3422
|
-
position: number;
|
|
3423
3460
|
variation: boolean;
|
|
3461
|
+
visible: boolean;
|
|
3462
|
+
position: number;
|
|
3424
3463
|
}[];
|
|
3425
|
-
manufacturer?: string | undefined;
|
|
3426
|
-
}, {
|
|
3427
|
-
type: string;
|
|
3428
|
-
status: string;
|
|
3429
|
-
id: number;
|
|
3430
|
-
slug: string;
|
|
3431
|
-
price: string;
|
|
3432
|
-
name: string;
|
|
3433
|
-
description: string;
|
|
3434
|
-
sku: string;
|
|
3435
|
-
featured: boolean;
|
|
3436
|
-
stock_status: "instock" | "outofstock" | "onbackorder";
|
|
3437
3464
|
on_sale: boolean;
|
|
3465
|
+
categories: {
|
|
3466
|
+
id: number;
|
|
3467
|
+
name: string;
|
|
3468
|
+
slug: string;
|
|
3469
|
+
}[];
|
|
3438
3470
|
_links: {
|
|
3439
3471
|
self: {
|
|
3440
3472
|
href: string;
|
|
@@ -3442,47 +3474,15 @@ declare const schemas: {
|
|
|
3442
3474
|
collection: {
|
|
3443
3475
|
href: string;
|
|
3444
3476
|
}[];
|
|
3445
|
-
|
|
3477
|
+
about?: {
|
|
3446
3478
|
href: string;
|
|
3447
|
-
embeddable?: boolean | undefined;
|
|
3448
3479
|
}[] | undefined;
|
|
3449
|
-
|
|
3480
|
+
author?: {
|
|
3450
3481
|
href: string;
|
|
3482
|
+
embeddable?: boolean | undefined;
|
|
3451
3483
|
}[] | undefined;
|
|
3452
3484
|
};
|
|
3453
|
-
meta_data: {
|
|
3454
|
-
id: number;
|
|
3455
|
-
key: string;
|
|
3456
|
-
value?: any;
|
|
3457
|
-
}[];
|
|
3458
|
-
date_created: string;
|
|
3459
|
-
date_modified: string;
|
|
3460
|
-
catalog_visibility: string;
|
|
3461
|
-
short_description: string;
|
|
3462
|
-
regular_price: string;
|
|
3463
|
-
sale_price: string;
|
|
3464
3485
|
stock_quantity: number | null;
|
|
3465
|
-
categories: {
|
|
3466
|
-
id: number;
|
|
3467
|
-
slug: string;
|
|
3468
|
-
name: string;
|
|
3469
|
-
}[];
|
|
3470
|
-
images: {
|
|
3471
|
-
id: number;
|
|
3472
|
-
name: string;
|
|
3473
|
-
date_created: string;
|
|
3474
|
-
date_modified: string;
|
|
3475
|
-
src: string;
|
|
3476
|
-
alt: string;
|
|
3477
|
-
}[];
|
|
3478
|
-
attributes: {
|
|
3479
|
-
options: string[];
|
|
3480
|
-
id: number;
|
|
3481
|
-
visible: boolean;
|
|
3482
|
-
name: string;
|
|
3483
|
-
position: number;
|
|
3484
|
-
variation: boolean;
|
|
3485
|
-
}[];
|
|
3486
3486
|
manufacturer?: string | undefined;
|
|
3487
3487
|
}>;
|
|
3488
3488
|
readonly category: {
|
|
@@ -3503,29 +3503,29 @@ declare const schemas: {
|
|
|
3503
3503
|
}, "strip", zod.ZodTypeAny, {
|
|
3504
3504
|
page: number;
|
|
3505
3505
|
per_page: number;
|
|
3506
|
-
exclude: number[];
|
|
3507
|
-
include: number[];
|
|
3508
|
-
product: number | null;
|
|
3509
3506
|
order: "asc" | "desc";
|
|
3510
|
-
orderby: "
|
|
3507
|
+
orderby: "id" | "name" | "description" | "slug" | "count" | "include" | "term_group";
|
|
3508
|
+
include: number[];
|
|
3509
|
+
exclude: number[];
|
|
3511
3510
|
hide_empty: boolean;
|
|
3511
|
+
product: number | null;
|
|
3512
3512
|
offset?: number | undefined;
|
|
3513
|
-
search?: string | undefined;
|
|
3514
3513
|
slug?: string | undefined;
|
|
3515
3514
|
parent?: number | undefined;
|
|
3515
|
+
search?: string | undefined;
|
|
3516
3516
|
}, {
|
|
3517
3517
|
page?: number | undefined;
|
|
3518
3518
|
per_page?: number | undefined;
|
|
3519
3519
|
offset?: number | undefined;
|
|
3520
|
+
order?: "asc" | "desc" | undefined;
|
|
3521
|
+
orderby?: "id" | "name" | "description" | "slug" | "count" | "include" | "term_group" | undefined;
|
|
3522
|
+
slug?: string | undefined;
|
|
3523
|
+
parent?: number | undefined;
|
|
3524
|
+
include?: number[] | undefined;
|
|
3520
3525
|
search?: string | undefined;
|
|
3521
3526
|
exclude?: number[] | undefined;
|
|
3522
|
-
include?: number[] | undefined;
|
|
3523
|
-
slug?: string | undefined;
|
|
3524
|
-
product?: number | null | undefined;
|
|
3525
|
-
order?: "asc" | "desc" | undefined;
|
|
3526
|
-
orderby?: "include" | "id" | "slug" | "name" | "term_group" | "description" | "count" | undefined;
|
|
3527
3527
|
hide_empty?: boolean | undefined;
|
|
3528
|
-
|
|
3528
|
+
product?: number | null | undefined;
|
|
3529
3529
|
}>;
|
|
3530
3530
|
readonly entity: zod.ZodObject<{
|
|
3531
3531
|
_links: zod.ZodObject<{
|
|
@@ -3567,12 +3567,12 @@ declare const schemas: {
|
|
|
3567
3567
|
collection: {
|
|
3568
3568
|
href: string;
|
|
3569
3569
|
}[];
|
|
3570
|
-
|
|
3570
|
+
about?: {
|
|
3571
3571
|
href: string;
|
|
3572
|
-
embeddable?: boolean | undefined;
|
|
3573
3572
|
}[] | undefined;
|
|
3574
|
-
|
|
3573
|
+
author?: {
|
|
3575
3574
|
href: string;
|
|
3575
|
+
embeddable?: boolean | undefined;
|
|
3576
3576
|
}[] | undefined;
|
|
3577
3577
|
}, {
|
|
3578
3578
|
self: {
|
|
@@ -3581,12 +3581,12 @@ declare const schemas: {
|
|
|
3581
3581
|
collection: {
|
|
3582
3582
|
href: string;
|
|
3583
3583
|
}[];
|
|
3584
|
-
|
|
3584
|
+
about?: {
|
|
3585
3585
|
href: string;
|
|
3586
|
-
embeddable?: boolean | undefined;
|
|
3587
3586
|
}[] | undefined;
|
|
3588
|
-
|
|
3587
|
+
author?: {
|
|
3589
3588
|
href: string;
|
|
3589
|
+
embeddable?: boolean | undefined;
|
|
3590
3590
|
}[] | undefined;
|
|
3591
3591
|
}>;
|
|
3592
3592
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -3594,12 +3594,12 @@ declare const schemas: {
|
|
|
3594
3594
|
key: zod.ZodString;
|
|
3595
3595
|
value: zod.ZodAny;
|
|
3596
3596
|
}, "strip", zod.ZodTypeAny, {
|
|
3597
|
-
id: number;
|
|
3598
3597
|
key: string;
|
|
3598
|
+
id: number;
|
|
3599
3599
|
value?: any;
|
|
3600
3600
|
}, {
|
|
3601
|
-
id: number;
|
|
3602
3601
|
key: string;
|
|
3602
|
+
id: number;
|
|
3603
3603
|
value?: any;
|
|
3604
3604
|
}>, "many">>;
|
|
3605
3605
|
} & {
|
|
@@ -3619,26 +3619,36 @@ declare const schemas: {
|
|
|
3619
3619
|
}, "strip", zod.ZodTypeAny, {
|
|
3620
3620
|
id: number;
|
|
3621
3621
|
name: string;
|
|
3622
|
-
date_created: string;
|
|
3623
|
-
date_modified: string;
|
|
3624
3622
|
src: string;
|
|
3625
3623
|
alt: string;
|
|
3624
|
+
date_created: string;
|
|
3625
|
+
date_modified: string;
|
|
3626
3626
|
}, {
|
|
3627
3627
|
id: number;
|
|
3628
3628
|
name: string;
|
|
3629
|
+
src: string;
|
|
3630
|
+
alt: string;
|
|
3629
3631
|
date_created: string;
|
|
3630
3632
|
date_modified: string;
|
|
3633
|
+
}>>;
|
|
3634
|
+
menu_order: zod.ZodNumber;
|
|
3635
|
+
count: zod.ZodNumber;
|
|
3636
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3637
|
+
id: number;
|
|
3638
|
+
name: string;
|
|
3639
|
+
description: string;
|
|
3640
|
+
slug: string;
|
|
3641
|
+
parent: number;
|
|
3642
|
+
display: string;
|
|
3643
|
+
image: {
|
|
3644
|
+
id: number;
|
|
3645
|
+
name: string;
|
|
3631
3646
|
src: string;
|
|
3632
3647
|
alt: string;
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3637
|
-
id: number;
|
|
3638
|
-
slug: string;
|
|
3648
|
+
date_created: string;
|
|
3649
|
+
date_modified: string;
|
|
3650
|
+
} | null;
|
|
3639
3651
|
menu_order: number;
|
|
3640
|
-
name: string;
|
|
3641
|
-
description: string;
|
|
3642
3652
|
count: number;
|
|
3643
3653
|
_links: {
|
|
3644
3654
|
self: {
|
|
@@ -3647,35 +3657,35 @@ declare const schemas: {
|
|
|
3647
3657
|
collection: {
|
|
3648
3658
|
href: string;
|
|
3649
3659
|
}[];
|
|
3650
|
-
|
|
3660
|
+
about?: {
|
|
3651
3661
|
href: string;
|
|
3652
|
-
embeddable?: boolean | undefined;
|
|
3653
3662
|
}[] | undefined;
|
|
3654
|
-
|
|
3663
|
+
author?: {
|
|
3655
3664
|
href: string;
|
|
3665
|
+
embeddable?: boolean | undefined;
|
|
3656
3666
|
}[] | undefined;
|
|
3657
3667
|
};
|
|
3668
|
+
meta_data?: {
|
|
3669
|
+
key: string;
|
|
3670
|
+
id: number;
|
|
3671
|
+
value?: any;
|
|
3672
|
+
}[] | undefined;
|
|
3673
|
+
}, {
|
|
3674
|
+
id: number;
|
|
3675
|
+
name: string;
|
|
3676
|
+
description: string;
|
|
3677
|
+
slug: string;
|
|
3658
3678
|
parent: number;
|
|
3659
3679
|
display: string;
|
|
3660
3680
|
image: {
|
|
3661
3681
|
id: number;
|
|
3662
3682
|
name: string;
|
|
3663
|
-
date_created: string;
|
|
3664
|
-
date_modified: string;
|
|
3665
3683
|
src: string;
|
|
3666
3684
|
alt: string;
|
|
3685
|
+
date_created: string;
|
|
3686
|
+
date_modified: string;
|
|
3667
3687
|
} | null;
|
|
3668
|
-
meta_data?: {
|
|
3669
|
-
id: number;
|
|
3670
|
-
key: string;
|
|
3671
|
-
value?: any;
|
|
3672
|
-
}[] | undefined;
|
|
3673
|
-
}, {
|
|
3674
|
-
id: number;
|
|
3675
|
-
slug: string;
|
|
3676
3688
|
menu_order: number;
|
|
3677
|
-
name: string;
|
|
3678
|
-
description: string;
|
|
3679
3689
|
count: number;
|
|
3680
3690
|
_links: {
|
|
3681
3691
|
self: {
|
|
@@ -3684,27 +3694,17 @@ declare const schemas: {
|
|
|
3684
3694
|
collection: {
|
|
3685
3695
|
href: string;
|
|
3686
3696
|
}[];
|
|
3687
|
-
|
|
3697
|
+
about?: {
|
|
3688
3698
|
href: string;
|
|
3689
|
-
embeddable?: boolean | undefined;
|
|
3690
3699
|
}[] | undefined;
|
|
3691
|
-
|
|
3700
|
+
author?: {
|
|
3692
3701
|
href: string;
|
|
3702
|
+
embeddable?: boolean | undefined;
|
|
3693
3703
|
}[] | undefined;
|
|
3694
3704
|
};
|
|
3695
|
-
parent: number;
|
|
3696
|
-
display: string;
|
|
3697
|
-
image: {
|
|
3698
|
-
id: number;
|
|
3699
|
-
name: string;
|
|
3700
|
-
date_created: string;
|
|
3701
|
-
date_modified: string;
|
|
3702
|
-
src: string;
|
|
3703
|
-
alt: string;
|
|
3704
|
-
} | null;
|
|
3705
3705
|
meta_data?: {
|
|
3706
|
-
id: number;
|
|
3707
3706
|
key: string;
|
|
3707
|
+
id: number;
|
|
3708
3708
|
value?: any;
|
|
3709
3709
|
}[] | undefined;
|
|
3710
3710
|
}>;
|
|
@@ -3734,37 +3734,37 @@ declare const schemas: {
|
|
|
3734
3734
|
}, "strip", zod.ZodTypeAny, {
|
|
3735
3735
|
page: number;
|
|
3736
3736
|
per_page: number;
|
|
3737
|
-
exclude: number[];
|
|
3738
|
-
include: number[];
|
|
3739
3737
|
order: "asc" | "desc";
|
|
3740
|
-
orderby: "
|
|
3738
|
+
orderby: "id" | "date" | "slug" | "include" | "title" | "modified";
|
|
3739
|
+
include: number[];
|
|
3740
|
+
exclude: number[];
|
|
3741
3741
|
dates_are_gmt: boolean;
|
|
3742
|
+
status?: ("pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft")[] | undefined;
|
|
3742
3743
|
offset?: number | undefined;
|
|
3743
|
-
status?: ("cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft")[] | undefined;
|
|
3744
3744
|
search?: string | undefined;
|
|
3745
|
-
customer?: number | undefined;
|
|
3746
|
-
product?: number | undefined;
|
|
3747
3745
|
after?: string | undefined;
|
|
3748
3746
|
before?: string | undefined;
|
|
3749
3747
|
modified_after?: string | undefined;
|
|
3750
3748
|
modified_before?: string | undefined;
|
|
3749
|
+
customer?: number | undefined;
|
|
3750
|
+
product?: number | undefined;
|
|
3751
3751
|
dp?: number | undefined;
|
|
3752
3752
|
}, {
|
|
3753
|
+
status?: ("pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft")[] | undefined;
|
|
3753
3754
|
page?: number | undefined;
|
|
3754
3755
|
per_page?: number | undefined;
|
|
3755
3756
|
offset?: number | undefined;
|
|
3756
|
-
status?: ("cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft")[] | undefined;
|
|
3757
|
-
search?: string | undefined;
|
|
3758
|
-
exclude?: number[] | undefined;
|
|
3759
|
-
include?: number[] | undefined;
|
|
3760
|
-
customer?: number | undefined;
|
|
3761
|
-
product?: number | undefined;
|
|
3762
3757
|
order?: "asc" | "desc" | undefined;
|
|
3763
|
-
orderby?: "
|
|
3758
|
+
orderby?: "id" | "date" | "slug" | "include" | "title" | "modified" | undefined;
|
|
3759
|
+
include?: number[] | undefined;
|
|
3760
|
+
search?: string | undefined;
|
|
3764
3761
|
after?: string | undefined;
|
|
3765
3762
|
before?: string | undefined;
|
|
3766
3763
|
modified_after?: string | undefined;
|
|
3767
3764
|
modified_before?: string | undefined;
|
|
3765
|
+
exclude?: number[] | undefined;
|
|
3766
|
+
customer?: number | undefined;
|
|
3767
|
+
product?: number | undefined;
|
|
3768
3768
|
dates_are_gmt?: boolean | undefined;
|
|
3769
3769
|
dp?: number | undefined;
|
|
3770
3770
|
}>;
|
|
@@ -3808,12 +3808,12 @@ declare const schemas: {
|
|
|
3808
3808
|
collection: {
|
|
3809
3809
|
href: string;
|
|
3810
3810
|
}[];
|
|
3811
|
-
|
|
3811
|
+
about?: {
|
|
3812
3812
|
href: string;
|
|
3813
|
-
embeddable?: boolean | undefined;
|
|
3814
3813
|
}[] | undefined;
|
|
3815
|
-
|
|
3814
|
+
author?: {
|
|
3816
3815
|
href: string;
|
|
3816
|
+
embeddable?: boolean | undefined;
|
|
3817
3817
|
}[] | undefined;
|
|
3818
3818
|
}, {
|
|
3819
3819
|
self: {
|
|
@@ -3822,12 +3822,12 @@ declare const schemas: {
|
|
|
3822
3822
|
collection: {
|
|
3823
3823
|
href: string;
|
|
3824
3824
|
}[];
|
|
3825
|
-
|
|
3825
|
+
about?: {
|
|
3826
3826
|
href: string;
|
|
3827
|
-
embeddable?: boolean | undefined;
|
|
3828
3827
|
}[] | undefined;
|
|
3829
|
-
|
|
3828
|
+
author?: {
|
|
3830
3829
|
href: string;
|
|
3830
|
+
embeddable?: boolean | undefined;
|
|
3831
3831
|
}[] | undefined;
|
|
3832
3832
|
}>;
|
|
3833
3833
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -3835,12 +3835,12 @@ declare const schemas: {
|
|
|
3835
3835
|
key: zod.ZodString;
|
|
3836
3836
|
value: zod.ZodAny;
|
|
3837
3837
|
}, "strip", zod.ZodTypeAny, {
|
|
3838
|
-
id: number;
|
|
3839
3838
|
key: string;
|
|
3839
|
+
id: number;
|
|
3840
3840
|
value?: any;
|
|
3841
3841
|
}, {
|
|
3842
|
-
id: number;
|
|
3843
3842
|
key: string;
|
|
3843
|
+
id: number;
|
|
3844
3844
|
value?: any;
|
|
3845
3845
|
}>, "many">>;
|
|
3846
3846
|
} & {
|
|
@@ -3949,31 +3949,31 @@ declare const schemas: {
|
|
|
3949
3949
|
sku: zod.ZodString;
|
|
3950
3950
|
price: zod.ZodNumber;
|
|
3951
3951
|
}, "strip", zod.ZodTypeAny, {
|
|
3952
|
-
|
|
3952
|
+
total: string;
|
|
3953
3953
|
price: number;
|
|
3954
|
+
id: number;
|
|
3955
|
+
quantity: number;
|
|
3954
3956
|
name: string;
|
|
3955
3957
|
sku: string;
|
|
3956
|
-
|
|
3958
|
+
total_tax: string;
|
|
3959
|
+
subtotal: string;
|
|
3957
3960
|
product_id: number;
|
|
3958
3961
|
variation_id: number;
|
|
3959
|
-
quantity: number;
|
|
3960
3962
|
tax_class: string;
|
|
3961
|
-
subtotal: string;
|
|
3962
3963
|
subtotal_tax: string;
|
|
3963
|
-
total_tax: string;
|
|
3964
3964
|
}, {
|
|
3965
|
-
|
|
3965
|
+
total: string;
|
|
3966
3966
|
price: number;
|
|
3967
|
+
id: number;
|
|
3968
|
+
quantity: number;
|
|
3967
3969
|
name: string;
|
|
3968
3970
|
sku: string;
|
|
3969
|
-
|
|
3971
|
+
total_tax: string;
|
|
3972
|
+
subtotal: string;
|
|
3970
3973
|
product_id: number;
|
|
3971
3974
|
variation_id: number;
|
|
3972
|
-
quantity: number;
|
|
3973
3975
|
tax_class: string;
|
|
3974
|
-
subtotal: string;
|
|
3975
3976
|
subtotal_tax: string;
|
|
3976
|
-
total_tax: string;
|
|
3977
3977
|
}>, "many">;
|
|
3978
3978
|
payment_url: zod.ZodOptional<zod.ZodString>;
|
|
3979
3979
|
pikpay_transaction_id: zod.ZodOptional<zod.ZodString>;
|
|
@@ -3981,35 +3981,14 @@ declare const schemas: {
|
|
|
3981
3981
|
monri_transaction_id: zod.ZodOptional<zod.ZodString>;
|
|
3982
3982
|
monri_status: zod.ZodOptional<zod.ZodString>;
|
|
3983
3983
|
}, "strip", zod.ZodTypeAny, {
|
|
3984
|
-
status: "
|
|
3985
|
-
id: number;
|
|
3986
|
-
_links: {
|
|
3987
|
-
self: {
|
|
3988
|
-
href: string;
|
|
3989
|
-
}[];
|
|
3990
|
-
collection: {
|
|
3991
|
-
href: string;
|
|
3992
|
-
}[];
|
|
3993
|
-
author?: {
|
|
3994
|
-
href: string;
|
|
3995
|
-
embeddable?: boolean | undefined;
|
|
3996
|
-
}[] | undefined;
|
|
3997
|
-
about?: {
|
|
3998
|
-
href: string;
|
|
3999
|
-
}[] | undefined;
|
|
4000
|
-
};
|
|
4001
|
-
date_created: string;
|
|
4002
|
-
date_modified: string;
|
|
4003
|
-
parent_id: number;
|
|
4004
|
-
currency: string;
|
|
4005
|
-
version: string;
|
|
4006
|
-
prices_include_tax: boolean;
|
|
4007
|
-
discount_total: string;
|
|
4008
|
-
shipping_total: string;
|
|
4009
|
-
cart_tax: string;
|
|
3984
|
+
status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft";
|
|
4010
3985
|
total: string;
|
|
4011
|
-
|
|
3986
|
+
id: number;
|
|
3987
|
+
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
3988
|
+
payment_method_title: string;
|
|
4012
3989
|
order_key: string;
|
|
3990
|
+
currency: string;
|
|
3991
|
+
date_created: string;
|
|
4013
3992
|
billing: {
|
|
4014
3993
|
first_name: string;
|
|
4015
3994
|
last_name: string;
|
|
@@ -4036,35 +4015,22 @@ declare const schemas: {
|
|
|
4036
4015
|
phone: string;
|
|
4037
4016
|
email?: string | undefined;
|
|
4038
4017
|
};
|
|
4039
|
-
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
4040
|
-
payment_method_title: string;
|
|
4041
4018
|
line_items: {
|
|
4042
|
-
|
|
4019
|
+
total: string;
|
|
4043
4020
|
price: number;
|
|
4021
|
+
id: number;
|
|
4022
|
+
quantity: number;
|
|
4044
4023
|
name: string;
|
|
4045
4024
|
sku: string;
|
|
4046
|
-
|
|
4025
|
+
total_tax: string;
|
|
4026
|
+
subtotal: string;
|
|
4047
4027
|
product_id: number;
|
|
4048
4028
|
variation_id: number;
|
|
4049
|
-
quantity: number;
|
|
4050
4029
|
tax_class: string;
|
|
4051
|
-
subtotal: string;
|
|
4052
4030
|
subtotal_tax: string;
|
|
4053
|
-
total_tax: string;
|
|
4054
4031
|
}[];
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
key: string;
|
|
4058
|
-
value?: any;
|
|
4059
|
-
}[] | undefined;
|
|
4060
|
-
payment_url?: string | undefined;
|
|
4061
|
-
pikpay_transaction_id?: string | undefined;
|
|
4062
|
-
pikpay_status?: string | undefined;
|
|
4063
|
-
monri_transaction_id?: string | undefined;
|
|
4064
|
-
monri_status?: string | undefined;
|
|
4065
|
-
}, {
|
|
4066
|
-
status: "cancelled" | "completed" | "pending" | "processing" | "on-hold" | "auto-draft" | "trash" | "refunded" | "failed" | "checkout-draft";
|
|
4067
|
-
id: number;
|
|
4032
|
+
customer_id: number;
|
|
4033
|
+
date_modified: string;
|
|
4068
4034
|
_links: {
|
|
4069
4035
|
self: {
|
|
4070
4036
|
href: string;
|
|
@@ -4072,26 +4038,39 @@ declare const schemas: {
|
|
|
4072
4038
|
collection: {
|
|
4073
4039
|
href: string;
|
|
4074
4040
|
}[];
|
|
4075
|
-
|
|
4041
|
+
about?: {
|
|
4076
4042
|
href: string;
|
|
4077
|
-
embeddable?: boolean | undefined;
|
|
4078
4043
|
}[] | undefined;
|
|
4079
|
-
|
|
4044
|
+
author?: {
|
|
4080
4045
|
href: string;
|
|
4046
|
+
embeddable?: boolean | undefined;
|
|
4081
4047
|
}[] | undefined;
|
|
4082
4048
|
};
|
|
4083
|
-
date_created: string;
|
|
4084
|
-
date_modified: string;
|
|
4085
4049
|
parent_id: number;
|
|
4086
|
-
currency: string;
|
|
4087
4050
|
version: string;
|
|
4088
4051
|
prices_include_tax: boolean;
|
|
4089
4052
|
discount_total: string;
|
|
4090
4053
|
shipping_total: string;
|
|
4091
4054
|
cart_tax: string;
|
|
4055
|
+
meta_data?: {
|
|
4056
|
+
key: string;
|
|
4057
|
+
id: number;
|
|
4058
|
+
value?: any;
|
|
4059
|
+
}[] | undefined;
|
|
4060
|
+
payment_url?: string | undefined;
|
|
4061
|
+
pikpay_transaction_id?: string | undefined;
|
|
4062
|
+
pikpay_status?: string | undefined;
|
|
4063
|
+
monri_transaction_id?: string | undefined;
|
|
4064
|
+
monri_status?: string | undefined;
|
|
4065
|
+
}, {
|
|
4066
|
+
status: "pending" | "processing" | "on-hold" | "completed" | "cancelled" | "refunded" | "failed" | "trash" | "auto-draft" | "checkout-draft";
|
|
4092
4067
|
total: string;
|
|
4093
|
-
|
|
4068
|
+
id: number;
|
|
4069
|
+
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
4070
|
+
payment_method_title: string;
|
|
4094
4071
|
order_key: string;
|
|
4072
|
+
currency: string;
|
|
4073
|
+
date_created: string;
|
|
4095
4074
|
billing: {
|
|
4096
4075
|
email: string;
|
|
4097
4076
|
first_name?: string | undefined;
|
|
@@ -4118,25 +4097,46 @@ declare const schemas: {
|
|
|
4118
4097
|
phone?: string | undefined;
|
|
4119
4098
|
email?: string | undefined;
|
|
4120
4099
|
};
|
|
4121
|
-
payment_method: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
4122
|
-
payment_method_title: string;
|
|
4123
4100
|
line_items: {
|
|
4124
|
-
|
|
4101
|
+
total: string;
|
|
4125
4102
|
price: number;
|
|
4103
|
+
id: number;
|
|
4104
|
+
quantity: number;
|
|
4126
4105
|
name: string;
|
|
4127
4106
|
sku: string;
|
|
4128
|
-
|
|
4107
|
+
total_tax: string;
|
|
4108
|
+
subtotal: string;
|
|
4129
4109
|
product_id: number;
|
|
4130
4110
|
variation_id: number;
|
|
4131
|
-
quantity: number;
|
|
4132
4111
|
tax_class: string;
|
|
4133
|
-
subtotal: string;
|
|
4134
4112
|
subtotal_tax: string;
|
|
4135
|
-
total_tax: string;
|
|
4136
4113
|
}[];
|
|
4114
|
+
customer_id: number;
|
|
4115
|
+
date_modified: string;
|
|
4116
|
+
_links: {
|
|
4117
|
+
self: {
|
|
4118
|
+
href: string;
|
|
4119
|
+
}[];
|
|
4120
|
+
collection: {
|
|
4121
|
+
href: string;
|
|
4122
|
+
}[];
|
|
4123
|
+
about?: {
|
|
4124
|
+
href: string;
|
|
4125
|
+
}[] | undefined;
|
|
4126
|
+
author?: {
|
|
4127
|
+
href: string;
|
|
4128
|
+
embeddable?: boolean | undefined;
|
|
4129
|
+
}[] | undefined;
|
|
4130
|
+
};
|
|
4131
|
+
parent_id: number;
|
|
4132
|
+
version: string;
|
|
4133
|
+
prices_include_tax: boolean;
|
|
4134
|
+
discount_total: string;
|
|
4135
|
+
shipping_total: string;
|
|
4136
|
+
cart_tax: string;
|
|
4137
4137
|
meta_data?: {
|
|
4138
|
-
id: number;
|
|
4139
4138
|
key: string;
|
|
4139
|
+
id: number;
|
|
4140
4140
|
value?: any;
|
|
4141
4141
|
}[] | undefined;
|
|
4142
4142
|
payment_url?: string | undefined;
|
|
@@ -4159,31 +4159,31 @@ declare const schemas: {
|
|
|
4159
4159
|
sku: zod.ZodString;
|
|
4160
4160
|
price: zod.ZodNumber;
|
|
4161
4161
|
}, "strip", zod.ZodTypeAny, {
|
|
4162
|
-
|
|
4162
|
+
total: string;
|
|
4163
4163
|
price: number;
|
|
4164
|
+
id: number;
|
|
4165
|
+
quantity: number;
|
|
4164
4166
|
name: string;
|
|
4165
4167
|
sku: string;
|
|
4166
|
-
|
|
4168
|
+
total_tax: string;
|
|
4169
|
+
subtotal: string;
|
|
4167
4170
|
product_id: number;
|
|
4168
4171
|
variation_id: number;
|
|
4169
|
-
quantity: number;
|
|
4170
4172
|
tax_class: string;
|
|
4171
|
-
subtotal: string;
|
|
4172
4173
|
subtotal_tax: string;
|
|
4173
|
-
total_tax: string;
|
|
4174
4174
|
}, {
|
|
4175
|
-
|
|
4175
|
+
total: string;
|
|
4176
4176
|
price: number;
|
|
4177
|
+
id: number;
|
|
4178
|
+
quantity: number;
|
|
4177
4179
|
name: string;
|
|
4178
4180
|
sku: string;
|
|
4179
|
-
|
|
4181
|
+
total_tax: string;
|
|
4182
|
+
subtotal: string;
|
|
4180
4183
|
product_id: number;
|
|
4181
4184
|
variation_id: number;
|
|
4182
|
-
quantity: number;
|
|
4183
4185
|
tax_class: string;
|
|
4184
|
-
subtotal: string;
|
|
4185
4186
|
subtotal_tax: string;
|
|
4186
|
-
total_tax: string;
|
|
4187
4187
|
}>;
|
|
4188
4188
|
};
|
|
4189
4189
|
readonly customer: {
|
|
@@ -4202,25 +4202,25 @@ declare const schemas: {
|
|
|
4202
4202
|
}, "strip", zod.ZodTypeAny, {
|
|
4203
4203
|
page: number;
|
|
4204
4204
|
per_page: number;
|
|
4205
|
-
exclude: number[];
|
|
4206
|
-
include: number[];
|
|
4207
4205
|
order: "asc" | "desc";
|
|
4208
|
-
orderby: "
|
|
4209
|
-
|
|
4206
|
+
orderby: "id" | "name" | "include" | "registered_date";
|
|
4207
|
+
include: number[];
|
|
4208
|
+
exclude: number[];
|
|
4209
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
4210
|
+
email?: string | undefined;
|
|
4210
4211
|
offset?: number | undefined;
|
|
4211
4212
|
search?: string | undefined;
|
|
4212
|
-
email?: string | undefined;
|
|
4213
4213
|
}, {
|
|
4214
|
+
email?: string | undefined;
|
|
4214
4215
|
page?: number | undefined;
|
|
4215
4216
|
per_page?: number | undefined;
|
|
4216
4217
|
offset?: number | undefined;
|
|
4218
|
+
order?: "asc" | "desc" | undefined;
|
|
4219
|
+
orderby?: "id" | "name" | "include" | "registered_date" | undefined;
|
|
4220
|
+
include?: number[] | undefined;
|
|
4217
4221
|
search?: string | undefined;
|
|
4218
4222
|
exclude?: number[] | undefined;
|
|
4219
|
-
|
|
4220
|
-
order?: "asc" | "desc" | undefined;
|
|
4221
|
-
orderby?: "include" | "id" | "name" | "registered_date" | undefined;
|
|
4222
|
-
email?: string | undefined;
|
|
4223
|
-
role?: "all" | "administrator" | "editor" | "author" | "contributor" | "subscriber" | "customer" | "shop_manager" | undefined;
|
|
4223
|
+
role?: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager" | undefined;
|
|
4224
4224
|
}>;
|
|
4225
4225
|
readonly entity: zod.ZodObject<{
|
|
4226
4226
|
_links: zod.ZodObject<{
|
|
@@ -4262,12 +4262,12 @@ declare const schemas: {
|
|
|
4262
4262
|
collection: {
|
|
4263
4263
|
href: string;
|
|
4264
4264
|
}[];
|
|
4265
|
-
|
|
4265
|
+
about?: {
|
|
4266
4266
|
href: string;
|
|
4267
|
-
embeddable?: boolean | undefined;
|
|
4268
4267
|
}[] | undefined;
|
|
4269
|
-
|
|
4268
|
+
author?: {
|
|
4270
4269
|
href: string;
|
|
4270
|
+
embeddable?: boolean | undefined;
|
|
4271
4271
|
}[] | undefined;
|
|
4272
4272
|
}, {
|
|
4273
4273
|
self: {
|
|
@@ -4276,12 +4276,12 @@ declare const schemas: {
|
|
|
4276
4276
|
collection: {
|
|
4277
4277
|
href: string;
|
|
4278
4278
|
}[];
|
|
4279
|
-
|
|
4279
|
+
about?: {
|
|
4280
4280
|
href: string;
|
|
4281
|
-
embeddable?: boolean | undefined;
|
|
4282
4281
|
}[] | undefined;
|
|
4283
|
-
|
|
4282
|
+
author?: {
|
|
4284
4283
|
href: string;
|
|
4284
|
+
embeddable?: boolean | undefined;
|
|
4285
4285
|
}[] | undefined;
|
|
4286
4286
|
}>;
|
|
4287
4287
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -4289,12 +4289,12 @@ declare const schemas: {
|
|
|
4289
4289
|
key: zod.ZodString;
|
|
4290
4290
|
value: zod.ZodAny;
|
|
4291
4291
|
}, "strip", zod.ZodTypeAny, {
|
|
4292
|
-
id: number;
|
|
4293
4292
|
key: string;
|
|
4293
|
+
id: number;
|
|
4294
4294
|
value?: any;
|
|
4295
4295
|
}, {
|
|
4296
|
-
id: number;
|
|
4297
4296
|
key: string;
|
|
4297
|
+
id: number;
|
|
4298
4298
|
value?: any;
|
|
4299
4299
|
}>, "many">>;
|
|
4300
4300
|
} & {
|
|
@@ -4384,27 +4384,11 @@ declare const schemas: {
|
|
|
4384
4384
|
email?: string | undefined;
|
|
4385
4385
|
}>;
|
|
4386
4386
|
}, "strip", zod.ZodTypeAny, {
|
|
4387
|
-
id: number;
|
|
4388
|
-
_links: {
|
|
4389
|
-
self: {
|
|
4390
|
-
href: string;
|
|
4391
|
-
}[];
|
|
4392
|
-
collection: {
|
|
4393
|
-
href: string;
|
|
4394
|
-
}[];
|
|
4395
|
-
author?: {
|
|
4396
|
-
href: string;
|
|
4397
|
-
embeddable?: boolean | undefined;
|
|
4398
|
-
}[] | undefined;
|
|
4399
|
-
about?: {
|
|
4400
|
-
href: string;
|
|
4401
|
-
}[] | undefined;
|
|
4402
|
-
};
|
|
4403
|
-
date_created: string;
|
|
4404
|
-
date_modified: string;
|
|
4405
4387
|
first_name: string;
|
|
4406
4388
|
last_name: string;
|
|
4407
4389
|
email: string;
|
|
4390
|
+
id: number;
|
|
4391
|
+
date_created: string;
|
|
4408
4392
|
billing: {
|
|
4409
4393
|
first_name: string;
|
|
4410
4394
|
last_name: string;
|
|
@@ -4431,17 +4415,7 @@ declare const schemas: {
|
|
|
4431
4415
|
phone: string;
|
|
4432
4416
|
email?: string | undefined;
|
|
4433
4417
|
};
|
|
4434
|
-
|
|
4435
|
-
username: string;
|
|
4436
|
-
is_paying_customer: boolean;
|
|
4437
|
-
avatar_url: string;
|
|
4438
|
-
meta_data?: {
|
|
4439
|
-
id: number;
|
|
4440
|
-
key: string;
|
|
4441
|
-
value?: any;
|
|
4442
|
-
}[] | undefined;
|
|
4443
|
-
}, {
|
|
4444
|
-
id: number;
|
|
4418
|
+
date_modified: string;
|
|
4445
4419
|
_links: {
|
|
4446
4420
|
self: {
|
|
4447
4421
|
href: string;
|
|
@@ -4449,19 +4423,29 @@ declare const schemas: {
|
|
|
4449
4423
|
collection: {
|
|
4450
4424
|
href: string;
|
|
4451
4425
|
}[];
|
|
4452
|
-
|
|
4426
|
+
about?: {
|
|
4453
4427
|
href: string;
|
|
4454
|
-
embeddable?: boolean | undefined;
|
|
4455
4428
|
}[] | undefined;
|
|
4456
|
-
|
|
4429
|
+
author?: {
|
|
4457
4430
|
href: string;
|
|
4431
|
+
embeddable?: boolean | undefined;
|
|
4458
4432
|
}[] | undefined;
|
|
4459
4433
|
};
|
|
4460
|
-
|
|
4461
|
-
|
|
4434
|
+
username: string;
|
|
4435
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
4436
|
+
is_paying_customer: boolean;
|
|
4437
|
+
avatar_url: string;
|
|
4438
|
+
meta_data?: {
|
|
4439
|
+
key: string;
|
|
4440
|
+
id: number;
|
|
4441
|
+
value?: any;
|
|
4442
|
+
}[] | undefined;
|
|
4443
|
+
}, {
|
|
4462
4444
|
first_name: string;
|
|
4463
4445
|
last_name: string;
|
|
4464
4446
|
email: string;
|
|
4447
|
+
id: number;
|
|
4448
|
+
date_created: string;
|
|
4465
4449
|
billing: {
|
|
4466
4450
|
email: string;
|
|
4467
4451
|
first_name?: string | undefined;
|
|
@@ -4488,13 +4472,29 @@ declare const schemas: {
|
|
|
4488
4472
|
phone?: string | undefined;
|
|
4489
4473
|
email?: string | undefined;
|
|
4490
4474
|
};
|
|
4491
|
-
|
|
4475
|
+
date_modified: string;
|
|
4476
|
+
_links: {
|
|
4477
|
+
self: {
|
|
4478
|
+
href: string;
|
|
4479
|
+
}[];
|
|
4480
|
+
collection: {
|
|
4481
|
+
href: string;
|
|
4482
|
+
}[];
|
|
4483
|
+
about?: {
|
|
4484
|
+
href: string;
|
|
4485
|
+
}[] | undefined;
|
|
4486
|
+
author?: {
|
|
4487
|
+
href: string;
|
|
4488
|
+
embeddable?: boolean | undefined;
|
|
4489
|
+
}[] | undefined;
|
|
4490
|
+
};
|
|
4492
4491
|
username: string;
|
|
4492
|
+
role: "author" | "all" | "administrator" | "editor" | "contributor" | "subscriber" | "customer" | "shop_manager";
|
|
4493
4493
|
is_paying_customer: boolean;
|
|
4494
4494
|
avatar_url: string;
|
|
4495
4495
|
meta_data?: {
|
|
4496
|
-
id: number;
|
|
4497
4496
|
key: string;
|
|
4497
|
+
id: number;
|
|
4498
4498
|
value?: any;
|
|
4499
4499
|
}[] | undefined;
|
|
4500
4500
|
}>;
|
|
@@ -4538,12 +4538,12 @@ declare const schemas: {
|
|
|
4538
4538
|
collection: {
|
|
4539
4539
|
href: string;
|
|
4540
4540
|
}[];
|
|
4541
|
-
|
|
4541
|
+
about?: {
|
|
4542
4542
|
href: string;
|
|
4543
|
-
embeddable?: boolean | undefined;
|
|
4544
4543
|
}[] | undefined;
|
|
4545
|
-
|
|
4544
|
+
author?: {
|
|
4546
4545
|
href: string;
|
|
4546
|
+
embeddable?: boolean | undefined;
|
|
4547
4547
|
}[] | undefined;
|
|
4548
4548
|
}, {
|
|
4549
4549
|
self: {
|
|
@@ -4552,12 +4552,12 @@ declare const schemas: {
|
|
|
4552
4552
|
collection: {
|
|
4553
4553
|
href: string;
|
|
4554
4554
|
}[];
|
|
4555
|
-
|
|
4555
|
+
about?: {
|
|
4556
4556
|
href: string;
|
|
4557
|
-
embeddable?: boolean | undefined;
|
|
4558
4557
|
}[] | undefined;
|
|
4559
|
-
|
|
4558
|
+
author?: {
|
|
4560
4559
|
href: string;
|
|
4560
|
+
embeddable?: boolean | undefined;
|
|
4561
4561
|
}[] | undefined;
|
|
4562
4562
|
}>;
|
|
4563
4563
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -4565,12 +4565,12 @@ declare const schemas: {
|
|
|
4565
4565
|
key: zod.ZodString;
|
|
4566
4566
|
value: zod.ZodAny;
|
|
4567
4567
|
}, "strip", zod.ZodTypeAny, {
|
|
4568
|
-
id: number;
|
|
4569
4568
|
key: string;
|
|
4569
|
+
id: number;
|
|
4570
4570
|
value?: any;
|
|
4571
4571
|
}, {
|
|
4572
|
-
id: number;
|
|
4573
4572
|
key: string;
|
|
4573
|
+
id: number;
|
|
4574
4574
|
value?: any;
|
|
4575
4575
|
}>, "many">>;
|
|
4576
4576
|
} & {
|
|
@@ -4857,23 +4857,23 @@ declare const schemas: {
|
|
|
4857
4857
|
}, "strip", zod.ZodTypeAny, {
|
|
4858
4858
|
page: number;
|
|
4859
4859
|
per_page: number;
|
|
4860
|
-
exclude: number[];
|
|
4861
|
-
include: number[];
|
|
4862
4860
|
order: "asc" | "desc";
|
|
4863
|
-
orderby: "
|
|
4864
|
-
|
|
4861
|
+
orderby: "id" | "date" | "slug" | "include" | "title" | "modified";
|
|
4862
|
+
include: number[];
|
|
4863
|
+
exclude: number[];
|
|
4865
4864
|
code?: string | undefined;
|
|
4865
|
+
offset?: number | undefined;
|
|
4866
4866
|
search?: string | undefined;
|
|
4867
4867
|
}, {
|
|
4868
|
+
code?: string | undefined;
|
|
4868
4869
|
page?: number | undefined;
|
|
4869
4870
|
per_page?: number | undefined;
|
|
4870
4871
|
offset?: number | undefined;
|
|
4871
|
-
|
|
4872
|
+
order?: "asc" | "desc" | undefined;
|
|
4873
|
+
orderby?: "id" | "date" | "slug" | "include" | "title" | "modified" | undefined;
|
|
4874
|
+
include?: number[] | undefined;
|
|
4872
4875
|
search?: string | undefined;
|
|
4873
4876
|
exclude?: number[] | undefined;
|
|
4874
|
-
include?: number[] | undefined;
|
|
4875
|
-
order?: "asc" | "desc" | undefined;
|
|
4876
|
-
orderby?: "include" | "date" | "id" | "title" | "slug" | "modified" | undefined;
|
|
4877
4877
|
}>;
|
|
4878
4878
|
readonly entity: zod.ZodObject<{
|
|
4879
4879
|
_links: zod.ZodObject<{
|
|
@@ -4915,12 +4915,12 @@ declare const schemas: {
|
|
|
4915
4915
|
collection: {
|
|
4916
4916
|
href: string;
|
|
4917
4917
|
}[];
|
|
4918
|
-
|
|
4918
|
+
about?: {
|
|
4919
4919
|
href: string;
|
|
4920
|
-
embeddable?: boolean | undefined;
|
|
4921
4920
|
}[] | undefined;
|
|
4922
|
-
|
|
4921
|
+
author?: {
|
|
4923
4922
|
href: string;
|
|
4923
|
+
embeddable?: boolean | undefined;
|
|
4924
4924
|
}[] | undefined;
|
|
4925
4925
|
}, {
|
|
4926
4926
|
self: {
|
|
@@ -4929,12 +4929,12 @@ declare const schemas: {
|
|
|
4929
4929
|
collection: {
|
|
4930
4930
|
href: string;
|
|
4931
4931
|
}[];
|
|
4932
|
-
|
|
4932
|
+
about?: {
|
|
4933
4933
|
href: string;
|
|
4934
|
-
embeddable?: boolean | undefined;
|
|
4935
4934
|
}[] | undefined;
|
|
4936
|
-
|
|
4935
|
+
author?: {
|
|
4937
4936
|
href: string;
|
|
4937
|
+
embeddable?: boolean | undefined;
|
|
4938
4938
|
}[] | undefined;
|
|
4939
4939
|
}>;
|
|
4940
4940
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -4942,12 +4942,12 @@ declare const schemas: {
|
|
|
4942
4942
|
key: zod.ZodString;
|
|
4943
4943
|
value: zod.ZodAny;
|
|
4944
4944
|
}, "strip", zod.ZodTypeAny, {
|
|
4945
|
-
id: number;
|
|
4946
4945
|
key: string;
|
|
4946
|
+
id: number;
|
|
4947
4947
|
value?: any;
|
|
4948
4948
|
}, {
|
|
4949
|
-
id: number;
|
|
4950
4949
|
key: string;
|
|
4950
|
+
id: number;
|
|
4951
4951
|
value?: any;
|
|
4952
4952
|
}>, "many">>;
|
|
4953
4953
|
} & {
|
|
@@ -4984,12 +4984,12 @@ declare const schemas: {
|
|
|
4984
4984
|
collection: {
|
|
4985
4985
|
href: string;
|
|
4986
4986
|
}[];
|
|
4987
|
-
|
|
4987
|
+
about?: {
|
|
4988
4988
|
href: string;
|
|
4989
|
-
embeddable?: boolean | undefined;
|
|
4990
4989
|
}[] | undefined;
|
|
4991
|
-
|
|
4990
|
+
author?: {
|
|
4992
4991
|
href: string;
|
|
4992
|
+
embeddable?: boolean | undefined;
|
|
4993
4993
|
}[] | undefined;
|
|
4994
4994
|
};
|
|
4995
4995
|
amount: string;
|
|
@@ -5010,8 +5010,8 @@ declare const schemas: {
|
|
|
5010
5010
|
maximum_amount: string;
|
|
5011
5011
|
email_restrictions: string[];
|
|
5012
5012
|
meta_data?: {
|
|
5013
|
-
id: number;
|
|
5014
5013
|
key: string;
|
|
5014
|
+
id: number;
|
|
5015
5015
|
value?: any;
|
|
5016
5016
|
}[] | undefined;
|
|
5017
5017
|
}, {
|
|
@@ -5026,12 +5026,12 @@ declare const schemas: {
|
|
|
5026
5026
|
collection: {
|
|
5027
5027
|
href: string;
|
|
5028
5028
|
}[];
|
|
5029
|
-
|
|
5029
|
+
about?: {
|
|
5030
5030
|
href: string;
|
|
5031
|
-
embeddable?: boolean | undefined;
|
|
5032
5031
|
}[] | undefined;
|
|
5033
|
-
|
|
5032
|
+
author?: {
|
|
5034
5033
|
href: string;
|
|
5034
|
+
embeddable?: boolean | undefined;
|
|
5035
5035
|
}[] | undefined;
|
|
5036
5036
|
};
|
|
5037
5037
|
amount: string;
|
|
@@ -5052,14 +5052,27 @@ declare const schemas: {
|
|
|
5052
5052
|
maximum_amount: string;
|
|
5053
5053
|
email_restrictions: string[];
|
|
5054
5054
|
meta_data?: {
|
|
5055
|
-
id: number;
|
|
5056
5055
|
key: string;
|
|
5056
|
+
id: number;
|
|
5057
5057
|
value?: any;
|
|
5058
5058
|
}[] | undefined;
|
|
5059
5059
|
}>;
|
|
5060
5060
|
readonly create: zod.ZodObject<{
|
|
5061
5061
|
status: zod.ZodString;
|
|
5062
5062
|
description: zod.ZodString;
|
|
5063
|
+
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5064
|
+
id: zod.ZodNumber;
|
|
5065
|
+
key: zod.ZodString;
|
|
5066
|
+
value: zod.ZodAny;
|
|
5067
|
+
}, "strip", zod.ZodTypeAny, {
|
|
5068
|
+
key: string;
|
|
5069
|
+
id: number;
|
|
5070
|
+
value?: any;
|
|
5071
|
+
}, {
|
|
5072
|
+
key: string;
|
|
5073
|
+
id: number;
|
|
5074
|
+
value?: any;
|
|
5075
|
+
}>, "many">>;
|
|
5063
5076
|
_links: zod.ZodObject<{
|
|
5064
5077
|
self: zod.ZodArray<zod.ZodObject<{
|
|
5065
5078
|
href: zod.ZodString;
|
|
@@ -5099,12 +5112,12 @@ declare const schemas: {
|
|
|
5099
5112
|
collection: {
|
|
5100
5113
|
href: string;
|
|
5101
5114
|
}[];
|
|
5102
|
-
|
|
5115
|
+
about?: {
|
|
5103
5116
|
href: string;
|
|
5104
|
-
embeddable?: boolean | undefined;
|
|
5105
5117
|
}[] | undefined;
|
|
5106
|
-
|
|
5118
|
+
author?: {
|
|
5107
5119
|
href: string;
|
|
5120
|
+
embeddable?: boolean | undefined;
|
|
5108
5121
|
}[] | undefined;
|
|
5109
5122
|
}, {
|
|
5110
5123
|
self: {
|
|
@@ -5113,27 +5126,14 @@ declare const schemas: {
|
|
|
5113
5126
|
collection: {
|
|
5114
5127
|
href: string;
|
|
5115
5128
|
}[];
|
|
5116
|
-
|
|
5129
|
+
about?: {
|
|
5117
5130
|
href: string;
|
|
5118
|
-
embeddable?: boolean | undefined;
|
|
5119
5131
|
}[] | undefined;
|
|
5120
|
-
|
|
5132
|
+
author?: {
|
|
5121
5133
|
href: string;
|
|
5134
|
+
embeddable?: boolean | undefined;
|
|
5122
5135
|
}[] | undefined;
|
|
5123
5136
|
}>;
|
|
5124
|
-
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
5125
|
-
id: zod.ZodNumber;
|
|
5126
|
-
key: zod.ZodString;
|
|
5127
|
-
value: zod.ZodAny;
|
|
5128
|
-
}, "strip", zod.ZodTypeAny, {
|
|
5129
|
-
id: number;
|
|
5130
|
-
key: string;
|
|
5131
|
-
value?: any;
|
|
5132
|
-
}, {
|
|
5133
|
-
id: number;
|
|
5134
|
-
key: string;
|
|
5135
|
-
value?: any;
|
|
5136
|
-
}>, "many">>;
|
|
5137
5137
|
discount_type: zod.ZodEnum<["percent", "fixed_cart", "fixed_product"]>;
|
|
5138
5138
|
date_expires: zod.ZodNullable<zod.ZodString>;
|
|
5139
5139
|
individual_use: zod.ZodBoolean;
|
|
@@ -5163,12 +5163,12 @@ declare const schemas: {
|
|
|
5163
5163
|
collection: {
|
|
5164
5164
|
href: string;
|
|
5165
5165
|
}[];
|
|
5166
|
-
|
|
5166
|
+
about?: {
|
|
5167
5167
|
href: string;
|
|
5168
|
-
embeddable?: boolean | undefined;
|
|
5169
5168
|
}[] | undefined;
|
|
5170
|
-
|
|
5169
|
+
author?: {
|
|
5171
5170
|
href: string;
|
|
5171
|
+
embeddable?: boolean | undefined;
|
|
5172
5172
|
}[] | undefined;
|
|
5173
5173
|
};
|
|
5174
5174
|
amount: string;
|
|
@@ -5188,8 +5188,8 @@ declare const schemas: {
|
|
|
5188
5188
|
maximum_amount: string;
|
|
5189
5189
|
email_restrictions: string[];
|
|
5190
5190
|
meta_data?: {
|
|
5191
|
-
id: number;
|
|
5192
5191
|
key: string;
|
|
5192
|
+
id: number;
|
|
5193
5193
|
value?: any;
|
|
5194
5194
|
}[] | undefined;
|
|
5195
5195
|
}, {
|
|
@@ -5203,12 +5203,12 @@ declare const schemas: {
|
|
|
5203
5203
|
collection: {
|
|
5204
5204
|
href: string;
|
|
5205
5205
|
}[];
|
|
5206
|
-
|
|
5206
|
+
about?: {
|
|
5207
5207
|
href: string;
|
|
5208
|
-
embeddable?: boolean | undefined;
|
|
5209
5208
|
}[] | undefined;
|
|
5210
|
-
|
|
5209
|
+
author?: {
|
|
5211
5210
|
href: string;
|
|
5211
|
+
embeddable?: boolean | undefined;
|
|
5212
5212
|
}[] | undefined;
|
|
5213
5213
|
};
|
|
5214
5214
|
amount: string;
|
|
@@ -5228,8 +5228,8 @@ declare const schemas: {
|
|
|
5228
5228
|
maximum_amount: string;
|
|
5229
5229
|
email_restrictions: string[];
|
|
5230
5230
|
meta_data?: {
|
|
5231
|
-
id: number;
|
|
5232
5231
|
key: string;
|
|
5232
|
+
id: number;
|
|
5233
5233
|
value?: any;
|
|
5234
5234
|
}[] | undefined;
|
|
5235
5235
|
}>;
|
|
@@ -5249,22 +5249,22 @@ declare const schemas: {
|
|
|
5249
5249
|
}, "strip", zod.ZodTypeAny, {
|
|
5250
5250
|
page: number;
|
|
5251
5251
|
per_page: number;
|
|
5252
|
-
exclude: number[];
|
|
5253
|
-
include: number[];
|
|
5254
5252
|
order: "asc" | "desc";
|
|
5253
|
+
include: number[];
|
|
5254
|
+
exclude: number[];
|
|
5255
5255
|
offset?: number | undefined;
|
|
5256
|
-
search?: string | undefined;
|
|
5257
5256
|
orderby?: string | undefined;
|
|
5257
|
+
search?: string | undefined;
|
|
5258
5258
|
enabled?: boolean | undefined;
|
|
5259
5259
|
}, {
|
|
5260
5260
|
page?: number | undefined;
|
|
5261
5261
|
per_page?: number | undefined;
|
|
5262
5262
|
offset?: number | undefined;
|
|
5263
|
-
search?: string | undefined;
|
|
5264
|
-
exclude?: number[] | undefined;
|
|
5265
|
-
include?: number[] | undefined;
|
|
5266
5263
|
order?: "asc" | "desc" | undefined;
|
|
5267
5264
|
orderby?: string | undefined;
|
|
5265
|
+
include?: number[] | undefined;
|
|
5266
|
+
search?: string | undefined;
|
|
5267
|
+
exclude?: number[] | undefined;
|
|
5268
5268
|
enabled?: boolean | undefined;
|
|
5269
5269
|
}>;
|
|
5270
5270
|
readonly entity: zod.ZodObject<{
|
|
@@ -5307,12 +5307,12 @@ declare const schemas: {
|
|
|
5307
5307
|
collection: {
|
|
5308
5308
|
href: string;
|
|
5309
5309
|
}[];
|
|
5310
|
-
|
|
5310
|
+
about?: {
|
|
5311
5311
|
href: string;
|
|
5312
|
-
embeddable?: boolean | undefined;
|
|
5313
5312
|
}[] | undefined;
|
|
5314
|
-
|
|
5313
|
+
author?: {
|
|
5315
5314
|
href: string;
|
|
5315
|
+
embeddable?: boolean | undefined;
|
|
5316
5316
|
}[] | undefined;
|
|
5317
5317
|
}, {
|
|
5318
5318
|
self: {
|
|
@@ -5321,12 +5321,12 @@ declare const schemas: {
|
|
|
5321
5321
|
collection: {
|
|
5322
5322
|
href: string;
|
|
5323
5323
|
}[];
|
|
5324
|
-
|
|
5324
|
+
about?: {
|
|
5325
5325
|
href: string;
|
|
5326
|
-
embeddable?: boolean | undefined;
|
|
5327
5326
|
}[] | undefined;
|
|
5328
|
-
|
|
5327
|
+
author?: {
|
|
5329
5328
|
href: string;
|
|
5329
|
+
embeddable?: boolean | undefined;
|
|
5330
5330
|
}[] | undefined;
|
|
5331
5331
|
}>;
|
|
5332
5332
|
meta_data: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
@@ -5334,12 +5334,12 @@ declare const schemas: {
|
|
|
5334
5334
|
key: zod.ZodString;
|
|
5335
5335
|
value: zod.ZodAny;
|
|
5336
5336
|
}, "strip", zod.ZodTypeAny, {
|
|
5337
|
-
id: number;
|
|
5338
5337
|
key: string;
|
|
5338
|
+
id: number;
|
|
5339
5339
|
value?: any;
|
|
5340
5340
|
}, {
|
|
5341
|
-
id: number;
|
|
5342
5341
|
key: string;
|
|
5342
|
+
id: number;
|
|
5343
5343
|
value?: any;
|
|
5344
5344
|
}>, "many">>;
|
|
5345
5345
|
} & {
|
|
@@ -5351,8 +5351,8 @@ declare const schemas: {
|
|
|
5351
5351
|
method_description: zod.ZodString;
|
|
5352
5352
|
}, "strip", zod.ZodTypeAny, {
|
|
5353
5353
|
id: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
5354
|
-
title: string;
|
|
5355
5354
|
description: string;
|
|
5355
|
+
title: string;
|
|
5356
5356
|
_links: {
|
|
5357
5357
|
self: {
|
|
5358
5358
|
href: string;
|
|
@@ -5360,26 +5360,26 @@ declare const schemas: {
|
|
|
5360
5360
|
collection: {
|
|
5361
5361
|
href: string;
|
|
5362
5362
|
}[];
|
|
5363
|
-
|
|
5363
|
+
about?: {
|
|
5364
5364
|
href: string;
|
|
5365
|
-
embeddable?: boolean | undefined;
|
|
5366
5365
|
}[] | undefined;
|
|
5367
|
-
|
|
5366
|
+
author?: {
|
|
5368
5367
|
href: string;
|
|
5368
|
+
embeddable?: boolean | undefined;
|
|
5369
5369
|
}[] | undefined;
|
|
5370
5370
|
};
|
|
5371
5371
|
enabled: boolean;
|
|
5372
5372
|
method_title: string;
|
|
5373
5373
|
method_description: string;
|
|
5374
5374
|
meta_data?: {
|
|
5375
|
-
id: number;
|
|
5376
5375
|
key: string;
|
|
5376
|
+
id: number;
|
|
5377
5377
|
value?: any;
|
|
5378
5378
|
}[] | undefined;
|
|
5379
5379
|
}, {
|
|
5380
5380
|
id: "cod" | "monri" | "pikpay" | "bacs" | "cheque";
|
|
5381
|
-
title: string;
|
|
5382
5381
|
description: string;
|
|
5382
|
+
title: string;
|
|
5383
5383
|
_links: {
|
|
5384
5384
|
self: {
|
|
5385
5385
|
href: string;
|
|
@@ -5387,20 +5387,20 @@ declare const schemas: {
|
|
|
5387
5387
|
collection: {
|
|
5388
5388
|
href: string;
|
|
5389
5389
|
}[];
|
|
5390
|
-
|
|
5390
|
+
about?: {
|
|
5391
5391
|
href: string;
|
|
5392
|
-
embeddable?: boolean | undefined;
|
|
5393
5392
|
}[] | undefined;
|
|
5394
|
-
|
|
5393
|
+
author?: {
|
|
5395
5394
|
href: string;
|
|
5395
|
+
embeddable?: boolean | undefined;
|
|
5396
5396
|
}[] | undefined;
|
|
5397
5397
|
};
|
|
5398
5398
|
enabled: boolean;
|
|
5399
5399
|
method_title: string;
|
|
5400
5400
|
method_description: string;
|
|
5401
5401
|
meta_data?: {
|
|
5402
|
-
id: number;
|
|
5403
5402
|
key: string;
|
|
5403
|
+
id: number;
|
|
5404
5404
|
value?: any;
|
|
5405
5405
|
}[] | undefined;
|
|
5406
5406
|
}>;
|