@wix/wix-code-types 2.0.14800 → 2.0.14802

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.
@@ -224,6 +224,13 @@
224
224
  "frontend"
225
225
  ]
226
226
  },
227
+ "@wix/automations-email-actions": {
228
+ "name": "@wix/automations-email-actions",
229
+ "scopes": [
230
+ "backend",
231
+ "frontend"
232
+ ]
233
+ },
227
234
  "@wix/b2btransfer": {
228
235
  "name": "@wix/b2btransfer",
229
236
  "scopes": [
@@ -581,6 +588,13 @@
581
588
  "frontend"
582
589
  ]
583
590
  },
591
+ "@wix/enterprise-site-management": {
592
+ "name": "@wix/enterprise-site-management",
593
+ "scopes": [
594
+ "backend",
595
+ "frontend"
596
+ ]
597
+ },
584
598
  "@wix/events": {
585
599
  "name": "@wix/events",
586
600
  "scopes": [
@@ -1102,7 +1102,7 @@
1102
1102
  },
1103
1103
  {
1104
1104
  "path": "@wix/wix-code-types/dist/types/beta/common/wix-http-functions.d.ts",
1105
- "content": "declare module \"wix-http-functions\" {\n \n}\n"
1105
+ "content": "declare module \"wix-http-functions\" {\n /**\n * Returns a response with status code 400 (Bad Request) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#badRequest)\n */\n export function badRequest(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * Returns a response with status code 201 (Created) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#created)\n */\n export function created(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with the HTTP DELETE method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#delete)\n */\n /* Illegal function name 'delete' can't be used here\n function delete(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n */\n /**\n * Returns a response with status code 403 (Forbidden) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#forbidden)\n */\n export function forbidden(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with the HTTP GET method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#get)\n */\n export function get(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n /**\n * Returns a response with status code 404 (Not Found) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#notFound)\n */\n export function notFound(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * Returns a response with status code 200 (OK) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#ok)\n */\n export function ok(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with the HTTP OPTIONS method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#options)\n */\n export function options(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with the HTTP POST method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#post)\n */\n export function post(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with the HTTP PUT method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#put)\n */\n export function put(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n /**\n * Returns a response populated with the information from the options parameter.\n * The `response()` function creates a custom response built with the\n * information passed to the `options` parameter in a `WixHttpFunctionCustomResponseOptions`\n * object.\n *\n * Use the `response()` function to create a response to return from an HTTP\n * function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#response)\n */\n export function response(options: WixHttpFunctionCustomResponseOptions): WixHttpFunctionResponse;\n /**\n * Returns a response with status code 500 (Internal Server Error) and the information from the options parameter.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#serverError)\n */\n export function serverError(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;\n /**\n * A function that responds to requests made with any HTTP method.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#use)\n */\n export function use(request: WixHttpFunctionRequest): WixHttpFunctionResponse;\n /**\n * An object used to customize a response to an HTTP function call, including a HTTP response code you select.\n */\n type WixHttpFunctionCustomResponseOptions = {\n /**\n * The response's HTTP status code.\n */\n status?: number;\n /**\n * The response's body.\n */\n body?: string | Buffer | any;\n /**\n * The response's header fields. The `headers` property contains an object of `key:value` pairs where the `key` is the header field name and the `value` is the header field value.\n */\n headers?: any;\n };\n /**\n * An object used to set up a standard response to an HTTP function call, including a pre-set (unchangeable) HTTP response code.\n */\n type WixHttpFunctionResponseOptions = {\n /**\n * The response's body.\n */\n body?: string | Buffer | any;\n /**\n * The response's header fields. The `headers` property contains an object of `key:value` pairs where the `key` is the header field name and the `value` is the header field value.\n */\n headers?: any;\n };\n /**\n * An object representing an incoming request received by a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#)\n */\n interface WixHttpFunctionRequest {\n /**\n * Returns the base URL of a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#baseUrl)\n */\n readonly baseUrl: string;\n /**\n * Returns an object representing the body of the incoming call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#body)\n */\n readonly body: WixHttpFunctionRequest.WixHttpFunctionRequestBody;\n /**\n * Returns the function name of a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#functionName)\n */\n readonly functionName: string;\n /**\n * Returns the HTTP header fields used in a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#headers)\n */\n readonly headers: any;\n /**\n * Returns the IP address of the client who called the HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#ip)\n */\n readonly ip: string;\n /**\n * Returns the HTTP method used in calling an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#method)\n */\n readonly method: string;\n /**\n * Returns the path of the URL used to call an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#path)\n */\n readonly path: string[];\n /**\n * Returns the query fields and values of the URL used to call an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#query)\n */\n readonly query: any;\n /**\n * Returns the full URL of a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#url)\n */\n readonly url: string;\n }\n /**\n * An object representing a response to an HTTP function request.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#)\n */\n interface WixHttpFunctionResponse {\n /**\n * Sets or gets the body of the response as a string, object or binary buffer.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#body)\n */\n body: string | Buffer | any;\n /**\n * Sets or gets the HTTP response header fields.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#headers)\n */\n headers: any;\n /**\n * Sets or gets the HTTP status code of the response.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#status)\n */\n status: number;\n }\n /**\n * An object representing an incoming request received by a call to an HTTP function.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#)\n */\n export namespace WixHttpFunctionRequest {\n /**\n * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#)\n */\n interface WixHttpFunctionRequestBody {\n /**\n * Returns a Promise which resolves to the body of the call in binary as a Node.js [Buffer](https://nodejs.org/docs/latest-v14.x/api/buffer.html) object.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#buffer)\n */\n buffer(): Promise<any>;\n /**\n * Returns a Promise which resolves to the body of the call as a JSON object.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#json)\n */\n json(): Promise<any>;\n /**\n * Returns a Promise which resolves to the body of the call as a string.\n * \t[Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#text)\n */\n text(): Promise<string>;\n }\n /**\n * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#)\n */\n namespace WixHttpFunctionRequestBody {\n }\n }\n}\n"
1106
1106
  },
1107
1107
  {
1108
1108
  "path": "@wix/wix-code-types/dist/types/beta/common/wix-functions.v1.d.ts",
@@ -32,6 +32,7 @@
32
32
  "@wix/automations-activation-action-log",
33
33
  "@wix/automations-activation-log",
34
34
  "@wix/automations-activation-summary",
35
+ "@wix/automations-email-actions",
35
36
  "@wix/b2btransfer",
36
37
  "@wix/badges",
37
38
  "@wix/benefit-programs",
@@ -83,6 +84,7 @@
83
84
  "@wix/email-transmissions",
84
85
  "@wix/embeds",
85
86
  "@wix/enterprise-cms-compliance",
87
+ "@wix/enterprise-site-management",
86
88
  "@wix/events",
87
89
  "@wix/export-async-job",
88
90
  "@wix/faq",
@@ -239,6 +241,7 @@
239
241
  "@wix/automations-activation-action-log",
240
242
  "@wix/automations-activation-log",
241
243
  "@wix/automations-activation-summary",
244
+ "@wix/automations-email-actions",
242
245
  "@wix/b2btransfer",
243
246
  "@wix/badges",
244
247
  "@wix/benefit-programs",
@@ -290,6 +293,7 @@
290
293
  "@wix/email-transmissions",
291
294
  "@wix/embeds",
292
295
  "@wix/enterprise-cms-compliance",
296
+ "@wix/enterprise-site-management",
293
297
  "@wix/events",
294
298
  "@wix/export-async-job",
295
299
  "@wix/faq",
@@ -429,6 +433,7 @@
429
433
  "@wix/automations-activation-action-log",
430
434
  "@wix/automations-activation-log",
431
435
  "@wix/automations-activation-summary",
436
+ "@wix/automations-email-actions",
432
437
  "@wix/b2btransfer",
433
438
  "@wix/badges",
434
439
  "@wix/benefit-programs",
@@ -480,6 +485,7 @@
480
485
  "@wix/email-transmissions",
481
486
  "@wix/embeds",
482
487
  "@wix/enterprise-cms-compliance",
488
+ "@wix/enterprise-site-management",
483
489
  "@wix/events",
484
490
  "@wix/export-async-job",
485
491
  "@wix/faq",
@@ -1,3 +1,208 @@
1
1
  declare module "wix-http-functions" {
2
-
2
+ /**
3
+ * Returns a response with status code 400 (Bad Request) and the information from the options parameter.
4
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#badRequest)
5
+ */
6
+ export function badRequest(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
7
+ /**
8
+ * Returns a response with status code 201 (Created) and the information from the options parameter.
9
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#created)
10
+ */
11
+ export function created(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
12
+ /**
13
+ * A function that responds to requests made with the HTTP DELETE method.
14
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#delete)
15
+ */
16
+ /* Illegal function name 'delete' can't be used here
17
+ function delete(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
18
+ */
19
+ /**
20
+ * Returns a response with status code 403 (Forbidden) and the information from the options parameter.
21
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#forbidden)
22
+ */
23
+ export function forbidden(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
24
+ /**
25
+ * A function that responds to requests made with the HTTP GET method.
26
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#get)
27
+ */
28
+ export function get(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
29
+ /**
30
+ * Returns a response with status code 404 (Not Found) and the information from the options parameter.
31
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#notFound)
32
+ */
33
+ export function notFound(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
34
+ /**
35
+ * Returns a response with status code 200 (OK) and the information from the options parameter.
36
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#ok)
37
+ */
38
+ export function ok(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
39
+ /**
40
+ * A function that responds to requests made with the HTTP OPTIONS method.
41
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#options)
42
+ */
43
+ export function options(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
44
+ /**
45
+ * A function that responds to requests made with the HTTP POST method.
46
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#post)
47
+ */
48
+ export function post(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
49
+ /**
50
+ * A function that responds to requests made with the HTTP PUT method.
51
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#put)
52
+ */
53
+ export function put(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
54
+ /**
55
+ * Returns a response populated with the information from the options parameter.
56
+ * The `response()` function creates a custom response built with the
57
+ * information passed to the `options` parameter in a `WixHttpFunctionCustomResponseOptions`
58
+ * object.
59
+ *
60
+ * Use the `response()` function to create a response to return from an HTTP
61
+ * function.
62
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#response)
63
+ */
64
+ export function response(options: WixHttpFunctionCustomResponseOptions): WixHttpFunctionResponse;
65
+ /**
66
+ * Returns a response with status code 500 (Internal Server Error) and the information from the options parameter.
67
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#serverError)
68
+ */
69
+ export function serverError(options?: WixHttpFunctionResponseOptions): WixHttpFunctionResponse;
70
+ /**
71
+ * A function that responds to requests made with any HTTP method.
72
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.html#use)
73
+ */
74
+ export function use(request: WixHttpFunctionRequest): WixHttpFunctionResponse;
75
+ /**
76
+ * An object used to customize a response to an HTTP function call, including a HTTP response code you select.
77
+ */
78
+ type WixHttpFunctionCustomResponseOptions = {
79
+ /**
80
+ * The response's HTTP status code.
81
+ */
82
+ status?: number;
83
+ /**
84
+ * The response's body.
85
+ */
86
+ body?: string | Buffer | any;
87
+ /**
88
+ * The response's header fields. The `headers` property contains an object of `key:value` pairs where the `key` is the header field name and the `value` is the header field value.
89
+ */
90
+ headers?: any;
91
+ };
92
+ /**
93
+ * An object used to set up a standard response to an HTTP function call, including a pre-set (unchangeable) HTTP response code.
94
+ */
95
+ type WixHttpFunctionResponseOptions = {
96
+ /**
97
+ * The response's body.
98
+ */
99
+ body?: string | Buffer | any;
100
+ /**
101
+ * The response's header fields. The `headers` property contains an object of `key:value` pairs where the `key` is the header field name and the `value` is the header field value.
102
+ */
103
+ headers?: any;
104
+ };
105
+ /**
106
+ * An object representing an incoming request received by a call to an HTTP function.
107
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#)
108
+ */
109
+ interface WixHttpFunctionRequest {
110
+ /**
111
+ * Returns the base URL of a call to an HTTP function.
112
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#baseUrl)
113
+ */
114
+ readonly baseUrl: string;
115
+ /**
116
+ * Returns an object representing the body of the incoming call to an HTTP function.
117
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#body)
118
+ */
119
+ readonly body: WixHttpFunctionRequest.WixHttpFunctionRequestBody;
120
+ /**
121
+ * Returns the function name of a call to an HTTP function.
122
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#functionName)
123
+ */
124
+ readonly functionName: string;
125
+ /**
126
+ * Returns the HTTP header fields used in a call to an HTTP function.
127
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#headers)
128
+ */
129
+ readonly headers: any;
130
+ /**
131
+ * Returns the IP address of the client who called the HTTP function.
132
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#ip)
133
+ */
134
+ readonly ip: string;
135
+ /**
136
+ * Returns the HTTP method used in calling an HTTP function.
137
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#method)
138
+ */
139
+ readonly method: string;
140
+ /**
141
+ * Returns the path of the URL used to call an HTTP function.
142
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#path)
143
+ */
144
+ readonly path: string[];
145
+ /**
146
+ * Returns the query fields and values of the URL used to call an HTTP function.
147
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#query)
148
+ */
149
+ readonly query: any;
150
+ /**
151
+ * Returns the full URL of a call to an HTTP function.
152
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#url)
153
+ */
154
+ readonly url: string;
155
+ }
156
+ /**
157
+ * An object representing a response to an HTTP function request.
158
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#)
159
+ */
160
+ interface WixHttpFunctionResponse {
161
+ /**
162
+ * Sets or gets the body of the response as a string, object or binary buffer.
163
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#body)
164
+ */
165
+ body: string | Buffer | any;
166
+ /**
167
+ * Sets or gets the HTTP response header fields.
168
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#headers)
169
+ */
170
+ headers: any;
171
+ /**
172
+ * Sets or gets the HTTP status code of the response.
173
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionResponse.html#status)
174
+ */
175
+ status: number;
176
+ }
177
+ /**
178
+ * An object representing an incoming request received by a call to an HTTP function.
179
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.html#)
180
+ */
181
+ export namespace WixHttpFunctionRequest {
182
+ /**
183
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#)
184
+ */
185
+ interface WixHttpFunctionRequestBody {
186
+ /**
187
+ * Returns a Promise which resolves to the body of the call in binary as a Node.js [Buffer](https://nodejs.org/docs/latest-v14.x/api/buffer.html) object.
188
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#buffer)
189
+ */
190
+ buffer(): Promise<any>;
191
+ /**
192
+ * Returns a Promise which resolves to the body of the call as a JSON object.
193
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#json)
194
+ */
195
+ json(): Promise<any>;
196
+ /**
197
+ * Returns a Promise which resolves to the body of the call as a string.
198
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#text)
199
+ */
200
+ text(): Promise<string>;
201
+ }
202
+ /**
203
+ * [Read more](https://www.wix.com/corvid/reference/wix-http-functions.WixHttpFunctionRequest.WixHttpFunctionRequestBody.html#)
204
+ */
205
+ namespace WixHttpFunctionRequestBody {
206
+ }
207
+ }
3
208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-code-types",
3
- "version": "2.0.14800",
3
+ "version": "2.0.14802",
4
4
  "description": "Types for Velo by Wix",
5
5
  "scripts": {
6
6
  "lint": "eslint './src/**' './test/**' './scripts/**'",
@@ -102,5 +102,5 @@
102
102
  }
103
103
  }
104
104
  },
105
- "falconPackageHash": "0013b112a412f35f4a3f66ee2c318114534927e1b1a17c63cb280d5a"
105
+ "falconPackageHash": "e7b64a53174f26918c385a71d13092101b5e7d82e9c29934e99dca0d"
106
106
  }