@wix/auto_sdk_pricing-plans_orders 1.0.120 → 1.0.122
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.js +180 -62
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +150 -36
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +150 -36
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +30 -30
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +180 -62
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +150 -36
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +150 -36
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +30 -30
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +180 -62
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +59 -0
- package/build/internal/cjs/index.typings.js +150 -36
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +101 -0
- package/build/internal/cjs/meta.js +150 -36
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +30 -30
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +180 -62
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +59 -0
- package/build/internal/es/index.typings.mjs +150 -36
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +101 -0
- package/build/internal/es/meta.mjs +150 -36
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +30 -30
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/schemas.js
CHANGED
|
@@ -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 ManagementGetOrderRequest = z.object({
|
|
68
|
+
var ManagementGetOrderRequest = /* @__PURE__ */ 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
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 ManagementGetOrderResponse = z.object({
|
|
75
|
+
var ManagementGetOrderResponse = /* @__PURE__ */ 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}$/,
|
|
@@ -395,7 +395,7 @@ var ManagementGetOrderResponse = z.object({
|
|
|
395
395
|
).optional()
|
|
396
396
|
}).describe("Order.").optional()
|
|
397
397
|
});
|
|
398
|
-
var ManagementListOrdersRequest = z.object({
|
|
398
|
+
var ManagementListOrdersRequest = /* @__PURE__ */ z.object({
|
|
399
399
|
options: z.object({
|
|
400
400
|
buyerIds: z.array(z.string()).optional(),
|
|
401
401
|
planIds: z.array(z.string()).optional(),
|
|
@@ -443,7 +443,7 @@ var ManagementListOrdersRequest = z.object({
|
|
|
443
443
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
444
444
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
445
445
|
});
|
|
446
|
-
var ManagementListOrdersResponse = z.object({
|
|
446
|
+
var ManagementListOrdersResponse = /* @__PURE__ */ z.object({
|
|
447
447
|
orders: z.array(
|
|
448
448
|
z.object({
|
|
449
449
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -794,7 +794,7 @@ var ManagementListOrdersResponse = z.object({
|
|
|
794
794
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
795
795
|
).optional()
|
|
796
796
|
});
|
|
797
|
-
var PostponeEndDateRequest = z.object({
|
|
797
|
+
var PostponeEndDateRequest = /* @__PURE__ */ z.object({
|
|
798
798
|
_id: z.string().describe("Order ID.").regex(
|
|
799
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
800
|
"Must be a valid GUID"
|
|
@@ -803,37 +803,37 @@ var PostponeEndDateRequest = z.object({
|
|
|
803
803
|
"New end date and time.\n\nMust be later than the current end date and time."
|
|
804
804
|
)
|
|
805
805
|
});
|
|
806
|
-
var PostponeEndDateResponse = z.object({});
|
|
807
|
-
var CancelOrderRequest = z.object({
|
|
806
|
+
var PostponeEndDateResponse = /* @__PURE__ */ z.object({});
|
|
807
|
+
var CancelOrderRequest = /* @__PURE__ */ z.object({
|
|
808
808
|
_id: z.string().describe("Order ID.").regex(
|
|
809
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}$/,
|
|
810
810
|
"Must be a valid GUID"
|
|
811
811
|
),
|
|
812
812
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
813
813
|
});
|
|
814
|
-
var CancelOrderResponse = z.object({});
|
|
815
|
-
var MarkAsPaidRequest = z.object({
|
|
814
|
+
var CancelOrderResponse = /* @__PURE__ */ z.object({});
|
|
815
|
+
var MarkAsPaidRequest = /* @__PURE__ */ z.object({
|
|
816
816
|
_id: z.string().describe("Order ID.").regex(
|
|
817
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
818
|
"Must be a valid GUID"
|
|
819
819
|
)
|
|
820
820
|
});
|
|
821
|
-
var MarkAsPaidResponse = z.object({});
|
|
822
|
-
var PauseOrderRequest = z.object({
|
|
821
|
+
var MarkAsPaidResponse = /* @__PURE__ */ z.object({});
|
|
822
|
+
var PauseOrderRequest = /* @__PURE__ */ z.object({
|
|
823
823
|
_id: z.string().describe("Order ID.").regex(
|
|
824
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
825
|
"Must be a valid GUID"
|
|
826
826
|
)
|
|
827
827
|
});
|
|
828
|
-
var PauseOrderResponse = z.object({});
|
|
829
|
-
var ResumeOrderRequest = z.object({
|
|
828
|
+
var PauseOrderResponse = /* @__PURE__ */ z.object({});
|
|
829
|
+
var ResumeOrderRequest = /* @__PURE__ */ z.object({
|
|
830
830
|
_id: z.string().describe("Order ID.").regex(
|
|
831
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
832
|
"Must be a valid GUID"
|
|
833
833
|
)
|
|
834
834
|
});
|
|
835
|
-
var ResumeOrderResponse = z.object({});
|
|
836
|
-
var CreateOnlineOrderRequest = z.object({
|
|
835
|
+
var ResumeOrderResponse = /* @__PURE__ */ z.object({});
|
|
836
|
+
var CreateOnlineOrderRequest = /* @__PURE__ */ z.object({
|
|
837
837
|
planId: z.string().describe("Plan ID.").regex(
|
|
838
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}$/,
|
|
839
839
|
"Must be a valid GUID"
|
|
@@ -856,7 +856,7 @@ var CreateOnlineOrderRequest = z.object({
|
|
|
856
856
|
).optional().nullable()
|
|
857
857
|
}).optional()
|
|
858
858
|
});
|
|
859
|
-
var CreateOnlineOrderResponse = z.object({
|
|
859
|
+
var CreateOnlineOrderResponse = /* @__PURE__ */ z.object({
|
|
860
860
|
order: z.object({
|
|
861
861
|
_id: z.string().describe("Order ID.").regex(
|
|
862
862
|
/^[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}$/,
|
|
@@ -1179,7 +1179,7 @@ var CreateOnlineOrderResponse = z.object({
|
|
|
1179
1179
|
).optional()
|
|
1180
1180
|
}).describe("Created online order.").optional()
|
|
1181
1181
|
});
|
|
1182
|
-
var CreateOfflineOrderRequest = z.object({
|
|
1182
|
+
var CreateOfflineOrderRequest = /* @__PURE__ */ z.object({
|
|
1183
1183
|
planId: z.string().describe("ID of the plan being ordered, from the Plans API.").regex(
|
|
1184
1184
|
/^[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}$/,
|
|
1185
1185
|
"Must be a valid GUID"
|
|
@@ -1200,7 +1200,7 @@ var CreateOfflineOrderRequest = z.object({
|
|
|
1200
1200
|
).optional().nullable()
|
|
1201
1201
|
}).describe("Options for creating an offline order. ").optional()
|
|
1202
1202
|
});
|
|
1203
|
-
var CreateOfflineOrderResponse = z.object({
|
|
1203
|
+
var CreateOfflineOrderResponse = /* @__PURE__ */ z.object({
|
|
1204
1204
|
order: z.object({
|
|
1205
1205
|
_id: z.string().describe("Order ID.").regex(
|
|
1206
1206
|
/^[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}$/,
|
|
@@ -1523,7 +1523,7 @@ var CreateOfflineOrderResponse = z.object({
|
|
|
1523
1523
|
).optional()
|
|
1524
1524
|
}).describe("Order.").optional()
|
|
1525
1525
|
});
|
|
1526
|
-
var GetOnlineOrderPreviewRequest = z.object({
|
|
1526
|
+
var GetOnlineOrderPreviewRequest = /* @__PURE__ */ z.object({
|
|
1527
1527
|
planId: z.string().describe("Plan ID.").regex(
|
|
1528
1528
|
/^[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}$/,
|
|
1529
1529
|
"Must be a valid GUID"
|
|
@@ -1535,7 +1535,7 @@ var GetOnlineOrderPreviewRequest = z.object({
|
|
|
1535
1535
|
couponCode: z.string().describe("Coupon code to apply.").min(1).max(20).optional().nullable()
|
|
1536
1536
|
}).optional()
|
|
1537
1537
|
});
|
|
1538
|
-
var GetOnlineOrderPreviewResponse = z.object({
|
|
1538
|
+
var GetOnlineOrderPreviewResponse = /* @__PURE__ */ z.object({
|
|
1539
1539
|
order: z.object({
|
|
1540
1540
|
_id: z.string().describe("Order ID.").regex(
|
|
1541
1541
|
/^[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}$/,
|
|
@@ -1863,7 +1863,7 @@ var GetOnlineOrderPreviewResponse = z.object({
|
|
|
1863
1863
|
"Whether the member has already reached purchase limit for the order's plan."
|
|
1864
1864
|
).optional()
|
|
1865
1865
|
});
|
|
1866
|
-
var GetOfflineOrderPreviewRequest = z.object({
|
|
1866
|
+
var GetOfflineOrderPreviewRequest = /* @__PURE__ */ z.object({
|
|
1867
1867
|
planId: z.string().describe("ID of the plan of the previewed order.").regex(
|
|
1868
1868
|
/^[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}$/,
|
|
1869
1869
|
"Must be a valid GUID"
|
|
@@ -1881,7 +1881,7 @@ var GetOfflineOrderPreviewRequest = z.object({
|
|
|
1881
1881
|
couponCode: z.string().describe("Coupon code to apply, from the Coupons API.").min(1).max(20).optional().nullable()
|
|
1882
1882
|
}).describe("Options for previewing the offline order. ").optional()
|
|
1883
1883
|
});
|
|
1884
|
-
var GetOfflineOrderPreviewResponse = z.object({
|
|
1884
|
+
var GetOfflineOrderPreviewResponse = /* @__PURE__ */ z.object({
|
|
1885
1885
|
order: z.object({
|
|
1886
1886
|
_id: z.string().describe("Order ID.").regex(
|
|
1887
1887
|
/^[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}$/,
|
|
@@ -2207,7 +2207,7 @@ var GetOfflineOrderPreviewResponse = z.object({
|
|
|
2207
2207
|
"Whether this previewed order would exceed the permitted amount of purchases available\nfor this plan for this buyer.\n\nAlways `false` for plans that do not have purchase limits."
|
|
2208
2208
|
).optional()
|
|
2209
2209
|
});
|
|
2210
|
-
var GetPricePreviewRequest = z.object({
|
|
2210
|
+
var GetPricePreviewRequest = /* @__PURE__ */ z.object({
|
|
2211
2211
|
planId: z.string().describe("ID of plan to preview.").regex(
|
|
2212
2212
|
/^[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}$/,
|
|
2213
2213
|
"Must be a valid GUID"
|
|
@@ -2216,7 +2216,7 @@ var GetPricePreviewRequest = z.object({
|
|
|
2216
2216
|
couponCode: z.string().describe("Coupon code to apply, from the Coupons API.").min(1).max(20).optional().nullable()
|
|
2217
2217
|
}).describe("Options for getting a price preview. ").optional()
|
|
2218
2218
|
});
|
|
2219
|
-
var GetPricePreviewResponse = z.object({
|
|
2219
|
+
var GetPricePreviewResponse = /* @__PURE__ */ z.object({
|
|
2220
2220
|
price: z.intersection(
|
|
2221
2221
|
z.object({
|
|
2222
2222
|
subtotal: z.string().describe(
|
|
@@ -2354,14 +2354,14 @@ var GetPricePreviewResponse = z.object({
|
|
|
2354
2354
|
})
|
|
2355
2355
|
).optional()
|
|
2356
2356
|
});
|
|
2357
|
-
var MemberGetOrderRequest = z.object({
|
|
2357
|
+
var MemberGetOrderRequest = /* @__PURE__ */ z.object({
|
|
2358
2358
|
_id: z.string().describe("Order ID.").regex(
|
|
2359
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}$/,
|
|
2360
2360
|
"Must be a valid GUID"
|
|
2361
2361
|
),
|
|
2362
2362
|
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options for getting a logged-in member's order. ").optional()
|
|
2363
2363
|
});
|
|
2364
|
-
var MemberGetOrderResponse = z.object({
|
|
2364
|
+
var MemberGetOrderResponse = /* @__PURE__ */ z.object({
|
|
2365
2365
|
_id: z.string().describe("Order ID.").regex(
|
|
2366
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}$/,
|
|
2367
2367
|
"Must be a valid GUID"
|
|
@@ -2674,7 +2674,7 @@ var MemberGetOrderResponse = z.object({
|
|
|
2674
2674
|
"Information about the form submitted during the plan's checkout."
|
|
2675
2675
|
).optional()
|
|
2676
2676
|
});
|
|
2677
|
-
var MemberListOrdersRequest = z.object({
|
|
2677
|
+
var MemberListOrdersRequest = /* @__PURE__ */ z.object({
|
|
2678
2678
|
options: z.object({
|
|
2679
2679
|
planIds: z.array(z.string()).optional(),
|
|
2680
2680
|
autoRenewCanceled: z.boolean().describe("Filter for orders where auto renewal was canceled.").optional().nullable(),
|
|
@@ -2717,7 +2717,7 @@ var MemberListOrdersRequest = z.object({
|
|
|
2717
2717
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
2718
2718
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
2719
2719
|
});
|
|
2720
|
-
var MemberListOrdersResponse = z.object({
|
|
2720
|
+
var MemberListOrdersResponse = /* @__PURE__ */ z.object({
|
|
2721
2721
|
orders: z.array(
|
|
2722
2722
|
z.object({
|
|
2723
2723
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -3068,14 +3068,14 @@ var MemberListOrdersResponse = z.object({
|
|
|
3068
3068
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
3069
3069
|
).optional()
|
|
3070
3070
|
});
|
|
3071
|
-
var RequestCancellationRequest = z.object({
|
|
3071
|
+
var RequestCancellationRequest = /* @__PURE__ */ z.object({
|
|
3072
3072
|
_id: z.string().describe("Order ID.").regex(
|
|
3073
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}$/,
|
|
3074
3074
|
"Must be a valid GUID"
|
|
3075
3075
|
),
|
|
3076
3076
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
3077
3077
|
});
|
|
3078
|
-
var RequestCancellationResponse = z.object({});
|
|
3078
|
+
var RequestCancellationResponse = /* @__PURE__ */ z.object({});
|
|
3079
3079
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3080
3080
|
0 && (module.exports = {
|
|
3081
3081
|
CancelOrderRequest,
|