@wix/auto_sdk_pricing-plans_orders 1.0.119 → 1.0.120
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/build/cjs/index.d.ts +155 -155
- package/build/cjs/index.js +489 -470
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +509 -498
- package/build/cjs/index.typings.js +361 -342
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +261 -250
- package/build/cjs/meta.js +361 -342
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +38 -30
- package/build/cjs/schemas.js +73 -61
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +155 -155
- package/build/es/index.mjs +489 -470
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +509 -498
- package/build/es/index.typings.mjs +361 -342
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +261 -250
- package/build/es/meta.mjs +361 -342
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +38 -30
- package/build/es/schemas.mjs +73 -61
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +155 -155
- package/build/internal/cjs/index.js +489 -470
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +509 -498
- package/build/internal/cjs/index.typings.js +361 -342
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +261 -250
- package/build/internal/cjs/meta.js +361 -342
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +38 -30
- package/build/internal/cjs/schemas.js +73 -61
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +155 -155
- package/build/internal/es/index.mjs +489 -470
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +509 -498
- package/build/internal/es/index.typings.mjs +361 -342
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +261 -250
- package/build/internal/es/meta.mjs +361 -342
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +38 -30
- package/build/internal/es/schemas.mjs +73 -61
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const ManagementGetOrderRequest: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
5
|
options: z.ZodOptional<z.ZodObject<{
|
|
6
6
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
@@ -10,7 +10,7 @@ declare const MemberGetOrderRequest: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
declare const
|
|
13
|
+
declare const ManagementGetOrderResponse: z.ZodObject<{
|
|
14
14
|
order: z.ZodOptional<z.ZodObject<{
|
|
15
15
|
_id: z.ZodOptional<z.ZodString>;
|
|
16
16
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -210,8 +210,9 @@ declare const MemberGetOrderResponse: z.ZodObject<{
|
|
|
210
210
|
}, z.core.$strip>>;
|
|
211
211
|
}, z.core.$strip>>;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
|
-
declare const
|
|
213
|
+
declare const ManagementListOrdersRequest: z.ZodObject<{
|
|
214
214
|
options: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
buyerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
215
216
|
planIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
217
|
autoRenewCanceled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
217
218
|
orderStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -240,6 +241,10 @@ declare const MemberListOrdersRequest: z.ZodObject<{
|
|
|
240
241
|
ASC: "ASC";
|
|
241
242
|
DESC: "DESC";
|
|
242
243
|
}>>;
|
|
244
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
246
|
+
longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
243
248
|
}, z.core.$strip>>;
|
|
244
249
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
245
250
|
UNKNOWN_SET: "UNKNOWN_SET";
|
|
@@ -248,7 +253,7 @@ declare const MemberListOrdersRequest: z.ZodObject<{
|
|
|
248
253
|
}>>;
|
|
249
254
|
}, z.core.$strip>>;
|
|
250
255
|
}, z.core.$strip>;
|
|
251
|
-
declare const
|
|
256
|
+
declare const ManagementListOrdersResponse: z.ZodObject<{
|
|
252
257
|
orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
253
258
|
_id: z.ZodOptional<z.ZodString>;
|
|
254
259
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -458,7 +463,12 @@ declare const MemberListOrdersResponse: z.ZodObject<{
|
|
|
458
463
|
}, z.core.$strip>>;
|
|
459
464
|
}, z.core.$strip>>;
|
|
460
465
|
}, z.core.$strip>;
|
|
461
|
-
declare const
|
|
466
|
+
declare const PostponeEndDateRequest: z.ZodObject<{
|
|
467
|
+
_id: z.ZodString;
|
|
468
|
+
endDate: z.ZodDate;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
declare const PostponeEndDateResponse: z.ZodObject<{}, z.core.$strip>;
|
|
471
|
+
declare const CancelOrderRequest: z.ZodObject<{
|
|
462
472
|
_id: z.ZodString;
|
|
463
473
|
effectiveAt: z.ZodEnum<{
|
|
464
474
|
UNDEFINED: "UNDEFINED";
|
|
@@ -466,7 +476,19 @@ declare const RequestCancellationRequest: z.ZodObject<{
|
|
|
466
476
|
NEXT_PAYMENT_DATE: "NEXT_PAYMENT_DATE";
|
|
467
477
|
}>;
|
|
468
478
|
}, z.core.$strip>;
|
|
469
|
-
declare const
|
|
479
|
+
declare const CancelOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
480
|
+
declare const MarkAsPaidRequest: z.ZodObject<{
|
|
481
|
+
_id: z.ZodString;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
declare const MarkAsPaidResponse: z.ZodObject<{}, z.core.$strip>;
|
|
484
|
+
declare const PauseOrderRequest: z.ZodObject<{
|
|
485
|
+
_id: z.ZodString;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
declare const PauseOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
488
|
+
declare const ResumeOrderRequest: z.ZodObject<{
|
|
489
|
+
_id: z.ZodString;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
declare const ResumeOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
470
492
|
declare const CreateOnlineOrderRequest: z.ZodObject<{
|
|
471
493
|
planId: z.ZodString;
|
|
472
494
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -1398,7 +1420,7 @@ declare const GetPricePreviewResponse: z.ZodObject<{
|
|
|
1398
1420
|
}, z.core.$strip>>;
|
|
1399
1421
|
}, z.core.$strip>>>;
|
|
1400
1422
|
}, z.core.$strip>;
|
|
1401
|
-
declare const
|
|
1423
|
+
declare const MemberGetOrderRequest: z.ZodObject<{
|
|
1402
1424
|
_id: z.ZodString;
|
|
1403
1425
|
options: z.ZodOptional<z.ZodObject<{
|
|
1404
1426
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1408,7 +1430,7 @@ declare const ManagementGetOrderRequest: z.ZodObject<{
|
|
|
1408
1430
|
}>>;
|
|
1409
1431
|
}, z.core.$strip>>;
|
|
1410
1432
|
}, z.core.$strip>;
|
|
1411
|
-
declare const
|
|
1433
|
+
declare const MemberGetOrderResponse: z.ZodObject<{
|
|
1412
1434
|
_id: z.ZodOptional<z.ZodString>;
|
|
1413
1435
|
planId: z.ZodOptional<z.ZodString>;
|
|
1414
1436
|
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1606,9 +1628,8 @@ declare const ManagementGetOrderResponse: z.ZodObject<{
|
|
|
1606
1628
|
submissionData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1607
1629
|
}, z.core.$strip>>;
|
|
1608
1630
|
}, z.core.$strip>;
|
|
1609
|
-
declare const
|
|
1631
|
+
declare const MemberListOrdersRequest: z.ZodObject<{
|
|
1610
1632
|
options: z.ZodOptional<z.ZodObject<{
|
|
1611
|
-
buyerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1612
1633
|
planIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1613
1634
|
autoRenewCanceled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
1614
1635
|
orderStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1637,6 +1658,10 @@ declare const ManagementListOrdersRequest: z.ZodObject<{
|
|
|
1637
1658
|
ASC: "ASC";
|
|
1638
1659
|
DESC: "DESC";
|
|
1639
1660
|
}>>;
|
|
1661
|
+
origin: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1663
|
+
longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1664
|
+
}, z.core.$strip>>;
|
|
1640
1665
|
}, z.core.$strip>>;
|
|
1641
1666
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
1642
1667
|
UNKNOWN_SET: "UNKNOWN_SET";
|
|
@@ -1645,7 +1670,7 @@ declare const ManagementListOrdersRequest: z.ZodObject<{
|
|
|
1645
1670
|
}>>;
|
|
1646
1671
|
}, z.core.$strip>>;
|
|
1647
1672
|
}, z.core.$strip>;
|
|
1648
|
-
declare const
|
|
1673
|
+
declare const MemberListOrdersResponse: z.ZodObject<{
|
|
1649
1674
|
orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1650
1675
|
_id: z.ZodOptional<z.ZodString>;
|
|
1651
1676
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -1855,12 +1880,7 @@ declare const ManagementListOrdersResponse: z.ZodObject<{
|
|
|
1855
1880
|
}, z.core.$strip>>;
|
|
1856
1881
|
}, z.core.$strip>>;
|
|
1857
1882
|
}, z.core.$strip>;
|
|
1858
|
-
declare const
|
|
1859
|
-
_id: z.ZodString;
|
|
1860
|
-
endDate: z.ZodDate;
|
|
1861
|
-
}, z.core.$strip>;
|
|
1862
|
-
declare const PostponeEndDateResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1863
|
-
declare const CancelOrderRequest: z.ZodObject<{
|
|
1883
|
+
declare const RequestCancellationRequest: z.ZodObject<{
|
|
1864
1884
|
_id: z.ZodString;
|
|
1865
1885
|
effectiveAt: z.ZodEnum<{
|
|
1866
1886
|
UNDEFINED: "UNDEFINED";
|
|
@@ -1868,18 +1888,6 @@ declare const CancelOrderRequest: z.ZodObject<{
|
|
|
1868
1888
|
NEXT_PAYMENT_DATE: "NEXT_PAYMENT_DATE";
|
|
1869
1889
|
}>;
|
|
1870
1890
|
}, z.core.$strip>;
|
|
1871
|
-
declare const
|
|
1872
|
-
declare const MarkAsPaidRequest: z.ZodObject<{
|
|
1873
|
-
_id: z.ZodString;
|
|
1874
|
-
}, z.core.$strip>;
|
|
1875
|
-
declare const MarkAsPaidResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1876
|
-
declare const PauseOrderRequest: z.ZodObject<{
|
|
1877
|
-
_id: z.ZodString;
|
|
1878
|
-
}, z.core.$strip>;
|
|
1879
|
-
declare const PauseOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1880
|
-
declare const ResumeOrderRequest: z.ZodObject<{
|
|
1881
|
-
_id: z.ZodString;
|
|
1882
|
-
}, z.core.$strip>;
|
|
1883
|
-
declare const ResumeOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1891
|
+
declare const RequestCancellationResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1884
1892
|
|
|
1885
1893
|
export { CancelOrderRequest, CancelOrderResponse, CreateOfflineOrderRequest, CreateOfflineOrderResponse, CreateOnlineOrderRequest, CreateOnlineOrderResponse, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse, GetPricePreviewRequest, GetPricePreviewResponse, ManagementGetOrderRequest, ManagementGetOrderResponse, ManagementListOrdersRequest, ManagementListOrdersResponse, MarkAsPaidRequest, MarkAsPaidResponse, MemberGetOrderRequest, MemberGetOrderResponse, MemberListOrdersRequest, MemberListOrdersResponse, PauseOrderRequest, PauseOrderResponse, PostponeEndDateRequest, PostponeEndDateResponse, RequestCancellationRequest, RequestCancellationResponse, ResumeOrderRequest, ResumeOrderResponse };
|
|
@@ -65,14 +65,14 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
65
65
|
|
|
66
66
|
// src/pricing-plans-v2-order-orders.schemas.ts
|
|
67
67
|
var z = __toESM(require("zod"));
|
|
68
|
-
var
|
|
68
|
+
var ManagementGetOrderRequest = z.object({
|
|
69
69
|
_id: z.string().describe("Order ID.").regex(
|
|
70
70
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
71
71
|
"Must be a valid GUID"
|
|
72
72
|
),
|
|
73
|
-
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options
|
|
73
|
+
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options to use when getting an order. ").optional()
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var ManagementGetOrderResponse = z.object({
|
|
76
76
|
order: z.object({
|
|
77
77
|
_id: z.string().describe("Order ID.").regex(
|
|
78
78
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -393,12 +393,15 @@ var MemberGetOrderResponse = z.object({
|
|
|
393
393
|
}).describe(
|
|
394
394
|
"Information about the form submitted during the plan's checkout."
|
|
395
395
|
).optional()
|
|
396
|
-
}).describe("
|
|
396
|
+
}).describe("Order.").optional()
|
|
397
397
|
});
|
|
398
|
-
var
|
|
398
|
+
var ManagementListOrdersRequest = z.object({
|
|
399
399
|
options: z.object({
|
|
400
|
+
buyerIds: z.array(z.string()).optional(),
|
|
400
401
|
planIds: z.array(z.string()).optional(),
|
|
401
|
-
autoRenewCanceled: z.boolean().describe(
|
|
402
|
+
autoRenewCanceled: z.boolean().describe(
|
|
403
|
+
"Filter by whether or not the auto-renewal of recurring orders was canceled."
|
|
404
|
+
).optional().nullable(),
|
|
402
405
|
orderStatuses: z.array(
|
|
403
406
|
z.enum([
|
|
404
407
|
"UNDEFINED",
|
|
@@ -422,17 +425,25 @@ var MemberListOrdersRequest = z.object({
|
|
|
422
425
|
])
|
|
423
426
|
).optional(),
|
|
424
427
|
limit: z.number().int().describe(
|
|
425
|
-
"
|
|
428
|
+
"Number of orders to return. See Sorting and Paging for more information.\n\nMax: `50`"
|
|
426
429
|
).min(1).max(50).optional().nullable(),
|
|
427
|
-
offset: z.number().int().describe("Number of
|
|
430
|
+
offset: z.number().int().describe("Number of orders to skip in the current sort order.").min(0).optional().nullable(),
|
|
428
431
|
sorting: z.object({
|
|
429
432
|
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
430
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
431
|
-
|
|
433
|
+
order: z.enum(["ASC", "DESC"]).optional(),
|
|
434
|
+
origin: z.object({
|
|
435
|
+
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
436
|
+
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
437
|
+
}).describe(
|
|
438
|
+
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
439
|
+
).optional()
|
|
440
|
+
}).describe(
|
|
441
|
+
"Sort order.\n\nUse `ASC` for ascending order or `DESC` for descending order.\n\nDefault: `DESC`."
|
|
442
|
+
).optional(),
|
|
432
443
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
433
444
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
434
445
|
});
|
|
435
|
-
var
|
|
446
|
+
var ManagementListOrdersResponse = z.object({
|
|
436
447
|
orders: z.array(
|
|
437
448
|
z.object({
|
|
438
449
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -783,14 +794,45 @@ var MemberListOrdersResponse = z.object({
|
|
|
783
794
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
784
795
|
).optional()
|
|
785
796
|
});
|
|
786
|
-
var
|
|
797
|
+
var PostponeEndDateRequest = z.object({
|
|
798
|
+
_id: z.string().describe("Order ID.").regex(
|
|
799
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
800
|
+
"Must be a valid GUID"
|
|
801
|
+
),
|
|
802
|
+
endDate: z.date().describe(
|
|
803
|
+
"New end date and time.\n\nMust be later than the current end date and time."
|
|
804
|
+
)
|
|
805
|
+
});
|
|
806
|
+
var PostponeEndDateResponse = z.object({});
|
|
807
|
+
var CancelOrderRequest = z.object({
|
|
787
808
|
_id: z.string().describe("Order ID.").regex(
|
|
788
809
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
789
810
|
"Must be a valid GUID"
|
|
790
811
|
),
|
|
791
812
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
792
813
|
});
|
|
793
|
-
var
|
|
814
|
+
var CancelOrderResponse = z.object({});
|
|
815
|
+
var MarkAsPaidRequest = z.object({
|
|
816
|
+
_id: z.string().describe("Order ID.").regex(
|
|
817
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
818
|
+
"Must be a valid GUID"
|
|
819
|
+
)
|
|
820
|
+
});
|
|
821
|
+
var MarkAsPaidResponse = z.object({});
|
|
822
|
+
var PauseOrderRequest = z.object({
|
|
823
|
+
_id: z.string().describe("Order ID.").regex(
|
|
824
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
825
|
+
"Must be a valid GUID"
|
|
826
|
+
)
|
|
827
|
+
});
|
|
828
|
+
var PauseOrderResponse = z.object({});
|
|
829
|
+
var ResumeOrderRequest = z.object({
|
|
830
|
+
_id: z.string().describe("Order ID.").regex(
|
|
831
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
832
|
+
"Must be a valid GUID"
|
|
833
|
+
)
|
|
834
|
+
});
|
|
835
|
+
var ResumeOrderResponse = z.object({});
|
|
794
836
|
var CreateOnlineOrderRequest = z.object({
|
|
795
837
|
planId: z.string().describe("Plan ID.").regex(
|
|
796
838
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -2312,14 +2354,14 @@ var GetPricePreviewResponse = z.object({
|
|
|
2312
2354
|
})
|
|
2313
2355
|
).optional()
|
|
2314
2356
|
});
|
|
2315
|
-
var
|
|
2357
|
+
var MemberGetOrderRequest = z.object({
|
|
2316
2358
|
_id: z.string().describe("Order ID.").regex(
|
|
2317
2359
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2318
2360
|
"Must be a valid GUID"
|
|
2319
2361
|
),
|
|
2320
|
-
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options
|
|
2362
|
+
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options for getting a logged-in member's order. ").optional()
|
|
2321
2363
|
});
|
|
2322
|
-
var
|
|
2364
|
+
var MemberGetOrderResponse = z.object({
|
|
2323
2365
|
_id: z.string().describe("Order ID.").regex(
|
|
2324
2366
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2325
2367
|
"Must be a valid GUID"
|
|
@@ -2632,13 +2674,10 @@ var ManagementGetOrderResponse = z.object({
|
|
|
2632
2674
|
"Information about the form submitted during the plan's checkout."
|
|
2633
2675
|
).optional()
|
|
2634
2676
|
});
|
|
2635
|
-
var
|
|
2677
|
+
var MemberListOrdersRequest = z.object({
|
|
2636
2678
|
options: z.object({
|
|
2637
|
-
buyerIds: z.array(z.string()).optional(),
|
|
2638
2679
|
planIds: z.array(z.string()).optional(),
|
|
2639
|
-
autoRenewCanceled: z.boolean().describe(
|
|
2640
|
-
"Filter by whether or not the auto-renewal of recurring orders was canceled."
|
|
2641
|
-
).optional().nullable(),
|
|
2680
|
+
autoRenewCanceled: z.boolean().describe("Filter for orders where auto renewal was canceled.").optional().nullable(),
|
|
2642
2681
|
orderStatuses: z.array(
|
|
2643
2682
|
z.enum([
|
|
2644
2683
|
"UNDEFINED",
|
|
@@ -2662,19 +2701,23 @@ var ManagementListOrdersRequest = z.object({
|
|
|
2662
2701
|
])
|
|
2663
2702
|
).optional(),
|
|
2664
2703
|
limit: z.number().int().describe(
|
|
2665
|
-
"
|
|
2704
|
+
"Limit the number of pricing plans returned. Default limit is 50."
|
|
2666
2705
|
).min(1).max(50).optional().nullable(),
|
|
2667
|
-
offset: z.number().int().describe("Number of
|
|
2706
|
+
offset: z.number().int().describe("Number of entries to offset.").min(0).optional().nullable(),
|
|
2668
2707
|
sorting: z.object({
|
|
2669
2708
|
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
2670
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2709
|
+
order: z.enum(["ASC", "DESC"]).optional(),
|
|
2710
|
+
origin: z.object({
|
|
2711
|
+
latitude: z.number().describe("Address latitude.").optional().nullable(),
|
|
2712
|
+
longitude: z.number().describe("Address longitude.").optional().nullable()
|
|
2713
|
+
}).describe(
|
|
2714
|
+
"Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
|
|
2715
|
+
).optional()
|
|
2716
|
+
}).describe("Sorting direction (defaults to ASC) and field to sort by.").optional(),
|
|
2674
2717
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
2675
2718
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
2676
2719
|
});
|
|
2677
|
-
var
|
|
2720
|
+
var MemberListOrdersResponse = z.object({
|
|
2678
2721
|
orders: z.array(
|
|
2679
2722
|
z.object({
|
|
2680
2723
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -3025,45 +3068,14 @@ var ManagementListOrdersResponse = z.object({
|
|
|
3025
3068
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
3026
3069
|
).optional()
|
|
3027
3070
|
});
|
|
3028
|
-
var
|
|
3029
|
-
_id: z.string().describe("Order ID.").regex(
|
|
3030
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3031
|
-
"Must be a valid GUID"
|
|
3032
|
-
),
|
|
3033
|
-
endDate: z.date().describe(
|
|
3034
|
-
"New end date and time.\n\nMust be later than the current end date and time."
|
|
3035
|
-
)
|
|
3036
|
-
});
|
|
3037
|
-
var PostponeEndDateResponse = z.object({});
|
|
3038
|
-
var CancelOrderRequest = z.object({
|
|
3071
|
+
var RequestCancellationRequest = z.object({
|
|
3039
3072
|
_id: z.string().describe("Order ID.").regex(
|
|
3040
3073
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3041
3074
|
"Must be a valid GUID"
|
|
3042
3075
|
),
|
|
3043
3076
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
3044
3077
|
});
|
|
3045
|
-
var
|
|
3046
|
-
var MarkAsPaidRequest = z.object({
|
|
3047
|
-
_id: z.string().describe("Order ID.").regex(
|
|
3048
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3049
|
-
"Must be a valid GUID"
|
|
3050
|
-
)
|
|
3051
|
-
});
|
|
3052
|
-
var MarkAsPaidResponse = z.object({});
|
|
3053
|
-
var PauseOrderRequest = z.object({
|
|
3054
|
-
_id: z.string().describe("Order ID.").regex(
|
|
3055
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3056
|
-
"Must be a valid GUID"
|
|
3057
|
-
)
|
|
3058
|
-
});
|
|
3059
|
-
var PauseOrderResponse = z.object({});
|
|
3060
|
-
var ResumeOrderRequest = z.object({
|
|
3061
|
-
_id: z.string().describe("Order ID.").regex(
|
|
3062
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
3063
|
-
"Must be a valid GUID"
|
|
3064
|
-
)
|
|
3065
|
-
});
|
|
3066
|
-
var ResumeOrderResponse = z.object({});
|
|
3078
|
+
var RequestCancellationResponse = z.object({});
|
|
3067
3079
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3068
3080
|
0 && (module.exports = {
|
|
3069
3081
|
CancelOrderRequest,
|