@wix/wix-code-types 2.0.14799 → 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.
@@ -294,6 +294,13 @@
294
294
  "frontend"
295
295
  ]
296
296
  },
297
+ "@wix/capital": {
298
+ "name": "@wix/capital",
299
+ "scopes": [
300
+ "backend",
301
+ "frontend"
302
+ ]
303
+ },
297
304
  "@wix/captcha": {
298
305
  "name": "@wix/captcha",
299
306
  "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",
@@ -42,6 +42,7 @@
42
42
  "@wix/business-tools",
43
43
  "@wix/cache",
44
44
  "@wix/calendar",
45
+ "@wix/capital",
45
46
  "@wix/captcha",
46
47
  "@wix/categories",
47
48
  "@wix/cmp-config",
@@ -248,6 +249,7 @@
248
249
  "@wix/business-tools",
249
250
  "@wix/cache",
250
251
  "@wix/calendar",
252
+ "@wix/capital",
251
253
  "@wix/captcha",
252
254
  "@wix/categories",
253
255
  "@wix/cmp-config",
@@ -437,6 +439,7 @@
437
439
  "@wix/business-tools",
438
440
  "@wix/cache",
439
441
  "@wix/calendar",
442
+ "@wix/capital",
440
443
  "@wix/captcha",
441
444
  "@wix/categories",
442
445
  "@wix/cmp-config",
@@ -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.14799",
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": "122bcc5a0f4342fbd780c49cb52e5c63d06f95dc3cda2fd16f5d5436"
105
+ "falconPackageHash": "0013b112a412f35f4a3f66ee2c318114534927e1b1a17c63cb280d5a"
106
106
  }