@wix/auto_sdk_seo_robots-txt 1.0.21 → 1.0.23
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 +2 -2
- package/build/cjs/index.js +4 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +4 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +8 -2
- package/build/internal/cjs/meta.d.ts +48 -0
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +8 -2
- package/build/internal/es/meta.d.mts +48 -0
- package/package.json +5 -12
- package/build/cjs/schemas.d.ts +0 -32
- package/build/cjs/schemas.js +0 -91
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -32
- package/build/es/schemas.mjs +0 -51
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -289
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -246
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -230
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -32
- package/build/internal/cjs/schemas.js +0 -91
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -262
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -220
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -201
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -32
- package/build/internal/es/schemas.mjs +0 -51
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
|
@@ -15,6 +15,12 @@ interface RobotsTxt {
|
|
|
15
15
|
* @maxLength 63
|
|
16
16
|
*/
|
|
17
17
|
subdomain?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the robots.txt entity.
|
|
20
|
+
* @internal
|
|
21
|
+
* @maxLength 100
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
18
24
|
}
|
|
19
25
|
/** The request to get the Robots.txt file content */
|
|
20
26
|
interface GetRobotsTxtRequest {
|
|
@@ -78,8 +84,18 @@ interface DomainEventBodyOneOf {
|
|
|
78
84
|
}
|
|
79
85
|
interface EntityCreatedEvent {
|
|
80
86
|
entityAsJson?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
triggeredByUndelete?: boolean | null;
|
|
81
92
|
/** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
|
|
82
93
|
restoreInfo?: RestoreInfo;
|
|
94
|
+
/**
|
|
95
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
additionalMetadataAsJson?: string | null;
|
|
83
99
|
}
|
|
84
100
|
interface RestoreInfo {
|
|
85
101
|
deletedDate?: Date | null;
|
|
@@ -91,10 +107,42 @@ interface EntityUpdatedEvent {
|
|
|
91
107
|
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
92
108
|
*/
|
|
93
109
|
currentEntityAsJson?: string;
|
|
110
|
+
/**
|
|
111
|
+
* This field is currently part of the of the EntityUpdatedEvent msg, but scala/node libraries which implements the domain events standard
|
|
112
|
+
* wont populate it / have any reference to it in the API.
|
|
113
|
+
* The main reason for it is that fetching the old entity from the DB will have a performance hit on an update operation so unless truly needed,
|
|
114
|
+
* the developer should send only the new (current) entity.
|
|
115
|
+
* An additional reason is not wanting to send this additional entity over the wire (kafka) since in some cases it can be really big
|
|
116
|
+
* Developers that must reflect the old entity will have to implement their own domain event sender mechanism which will follow the DomainEvent proto message.
|
|
117
|
+
* @internal
|
|
118
|
+
* @deprecated
|
|
119
|
+
*/
|
|
120
|
+
previousEntityAsJson?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Map of fully qualified field paths to their previous values for fields that changed.
|
|
123
|
+
* For more details please see [AIP](https://dev.wix.com/docs/rnd-general/articles/p13n-guidelines-aips/guidance-aips/design-patterns/7016-events#modified-fields-format)
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
modifiedFields?: Record<string, any>;
|
|
127
|
+
/**
|
|
128
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
additionalMetadataAsJson?: string | null;
|
|
94
132
|
}
|
|
95
133
|
interface EntityDeletedEvent {
|
|
134
|
+
/**
|
|
135
|
+
* Indicates if the entity is sent to trash-bin. only available when trash-bin is enabled
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
movedToTrash?: boolean | null;
|
|
96
139
|
/** Entity that was deleted. */
|
|
97
140
|
deletedEntityAsJson?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* Optional domain-specific metadata defined by the API owner, encoded as JSON.
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
additionalMetadataAsJson?: string | null;
|
|
98
146
|
}
|
|
99
147
|
interface ActionEvent {
|
|
100
148
|
bodyAsJson?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_seo_robots-txt",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
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"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
|
-
"@wix/sdk-runtime": "^1.0.
|
|
39
|
-
"@wix/sdk-types": "^1.17.
|
|
40
|
-
"zod": "^4.3.6"
|
|
32
|
+
"@wix/sdk-runtime": "^1.0.24",
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.promote.seo.v2.robots_txt"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "02fc9ae23adf31c4bf41173df374a9c7c4d6b61e495545b0752b4bf4"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetRobotsTxtRequest: z.ZodObject<{
|
|
4
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
declare const GetRobotsTxtResponse: z.ZodObject<{
|
|
9
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
10
|
-
content: z.ZodOptional<z.ZodString>;
|
|
11
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
declare const UpdateRobotsTxtRequest: z.ZodObject<{
|
|
16
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
content: z.ZodOptional<z.ZodString>;
|
|
19
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
declare const UpdateRobotsTxtResponse: z.ZodObject<{
|
|
25
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
content: z.ZodOptional<z.ZodString>;
|
|
27
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
|
|
32
|
-
export { GetRobotsTxtRequest, GetRobotsTxtResponse, UpdateRobotsTxtRequest, UpdateRobotsTxtResponse };
|
package/build/cjs/schemas.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
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
|
-
GetRobotsTxtRequest: () => GetRobotsTxtRequest,
|
|
34
|
-
GetRobotsTxtResponse: () => GetRobotsTxtResponse,
|
|
35
|
-
UpdateRobotsTxtRequest: () => UpdateRobotsTxtRequest,
|
|
36
|
-
UpdateRobotsTxtResponse: () => UpdateRobotsTxtResponse
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
39
|
-
|
|
40
|
-
// src/promote-seo-v2-robots-txt-robots-txt.schemas.ts
|
|
41
|
-
var z = __toESM(require("zod"));
|
|
42
|
-
var GetRobotsTxtRequest = z.object({
|
|
43
|
-
options: z.object({
|
|
44
|
-
subdomain: z.string().describe(
|
|
45
|
-
"Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`."
|
|
46
|
-
).optional()
|
|
47
|
-
}).optional()
|
|
48
|
-
});
|
|
49
|
-
var GetRobotsTxtResponse = z.object({
|
|
50
|
-
robotsTxt: z.object({
|
|
51
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
52
|
-
default: z.boolean().describe(
|
|
53
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
54
|
-
).optional(),
|
|
55
|
-
subdomain: z.string().describe(
|
|
56
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
57
|
-
).max(63).optional()
|
|
58
|
-
}).describe("Retrieved `robots.txt` file entity.").optional()
|
|
59
|
-
});
|
|
60
|
-
var UpdateRobotsTxtRequest = z.object({
|
|
61
|
-
options: z.object({
|
|
62
|
-
robotsTxt: z.object({
|
|
63
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
64
|
-
default: z.boolean().describe(
|
|
65
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
66
|
-
).optional(),
|
|
67
|
-
subdomain: z.string().describe(
|
|
68
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
69
|
-
).max(63).optional()
|
|
70
|
-
}).describe("`robots.txt` file to update.").optional()
|
|
71
|
-
}).optional()
|
|
72
|
-
});
|
|
73
|
-
var UpdateRobotsTxtResponse = z.object({
|
|
74
|
-
robotsTxt: z.object({
|
|
75
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
76
|
-
default: z.boolean().describe(
|
|
77
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
78
|
-
).optional(),
|
|
79
|
-
subdomain: z.string().describe(
|
|
80
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
81
|
-
).max(63).optional()
|
|
82
|
-
}).describe("Updated `robots.txt` file.").optional()
|
|
83
|
-
});
|
|
84
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
-
0 && (module.exports = {
|
|
86
|
-
GetRobotsTxtRequest,
|
|
87
|
-
GetRobotsTxtResponse,
|
|
88
|
-
UpdateRobotsTxtRequest,
|
|
89
|
-
UpdateRobotsTxtResponse
|
|
90
|
-
});
|
|
91
|
-
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/promote-seo-v2-robots-txt-robots-txt.schemas.ts"],"sourcesContent":["export * from './src/promote-seo-v2-robots-txt-robots-txt.schemas.js';\n","import * as z from 'zod';\n\nexport const GetRobotsTxtRequest = z.object({\n options: z\n .object({\n subdomain: z\n .string()\n .describe(\n 'Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`.'\n )\n .optional(),\n })\n .optional(),\n});\nexport const GetRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Retrieved `robots.txt` file entity.')\n .optional(),\n});\nexport const UpdateRobotsTxtRequest = z.object({\n options: z\n .object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('`robots.txt` file to update.')\n .optional(),\n })\n .optional(),\n});\nexport const UpdateRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Updated `robots.txt` file.')\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,uBAAyB,SAAO;AAAA,EAC3C,WACG,SAAO;AAAA,IACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACd,CAAC,EACA,SAAS,qCAAqC,EAC9C,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG,SAAO;AAAA,IACN,WACG,SAAO;AAAA,MACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,WACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,IACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,0BAA4B,SAAO;AAAA,EAC9C,WACG,SAAO;AAAA,IACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B,EACrC,SAAS;AACd,CAAC;","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetRobotsTxtRequest: z.ZodObject<{
|
|
4
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
5
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
declare const GetRobotsTxtResponse: z.ZodObject<{
|
|
9
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
10
|
-
content: z.ZodOptional<z.ZodString>;
|
|
11
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
declare const UpdateRobotsTxtRequest: z.ZodObject<{
|
|
16
|
-
options: z.ZodOptional<z.ZodObject<{
|
|
17
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
18
|
-
content: z.ZodOptional<z.ZodString>;
|
|
19
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
}, z.core.$strip>>;
|
|
23
|
-
}, z.core.$strip>;
|
|
24
|
-
declare const UpdateRobotsTxtResponse: z.ZodObject<{
|
|
25
|
-
robotsTxt: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
content: z.ZodOptional<z.ZodString>;
|
|
27
|
-
default: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
subdomain: z.ZodOptional<z.ZodString>;
|
|
29
|
-
}, z.core.$strip>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
|
|
32
|
-
export { GetRobotsTxtRequest, GetRobotsTxtResponse, UpdateRobotsTxtRequest, UpdateRobotsTxtResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// src/promote-seo-v2-robots-txt-robots-txt.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var GetRobotsTxtRequest = z.object({
|
|
4
|
-
options: z.object({
|
|
5
|
-
subdomain: z.string().describe(
|
|
6
|
-
"Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`."
|
|
7
|
-
).optional()
|
|
8
|
-
}).optional()
|
|
9
|
-
});
|
|
10
|
-
var GetRobotsTxtResponse = z.object({
|
|
11
|
-
robotsTxt: z.object({
|
|
12
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
13
|
-
default: z.boolean().describe(
|
|
14
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
15
|
-
).optional(),
|
|
16
|
-
subdomain: z.string().describe(
|
|
17
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
18
|
-
).max(63).optional()
|
|
19
|
-
}).describe("Retrieved `robots.txt` file entity.").optional()
|
|
20
|
-
});
|
|
21
|
-
var UpdateRobotsTxtRequest = z.object({
|
|
22
|
-
options: z.object({
|
|
23
|
-
robotsTxt: z.object({
|
|
24
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
25
|
-
default: z.boolean().describe(
|
|
26
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
27
|
-
).optional(),
|
|
28
|
-
subdomain: z.string().describe(
|
|
29
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
30
|
-
).max(63).optional()
|
|
31
|
-
}).describe("`robots.txt` file to update.").optional()
|
|
32
|
-
}).optional()
|
|
33
|
-
});
|
|
34
|
-
var UpdateRobotsTxtResponse = z.object({
|
|
35
|
-
robotsTxt: z.object({
|
|
36
|
-
content: z.string().describe("Full text content of the `robots.txt` file.").max(72e4).optional(),
|
|
37
|
-
default: z.boolean().describe(
|
|
38
|
-
"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file)."
|
|
39
|
-
).optional(),
|
|
40
|
-
subdomain: z.string().describe(
|
|
41
|
-
"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'"
|
|
42
|
-
).max(63).optional()
|
|
43
|
-
}).describe("Updated `robots.txt` file.").optional()
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
GetRobotsTxtRequest,
|
|
47
|
-
GetRobotsTxtResponse,
|
|
48
|
-
UpdateRobotsTxtRequest,
|
|
49
|
-
UpdateRobotsTxtResponse
|
|
50
|
-
};
|
|
51
|
-
//# sourceMappingURL=schemas.mjs.map
|
package/build/es/schemas.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/promote-seo-v2-robots-txt-robots-txt.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetRobotsTxtRequest = z.object({\n options: z\n .object({\n subdomain: z\n .string()\n .describe(\n 'Subdomain of the requested `robots.txt file`. For example, `www`, `es`, `fr`. Default: `www`.'\n )\n .optional(),\n })\n .optional(),\n});\nexport const GetRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Retrieved `robots.txt` file entity.')\n .optional(),\n});\nexport const UpdateRobotsTxtRequest = z.object({\n options: z\n .object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('`robots.txt` file to update.')\n .optional(),\n })\n .optional(),\n});\nexport const UpdateRobotsTxtResponse = z.object({\n robotsTxt: z\n .object({\n content: z\n .string()\n .describe('Full text content of the `robots.txt` file.')\n .max(720000)\n .optional(),\n default: z\n .boolean()\n .describe(\n \"Whether this `robots.txt` file uses Wix's [default content](https://support.wix.com/en/article/editing-your-sites-robotstxt-file).\"\n )\n .optional(),\n subdomain: z\n .string()\n .describe(\n \"If applicable, target subdomain for the `robots.txt` file. For example, a site can have multiple subdomains like `www.example.com`, `es.example.com`, `fr.example.com`. Each subdomain can have its own `robots.txt` file with different rules. Default: 'www'\"\n )\n .max(63)\n .optional(),\n })\n .describe('Updated `robots.txt` file.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,sBAAwB,SAAO;AAAA,EAC1C,SACG,SAAO;AAAA,IACN,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,uBAAyB,SAAO;AAAA,EAC3C,WACG,SAAO;AAAA,IACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACd,CAAC,EACA,SAAS,qCAAqC,EAC9C,SAAS;AACd,CAAC;AACM,IAAM,yBAA2B,SAAO;AAAA,EAC7C,SACG,SAAO;AAAA,IACN,WACG,SAAO;AAAA,MACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,MACZ,SACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,WACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,IACd,CAAC,EACA,SAAS,8BAA8B,EACvC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,0BAA4B,SAAO;AAAA,EAC9C,WACG,SAAO;AAAA,IACN,SACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IAAI,IAAM,EACV,SAAS;AAAA,IACZ,SACG,UAAQ,EACR;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,IACZ,WACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACd,CAAC,EACA,SAAS,4BAA4B,EACrC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
24
|
-
getRobotsTxt: () => getRobotsTxt4,
|
|
25
|
-
onRobotsTxtUpdated: () => onRobotsTxtUpdated2,
|
|
26
|
-
updateRobotsTxt: () => updateRobotsTxt4
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(index_exports);
|
|
29
|
-
|
|
30
|
-
// src/promote-seo-v2-robots-txt-robots-txt.public.ts
|
|
31
|
-
var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
32
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
33
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
34
|
-
var import_sdk_types = require("@wix/sdk-types");
|
|
35
|
-
|
|
36
|
-
// src/promote-seo-v2-robots-txt-robots-txt.universal.ts
|
|
37
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
38
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
39
|
-
|
|
40
|
-
// src/promote-seo-v2-robots-txt-robots-txt.http.ts
|
|
41
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
42
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
43
|
-
function resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url(opts) {
|
|
44
|
-
const domainToMappings = {
|
|
45
|
-
"www._base_domain_": [
|
|
46
|
-
{
|
|
47
|
-
srcPath: "/_api/promote-seo-robots-server",
|
|
48
|
-
destPath: "/api"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
srcPath: "/_api/promote-seo-robots-server/v2/robots",
|
|
52
|
-
destPath: "/v2/robots"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
srcPath: "/_api/promote-seo-robots-server/v2/ads",
|
|
56
|
-
destPath: "/v2/ads"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
srcPath: "/_api/promote-seo-robots-server/v2/llms",
|
|
60
|
-
destPath: "/v2/llms"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"api._api_base_domain_": [
|
|
64
|
-
{
|
|
65
|
-
srcPath: "/promote-seo-robots-server",
|
|
66
|
-
destPath: ""
|
|
67
|
-
}
|
|
68
|
-
],
|
|
69
|
-
"manage._base_domain_": [
|
|
70
|
-
{
|
|
71
|
-
srcPath: "/_api/promote-seo-robots-server",
|
|
72
|
-
destPath: "/api"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
srcPath: "/_api/promote-seo-robots-server/v2/robots",
|
|
76
|
-
destPath: "/v2/robots"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
srcPath: "/_api/promote-seo-robots-server/v2/ads",
|
|
80
|
-
destPath: "/v2/ads"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
srcPath: "/_api/promote-seo-robots-server/v2/llms",
|
|
84
|
-
destPath: "/v2/llms"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"www.wixapis.com": [
|
|
88
|
-
{
|
|
89
|
-
srcPath: "/promote-seo-robots-server/v2/robots",
|
|
90
|
-
destPath: "/v2/robots"
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
srcPath: "/promote-seo-robots-server/v2/ads",
|
|
94
|
-
destPath: "/v2/ads"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
srcPath: "/promote-seo-txt-file-server/v2/ads",
|
|
98
|
-
destPath: "/v2/ads"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
srcPath: "/promote-seo-txt-file-server/v2/robots",
|
|
102
|
-
destPath: "/v2/robots"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
srcPath: "/promote-seo-robots-server/v2/llms",
|
|
106
|
-
destPath: "/v2/llms"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
srcPath: "/promote-seo-txt-file-server/v2/llms",
|
|
110
|
-
destPath: "/v2/llms"
|
|
111
|
-
}
|
|
112
|
-
],
|
|
113
|
-
"*.dev.wix-code.com": [
|
|
114
|
-
{
|
|
115
|
-
srcPath: "/promote/marketing/v2/ads",
|
|
116
|
-
destPath: "/v2/ads"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/promote/seo/v2/llms",
|
|
120
|
-
destPath: "/v2/llms"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
srcPath: "/promote/seo/v2/robots",
|
|
124
|
-
destPath: "/v2/robots"
|
|
125
|
-
}
|
|
126
|
-
],
|
|
127
|
-
_: [
|
|
128
|
-
{
|
|
129
|
-
srcPath: "/promote/marketing/v2/ads",
|
|
130
|
-
destPath: "/v2/ads"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
srcPath: "/promote/seo/v2/llms",
|
|
134
|
-
destPath: "/v2/llms"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/promote/seo/v2/robots",
|
|
138
|
-
destPath: "/v2/robots"
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
};
|
|
142
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
143
|
-
}
|
|
144
|
-
var PACKAGE_NAME = "@wix/auto_sdk_seo_robots-txt";
|
|
145
|
-
function getRobotsTxt(payload) {
|
|
146
|
-
function __getRobotsTxt({ host }) {
|
|
147
|
-
const metadata = {
|
|
148
|
-
entityFqdn: "wix.promote.seo.v2.robots_txt",
|
|
149
|
-
method: "GET",
|
|
150
|
-
methodFqn: "com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.GetRobotsTxt",
|
|
151
|
-
packageName: PACKAGE_NAME,
|
|
152
|
-
migrationOptions: {
|
|
153
|
-
optInTransformResponse: true
|
|
154
|
-
},
|
|
155
|
-
url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({
|
|
156
|
-
protoPath: "/v2/robots",
|
|
157
|
-
data: payload,
|
|
158
|
-
host
|
|
159
|
-
}),
|
|
160
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
161
|
-
};
|
|
162
|
-
return metadata;
|
|
163
|
-
}
|
|
164
|
-
return __getRobotsTxt;
|
|
165
|
-
}
|
|
166
|
-
function updateRobotsTxt(payload) {
|
|
167
|
-
function __updateRobotsTxt({ host }) {
|
|
168
|
-
const metadata = {
|
|
169
|
-
entityFqdn: "wix.promote.seo.v2.robots_txt",
|
|
170
|
-
method: "PUT",
|
|
171
|
-
methodFqn: "com.wixpress.promote.seo.robots.server.v2.RobotsServiceV2.UpdateRobotsTxt",
|
|
172
|
-
packageName: PACKAGE_NAME,
|
|
173
|
-
migrationOptions: {
|
|
174
|
-
optInTransformResponse: true
|
|
175
|
-
},
|
|
176
|
-
url: resolveComWixpressPromoteSeoRobotsServerV2RobotsServiceV2Url({
|
|
177
|
-
protoPath: "/v2/robots",
|
|
178
|
-
data: payload,
|
|
179
|
-
host
|
|
180
|
-
}),
|
|
181
|
-
data: payload
|
|
182
|
-
};
|
|
183
|
-
return metadata;
|
|
184
|
-
}
|
|
185
|
-
return __updateRobotsTxt;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// src/promote-seo-v2-robots-txt-robots-txt.universal.ts
|
|
189
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
190
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
191
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
192
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
193
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
194
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
195
|
-
return WebhookIdentityType2;
|
|
196
|
-
})(WebhookIdentityType || {});
|
|
197
|
-
async function getRobotsTxt2(options) {
|
|
198
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
199
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
200
|
-
subdomain: options?.subdomain
|
|
201
|
-
});
|
|
202
|
-
const reqOpts = getRobotsTxt(payload);
|
|
203
|
-
sideEffects?.onSiteCall?.();
|
|
204
|
-
try {
|
|
205
|
-
const result = await httpClient.request(reqOpts);
|
|
206
|
-
sideEffects?.onSuccess?.(result);
|
|
207
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
208
|
-
} catch (err) {
|
|
209
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
210
|
-
err,
|
|
211
|
-
{
|
|
212
|
-
spreadPathsToArguments: {},
|
|
213
|
-
explicitPathsToArguments: { subdomain: "$[0].subdomain" },
|
|
214
|
-
singleArgumentUnchanged: false
|
|
215
|
-
},
|
|
216
|
-
["options"]
|
|
217
|
-
);
|
|
218
|
-
sideEffects?.onError?.(err);
|
|
219
|
-
throw transformedError;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
async function updateRobotsTxt2(options) {
|
|
223
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
224
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
225
|
-
robotsTxt: options?.robotsTxt
|
|
226
|
-
});
|
|
227
|
-
const reqOpts = updateRobotsTxt(payload);
|
|
228
|
-
sideEffects?.onSiteCall?.();
|
|
229
|
-
try {
|
|
230
|
-
const result = await httpClient.request(reqOpts);
|
|
231
|
-
sideEffects?.onSuccess?.(result);
|
|
232
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
233
|
-
} catch (err) {
|
|
234
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
235
|
-
err,
|
|
236
|
-
{
|
|
237
|
-
spreadPathsToArguments: {},
|
|
238
|
-
explicitPathsToArguments: { robotsTxt: "$[0].robotsTxt" },
|
|
239
|
-
singleArgumentUnchanged: false
|
|
240
|
-
},
|
|
241
|
-
["options"]
|
|
242
|
-
);
|
|
243
|
-
sideEffects?.onError?.(err);
|
|
244
|
-
throw transformedError;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
// src/promote-seo-v2-robots-txt-robots-txt.public.ts
|
|
249
|
-
function getRobotsTxt3(httpClient) {
|
|
250
|
-
return (options) => getRobotsTxt2(
|
|
251
|
-
options,
|
|
252
|
-
// @ts-ignore
|
|
253
|
-
{ httpClient }
|
|
254
|
-
);
|
|
255
|
-
}
|
|
256
|
-
function updateRobotsTxt3(httpClient) {
|
|
257
|
-
return (options) => updateRobotsTxt2(
|
|
258
|
-
options,
|
|
259
|
-
// @ts-ignore
|
|
260
|
-
{ httpClient }
|
|
261
|
-
);
|
|
262
|
-
}
|
|
263
|
-
var onRobotsTxtUpdated = (0, import_sdk_types.EventDefinition)(
|
|
264
|
-
"wix.promote.seo.robots_txt_updated",
|
|
265
|
-
true,
|
|
266
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
267
|
-
(0, import_transform_paths.transformPaths)(event, [
|
|
268
|
-
{
|
|
269
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
270
|
-
paths: [{ path: "metadata.eventTime" }]
|
|
271
|
-
}
|
|
272
|
-
])
|
|
273
|
-
)
|
|
274
|
-
)();
|
|
275
|
-
|
|
276
|
-
// src/promote-seo-v2-robots-txt-robots-txt.context.ts
|
|
277
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
278
|
-
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
279
|
-
var getRobotsTxt4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getRobotsTxt3);
|
|
280
|
-
var updateRobotsTxt4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateRobotsTxt3);
|
|
281
|
-
var onRobotsTxtUpdated2 = (0, import_event_definition_modules.createEventModule)(onRobotsTxtUpdated);
|
|
282
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
283
|
-
0 && (module.exports = {
|
|
284
|
-
WebhookIdentityType,
|
|
285
|
-
getRobotsTxt,
|
|
286
|
-
onRobotsTxtUpdated,
|
|
287
|
-
updateRobotsTxt
|
|
288
|
-
});
|
|
289
|
-
//# sourceMappingURL=index.js.map
|