@wix/wix-code-types 2.0.14798 → 2.0.14800

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.
@@ -266,13 +266,6 @@
266
266
  "frontend"
267
267
  ]
268
268
  },
269
- "@wix/bookings-premium-validation": {
270
- "name": "@wix/bookings-premium-validation",
271
- "scopes": [
272
- "backend",
273
- "frontend"
274
- ]
275
- },
276
269
  "@wix/broadridge-cms-compliance": {
277
270
  "name": "@wix/broadridge-cms-compliance",
278
271
  "scopes": [
@@ -301,6 +294,13 @@
301
294
  "frontend"
302
295
  ]
303
296
  },
297
+ "@wix/capital": {
298
+ "name": "@wix/capital",
299
+ "scopes": [
300
+ "backend",
301
+ "frontend"
302
+ ]
303
+ },
304
304
  "@wix/captcha": {
305
305
  "name": "@wix/captcha",
306
306
  "scopes": [
@@ -686,6 +686,13 @@
686
686
  "frontend"
687
687
  ]
688
688
  },
689
+ "@wix/host-listing": {
690
+ "name": "@wix/host-listing",
691
+ "scopes": [
692
+ "backend",
693
+ "frontend"
694
+ ]
695
+ },
689
696
  "@wix/identity": {
690
697
  "name": "@wix/identity",
691
698
  "scopes": [
@@ -777,6 +784,13 @@
777
784
  "frontend"
778
785
  ]
779
786
  },
787
+ "@wix/marketplace-provider-state": {
788
+ "name": "@wix/marketplace-provider-state",
789
+ "scopes": [
790
+ "backend",
791
+ "frontend"
792
+ ]
793
+ },
780
794
  "@wix/media": {
781
795
  "name": "@wix/media",
782
796
  "scopes": [
@@ -917,6 +931,13 @@
917
931
  "frontend"
918
932
  ]
919
933
  },
934
+ "@wix/premium-assets": {
935
+ "name": "@wix/premium-assets",
936
+ "scopes": [
937
+ "backend",
938
+ "frontend"
939
+ ]
940
+ },
920
941
  "@wix/premium-product-type": {
921
942
  "name": "@wix/premium-product-type",
922
943
  "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 * 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"
1105
+ "content": "declare module \"wix-http-functions\" {\n \n}\n"
1106
1106
  },
1107
1107
  {
1108
1108
  "path": "@wix/wix-code-types/dist/types/beta/common/wix-functions.v1.d.ts",
@@ -38,11 +38,11 @@
38
38
  "@wix/billing",
39
39
  "@wix/blog",
40
40
  "@wix/bookings",
41
- "@wix/bookings-premium-validation",
42
41
  "@wix/broadridge-cms-compliance",
43
42
  "@wix/business-tools",
44
43
  "@wix/cache",
45
44
  "@wix/calendar",
45
+ "@wix/capital",
46
46
  "@wix/captcha",
47
47
  "@wix/categories",
48
48
  "@wix/cmp-config",
@@ -98,6 +98,7 @@
98
98
  "@wix/groups",
99
99
  "@wix/gsc",
100
100
  "@wix/headless-site-assets",
101
+ "@wix/host-listing",
101
102
  "@wix/identity",
102
103
  "@wix/igor",
103
104
  "@wix/inbox",
@@ -111,6 +112,7 @@
111
112
  "@wix/marketing-tags",
112
113
  "@wix/marketplace-payouts",
113
114
  "@wix/marketplace-projects",
115
+ "@wix/marketplace-provider-state",
114
116
  "@wix/media",
115
117
  "@wix/media-collections",
116
118
  "@wix/media-manager",
@@ -131,6 +133,7 @@
131
133
  "@wix/partners-program",
132
134
  "@wix/payments",
133
135
  "@wix/portfolio",
136
+ "@wix/premium-assets",
134
137
  "@wix/premium-product-type",
135
138
  "@wix/pricing-plans",
136
139
  "@wix/pro-gallery",
@@ -242,11 +245,11 @@
242
245
  "@wix/billing",
243
246
  "@wix/blog",
244
247
  "@wix/bookings",
245
- "@wix/bookings-premium-validation",
246
248
  "@wix/broadridge-cms-compliance",
247
249
  "@wix/business-tools",
248
250
  "@wix/cache",
249
251
  "@wix/calendar",
252
+ "@wix/capital",
250
253
  "@wix/captcha",
251
254
  "@wix/categories",
252
255
  "@wix/cmp-config",
@@ -302,6 +305,7 @@
302
305
  "@wix/groups",
303
306
  "@wix/gsc",
304
307
  "@wix/headless-site-assets",
308
+ "@wix/host-listing",
305
309
  "@wix/identity",
306
310
  "@wix/igor",
307
311
  "@wix/inbox",
@@ -315,6 +319,7 @@
315
319
  "@wix/marketing-tags",
316
320
  "@wix/marketplace-payouts",
317
321
  "@wix/marketplace-projects",
322
+ "@wix/marketplace-provider-state",
318
323
  "@wix/media",
319
324
  "@wix/media-collections",
320
325
  "@wix/media-manager",
@@ -335,6 +340,7 @@
335
340
  "@wix/partners-program",
336
341
  "@wix/payments",
337
342
  "@wix/portfolio",
343
+ "@wix/premium-assets",
338
344
  "@wix/premium-product-type",
339
345
  "@wix/pricing-plans",
340
346
  "@wix/pro-gallery",
@@ -429,11 +435,11 @@
429
435
  "@wix/billing",
430
436
  "@wix/blog",
431
437
  "@wix/bookings",
432
- "@wix/bookings-premium-validation",
433
438
  "@wix/broadridge-cms-compliance",
434
439
  "@wix/business-tools",
435
440
  "@wix/cache",
436
441
  "@wix/calendar",
442
+ "@wix/capital",
437
443
  "@wix/captcha",
438
444
  "@wix/categories",
439
445
  "@wix/cmp-config",
@@ -489,6 +495,7 @@
489
495
  "@wix/groups",
490
496
  "@wix/gsc",
491
497
  "@wix/headless-site-assets",
498
+ "@wix/host-listing",
492
499
  "@wix/identity",
493
500
  "@wix/igor",
494
501
  "@wix/inbox",
@@ -502,6 +509,7 @@
502
509
  "@wix/marketing-tags",
503
510
  "@wix/marketplace-payouts",
504
511
  "@wix/marketplace-projects",
512
+ "@wix/marketplace-provider-state",
505
513
  "@wix/media",
506
514
  "@wix/media-collections",
507
515
  "@wix/media-manager",
@@ -522,6 +530,7 @@
522
530
  "@wix/partners-program",
523
531
  "@wix/payments",
524
532
  "@wix/portfolio",
533
+ "@wix/premium-assets",
525
534
  "@wix/premium-product-type",
526
535
  "@wix/pricing-plans",
527
536
  "@wix/pro-gallery",
@@ -1,208 +1,3 @@
1
1
  declare module "wix-http-functions" {
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
- }
2
+
208
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/wix-code-types",
3
- "version": "2.0.14798",
3
+ "version": "2.0.14800",
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": "e305a5572de4bb6c2f7a0b43c87fab1f5934e4b3da90c24a8f7d09fb"
105
+ "falconPackageHash": "0013b112a412f35f4a3f66ee2c318114534927e1b1a17c63cb280d5a"
106
106
  }