@wix/auto_sdk_seo_redirects 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +159 -0
- package/build/cjs/index.js +524 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +787 -0
- package/build/cjs/index.typings.js +443 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +573 -0
- package/build/cjs/meta.js +394 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +140 -0
- package/build/cjs/schemas.js +322 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +159 -0
- package/build/es/index.mjs +492 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +787 -0
- package/build/es/index.typings.mjs +412 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +573 -0
- package/build/es/meta.mjs +360 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +140 -0
- package/build/es/schemas.mjs +274 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +159 -0
- package/build/internal/cjs/index.js +524 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +807 -0
- package/build/internal/cjs/index.typings.js +443 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +635 -0
- package/build/internal/cjs/meta.js +394 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +140 -0
- package/build/internal/cjs/schemas.js +322 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +159 -0
- package/build/internal/es/index.mjs +492 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +807 -0
- package/build/internal/es/index.typings.mjs +412 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +635 -0
- package/build/internal/es/meta.mjs +360 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +140 -0
- package/build/internal/es/schemas.mjs +274 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,322 @@
|
|
|
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
|
+
BulkCreateRedirectsRequest: () => BulkCreateRedirectsRequest,
|
|
34
|
+
BulkCreateRedirectsResponse: () => BulkCreateRedirectsResponse,
|
|
35
|
+
BulkDeleteRedirectsRequest: () => BulkDeleteRedirectsRequest,
|
|
36
|
+
BulkDeleteRedirectsResponse: () => BulkDeleteRedirectsResponse,
|
|
37
|
+
CreateRedirectRequest: () => CreateRedirectRequest,
|
|
38
|
+
CreateRedirectResponse: () => CreateRedirectResponse,
|
|
39
|
+
DeleteRedirectRequest: () => DeleteRedirectRequest,
|
|
40
|
+
DeleteRedirectResponse: () => DeleteRedirectResponse,
|
|
41
|
+
GetRedirectRequest: () => GetRedirectRequest,
|
|
42
|
+
GetRedirectResponse: () => GetRedirectResponse,
|
|
43
|
+
ListRedirectsRequest: () => ListRedirectsRequest,
|
|
44
|
+
ListRedirectsResponse: () => ListRedirectsResponse
|
|
45
|
+
});
|
|
46
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
47
|
+
|
|
48
|
+
// src/promote-seo-v1-redirect-redirects.schemas.ts
|
|
49
|
+
var z = __toESM(require("zod"));
|
|
50
|
+
var BulkDeleteRedirectsRequest = /* @__PURE__ */ z.object({
|
|
51
|
+
redirectIds: z.array(z.string()).min(1).max(500)
|
|
52
|
+
});
|
|
53
|
+
var BulkDeleteRedirectsResponse = /* @__PURE__ */ z.object({
|
|
54
|
+
results: z.array(
|
|
55
|
+
z.object({
|
|
56
|
+
itemMetadata: z.object({
|
|
57
|
+
_id: z.string().describe(
|
|
58
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
59
|
+
).max(100).optional().nullable(),
|
|
60
|
+
originalIndex: z.number().int().describe(
|
|
61
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
62
|
+
).optional(),
|
|
63
|
+
success: z.boolean().describe(
|
|
64
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
65
|
+
).optional(),
|
|
66
|
+
error: z.object({
|
|
67
|
+
code: z.string().describe("Error code.").optional(),
|
|
68
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
69
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
70
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
71
|
+
}).describe("Index, id and success/error details for this item").optional(),
|
|
72
|
+
item: z.object({
|
|
73
|
+
from: z.string().describe(
|
|
74
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
75
|
+
).max(950).optional(),
|
|
76
|
+
to: z.string().describe(
|
|
77
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
78
|
+
).max(4096).optional(),
|
|
79
|
+
options: z.object({
|
|
80
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
81
|
+
}).describe("additional options for the redirect").optional(),
|
|
82
|
+
language: z.string().describe(
|
|
83
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
84
|
+
).min(2).max(5).optional().nullable(),
|
|
85
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
86
|
+
/^[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}$/,
|
|
87
|
+
"Must be a valid GUID"
|
|
88
|
+
).optional().nullable(),
|
|
89
|
+
_createdDate: z.date().describe(
|
|
90
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
91
|
+
).optional().nullable()
|
|
92
|
+
}).describe(
|
|
93
|
+
"The created redirect. Only populated when return_full_entity is true"
|
|
94
|
+
).optional()
|
|
95
|
+
})
|
|
96
|
+
).max(500).optional(),
|
|
97
|
+
bulkActionMetadata: z.object({
|
|
98
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
99
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
100
|
+
undetailedFailures: z.number().int().describe(
|
|
101
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
102
|
+
).optional()
|
|
103
|
+
}).describe(
|
|
104
|
+
"Totals for the bulk action: successes, failures and undetailed failures"
|
|
105
|
+
).optional()
|
|
106
|
+
});
|
|
107
|
+
var ListRedirectsRequest = /* @__PURE__ */ z.object({});
|
|
108
|
+
var ListRedirectsResponse = /* @__PURE__ */ z.object({
|
|
109
|
+
redirects: z.array(
|
|
110
|
+
z.object({
|
|
111
|
+
from: z.string().describe(
|
|
112
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
113
|
+
).max(950).optional(),
|
|
114
|
+
to: z.string().describe(
|
|
115
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
116
|
+
).max(4096).optional(),
|
|
117
|
+
options: z.object({
|
|
118
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
119
|
+
}).describe("additional options for the redirect").optional(),
|
|
120
|
+
language: z.string().describe(
|
|
121
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
122
|
+
).min(2).max(5).optional().nullable(),
|
|
123
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
124
|
+
/^[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}$/,
|
|
125
|
+
"Must be a valid GUID"
|
|
126
|
+
).optional().nullable(),
|
|
127
|
+
_createdDate: z.date().describe(
|
|
128
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
129
|
+
).optional().nullable()
|
|
130
|
+
})
|
|
131
|
+
).optional()
|
|
132
|
+
});
|
|
133
|
+
var GetRedirectRequest = /* @__PURE__ */ z.object({
|
|
134
|
+
redirectId: z.string().describe("Unique identifier of the redirect to retrieve").regex(
|
|
135
|
+
/^[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}$/,
|
|
136
|
+
"Must be a valid GUID"
|
|
137
|
+
)
|
|
138
|
+
});
|
|
139
|
+
var GetRedirectResponse = /* @__PURE__ */ z.object({
|
|
140
|
+
from: z.string().describe(
|
|
141
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
142
|
+
).max(950).optional(),
|
|
143
|
+
to: z.string().describe(
|
|
144
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
145
|
+
).max(4096).optional(),
|
|
146
|
+
options: z.object({
|
|
147
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
148
|
+
}).describe("additional options for the redirect").optional(),
|
|
149
|
+
language: z.string().describe(
|
|
150
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
151
|
+
).min(2).max(5).optional().nullable(),
|
|
152
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
153
|
+
/^[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}$/,
|
|
154
|
+
"Must be a valid GUID"
|
|
155
|
+
).optional().nullable(),
|
|
156
|
+
_createdDate: z.date().describe(
|
|
157
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
158
|
+
).optional().nullable()
|
|
159
|
+
});
|
|
160
|
+
var BulkCreateRedirectsRequest = /* @__PURE__ */ z.object({
|
|
161
|
+
redirects: z.array(
|
|
162
|
+
z.object({
|
|
163
|
+
from: z.string().describe(
|
|
164
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
165
|
+
).max(950).optional(),
|
|
166
|
+
to: z.string().describe(
|
|
167
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
168
|
+
).max(4096).optional(),
|
|
169
|
+
options: z.object({
|
|
170
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
171
|
+
}).describe("additional options for the redirect").optional(),
|
|
172
|
+
language: z.string().describe(
|
|
173
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
174
|
+
).min(2).max(5).optional().nullable(),
|
|
175
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
176
|
+
/^[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}$/,
|
|
177
|
+
"Must be a valid GUID"
|
|
178
|
+
).optional().nullable(),
|
|
179
|
+
_createdDate: z.date().describe(
|
|
180
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
181
|
+
).optional().nullable()
|
|
182
|
+
})
|
|
183
|
+
).min(1).max(500),
|
|
184
|
+
options: z.object({
|
|
185
|
+
returnFullEntity: z.boolean().describe(
|
|
186
|
+
"Set to true to return the created redirects, not just their metadata"
|
|
187
|
+
).optional(),
|
|
188
|
+
options: z.object({
|
|
189
|
+
forceReplace: z.boolean().describe(
|
|
190
|
+
"set to true to replace a conflicting redirect's from-url instead of failing that item"
|
|
191
|
+
).optional()
|
|
192
|
+
}).describe("Extra options for creating redirects in bulk").optional()
|
|
193
|
+
}).optional()
|
|
194
|
+
});
|
|
195
|
+
var BulkCreateRedirectsResponse = /* @__PURE__ */ z.object({
|
|
196
|
+
results: z.array(
|
|
197
|
+
z.object({
|
|
198
|
+
itemMetadata: z.object({
|
|
199
|
+
_id: z.string().describe(
|
|
200
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
201
|
+
).max(100).optional().nullable(),
|
|
202
|
+
originalIndex: z.number().int().describe(
|
|
203
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
204
|
+
).optional(),
|
|
205
|
+
success: z.boolean().describe(
|
|
206
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
207
|
+
).optional(),
|
|
208
|
+
error: z.object({
|
|
209
|
+
code: z.string().describe("Error code.").optional(),
|
|
210
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
211
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
212
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
213
|
+
}).describe("Index, id and success/error details for this item").optional(),
|
|
214
|
+
item: z.object({
|
|
215
|
+
from: z.string().describe(
|
|
216
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
217
|
+
).max(950).optional(),
|
|
218
|
+
to: z.string().describe(
|
|
219
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
220
|
+
).max(4096).optional(),
|
|
221
|
+
options: z.object({
|
|
222
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
223
|
+
}).describe("additional options for the redirect").optional(),
|
|
224
|
+
language: z.string().describe(
|
|
225
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
226
|
+
).min(2).max(5).optional().nullable(),
|
|
227
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
228
|
+
/^[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}$/,
|
|
229
|
+
"Must be a valid GUID"
|
|
230
|
+
).optional().nullable(),
|
|
231
|
+
_createdDate: z.date().describe(
|
|
232
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
233
|
+
).optional().nullable()
|
|
234
|
+
}).describe(
|
|
235
|
+
"The created redirect. Only populated when return_full_entity is true"
|
|
236
|
+
).optional()
|
|
237
|
+
})
|
|
238
|
+
).max(500).optional(),
|
|
239
|
+
bulkActionMetadata: z.object({
|
|
240
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
241
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
242
|
+
undetailedFailures: z.number().int().describe(
|
|
243
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
244
|
+
).optional()
|
|
245
|
+
}).describe(
|
|
246
|
+
"Totals for the bulk action: successes, failures and undetailed failures"
|
|
247
|
+
).optional()
|
|
248
|
+
});
|
|
249
|
+
var CreateRedirectRequest = /* @__PURE__ */ z.object({
|
|
250
|
+
redirect: z.object({
|
|
251
|
+
from: z.string().describe(
|
|
252
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
253
|
+
).max(950).optional(),
|
|
254
|
+
to: z.string().describe(
|
|
255
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
256
|
+
).max(4096).optional(),
|
|
257
|
+
options: z.object({
|
|
258
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
259
|
+
}).describe("additional options for the redirect").optional(),
|
|
260
|
+
language: z.string().describe(
|
|
261
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
262
|
+
).min(2).max(5).optional().nullable(),
|
|
263
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
264
|
+
/^[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}$/,
|
|
265
|
+
"Must be a valid GUID"
|
|
266
|
+
).optional().nullable(),
|
|
267
|
+
_createdDate: z.date().describe(
|
|
268
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
269
|
+
).optional().nullable()
|
|
270
|
+
}).describe("The redirect to create"),
|
|
271
|
+
options: z.object({
|
|
272
|
+
options: z.object({
|
|
273
|
+
forceReplace: z.boolean().describe(
|
|
274
|
+
"set to true when need to replace a conflicting redirect's from-url (if it exists)"
|
|
275
|
+
).optional()
|
|
276
|
+
}).describe("Extra options for creating a redirect").optional()
|
|
277
|
+
}).optional()
|
|
278
|
+
});
|
|
279
|
+
var CreateRedirectResponse = /* @__PURE__ */ z.object({
|
|
280
|
+
from: z.string().describe(
|
|
281
|
+
"The path that is intercepted from. Accepts only an encoded string.\n\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\nalready begun writing.\n\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\nrejection into the gateway and change the error payload of the deprecated Add* endpoints."
|
|
282
|
+
).max(950).optional(),
|
|
283
|
+
to: z.string().describe(
|
|
284
|
+
"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\n\nCapped at 4096 to match the Redirector's own `target`."
|
|
285
|
+
).max(4096).optional(),
|
|
286
|
+
options: z.object({
|
|
287
|
+
groupRedirect: z.boolean().describe("set to true for group redirects").optional()
|
|
288
|
+
}).describe("additional options for the redirect").optional(),
|
|
289
|
+
language: z.string().describe(
|
|
290
|
+
"When provided, defines a language specific redirect. Otherwise, defines a general redirect."
|
|
291
|
+
).min(2).max(5).optional().nullable(),
|
|
292
|
+
_id: z.string().describe("Unique identifier for the redirect").regex(
|
|
293
|
+
/^[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}$/,
|
|
294
|
+
"Must be a valid GUID"
|
|
295
|
+
).optional().nullable(),
|
|
296
|
+
_createdDate: z.date().describe(
|
|
297
|
+
"Date the redirect was created. Sourced from the Redirector's `date_created`."
|
|
298
|
+
).optional().nullable()
|
|
299
|
+
});
|
|
300
|
+
var DeleteRedirectRequest = /* @__PURE__ */ z.object({
|
|
301
|
+
redirectId: z.string().describe("Unique identifier of the redirect to delete").regex(
|
|
302
|
+
/^[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}$/,
|
|
303
|
+
"Must be a valid GUID"
|
|
304
|
+
)
|
|
305
|
+
});
|
|
306
|
+
var DeleteRedirectResponse = /* @__PURE__ */ z.object({});
|
|
307
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
308
|
+
0 && (module.exports = {
|
|
309
|
+
BulkCreateRedirectsRequest,
|
|
310
|
+
BulkCreateRedirectsResponse,
|
|
311
|
+
BulkDeleteRedirectsRequest,
|
|
312
|
+
BulkDeleteRedirectsResponse,
|
|
313
|
+
CreateRedirectRequest,
|
|
314
|
+
CreateRedirectResponse,
|
|
315
|
+
DeleteRedirectRequest,
|
|
316
|
+
DeleteRedirectResponse,
|
|
317
|
+
GetRedirectRequest,
|
|
318
|
+
GetRedirectResponse,
|
|
319
|
+
ListRedirectsRequest,
|
|
320
|
+
ListRedirectsResponse
|
|
321
|
+
});
|
|
322
|
+
//# sourceMappingURL=schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../schemas.ts","../../src/promote-seo-v1-redirect-redirects.schemas.ts"],"sourcesContent":["export * from './src/promote-seo-v1-redirect-redirects.schemas.js';\n","import * as z from 'zod';\n\nexport const BulkDeleteRedirectsRequest = /*#__PURE__*/ z.object({\n redirectIds: z.array(z.string()).min(1).max(500),\n});\nexport const BulkDeleteRedirectsResponse = /*#__PURE__*/ z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .max(100)\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field 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 the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Index, id and success/error details for this item')\n .optional(),\n item: z\n .object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'The created redirect. Only populated when return_full_entity is true'\n )\n .optional(),\n })\n )\n .max(500)\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Totals for the bulk action: successes, failures and undetailed failures'\n )\n .optional(),\n});\nexport const ListRedirectsRequest = /*#__PURE__*/ z.object({});\nexport const ListRedirectsResponse = /*#__PURE__*/ z.object({\n redirects: z\n .array(\n z.object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n })\n )\n .optional(),\n});\nexport const GetRedirectRequest = /*#__PURE__*/ z.object({\n redirectId: z\n .string()\n .describe('Unique identifier of the redirect to retrieve')\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});\nexport const GetRedirectResponse = /*#__PURE__*/ z.object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n});\nexport const BulkCreateRedirectsRequest = /*#__PURE__*/ z.object({\n redirects: z\n .array(\n z.object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n })\n )\n .min(1)\n .max(500),\n options: z\n .object({\n returnFullEntity: z\n .boolean()\n .describe(\n 'Set to true to return the created redirects, not just their metadata'\n )\n .optional(),\n options: z\n .object({\n forceReplace: z\n .boolean()\n .describe(\n \"set to true to replace a conflicting redirect's from-url instead of failing that item\"\n )\n .optional(),\n })\n .describe('Extra options for creating redirects in bulk')\n .optional(),\n })\n .optional(),\n});\nexport const BulkCreateRedirectsResponse = /*#__PURE__*/ z.object({\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .max(100)\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field 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 the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Index, id and success/error details for this item')\n .optional(),\n item: z\n .object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n })\n .describe(\n 'The created redirect. Only populated when return_full_entity is true'\n )\n .optional(),\n })\n )\n .max(500)\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Totals for the bulk action: successes, failures and undetailed failures'\n )\n .optional(),\n});\nexport const CreateRedirectRequest = /*#__PURE__*/ z.object({\n redirect: z\n .object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n })\n .describe('The redirect to create'),\n options: z\n .object({\n options: z\n .object({\n forceReplace: z\n .boolean()\n .describe(\n \"set to true when need to replace a conflicting redirect's from-url (if it exists)\"\n )\n .optional(),\n })\n .describe('Extra options for creating a redirect')\n .optional(),\n })\n .optional(),\n});\nexport const CreateRedirectResponse = /*#__PURE__*/ z.object({\n from: z\n .string()\n .describe(\n \"The path that is intercepted from. Accepts only an encoded string.\\n\\nCapped at 950 to match the Redirector's own `from_path`, which is where this ends up. Without\\nthe cap an over-long path is accepted here and only rejected downstream, after this service has\\nalready begun writing.\\n\\nNo `minLength`: the service rejects an empty path itself, and adding one here would move that\\nrejection into the gateway and change the error payload of the deprecated Add* endpoints.\"\n )\n .max(950)\n .optional(),\n to: z\n .string()\n .describe(\n \"The path that is going to be resolved to. Either a path on the site or a full URL, encoded.\\n\\nCapped at 4096 to match the Redirector's own `target`.\"\n )\n .max(4096)\n .optional(),\n options: z\n .object({\n groupRedirect: z\n .boolean()\n .describe('set to true for group redirects')\n .optional(),\n })\n .describe('additional options for the redirect')\n .optional(),\n language: z\n .string()\n .describe(\n 'When provided, defines a language specific redirect. Otherwise, defines a general redirect.'\n )\n .min(2)\n .max(5)\n .optional()\n .nullable(),\n _id: z\n .string()\n .describe('Unique identifier for the redirect')\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 .nullable(),\n _createdDate: z\n .date()\n .describe(\n \"Date the redirect was created. Sourced from the Redirector's `date_created`.\"\n )\n .optional()\n .nullable(),\n});\nexport const DeleteRedirectRequest = /*#__PURE__*/ z.object({\n redirectId: z\n .string()\n .describe('Unique identifier of the redirect to delete')\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});\nexport const DeleteRedirectResponse = /*#__PURE__*/ z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,6BAA2C,gBAAE,SAAO;AAAA,EAC/D,aAAe,QAAQ,SAAO,CAAC,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG;AACjD,CAAC;AACM,IAAM,8BAA4C,gBAAE,SAAO;AAAA,EAChE,SACG;AAAA,IACG,SAAO;AAAA,MACP,cACG,SAAO;AAAA,QACN,KACG,SAAO,EACP;AAAA,UACC;AAAA,QACF,EACC,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,QACZ,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,2BAA2B,EACpC,SAAS;AAAA,UACZ,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IACC;AAAA,EACF,EACC,IAAI,IAAI,EACR,SAAS;AAAA,EACZ,SACG,SAAO;AAAA,IACN,eACG,UAAQ,EACR,SAAS,iCAAiC,EAC1C,SAAS;AAAA,EACd,CAAC,EACA,SAAS,qCAAqC,EAC9C,SAAS;AAAA,EACZ,UACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,CAAC,EACL,SAAS,EACT,SAAS;AAAA,EACZ,KACG,SAAO,EACP,SAAS,oCAAoC,EAC7C;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,cACG,OAAK,EACL;AAAA,IACC;AAAA,EACF,EACC,SAAS,EACT,SAAS;AACd,CAAC;AACM,IAAM,wBAAsC,gBAAE,SAAO;AAAA,EAC1D,YACG,SAAO,EACP,SAAS,6CAA6C,EACtD;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,yBAAuC,gBAAE,SAAO,CAAC,CAAC;","names":[]}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { BulkDeleteRedirectsResponse, ListRedirectsResponse, Redirect, GetRedirectApplicationErrors, BulkCreateRedirectsOptionsForRequest, BulkCreateRedirectsResponse, CreateRedirectOptionsForRequest, CreateRedirectApplicationErrors, DeleteRedirectApplicationErrors, RedirectCreatedEnvelope } from './index.typings.mjs';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, AddGroupRedirectsOptions, AddGroupRedirectsRequest, AddGroupRedirectsResponse, AddRedirectsOptions, AddRedirectsRequest, AddRedirectsResponse, ApplicationError, BaseEventMetadata, BulkActionMetadata, BulkCreateRedirectsOptions, BulkCreateRedirectsRequest, BulkDeleteRedirectsRequest, BulkRedirectResult, CleanupLanguageRedirectsRequest, CleanupLanguageRedirectsResponse, CreateRedirectOptions, CreateRedirectRequest, CreateRedirectResponse, DeleteRedirectRequest, DeleteRedirectResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetHttpStatusRequest, GetHttpStatusResponse, GetRedirectRequest, GetRedirectResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListRedirectsRequest, MessageEnvelope, RedirectOptions, RemoveGeneralRedirectRequest, RemoveGeneralRedirectResponse, RemoveGeneralRedirectsOptions, RestoreInfo, Source, SourceWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
|
+
|
|
5
|
+
declare function bulkDeleteRedirects$1(httpClient: HttpClient): BulkDeleteRedirectsSignature;
|
|
6
|
+
interface BulkDeleteRedirectsSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Deletes redirects in bulk, by id.
|
|
9
|
+
*
|
|
10
|
+
* An id that matches no redirect on the site fails only its own item - the batch proceeds and every
|
|
11
|
+
* other id is still sent. See BulkDeleteRedirectsResponse for what `success` does and does not
|
|
12
|
+
* promise: the Redirector's BulkRemove reports no per-item outcome, so a successful item means
|
|
13
|
+
* resolved-and-sent rather than confirmed-deleted.
|
|
14
|
+
*
|
|
15
|
+
* Language-scoped redirects are a known gap. The Redirector filters its stored-row delete to
|
|
16
|
+
* redirects without a language, so a language-scoped redirect loses its route but keeps its stored
|
|
17
|
+
* row. DeleteRedirect behaves identically - this is upstream behaviour rather than something this
|
|
18
|
+
* endpoint introduces.
|
|
19
|
+
*
|
|
20
|
+
* Example, with one unknown id:
|
|
21
|
+
*
|
|
22
|
+
* POST /v1/bulk/redirects/delete
|
|
23
|
+
* { "redirectIds": ["<a>", "<b>", "<unknown>"] }
|
|
24
|
+
*
|
|
25
|
+
* 200 {
|
|
26
|
+
* "results": [
|
|
27
|
+
* { "itemMetadata": { "id": "<a>", "originalIndex": 0, "success": true } },
|
|
28
|
+
* { "itemMetadata": { "id": "<b>", "originalIndex": 1, "success": true } },
|
|
29
|
+
* { "itemMetadata": { "id": "<unknown>", "originalIndex": 2, "success": false,
|
|
30
|
+
* "error": { "code": "REDIRECT_NOT_FOUND",
|
|
31
|
+
* "description": "Redirect <unknown> was not found" } } }
|
|
32
|
+
* ],
|
|
33
|
+
* "bulkActionMetadata": { "totalSuccesses": 2, "totalFailures": 1, "undetailedFailures": 0 }
|
|
34
|
+
* }
|
|
35
|
+
*
|
|
36
|
+
* Permission naming and domain events follow the rest of this service: `wix-seo.*` is what the
|
|
37
|
+
* Redirector itself checks, and no CUD event is emitted because this service owns no storage, so
|
|
38
|
+
* emitting one only here would leave consumers reading the absence of an event as the absence of a
|
|
39
|
+
* change.
|
|
40
|
+
* @param - Unique identifiers of the redirects to delete
|
|
41
|
+
* @returns The response for deleting redirects in bulk.
|
|
42
|
+
*
|
|
43
|
+
* One result per requested id, in request order - `item_metadata.original_index` is the index in
|
|
44
|
+
* `redirect_ids`. Per-item semantics:
|
|
45
|
+
*
|
|
46
|
+
* - `success` true means the redirect was found and sent to the Redirector for deletion. It is not a
|
|
47
|
+
* confirmation that the redirect is gone: the Redirector's BulkRemove returns no per-item outcome,
|
|
48
|
+
* so there is nothing to confirm it against.
|
|
49
|
+
* - `success` false with `error.code` REDIRECT_NOT_FOUND means no redirect on this site carries that
|
|
50
|
+
* id. The call still succeeds and every other id is still sent to the Redirector, under the same
|
|
51
|
+
* `success` meaning as above.
|
|
52
|
+
*
|
|
53
|
+
* `item` is never populated - there is no created entity to return.
|
|
54
|
+
*/
|
|
55
|
+
(redirectIds: string[]): Promise<NonNullablePaths<BulkDeleteRedirectsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.from` | `results.${number}.item.to` | `results.${number}.item.options.groupRedirect` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
56
|
+
}
|
|
57
|
+
declare function listRedirects$1(httpClient: HttpClient): ListRedirectsSignature;
|
|
58
|
+
interface ListRedirectsSignature {
|
|
59
|
+
/**
|
|
60
|
+
* Lists the site's redirects.
|
|
61
|
+
*
|
|
62
|
+
* Unpaged - see ListRedirectsResponse. Permission naming follows the rest of this service:
|
|
63
|
+
* `wix-seo.*` is what the Redirector itself checks.
|
|
64
|
+
* @returns The response for listing the site's redirects.
|
|
65
|
+
*
|
|
66
|
+
* Unpaged, so there is no paging_metadata: the Redirector's Get returns every redirect for the
|
|
67
|
+
* site in a single response and offers no paging or filtering of its own. Paging here would mean
|
|
68
|
+
* reading the whole set and then slicing it, which costs the same and buys the caller nothing.
|
|
69
|
+
* Revisit if the Redirector ever gains real paging.
|
|
70
|
+
*
|
|
71
|
+
* Unbounded for the same reason, mirroring the Redirector's own GetResponse.redirects, which
|
|
72
|
+
* declares no maxSize. The 500 in the Redirector's protos bounds its bulk *write* requests
|
|
73
|
+
* (Upsert, Remove, Validate); it is not a ceiling on how many redirects a site can hold.
|
|
74
|
+
*/
|
|
75
|
+
(): Promise<NonNullablePaths<ListRedirectsResponse, `redirects` | `redirects.${number}.from` | `redirects.${number}.to` | `redirects.${number}.options.groupRedirect`, 5>>;
|
|
76
|
+
}
|
|
77
|
+
declare function getRedirect$1(httpClient: HttpClient): GetRedirectSignature;
|
|
78
|
+
interface GetRedirectSignature {
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves a single redirect by id.
|
|
81
|
+
*
|
|
82
|
+
* Permission naming follows the rest of this service: `wix-seo.*` is what the Redirector itself
|
|
83
|
+
* checks.
|
|
84
|
+
* @param - Unique identifier of the redirect to retrieve
|
|
85
|
+
* @returns The retrieved redirect
|
|
86
|
+
*/
|
|
87
|
+
(redirectId: string): Promise<NonNullablePaths<Redirect, `from` | `to` | `options.groupRedirect`, 3> & {
|
|
88
|
+
__applicationErrorsType?: GetRedirectApplicationErrors;
|
|
89
|
+
}>;
|
|
90
|
+
}
|
|
91
|
+
declare function bulkCreateRedirects$1(httpClient: HttpClient): BulkCreateRedirectsSignature;
|
|
92
|
+
interface BulkCreateRedirectsSignature {
|
|
93
|
+
/**
|
|
94
|
+
* Creates redirects in bulk. Replaces AddRedirects and AddGroupRedirects.
|
|
95
|
+
*
|
|
96
|
+
* Permission naming and domain events follow the rest of this service: `wix-seo.*` is what the
|
|
97
|
+
* Redirector itself checks, and no CUD event is emitted because this service owns no storage -
|
|
98
|
+
* the redirects live in the Redirector. Neither is changed here, since a service-wide convention
|
|
99
|
+
* should not be broken by a single endpoint.
|
|
100
|
+
* @param - The redirects to create
|
|
101
|
+
* @returns The response for creating redirects in bulk
|
|
102
|
+
*/
|
|
103
|
+
(redirects: Redirect[], options?: BulkCreateRedirectsOptionsForRequest): Promise<NonNullablePaths<BulkCreateRedirectsResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | `results.${number}.item.from` | `results.${number}.item.to` | `results.${number}.item.options.groupRedirect` | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`, 6>>;
|
|
104
|
+
}
|
|
105
|
+
declare function createRedirect$1(httpClient: HttpClient): CreateRedirectSignature;
|
|
106
|
+
interface CreateRedirectSignature {
|
|
107
|
+
/**
|
|
108
|
+
* Create a redirect with loop solving
|
|
109
|
+
* @param - The redirect to create
|
|
110
|
+
* @returns The created redirect
|
|
111
|
+
*/
|
|
112
|
+
(redirect: Redirect, options?: CreateRedirectOptionsForRequest): Promise<NonNullablePaths<Redirect, `from` | `to` | `options.groupRedirect`, 3> & {
|
|
113
|
+
__applicationErrorsType?: CreateRedirectApplicationErrors;
|
|
114
|
+
}>;
|
|
115
|
+
}
|
|
116
|
+
declare function deleteRedirect$1(httpClient: HttpClient): DeleteRedirectSignature;
|
|
117
|
+
interface DeleteRedirectSignature {
|
|
118
|
+
/**
|
|
119
|
+
* Deletes a single redirect by id.
|
|
120
|
+
*
|
|
121
|
+
* The Redirector's Remove takes the whole redirect rather than an id, because it locates the route
|
|
122
|
+
* by `id` when one is present and by matching on `from_path`, exact/group matching and `regex`
|
|
123
|
+
* when it is not. The redirect is therefore read back through the Redirector's own get-by-id first
|
|
124
|
+
* and handed over as-is, so the caller only has to know the id; see DeleteRedirectService.
|
|
125
|
+
*
|
|
126
|
+
* Permission naming follows the rest of this service: `wix-seo.*` is what the Redirector itself
|
|
127
|
+
* checks.
|
|
128
|
+
*
|
|
129
|
+
* No domain event is emitted - neither a CUD event nor the `wix.api.emits` the DELETE annotation
|
|
130
|
+
* asks for - because the redirects live in the Redirector, which owns the storage and does not
|
|
131
|
+
* emit through us. Emitting only here would publish a stream that is silently incomplete: every
|
|
132
|
+
* other write path (AddRedirects, BulkCreateRedirects, RemoveGeneralRedirect,
|
|
133
|
+
* CleanupLanguageRedirects) and every caller reaching the Redirector directly would stay silent,
|
|
134
|
+
* so a consumer would take the absence of an event as the absence of a change. Publishing redirect
|
|
135
|
+
* events is therefore a service-wide follow-up, not a per-endpoint one; BulkCreateRedirects above
|
|
136
|
+
* carries the same suppression for the same reason.
|
|
137
|
+
*
|
|
138
|
+
* CUSTOM_ACTION is not an alternative escape from the rule: with a top-level id field on the
|
|
139
|
+
* request, flynt requires this method to be annotated `method: DELETE`
|
|
140
|
+
* (`crud-add-delete-annotation`).
|
|
141
|
+
* @param - Unique identifier of the redirect to delete
|
|
142
|
+
* @returns The response for deleting a single redirect
|
|
143
|
+
*/
|
|
144
|
+
(redirectId: string): Promise<void & {
|
|
145
|
+
__applicationErrorsType?: DeleteRedirectApplicationErrors;
|
|
146
|
+
}>;
|
|
147
|
+
}
|
|
148
|
+
declare const onRedirectCreated$1: EventDefinition<RedirectCreatedEnvelope, "wix.promote.seo.v1.redirect_created">;
|
|
149
|
+
|
|
150
|
+
declare const bulkDeleteRedirects: MaybeContext<BuildRESTFunction<typeof bulkDeleteRedirects$1> & typeof bulkDeleteRedirects$1>;
|
|
151
|
+
declare const listRedirects: MaybeContext<BuildRESTFunction<typeof listRedirects$1> & typeof listRedirects$1>;
|
|
152
|
+
declare const getRedirect: MaybeContext<BuildRESTFunction<typeof getRedirect$1> & typeof getRedirect$1>;
|
|
153
|
+
declare const bulkCreateRedirects: MaybeContext<BuildRESTFunction<typeof bulkCreateRedirects$1> & typeof bulkCreateRedirects$1>;
|
|
154
|
+
declare const createRedirect: MaybeContext<BuildRESTFunction<typeof createRedirect$1> & typeof createRedirect$1>;
|
|
155
|
+
declare const deleteRedirect: MaybeContext<BuildRESTFunction<typeof deleteRedirect$1> & typeof deleteRedirect$1>;
|
|
156
|
+
/** */
|
|
157
|
+
declare const onRedirectCreated: BuildEventDefinition<typeof onRedirectCreated$1> & typeof onRedirectCreated$1;
|
|
158
|
+
|
|
159
|
+
export { BulkCreateRedirectsOptionsForRequest, BulkCreateRedirectsResponse, BulkDeleteRedirectsResponse, CreateRedirectApplicationErrors, CreateRedirectOptionsForRequest, DeleteRedirectApplicationErrors, GetRedirectApplicationErrors, ListRedirectsResponse, Redirect, RedirectCreatedEnvelope, bulkCreateRedirects, bulkDeleteRedirects, createRedirect, deleteRedirect, getRedirect, listRedirects, onRedirectCreated };
|