@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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +155 -155
  2. package/build/cjs/index.js +489 -470
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +509 -498
  5. package/build/cjs/index.typings.js +361 -342
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +261 -250
  8. package/build/cjs/meta.js +361 -342
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +38 -30
  11. package/build/cjs/schemas.js +73 -61
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +155 -155
  14. package/build/es/index.mjs +489 -470
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +509 -498
  17. package/build/es/index.typings.mjs +361 -342
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +261 -250
  20. package/build/es/meta.mjs +361 -342
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +38 -30
  23. package/build/es/schemas.mjs +73 -61
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +155 -155
  26. package/build/internal/cjs/index.js +489 -470
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +509 -498
  29. package/build/internal/cjs/index.typings.js +361 -342
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +261 -250
  32. package/build/internal/cjs/meta.js +361 -342
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +38 -30
  35. package/build/internal/cjs/schemas.js +73 -61
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +155 -155
  38. package/build/internal/es/index.mjs +489 -470
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +509 -498
  41. package/build/internal/es/index.typings.mjs +361 -342
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +261 -250
  44. package/build/internal/es/meta.mjs +361 -342
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +38 -30
  47. package/build/internal/es/schemas.mjs +73 -61
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import * as z from 'zod';
2
2
 
3
- declare const MemberGetOrderRequest: z.ZodObject<{
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 MemberGetOrderResponse: z.ZodObject<{
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 MemberListOrdersRequest: z.ZodObject<{
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 MemberListOrdersResponse: z.ZodObject<{
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 RequestCancellationRequest: z.ZodObject<{
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 RequestCancellationResponse: z.ZodObject<{}, z.core.$strip>;
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 ManagementGetOrderRequest: z.ZodObject<{
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 ManagementGetOrderResponse: z.ZodObject<{
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 ManagementListOrdersRequest: z.ZodObject<{
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 ManagementListOrdersResponse: z.ZodObject<{
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 PostponeEndDateRequest: z.ZodObject<{
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 CancelOrderResponse: z.ZodObject<{}, z.core.$strip>;
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 };
@@ -1,13 +1,13 @@
1
1
  // src/pricing-plans-v2-order-orders.schemas.ts
2
2
  import * as z from "zod";
3
- var MemberGetOrderRequest = z.object({
3
+ var ManagementGetOrderRequest = z.object({
4
4
  _id: z.string().describe("Order ID.").regex(
5
5
  /^[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}$/,
6
6
  "Must be a valid GUID"
7
7
  ),
8
- options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options for getting a logged-in member's order. ").optional()
8
+ options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options to use when getting an order. ").optional()
9
9
  });
10
- var MemberGetOrderResponse = z.object({
10
+ var ManagementGetOrderResponse = z.object({
11
11
  order: z.object({
12
12
  _id: z.string().describe("Order ID.").regex(
13
13
  /^[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}$/,
@@ -328,12 +328,15 @@ var MemberGetOrderResponse = z.object({
328
328
  }).describe(
329
329
  "Information about the form submitted during the plan's checkout."
330
330
  ).optional()
331
- }).describe("Requested order.").optional()
331
+ }).describe("Order.").optional()
332
332
  });
333
- var MemberListOrdersRequest = z.object({
333
+ var ManagementListOrdersRequest = z.object({
334
334
  options: z.object({
335
+ buyerIds: z.array(z.string()).optional(),
335
336
  planIds: z.array(z.string()).optional(),
336
- autoRenewCanceled: z.boolean().describe("Filter for orders where auto renewal was canceled.").optional().nullable(),
337
+ autoRenewCanceled: z.boolean().describe(
338
+ "Filter by whether or not the auto-renewal of recurring orders was canceled."
339
+ ).optional().nullable(),
337
340
  orderStatuses: z.array(
338
341
  z.enum([
339
342
  "UNDEFINED",
@@ -357,17 +360,25 @@ var MemberListOrdersRequest = z.object({
357
360
  ])
358
361
  ).optional(),
359
362
  limit: z.number().int().describe(
360
- "Limit the number of pricing plans returned. Default limit is 50."
363
+ "Number of orders to return. See Sorting and Paging for more information.\n\nMax: `50`"
361
364
  ).min(1).max(50).optional().nullable(),
362
- offset: z.number().int().describe("Number of entries to offset.").min(0).optional().nullable(),
365
+ offset: z.number().int().describe("Number of orders to skip in the current sort order.").min(0).optional().nullable(),
363
366
  sorting: z.object({
364
367
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
365
- order: z.enum(["ASC", "DESC"]).optional()
366
- }).describe("Sorting direction (defaults to ASC) and field to sort by.").optional(),
368
+ order: z.enum(["ASC", "DESC"]).optional(),
369
+ origin: z.object({
370
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
371
+ longitude: z.number().describe("Address longitude.").optional().nullable()
372
+ }).describe(
373
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
374
+ ).optional()
375
+ }).describe(
376
+ "Sort order.\n\nUse `ASC` for ascending order or `DESC` for descending order.\n\nDefault: `DESC`."
377
+ ).optional(),
367
378
  fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
368
379
  }).describe("Filtering, sorting, and pagination options. ").optional()
369
380
  });
370
- var MemberListOrdersResponse = z.object({
381
+ var ManagementListOrdersResponse = z.object({
371
382
  orders: z.array(
372
383
  z.object({
373
384
  _id: z.string().describe("Order ID.").regex(
@@ -718,14 +729,45 @@ var MemberListOrdersResponse = z.object({
718
729
  "Object containing paging-related data (number of orders returned, offset)."
719
730
  ).optional()
720
731
  });
721
- var RequestCancellationRequest = z.object({
732
+ var PostponeEndDateRequest = z.object({
733
+ _id: z.string().describe("Order ID.").regex(
734
+ /^[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}$/,
735
+ "Must be a valid GUID"
736
+ ),
737
+ endDate: z.date().describe(
738
+ "New end date and time.\n\nMust be later than the current end date and time."
739
+ )
740
+ });
741
+ var PostponeEndDateResponse = z.object({});
742
+ var CancelOrderRequest = z.object({
722
743
  _id: z.string().describe("Order ID.").regex(
723
744
  /^[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}$/,
724
745
  "Must be a valid GUID"
725
746
  ),
726
747
  effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
727
748
  });
728
- var RequestCancellationResponse = z.object({});
749
+ var CancelOrderResponse = z.object({});
750
+ var MarkAsPaidRequest = z.object({
751
+ _id: z.string().describe("Order ID.").regex(
752
+ /^[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}$/,
753
+ "Must be a valid GUID"
754
+ )
755
+ });
756
+ var MarkAsPaidResponse = z.object({});
757
+ var PauseOrderRequest = z.object({
758
+ _id: z.string().describe("Order ID.").regex(
759
+ /^[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}$/,
760
+ "Must be a valid GUID"
761
+ )
762
+ });
763
+ var PauseOrderResponse = z.object({});
764
+ var ResumeOrderRequest = z.object({
765
+ _id: z.string().describe("Order ID.").regex(
766
+ /^[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}$/,
767
+ "Must be a valid GUID"
768
+ )
769
+ });
770
+ var ResumeOrderResponse = z.object({});
729
771
  var CreateOnlineOrderRequest = z.object({
730
772
  planId: z.string().describe("Plan ID.").regex(
731
773
  /^[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}$/,
@@ -2247,14 +2289,14 @@ var GetPricePreviewResponse = z.object({
2247
2289
  })
2248
2290
  ).optional()
2249
2291
  });
2250
- var ManagementGetOrderRequest = z.object({
2292
+ var MemberGetOrderRequest = z.object({
2251
2293
  _id: z.string().describe("Order ID.").regex(
2252
2294
  /^[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}$/,
2253
2295
  "Must be a valid GUID"
2254
2296
  ),
2255
- options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options to use when getting an order. ").optional()
2297
+ options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options for getting a logged-in member's order. ").optional()
2256
2298
  });
2257
- var ManagementGetOrderResponse = z.object({
2299
+ var MemberGetOrderResponse = z.object({
2258
2300
  _id: z.string().describe("Order ID.").regex(
2259
2301
  /^[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}$/,
2260
2302
  "Must be a valid GUID"
@@ -2567,13 +2609,10 @@ var ManagementGetOrderResponse = z.object({
2567
2609
  "Information about the form submitted during the plan's checkout."
2568
2610
  ).optional()
2569
2611
  });
2570
- var ManagementListOrdersRequest = z.object({
2612
+ var MemberListOrdersRequest = z.object({
2571
2613
  options: z.object({
2572
- buyerIds: z.array(z.string()).optional(),
2573
2614
  planIds: z.array(z.string()).optional(),
2574
- autoRenewCanceled: z.boolean().describe(
2575
- "Filter by whether or not the auto-renewal of recurring orders was canceled."
2576
- ).optional().nullable(),
2615
+ autoRenewCanceled: z.boolean().describe("Filter for orders where auto renewal was canceled.").optional().nullable(),
2577
2616
  orderStatuses: z.array(
2578
2617
  z.enum([
2579
2618
  "UNDEFINED",
@@ -2597,19 +2636,23 @@ var ManagementListOrdersRequest = z.object({
2597
2636
  ])
2598
2637
  ).optional(),
2599
2638
  limit: z.number().int().describe(
2600
- "Number of orders to return. See Sorting and Paging for more information.\n\nMax: `50`"
2639
+ "Limit the number of pricing plans returned. Default limit is 50."
2601
2640
  ).min(1).max(50).optional().nullable(),
2602
- offset: z.number().int().describe("Number of orders to skip in the current sort order.").min(0).optional().nullable(),
2641
+ offset: z.number().int().describe("Number of entries to offset.").min(0).optional().nullable(),
2603
2642
  sorting: z.object({
2604
2643
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
2605
- order: z.enum(["ASC", "DESC"]).optional()
2606
- }).describe(
2607
- "Sort order.\n\nUse `ASC` for ascending order or `DESC` for descending order.\n\nDefault: `DESC`."
2608
- ).optional(),
2644
+ order: z.enum(["ASC", "DESC"]).optional(),
2645
+ origin: z.object({
2646
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
2647
+ longitude: z.number().describe("Address longitude.").optional().nullable()
2648
+ }).describe(
2649
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
2650
+ ).optional()
2651
+ }).describe("Sorting direction (defaults to ASC) and field to sort by.").optional(),
2609
2652
  fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
2610
2653
  }).describe("Filtering, sorting, and pagination options. ").optional()
2611
2654
  });
2612
- var ManagementListOrdersResponse = z.object({
2655
+ var MemberListOrdersResponse = z.object({
2613
2656
  orders: z.array(
2614
2657
  z.object({
2615
2658
  _id: z.string().describe("Order ID.").regex(
@@ -2960,45 +3003,14 @@ var ManagementListOrdersResponse = z.object({
2960
3003
  "Object containing paging-related data (number of orders returned, offset)."
2961
3004
  ).optional()
2962
3005
  });
2963
- var PostponeEndDateRequest = z.object({
2964
- _id: z.string().describe("Order ID.").regex(
2965
- /^[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}$/,
2966
- "Must be a valid GUID"
2967
- ),
2968
- endDate: z.date().describe(
2969
- "New end date and time.\n\nMust be later than the current end date and time."
2970
- )
2971
- });
2972
- var PostponeEndDateResponse = z.object({});
2973
- var CancelOrderRequest = z.object({
3006
+ var RequestCancellationRequest = z.object({
2974
3007
  _id: z.string().describe("Order ID.").regex(
2975
3008
  /^[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}$/,
2976
3009
  "Must be a valid GUID"
2977
3010
  ),
2978
3011
  effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
2979
3012
  });
2980
- var CancelOrderResponse = z.object({});
2981
- var MarkAsPaidRequest = z.object({
2982
- _id: z.string().describe("Order ID.").regex(
2983
- /^[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}$/,
2984
- "Must be a valid GUID"
2985
- )
2986
- });
2987
- var MarkAsPaidResponse = z.object({});
2988
- var PauseOrderRequest = z.object({
2989
- _id: z.string().describe("Order ID.").regex(
2990
- /^[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}$/,
2991
- "Must be a valid GUID"
2992
- )
2993
- });
2994
- var PauseOrderResponse = z.object({});
2995
- var ResumeOrderRequest = z.object({
2996
- _id: z.string().describe("Order ID.").regex(
2997
- /^[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}$/,
2998
- "Must be a valid GUID"
2999
- )
3000
- });
3001
- var ResumeOrderResponse = z.object({});
3013
+ var RequestCancellationResponse = z.object({});
3002
3014
  export {
3003
3015
  CancelOrderRequest,
3004
3016
  CancelOrderResponse,