@wix/auto_sdk_sites_site-actions 1.0.21 → 1.0.22
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 +37 -0
- package/build/cjs/schemas.js +104 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/schemas.d.mts +37 -0
- package/build/es/schemas.mjs +60 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/schemas.d.ts +37 -0
- package/build/internal/cjs/schemas.js +104 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/schemas.d.mts +37 -0
- package/build/internal/es/schemas.mjs +60 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const PublishSiteRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const PublishSiteResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const DeployStandalonePagesRequest: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
declare const DeployStandalonePagesResponse: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
declare const DuplicateSiteRequest: z.ZodObject<{
|
|
8
|
+
sourceSiteId: z.ZodString;
|
|
9
|
+
options: z.ZodObject<{
|
|
10
|
+
siteDisplayName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const DuplicateSiteResponse: z.ZodObject<{
|
|
14
|
+
newSiteId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const BulkDeleteSiteRequest: z.ZodObject<{
|
|
17
|
+
ids: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const BulkDeleteSiteResponse: z.ZodObject<{
|
|
20
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
|
|
37
|
+
export { BulkDeleteSiteRequest, BulkDeleteSiteResponse, DeployStandalonePagesRequest, DeployStandalonePagesResponse, DuplicateSiteRequest, DuplicateSiteResponse, PublishSiteRequest, PublishSiteResponse };
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
BulkDeleteSiteRequest: () => BulkDeleteSiteRequest,
|
|
34
|
+
BulkDeleteSiteResponse: () => BulkDeleteSiteResponse,
|
|
35
|
+
DeployStandalonePagesRequest: () => DeployStandalonePagesRequest,
|
|
36
|
+
DeployStandalonePagesResponse: () => DeployStandalonePagesResponse,
|
|
37
|
+
DuplicateSiteRequest: () => DuplicateSiteRequest,
|
|
38
|
+
DuplicateSiteResponse: () => DuplicateSiteResponse,
|
|
39
|
+
PublishSiteRequest: () => PublishSiteRequest,
|
|
40
|
+
PublishSiteResponse: () => PublishSiteResponse
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
43
|
+
|
|
44
|
+
// src/site-actions-v1-site-actions-site-actions.schemas.ts
|
|
45
|
+
var z = __toESM(require("zod"));
|
|
46
|
+
var PublishSiteRequest = z.object({});
|
|
47
|
+
var PublishSiteResponse = z.object({});
|
|
48
|
+
var DeployStandalonePagesRequest = z.object({});
|
|
49
|
+
var DeployStandalonePagesResponse = z.object({});
|
|
50
|
+
var DuplicateSiteRequest = z.object({
|
|
51
|
+
sourceSiteId: z.string().describe("ID of the site to duplicated.").regex(
|
|
52
|
+
/^[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}$/,
|
|
53
|
+
"Must be a valid GUID"
|
|
54
|
+
),
|
|
55
|
+
options: z.object({
|
|
56
|
+
siteDisplayName: z.string().describe("Display name for the new site.").min(1).max(40)
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
var DuplicateSiteResponse = z.object({
|
|
60
|
+
newSiteId: z.string().describe("ID of the new site.").regex(
|
|
61
|
+
/^[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}$/,
|
|
62
|
+
"Must be a valid GUID"
|
|
63
|
+
).optional()
|
|
64
|
+
});
|
|
65
|
+
var BulkDeleteSiteRequest = z.object({
|
|
66
|
+
ids: z.array(z.string()).min(1).max(20)
|
|
67
|
+
});
|
|
68
|
+
var BulkDeleteSiteResponse = z.object({
|
|
69
|
+
results: z.array(
|
|
70
|
+
z.object({
|
|
71
|
+
itemMetadata: z.object({
|
|
72
|
+
_id: z.string().describe("Site ID.").optional().nullable(),
|
|
73
|
+
originalIndex: z.number().int().describe(
|
|
74
|
+
"Index of the site in the request array. Allows for correlation between request and response."
|
|
75
|
+
).optional(),
|
|
76
|
+
success: z.boolean().describe(
|
|
77
|
+
"Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated."
|
|
78
|
+
).optional(),
|
|
79
|
+
error: z.object({
|
|
80
|
+
code: z.string().describe("Error code.").optional(),
|
|
81
|
+
description: z.string().describe("Description of error.").optional()
|
|
82
|
+
}).describe("Details about the error.").optional()
|
|
83
|
+
}).describe(
|
|
84
|
+
"Result of deletion request per site describing the success or failure of each deletion."
|
|
85
|
+
).optional()
|
|
86
|
+
})
|
|
87
|
+
).optional(),
|
|
88
|
+
bulkActionMetadata: z.object({
|
|
89
|
+
totalSuccesses: z.number().int().describe("Number of sites that were deleted successfully.").optional(),
|
|
90
|
+
totalFailures: z.number().int().describe("Number of sites that were not deleted successfully.").optional()
|
|
91
|
+
}).describe("Summary of deletion data.").optional()
|
|
92
|
+
});
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
BulkDeleteSiteRequest,
|
|
96
|
+
BulkDeleteSiteResponse,
|
|
97
|
+
DeployStandalonePagesRequest,
|
|
98
|
+
DeployStandalonePagesResponse,
|
|
99
|
+
DuplicateSiteRequest,
|
|
100
|
+
DuplicateSiteResponse,
|
|
101
|
+
PublishSiteRequest,
|
|
102
|
+
PublishSiteResponse
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/site-actions-v1-site-actions-site-actions.schemas.ts"],"sourcesContent":["export * from './src/site-actions-v1-site-actions-site-actions.schemas.js';\n","import * as z from 'zod';\n\nexport const PublishSiteRequest = z.object({});\nexport const PublishSiteResponse = z.object({});\nexport const DeployStandalonePagesRequest = z.object({});\nexport const DeployStandalonePagesResponse = z.object({});\nexport const DuplicateSiteRequest = z.object({\n sourceSiteId: z\n .string()\n .describe('ID of the site to duplicated.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n options: z.object({\n siteDisplayName: z\n .string()\n .describe('Display name for the new site.')\n .min(1)\n .max(40),\n }),\n});\nexport const DuplicateSiteResponse = z.object({\n newSiteId: z\n .string()\n .describe('ID of the new site.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n});\nexport const BulkDeleteSiteRequest = z.object({\n ids: z.array(z.string()).min(1).max(20),\n});\nexport const BulkDeleteSiteResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z.string().describe('Site ID.').optional().nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the site in the request array. Allows for correlation between request and response.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of error.')\n .optional(),\n })\n .describe('Details about the error.')\n .optional(),\n })\n .describe(\n 'Result of deletion request per site describing the success or failure of each deletion.'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of sites that were deleted successfully.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe('Number of sites that were not deleted successfully.')\n .optional(),\n })\n .describe('Summary of deletion data.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO,CAAC,CAAC;AACtC,IAAM,sBAAwB,SAAO,CAAC,CAAC;AACvC,IAAM,+BAAiC,SAAO,CAAC,CAAC;AAChD,IAAM,gCAAkC,SAAO,CAAC,CAAC;AACjD,IAAM,uBAAyB,SAAO;AAAA,EAC3C,cACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO;AAAA,IAChB,iBACG,SAAO,EACP,SAAS,gCAAgC,EACzC,IAAI,CAAC,EACL,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,WACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KAAO,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AACxC,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG;AAAA,IACG,SAAO;AAAA,MACP,cACG,SAAO;AAAA,QACN,KAAO,SAAO,EAAE,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS;AAAA,QACzD,eACG,SAAO,EACP,IAAI,EACJ;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,SACG,UAAQ,EACR;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,OACG,SAAO;AAAA,UACN,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,UAClD,aACG,SAAO,EACP,SAAS,uBAAuB,EAChC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,0BAA0B,EACnC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,oBACG,SAAO;AAAA,IACN,gBACG,SAAO,EACP,IAAI,EACJ,SAAS,iDAAiD,EAC1D,SAAS;AAAA,IACZ,eACG,SAAO,EACP,IAAI,EACJ,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,2BAA2B,EACpC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const PublishSiteRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const PublishSiteResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const DeployStandalonePagesRequest: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
declare const DeployStandalonePagesResponse: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
declare const DuplicateSiteRequest: z.ZodObject<{
|
|
8
|
+
sourceSiteId: z.ZodString;
|
|
9
|
+
options: z.ZodObject<{
|
|
10
|
+
siteDisplayName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const DuplicateSiteResponse: z.ZodObject<{
|
|
14
|
+
newSiteId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const BulkDeleteSiteRequest: z.ZodObject<{
|
|
17
|
+
ids: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const BulkDeleteSiteResponse: z.ZodObject<{
|
|
20
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
|
|
37
|
+
export { BulkDeleteSiteRequest, BulkDeleteSiteResponse, DeployStandalonePagesRequest, DeployStandalonePagesResponse, DuplicateSiteRequest, DuplicateSiteResponse, PublishSiteRequest, PublishSiteResponse };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/site-actions-v1-site-actions-site-actions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var PublishSiteRequest = z.object({});
|
|
4
|
+
var PublishSiteResponse = z.object({});
|
|
5
|
+
var DeployStandalonePagesRequest = z.object({});
|
|
6
|
+
var DeployStandalonePagesResponse = z.object({});
|
|
7
|
+
var DuplicateSiteRequest = z.object({
|
|
8
|
+
sourceSiteId: z.string().describe("ID of the site to duplicated.").regex(
|
|
9
|
+
/^[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}$/,
|
|
10
|
+
"Must be a valid GUID"
|
|
11
|
+
),
|
|
12
|
+
options: z.object({
|
|
13
|
+
siteDisplayName: z.string().describe("Display name for the new site.").min(1).max(40)
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
var DuplicateSiteResponse = z.object({
|
|
17
|
+
newSiteId: z.string().describe("ID of the new site.").regex(
|
|
18
|
+
/^[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}$/,
|
|
19
|
+
"Must be a valid GUID"
|
|
20
|
+
).optional()
|
|
21
|
+
});
|
|
22
|
+
var BulkDeleteSiteRequest = z.object({
|
|
23
|
+
ids: z.array(z.string()).min(1).max(20)
|
|
24
|
+
});
|
|
25
|
+
var BulkDeleteSiteResponse = z.object({
|
|
26
|
+
results: z.array(
|
|
27
|
+
z.object({
|
|
28
|
+
itemMetadata: z.object({
|
|
29
|
+
_id: z.string().describe("Site ID.").optional().nullable(),
|
|
30
|
+
originalIndex: z.number().int().describe(
|
|
31
|
+
"Index of the site in the request array. Allows for correlation between request and response."
|
|
32
|
+
).optional(),
|
|
33
|
+
success: z.boolean().describe(
|
|
34
|
+
"Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated."
|
|
35
|
+
).optional(),
|
|
36
|
+
error: z.object({
|
|
37
|
+
code: z.string().describe("Error code.").optional(),
|
|
38
|
+
description: z.string().describe("Description of error.").optional()
|
|
39
|
+
}).describe("Details about the error.").optional()
|
|
40
|
+
}).describe(
|
|
41
|
+
"Result of deletion request per site describing the success or failure of each deletion."
|
|
42
|
+
).optional()
|
|
43
|
+
})
|
|
44
|
+
).optional(),
|
|
45
|
+
bulkActionMetadata: z.object({
|
|
46
|
+
totalSuccesses: z.number().int().describe("Number of sites that were deleted successfully.").optional(),
|
|
47
|
+
totalFailures: z.number().int().describe("Number of sites that were not deleted successfully.").optional()
|
|
48
|
+
}).describe("Summary of deletion data.").optional()
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
BulkDeleteSiteRequest,
|
|
52
|
+
BulkDeleteSiteResponse,
|
|
53
|
+
DeployStandalonePagesRequest,
|
|
54
|
+
DeployStandalonePagesResponse,
|
|
55
|
+
DuplicateSiteRequest,
|
|
56
|
+
DuplicateSiteResponse,
|
|
57
|
+
PublishSiteRequest,
|
|
58
|
+
PublishSiteResponse
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/site-actions-v1-site-actions-site-actions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const PublishSiteRequest = z.object({});\nexport const PublishSiteResponse = z.object({});\nexport const DeployStandalonePagesRequest = z.object({});\nexport const DeployStandalonePagesResponse = z.object({});\nexport const DuplicateSiteRequest = z.object({\n sourceSiteId: z\n .string()\n .describe('ID of the site to duplicated.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n options: z.object({\n siteDisplayName: z\n .string()\n .describe('Display name for the new site.')\n .min(1)\n .max(40),\n }),\n});\nexport const DuplicateSiteResponse = z.object({\n newSiteId: z\n .string()\n .describe('ID of the new site.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n});\nexport const BulkDeleteSiteRequest = z.object({\n ids: z.array(z.string()).min(1).max(20),\n});\nexport const BulkDeleteSiteResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z.string().describe('Site ID.').optional().nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the site in the request array. Allows for correlation between request and response.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of error.')\n .optional(),\n })\n .describe('Details about the error.')\n .optional(),\n })\n .describe(\n 'Result of deletion request per site describing the success or failure of each deletion.'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of sites that were deleted successfully.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe('Number of sites that were not deleted successfully.')\n .optional(),\n })\n .describe('Summary of deletion data.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO,CAAC,CAAC;AACtC,IAAM,sBAAwB,SAAO,CAAC,CAAC;AACvC,IAAM,+BAAiC,SAAO,CAAC,CAAC;AAChD,IAAM,gCAAkC,SAAO,CAAC,CAAC;AACjD,IAAM,uBAAyB,SAAO;AAAA,EAC3C,cACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO;AAAA,IAChB,iBACG,SAAO,EACP,SAAS,gCAAgC,EACzC,IAAI,CAAC,EACL,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,WACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KAAO,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AACxC,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG;AAAA,IACG,SAAO;AAAA,MACP,cACG,SAAO;AAAA,QACN,KAAO,SAAO,EAAE,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS;AAAA,QACzD,eACG,SAAO,EACP,IAAI,EACJ;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,SACG,UAAQ,EACR;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,OACG,SAAO;AAAA,UACN,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,UAClD,aACG,SAAO,EACP,SAAS,uBAAuB,EAChC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,0BAA0B,EACnC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,oBACG,SAAO;AAAA,IACN,gBACG,SAAO,EACP,IAAI,EACJ,SAAS,iDAAiD,EAC1D,SAAS;AAAA,IACZ,eACG,SAAO,EACP,IAAI,EACJ,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,2BAA2B,EACpC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const PublishSiteRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const PublishSiteResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const DeployStandalonePagesRequest: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
declare const DeployStandalonePagesResponse: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
declare const DuplicateSiteRequest: z.ZodObject<{
|
|
8
|
+
sourceSiteId: z.ZodString;
|
|
9
|
+
options: z.ZodObject<{
|
|
10
|
+
siteDisplayName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const DuplicateSiteResponse: z.ZodObject<{
|
|
14
|
+
newSiteId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const BulkDeleteSiteRequest: z.ZodObject<{
|
|
17
|
+
ids: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const BulkDeleteSiteResponse: z.ZodObject<{
|
|
20
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
|
|
37
|
+
export { BulkDeleteSiteRequest, BulkDeleteSiteResponse, DeployStandalonePagesRequest, DeployStandalonePagesResponse, DuplicateSiteRequest, DuplicateSiteResponse, PublishSiteRequest, PublishSiteResponse };
|
|
@@ -0,0 +1,104 @@
|
|
|
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
|
+
BulkDeleteSiteRequest: () => BulkDeleteSiteRequest,
|
|
34
|
+
BulkDeleteSiteResponse: () => BulkDeleteSiteResponse,
|
|
35
|
+
DeployStandalonePagesRequest: () => DeployStandalonePagesRequest,
|
|
36
|
+
DeployStandalonePagesResponse: () => DeployStandalonePagesResponse,
|
|
37
|
+
DuplicateSiteRequest: () => DuplicateSiteRequest,
|
|
38
|
+
DuplicateSiteResponse: () => DuplicateSiteResponse,
|
|
39
|
+
PublishSiteRequest: () => PublishSiteRequest,
|
|
40
|
+
PublishSiteResponse: () => PublishSiteResponse
|
|
41
|
+
});
|
|
42
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
43
|
+
|
|
44
|
+
// src/site-actions-v1-site-actions-site-actions.schemas.ts
|
|
45
|
+
var z = __toESM(require("zod"));
|
|
46
|
+
var PublishSiteRequest = z.object({});
|
|
47
|
+
var PublishSiteResponse = z.object({});
|
|
48
|
+
var DeployStandalonePagesRequest = z.object({});
|
|
49
|
+
var DeployStandalonePagesResponse = z.object({});
|
|
50
|
+
var DuplicateSiteRequest = z.object({
|
|
51
|
+
sourceSiteId: z.string().describe("ID of the site to duplicated.").regex(
|
|
52
|
+
/^[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}$/,
|
|
53
|
+
"Must be a valid GUID"
|
|
54
|
+
),
|
|
55
|
+
options: z.object({
|
|
56
|
+
siteDisplayName: z.string().describe("Display name for the new site.").min(1).max(40)
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
var DuplicateSiteResponse = z.object({
|
|
60
|
+
newSiteId: z.string().describe("ID of the new site.").regex(
|
|
61
|
+
/^[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}$/,
|
|
62
|
+
"Must be a valid GUID"
|
|
63
|
+
).optional()
|
|
64
|
+
});
|
|
65
|
+
var BulkDeleteSiteRequest = z.object({
|
|
66
|
+
ids: z.array(z.string()).min(1).max(20)
|
|
67
|
+
});
|
|
68
|
+
var BulkDeleteSiteResponse = z.object({
|
|
69
|
+
results: z.array(
|
|
70
|
+
z.object({
|
|
71
|
+
itemMetadata: z.object({
|
|
72
|
+
_id: z.string().describe("Site ID.").optional().nullable(),
|
|
73
|
+
originalIndex: z.number().int().describe(
|
|
74
|
+
"Index of the site in the request array. Allows for correlation between request and response."
|
|
75
|
+
).optional(),
|
|
76
|
+
success: z.boolean().describe(
|
|
77
|
+
"Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated."
|
|
78
|
+
).optional(),
|
|
79
|
+
error: z.object({
|
|
80
|
+
code: z.string().describe("Error code.").optional(),
|
|
81
|
+
description: z.string().describe("Description of error.").optional()
|
|
82
|
+
}).describe("Details about the error.").optional()
|
|
83
|
+
}).describe(
|
|
84
|
+
"Result of deletion request per site describing the success or failure of each deletion."
|
|
85
|
+
).optional()
|
|
86
|
+
})
|
|
87
|
+
).optional(),
|
|
88
|
+
bulkActionMetadata: z.object({
|
|
89
|
+
totalSuccesses: z.number().int().describe("Number of sites that were deleted successfully.").optional(),
|
|
90
|
+
totalFailures: z.number().int().describe("Number of sites that were not deleted successfully.").optional()
|
|
91
|
+
}).describe("Summary of deletion data.").optional()
|
|
92
|
+
});
|
|
93
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
94
|
+
0 && (module.exports = {
|
|
95
|
+
BulkDeleteSiteRequest,
|
|
96
|
+
BulkDeleteSiteResponse,
|
|
97
|
+
DeployStandalonePagesRequest,
|
|
98
|
+
DeployStandalonePagesResponse,
|
|
99
|
+
DuplicateSiteRequest,
|
|
100
|
+
DuplicateSiteResponse,
|
|
101
|
+
PublishSiteRequest,
|
|
102
|
+
PublishSiteResponse
|
|
103
|
+
});
|
|
104
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../schemas.ts","../../../src/site-actions-v1-site-actions-site-actions.schemas.ts"],"sourcesContent":["export * from './src/site-actions-v1-site-actions-site-actions.schemas.js';\n","import * as z from 'zod';\n\nexport const PublishSiteRequest = z.object({});\nexport const PublishSiteResponse = z.object({});\nexport const DeployStandalonePagesRequest = z.object({});\nexport const DeployStandalonePagesResponse = z.object({});\nexport const DuplicateSiteRequest = z.object({\n sourceSiteId: z\n .string()\n .describe('ID of the site to duplicated.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n options: z.object({\n siteDisplayName: z\n .string()\n .describe('Display name for the new site.')\n .min(1)\n .max(40),\n }),\n});\nexport const DuplicateSiteResponse = z.object({\n newSiteId: z\n .string()\n .describe('ID of the new site.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n});\nexport const BulkDeleteSiteRequest = z.object({\n ids: z.array(z.string()).min(1).max(20),\n});\nexport const BulkDeleteSiteResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z.string().describe('Site ID.').optional().nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the site in the request array. Allows for correlation between request and response.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of error.')\n .optional(),\n })\n .describe('Details about the error.')\n .optional(),\n })\n .describe(\n 'Result of deletion request per site describing the success or failure of each deletion.'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of sites that were deleted successfully.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe('Number of sites that were not deleted successfully.')\n .optional(),\n })\n .describe('Summary of deletion data.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO,CAAC,CAAC;AACtC,IAAM,sBAAwB,SAAO,CAAC,CAAC;AACvC,IAAM,+BAAiC,SAAO,CAAC,CAAC;AAChD,IAAM,gCAAkC,SAAO,CAAC,CAAC;AACjD,IAAM,uBAAyB,SAAO;AAAA,EAC3C,cACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO;AAAA,IAChB,iBACG,SAAO,EACP,SAAS,gCAAgC,EACzC,IAAI,CAAC,EACL,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,WACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KAAO,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AACxC,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG;AAAA,IACG,SAAO;AAAA,MACP,cACG,SAAO;AAAA,QACN,KAAO,SAAO,EAAE,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS;AAAA,QACzD,eACG,SAAO,EACP,IAAI,EACJ;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,SACG,UAAQ,EACR;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,OACG,SAAO;AAAA,UACN,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,UAClD,aACG,SAAO,EACP,SAAS,uBAAuB,EAChC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,0BAA0B,EACnC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,oBACG,SAAO;AAAA,IACN,gBACG,SAAO,EACP,IAAI,EACJ,SAAS,iDAAiD,EAC1D,SAAS;AAAA,IACZ,eACG,SAAO,EACP,IAAI,EACJ,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,2BAA2B,EACpC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const PublishSiteRequest: z.ZodObject<{}, z.core.$strip>;
|
|
4
|
+
declare const PublishSiteResponse: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const DeployStandalonePagesRequest: z.ZodObject<{}, z.core.$strip>;
|
|
6
|
+
declare const DeployStandalonePagesResponse: z.ZodObject<{}, z.core.$strip>;
|
|
7
|
+
declare const DuplicateSiteRequest: z.ZodObject<{
|
|
8
|
+
sourceSiteId: z.ZodString;
|
|
9
|
+
options: z.ZodObject<{
|
|
10
|
+
siteDisplayName: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const DuplicateSiteResponse: z.ZodObject<{
|
|
14
|
+
newSiteId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const BulkDeleteSiteRequest: z.ZodObject<{
|
|
17
|
+
ids: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const BulkDeleteSiteResponse: z.ZodObject<{
|
|
20
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
|
+
itemMetadata: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
originalIndex: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
code: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
bulkActionMetadata: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
totalSuccesses: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
totalFailures: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
|
|
37
|
+
export { BulkDeleteSiteRequest, BulkDeleteSiteResponse, DeployStandalonePagesRequest, DeployStandalonePagesResponse, DuplicateSiteRequest, DuplicateSiteResponse, PublishSiteRequest, PublishSiteResponse };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/site-actions-v1-site-actions-site-actions.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var PublishSiteRequest = z.object({});
|
|
4
|
+
var PublishSiteResponse = z.object({});
|
|
5
|
+
var DeployStandalonePagesRequest = z.object({});
|
|
6
|
+
var DeployStandalonePagesResponse = z.object({});
|
|
7
|
+
var DuplicateSiteRequest = z.object({
|
|
8
|
+
sourceSiteId: z.string().describe("ID of the site to duplicated.").regex(
|
|
9
|
+
/^[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}$/,
|
|
10
|
+
"Must be a valid GUID"
|
|
11
|
+
),
|
|
12
|
+
options: z.object({
|
|
13
|
+
siteDisplayName: z.string().describe("Display name for the new site.").min(1).max(40)
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
var DuplicateSiteResponse = z.object({
|
|
17
|
+
newSiteId: z.string().describe("ID of the new site.").regex(
|
|
18
|
+
/^[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}$/,
|
|
19
|
+
"Must be a valid GUID"
|
|
20
|
+
).optional()
|
|
21
|
+
});
|
|
22
|
+
var BulkDeleteSiteRequest = z.object({
|
|
23
|
+
ids: z.array(z.string()).min(1).max(20)
|
|
24
|
+
});
|
|
25
|
+
var BulkDeleteSiteResponse = z.object({
|
|
26
|
+
results: z.array(
|
|
27
|
+
z.object({
|
|
28
|
+
itemMetadata: z.object({
|
|
29
|
+
_id: z.string().describe("Site ID.").optional().nullable(),
|
|
30
|
+
originalIndex: z.number().int().describe(
|
|
31
|
+
"Index of the site in the request array. Allows for correlation between request and response."
|
|
32
|
+
).optional(),
|
|
33
|
+
success: z.boolean().describe(
|
|
34
|
+
"Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated."
|
|
35
|
+
).optional(),
|
|
36
|
+
error: z.object({
|
|
37
|
+
code: z.string().describe("Error code.").optional(),
|
|
38
|
+
description: z.string().describe("Description of error.").optional()
|
|
39
|
+
}).describe("Details about the error.").optional()
|
|
40
|
+
}).describe(
|
|
41
|
+
"Result of deletion request per site describing the success or failure of each deletion."
|
|
42
|
+
).optional()
|
|
43
|
+
})
|
|
44
|
+
).optional(),
|
|
45
|
+
bulkActionMetadata: z.object({
|
|
46
|
+
totalSuccesses: z.number().int().describe("Number of sites that were deleted successfully.").optional(),
|
|
47
|
+
totalFailures: z.number().int().describe("Number of sites that were not deleted successfully.").optional()
|
|
48
|
+
}).describe("Summary of deletion data.").optional()
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
BulkDeleteSiteRequest,
|
|
52
|
+
BulkDeleteSiteResponse,
|
|
53
|
+
DeployStandalonePagesRequest,
|
|
54
|
+
DeployStandalonePagesResponse,
|
|
55
|
+
DuplicateSiteRequest,
|
|
56
|
+
DuplicateSiteResponse,
|
|
57
|
+
PublishSiteRequest,
|
|
58
|
+
PublishSiteResponse
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/site-actions-v1-site-actions-site-actions.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const PublishSiteRequest = z.object({});\nexport const PublishSiteResponse = z.object({});\nexport const DeployStandalonePagesRequest = z.object({});\nexport const DeployStandalonePagesResponse = z.object({});\nexport const DuplicateSiteRequest = z.object({\n sourceSiteId: z\n .string()\n .describe('ID of the site to duplicated.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n ),\n options: z.object({\n siteDisplayName: z\n .string()\n .describe('Display name for the new site.')\n .min(1)\n .max(40),\n }),\n});\nexport const DuplicateSiteResponse = z.object({\n newSiteId: z\n .string()\n .describe('ID of the new site.')\n .regex(\n /^[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}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n});\nexport const BulkDeleteSiteRequest = z.object({\n ids: z.array(z.string()).min(1).max(20),\n});\nexport const BulkDeleteSiteResponse = z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z.string().describe('Site ID.').optional().nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the site in the request array. Allows for correlation between request and response.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for the site. When `false`, the action failed and an `error` object is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of error.')\n .optional(),\n })\n .describe('Details about the error.')\n .optional(),\n })\n .describe(\n 'Result of deletion request per site describing the success or failure of each deletion.'\n )\n .optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of sites that were deleted successfully.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe('Number of sites that were not deleted successfully.')\n .optional(),\n })\n .describe('Summary of deletion data.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO,CAAC,CAAC;AACtC,IAAM,sBAAwB,SAAO,CAAC,CAAC;AACvC,IAAM,+BAAiC,SAAO,CAAC,CAAC;AAChD,IAAM,gCAAkC,SAAO,CAAC,CAAC;AACjD,IAAM,uBAAyB,SAAO;AAAA,EAC3C,cACG,SAAO,EACP,SAAS,+BAA+B,EACxC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AAAA,EACF,SAAW,SAAO;AAAA,IAChB,iBACG,SAAO,EACP,SAAS,gCAAgC,EACzC,IAAI,CAAC,EACL,IAAI,EAAE;AAAA,EACX,CAAC;AACH,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,WACG,SAAO,EACP,SAAS,qBAAqB,EAC9B;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS;AACd,CAAC;AACM,IAAM,wBAA0B,SAAO;AAAA,EAC5C,KAAO,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AACxC,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG;AAAA,IACG,SAAO;AAAA,MACP,cACG,SAAO;AAAA,QACN,KAAO,SAAO,EAAE,SAAS,UAAU,EAAE,SAAS,EAAE,SAAS;AAAA,QACzD,eACG,SAAO,EACP,IAAI,EACJ;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,SACG,UAAQ,EACR;AAAA,UACC;AAAA,QACF,EACC,SAAS;AAAA,QACZ,OACG,SAAO;AAAA,UACN,MAAQ,SAAO,EAAE,SAAS,aAAa,EAAE,SAAS;AAAA,UAClD,aACG,SAAO,EACP,SAAS,uBAAuB,EAChC,SAAS;AAAA,QACd,CAAC,EACA,SAAS,0BAA0B,EACnC,SAAS;AAAA,MACd,CAAC,EACA;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AAAA,EACZ,oBACG,SAAO;AAAA,IACN,gBACG,SAAO,EACP,IAAI,EACJ,SAAS,iDAAiD,EAC1D,SAAS;AAAA,IACZ,eACG,SAAO,EACP,IAAI,EACJ,SAAS,qDAAqD,EAC9D,SAAS;AAAA,EACd,CAAC,EACA,SAAS,2BAA2B,EACpC,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_sites_site-actions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
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
|
-
"@wix/sdk-runtime": "^1.0.
|
|
33
|
-
"@wix/sdk-types": "^1.17.
|
|
38
|
+
"@wix/sdk-runtime": "^1.0.10",
|
|
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.site_actions.v1.site_actions"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "ed40abad5579e1cbc342d656ff85b0856a63987028d96487508fd269"
|
|
54
61
|
}
|