@wix/auto_sdk_ecom_orders-settings 1.0.50 → 1.0.51
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/schemas.d.ts +38 -0
- package/build/cjs/schemas.js +84 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +38 -0
- package/build/es/schemas.mjs +44 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +38 -0
- package/build/internal/cjs/schemas.js +84 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +38 -0
- package/build/internal/es/schemas.mjs +44 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetOrdersSettingsRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const GetOrdersSettingsResponse: z.ZodObject<{
|
|
5
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
8
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
9
|
+
}>>;
|
|
10
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const UpdateOrdersSettingsRequest: z.ZodObject<{
|
|
16
|
+
ordersSettings: z.ZodObject<{
|
|
17
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
19
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
20
|
+
}>>;
|
|
21
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
23
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const UpdateOrdersSettingsResponse: z.ZodObject<{
|
|
27
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
30
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
31
|
+
}>>;
|
|
32
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
34
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { GetOrdersSettingsRequest, GetOrdersSettingsResponse, UpdateOrdersSettingsRequest, UpdateOrdersSettingsResponse };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
GetOrdersSettingsRequest: () => GetOrdersSettingsRequest,
|
|
34
|
+
GetOrdersSettingsResponse: () => GetOrdersSettingsResponse,
|
|
35
|
+
UpdateOrdersSettingsRequest: () => UpdateOrdersSettingsRequest,
|
|
36
|
+
UpdateOrdersSettingsResponse: () => UpdateOrdersSettingsResponse
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
+
|
|
40
|
+
// src/ecom-v1-orders-settings-orders-settings.schemas.ts
|
|
41
|
+
var z = __toESM(require("zod"));
|
|
42
|
+
var GetOrdersSettingsRequest = z.object({});
|
|
43
|
+
var GetOrdersSettingsResponse = z.object({
|
|
44
|
+
ordersSettings: z.object({
|
|
45
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
46
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
47
|
+
).optional(),
|
|
48
|
+
createInvoice: z.boolean().describe(
|
|
49
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
50
|
+
).optional().nullable(),
|
|
51
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
52
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
53
|
+
}).describe("Orders settings.").optional()
|
|
54
|
+
});
|
|
55
|
+
var UpdateOrdersSettingsRequest = z.object({
|
|
56
|
+
ordersSettings: z.object({
|
|
57
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).optional(),
|
|
58
|
+
createInvoice: z.boolean().describe(
|
|
59
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
62
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
63
|
+
}).describe("Orders settings to update.")
|
|
64
|
+
});
|
|
65
|
+
var UpdateOrdersSettingsResponse = z.object({
|
|
66
|
+
ordersSettings: z.object({
|
|
67
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
68
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
69
|
+
).optional(),
|
|
70
|
+
createInvoice: z.boolean().describe(
|
|
71
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
72
|
+
).optional().nullable(),
|
|
73
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
74
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
75
|
+
}).describe("The updated orders settings.").optional()
|
|
76
|
+
});
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
GetOrdersSettingsRequest,
|
|
80
|
+
GetOrdersSettingsResponse,
|
|
81
|
+
UpdateOrdersSettingsRequest,
|
|
82
|
+
UpdateOrdersSettingsResponse
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/ecom-v1-orders-settings-orders-settings.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-orders-settings-orders-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const GetOrdersSettingsRequest = z.object({});\nexport const GetOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings.')\n .optional(),\n});\nexport const UpdateOrdersSettingsRequest = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings to update.'),\n});\nexport const UpdateOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('The updated orders settings.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,2BAA6B,SAAO,CAAC,CAAC;AAC5C,IAAM,4BAA8B,SAAO;AAAA,EAChD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,8BAAgC,SAAO;AAAA,EAClD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B;AAC1C,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetOrdersSettingsRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const GetOrdersSettingsResponse: z.ZodObject<{
|
|
5
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
8
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
9
|
+
}>>;
|
|
10
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const UpdateOrdersSettingsRequest: z.ZodObject<{
|
|
16
|
+
ordersSettings: z.ZodObject<{
|
|
17
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
19
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
20
|
+
}>>;
|
|
21
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
23
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const UpdateOrdersSettingsResponse: z.ZodObject<{
|
|
27
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
30
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
31
|
+
}>>;
|
|
32
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
34
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { GetOrdersSettingsRequest, GetOrdersSettingsResponse, UpdateOrdersSettingsRequest, UpdateOrdersSettingsResponse };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/ecom-v1-orders-settings-orders-settings.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var GetOrdersSettingsRequest = z.object({});
|
|
4
|
+
var GetOrdersSettingsResponse = z.object({
|
|
5
|
+
ordersSettings: z.object({
|
|
6
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
7
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
8
|
+
).optional(),
|
|
9
|
+
createInvoice: z.boolean().describe(
|
|
10
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
11
|
+
).optional().nullable(),
|
|
12
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
13
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
14
|
+
}).describe("Orders settings.").optional()
|
|
15
|
+
});
|
|
16
|
+
var UpdateOrdersSettingsRequest = z.object({
|
|
17
|
+
ordersSettings: z.object({
|
|
18
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).optional(),
|
|
19
|
+
createInvoice: z.boolean().describe(
|
|
20
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
21
|
+
).optional().nullable(),
|
|
22
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
23
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
24
|
+
}).describe("Orders settings to update.")
|
|
25
|
+
});
|
|
26
|
+
var UpdateOrdersSettingsResponse = z.object({
|
|
27
|
+
ordersSettings: z.object({
|
|
28
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
29
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
30
|
+
).optional(),
|
|
31
|
+
createInvoice: z.boolean().describe(
|
|
32
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
33
|
+
).optional().nullable(),
|
|
34
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
35
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
36
|
+
}).describe("The updated orders settings.").optional()
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
GetOrdersSettingsRequest,
|
|
40
|
+
GetOrdersSettingsResponse,
|
|
41
|
+
UpdateOrdersSettingsRequest,
|
|
42
|
+
UpdateOrdersSettingsResponse
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/ecom-v1-orders-settings-orders-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetOrdersSettingsRequest = z.object({});\nexport const GetOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings.')\n .optional(),\n});\nexport const UpdateOrdersSettingsRequest = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings to update.'),\n});\nexport const UpdateOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('The updated orders settings.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO,CAAC,CAAC;AAC5C,IAAM,4BAA8B,SAAO;AAAA,EAChD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,8BAAgC,SAAO;AAAA,EAClD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B;AAC1C,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetOrdersSettingsRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const GetOrdersSettingsResponse: z.ZodObject<{
|
|
5
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
8
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
9
|
+
}>>;
|
|
10
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const UpdateOrdersSettingsRequest: z.ZodObject<{
|
|
16
|
+
ordersSettings: z.ZodObject<{
|
|
17
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
19
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
20
|
+
}>>;
|
|
21
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
23
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const UpdateOrdersSettingsResponse: z.ZodObject<{
|
|
27
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
30
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
31
|
+
}>>;
|
|
32
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
34
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { GetOrdersSettingsRequest, GetOrdersSettingsResponse, UpdateOrdersSettingsRequest, UpdateOrdersSettingsResponse };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
GetOrdersSettingsRequest: () => GetOrdersSettingsRequest,
|
|
34
|
+
GetOrdersSettingsResponse: () => GetOrdersSettingsResponse,
|
|
35
|
+
UpdateOrdersSettingsRequest: () => UpdateOrdersSettingsRequest,
|
|
36
|
+
UpdateOrdersSettingsResponse: () => UpdateOrdersSettingsResponse
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
+
|
|
40
|
+
// src/ecom-v1-orders-settings-orders-settings.schemas.ts
|
|
41
|
+
var z = __toESM(require("zod"));
|
|
42
|
+
var GetOrdersSettingsRequest = z.object({});
|
|
43
|
+
var GetOrdersSettingsResponse = z.object({
|
|
44
|
+
ordersSettings: z.object({
|
|
45
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
46
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
47
|
+
).optional(),
|
|
48
|
+
createInvoice: z.boolean().describe(
|
|
49
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
50
|
+
).optional().nullable(),
|
|
51
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
52
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
53
|
+
}).describe("Orders settings.").optional()
|
|
54
|
+
});
|
|
55
|
+
var UpdateOrdersSettingsRequest = z.object({
|
|
56
|
+
ordersSettings: z.object({
|
|
57
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).optional(),
|
|
58
|
+
createInvoice: z.boolean().describe(
|
|
59
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
60
|
+
).optional().nullable(),
|
|
61
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
62
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
63
|
+
}).describe("Orders settings to update.")
|
|
64
|
+
});
|
|
65
|
+
var UpdateOrdersSettingsResponse = z.object({
|
|
66
|
+
ordersSettings: z.object({
|
|
67
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
68
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
69
|
+
).optional(),
|
|
70
|
+
createInvoice: z.boolean().describe(
|
|
71
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
72
|
+
).optional().nullable(),
|
|
73
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
74
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
75
|
+
}).describe("The updated orders settings.").optional()
|
|
76
|
+
});
|
|
77
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
78
|
+
0 && (module.exports = {
|
|
79
|
+
GetOrdersSettingsRequest,
|
|
80
|
+
GetOrdersSettingsResponse,
|
|
81
|
+
UpdateOrdersSettingsRequest,
|
|
82
|
+
UpdateOrdersSettingsResponse
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/ecom-v1-orders-settings-orders-settings.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-orders-settings-orders-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const GetOrdersSettingsRequest = z.object({});\nexport const GetOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings.')\n .optional(),\n});\nexport const UpdateOrdersSettingsRequest = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings to update.'),\n});\nexport const UpdateOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('The updated orders settings.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,2BAA6B,SAAO,CAAC,CAAC;AAC5C,IAAM,4BAA8B,SAAO;AAAA,EAChD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,8BAAgC,SAAO;AAAA,EAClD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B;AAC1C,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const GetOrdersSettingsRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const GetOrdersSettingsResponse: z.ZodObject<{
|
|
5
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
8
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
9
|
+
}>>;
|
|
10
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
11
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
12
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
13
|
+
}, z.core.$strip>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const UpdateOrdersSettingsRequest: z.ZodObject<{
|
|
16
|
+
ordersSettings: z.ZodObject<{
|
|
17
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
19
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
20
|
+
}>>;
|
|
21
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
22
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
23
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
declare const UpdateOrdersSettingsResponse: z.ZodObject<{
|
|
27
|
+
ordersSettings: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
inventoryUpdateTrigger: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
ON_ORDER_PAID: "ON_ORDER_PAID";
|
|
30
|
+
ON_ORDER_PLACED: "ON_ORDER_PLACED";
|
|
31
|
+
}>>;
|
|
32
|
+
createInvoice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
_createdDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
34
|
+
_updatedDate: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
|
|
38
|
+
export { GetOrdersSettingsRequest, GetOrdersSettingsResponse, UpdateOrdersSettingsRequest, UpdateOrdersSettingsResponse };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/ecom-v1-orders-settings-orders-settings.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var GetOrdersSettingsRequest = z.object({});
|
|
4
|
+
var GetOrdersSettingsResponse = z.object({
|
|
5
|
+
ordersSettings: z.object({
|
|
6
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
7
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
8
|
+
).optional(),
|
|
9
|
+
createInvoice: z.boolean().describe(
|
|
10
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
11
|
+
).optional().nullable(),
|
|
12
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
13
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
14
|
+
}).describe("Orders settings.").optional()
|
|
15
|
+
});
|
|
16
|
+
var UpdateOrdersSettingsRequest = z.object({
|
|
17
|
+
ordersSettings: z.object({
|
|
18
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).optional(),
|
|
19
|
+
createInvoice: z.boolean().describe(
|
|
20
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
21
|
+
).optional().nullable(),
|
|
22
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
23
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
24
|
+
}).describe("Orders settings to update.")
|
|
25
|
+
});
|
|
26
|
+
var UpdateOrdersSettingsResponse = z.object({
|
|
27
|
+
ordersSettings: z.object({
|
|
28
|
+
inventoryUpdateTrigger: z.enum(["ON_ORDER_PAID", "ON_ORDER_PLACED"]).describe(
|
|
29
|
+
"Defines when to update the store inventory.\nDefault: `ON_ORDER_PLACED`"
|
|
30
|
+
).optional(),
|
|
31
|
+
createInvoice: z.boolean().describe(
|
|
32
|
+
"Whether to automatically create invoices for every new order paid online.\n<br>\nDefault: `false`\n<br>\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements."
|
|
33
|
+
).optional().nullable(),
|
|
34
|
+
_createdDate: z.date().describe("Date and time the orders settings were created.").optional().nullable(),
|
|
35
|
+
_updatedDate: z.date().describe("Date and time the orders settings were updated.").optional().nullable()
|
|
36
|
+
}).describe("The updated orders settings.").optional()
|
|
37
|
+
});
|
|
38
|
+
export {
|
|
39
|
+
GetOrdersSettingsRequest,
|
|
40
|
+
GetOrdersSettingsResponse,
|
|
41
|
+
UpdateOrdersSettingsRequest,
|
|
42
|
+
UpdateOrdersSettingsResponse
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/ecom-v1-orders-settings-orders-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetOrdersSettingsRequest = z.object({});\nexport const GetOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings.')\n .optional(),\n});\nexport const UpdateOrdersSettingsRequest = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('Orders settings to update.'),\n});\nexport const UpdateOrdersSettingsResponse = z.object({\n ordersSettings: z\n .object({\n inventoryUpdateTrigger: z\n .enum(['ON_ORDER_PAID', 'ON_ORDER_PLACED'])\n .describe(\n 'Defines when to update the store inventory.\\nDefault: `ON_ORDER_PLACED`'\n )\n .optional(),\n createInvoice: z\n .boolean()\n .describe(\n \"Whether to automatically create invoices for every new order paid online.\\n<br>\\nDefault: `false`\\n<br>\\n**Note**: The issued invoice for an order is not a tax invoice and doesn't reflect refunds. You are responsible for ensuring that invoices you issue conform to any relevant legal requirements.\"\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the orders settings were created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the orders settings were updated.')\n .optional()\n .nullable(),\n })\n .describe('The updated orders settings.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,2BAA6B,SAAO,CAAC,CAAC;AAC5C,IAAM,4BAA8B,SAAO;AAAA,EAChD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AACd,CAAC;AACM,IAAM,8BAAgC,SAAO;AAAA,EAClD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B;AAC1C,CAAC;AACM,IAAM,+BAAiC,SAAO;AAAA,EACnD,gBACG,SAAO;AAAA,IACN,wBACG,OAAK,CAAC,iBAAiB,iBAAiB,CAAC,EACzC;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,eACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,IACZ,cACG,OAAK,EACL,SAAS,iDAAiD,EAC1D,SAAS,EACT,SAAS;AAAA,EACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_orders-settings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
38
|
"@wix/sdk-runtime": "^1.0.10",
|
|
33
|
-
"@wix/sdk-types": "^1.17.6"
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.ecom.v1.orders_settings"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "1e7f7a65e56374522c5c9615a345fd47610aa5480307053ea49f2df0"
|
|
54
61
|
}
|