@wix/functions 1.0.0 → 1.0.2

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.
@@ -1 +1,4 @@
1
- export * as functionShop from '@wix/functions_function-shop';
1
+ import * as functions from '@wix/functions_functions';
2
+ import * as functionTemplateHydration from '@wix/functions_function-template-hydration';
3
+ import * as functionType from '@wix/functions_function-type';
4
+ export { functions, functionTemplateHydration, functionType };
@@ -23,6 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.functionShop = void 0;
27
- exports.functionShop = __importStar(require("@wix/functions_function-shop"));
26
+ exports.functionType = exports.functionTemplateHydration = exports.functions = void 0;
27
+ const functions = __importStar(require("@wix/functions_functions"));
28
+ exports.functions = functions;
29
+ const functionTemplateHydration = __importStar(require("@wix/functions_function-template-hydration"));
30
+ exports.functionTemplateHydration = functionTemplateHydration;
31
+ const functionType = __importStar(require("@wix/functions_function-type"));
32
+ exports.functionType = functionType;
28
33
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6EAA6D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAsD;AAI7C,8BAAS;AAHlB,sGAAwF;AAGpE,8DAAyB;AAF7C,2EAA6D;AAEd,oCAAY"}
@@ -1 +1,3 @@
1
- export * as functionShop from '@wix/functions_function-shop/meta';
1
+ export * as functions from '@wix/functions_functions/meta';
2
+ export * as functionTemplateHydration from '@wix/functions_function-template-hydration/meta';
3
+ export * as functionType from '@wix/functions_function-type/meta';
package/build/cjs/meta.js CHANGED
@@ -23,6 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.functionShop = void 0;
27
- exports.functionShop = __importStar(require("@wix/functions_function-shop/meta"));
26
+ exports.functionType = exports.functionTemplateHydration = exports.functions = void 0;
27
+ exports.functions = __importStar(require("@wix/functions_functions/meta"));
28
+ exports.functionTemplateHydration = __importStar(require("@wix/functions_function-template-hydration/meta"));
29
+ exports.functionType = __importStar(require("@wix/functions_function-type/meta"));
28
30
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kFAAkE"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2EAA2D;AAC3D,6GAA6F;AAC7F,kFAAkE"}
@@ -1 +1,4 @@
1
- export * as functionShop from '@wix/functions_function-shop';
1
+ import * as functions from '@wix/functions_functions';
2
+ import * as functionTemplateHydration from '@wix/functions_function-template-hydration';
3
+ import * as functionType from '@wix/functions_function-type';
4
+ export { functions, functionTemplateHydration, functionType };
package/build/es/index.js CHANGED
@@ -1,2 +1,5 @@
1
- export * as functionShop from '@wix/functions_function-shop';
1
+ import * as functions from '@wix/functions_functions';
2
+ import * as functionTemplateHydration from '@wix/functions_function-template-hydration';
3
+ import * as functionType from '@wix/functions_function-type';
4
+ export { functions, functionTemplateHydration, functionType };
2
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,0BAA0B,CAAC;AACtD,OAAO,KAAK,yBAAyB,MAAM,4CAA4C,CAAC;AACxF,OAAO,KAAK,YAAY,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,SAAS,EAAE,yBAAyB,EAAE,YAAY,EAAE,CAAC"}
@@ -1 +1,3 @@
1
- export * as functionShop from '@wix/functions_function-shop/meta';
1
+ export * as functions from '@wix/functions_functions/meta';
2
+ export * as functionTemplateHydration from '@wix/functions_function-template-hydration/meta';
3
+ export * as functionType from '@wix/functions_function-type/meta';
package/build/es/meta.js CHANGED
@@ -1,2 +1,4 @@
1
- export * as functionShop from '@wix/functions_function-shop/meta';
1
+ export * as functions from '@wix/functions_functions/meta';
2
+ export * as functionTemplateHydration from '@wix/functions_function-template-hydration/meta';
3
+ export * as functionType from '@wix/functions_function-type/meta';
2
4
  //# sourceMappingURL=meta.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,yBAAyB,MAAM,iDAAiD,CAAC;AAC7F,OAAO,KAAK,YAAY,MAAM,mCAAmC,CAAC"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/meta/package.json CHANGED
@@ -1,7 +1,3 @@
1
1
  {
2
- "sideEffects": false,
3
- "module": "../build/es/meta.js",
4
- "main": "../build/cjs/meta.js",
5
- "typings": "../build/cjs/meta.d.ts",
6
- "typesBundle": "../type-bundles/meta.bundle.d.ts"
2
+ "main": "../build/cjs/meta.js"
7
3
  }
package/package.json CHANGED
@@ -1,35 +1,43 @@
1
1
  {
2
2
  "name": "@wix/functions",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
7
7
  },
8
+ "keywords": [
9
+ "wix-sdk-module=backend,page,public"
10
+ ],
8
11
  "sideEffects": false,
9
- "module": "build/es/index.js",
10
- "main": "build/cjs/index.js",
11
- "typings": "./build/cjs/index.d.ts",
12
- "typesBundle": "./type-bundles/index.bundle.d.ts",
12
+ "main": "./build/cjs/index.js",
13
+ "types": "./build/es/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "import": "./build/es/index.js",
17
+ "require": "./build/cjs/index.js",
18
+ "types": "./build/es/index.d.ts"
19
+ },
20
+ "./meta": {
21
+ "import": "./build/es/meta.js",
22
+ "require": "./build/cjs/meta.js",
23
+ "types": "./build/es/meta.d.ts"
24
+ }
25
+ },
13
26
  "files": [
14
27
  "build",
15
- "frontend/package.json",
16
28
  "meta",
17
- "context",
18
- "type-bundles"
29
+ "service-plugins"
19
30
  ],
20
31
  "dependencies": {
21
- "@wix/functions_function-shop": "1.0.0"
32
+ "@wix/functions_function-template-hydration": "1.0.0",
33
+ "@wix/functions_function-type": "1.0.0",
34
+ "@wix/functions_functions": "1.0.0"
22
35
  },
23
36
  "devDependencies": {
24
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
25
- "glob": "^10.4.1",
26
- "rollup": "^4.18.0",
27
- "rollup-plugin-dts": "^6.1.1",
28
37
  "typescript": "^5.3.2"
29
38
  },
30
39
  "scripts": {
31
- "build": "tsc -b tsconfig.json tsconfig.esm.json && npm run build:dts-bundles",
32
- "build:dts-bundles": "test -f config/rollup-config.js && rollup --config config/rollup-config.js || echo 'Warning: config/rollup-config.js not found!'",
40
+ "build": "tsc -b tsconfig.json tsconfig.esm.json",
33
41
  "test": ":"
34
42
  },
35
43
  "wix": {
@@ -43,5 +51,5 @@
43
51
  "fqdn": ""
44
52
  }
45
53
  },
46
- "falconPackageHash": "1d4c8340ac63b87c9cf32380bbdc713eecd72743e78625471b369c5a"
54
+ "falconPackageHash": "8bae5d980654803b248a98a5c992f477d9662226cf69785e62625f38"
47
55
  }
@@ -1 +0,0 @@
1
- export * as functionShop from '@wix/functions_function-shop/context';
@@ -1,28 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.functionShop = void 0;
27
- exports.functionShop = __importStar(require("@wix/functions_function-shop/context"));
28
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qFAAqE"}
@@ -1 +0,0 @@
1
- export * as functionShop from '@wix/functions_function-shop/context';
@@ -1,2 +0,0 @@
1
- export * as functionShop from '@wix/functions_function-shop/context';
2
- //# sourceMappingURL=context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC"}
@@ -1,7 +0,0 @@
1
- {
2
- "sideEffects": false,
3
- "module": "../build/es/context.js",
4
- "main": "../build/cjs/context.js",
5
- "typings": "../build/cjs/context.d.ts",
6
- "typesBundle": "../type-bundles/context.bundle.d.ts"
7
- }
@@ -1,47 +0,0 @@
1
- interface FunctionShop {
2
- /**
3
- * Id of the shop
4
- * @readonly
5
- */
6
- _id?: string | null;
7
- /** Name of the shop */
8
- name?: string | null;
9
- /** Price of the shop */
10
- price?: number | null;
11
- }
12
-
13
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
14
- interface HttpClient {
15
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
16
- }
17
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
18
- type HttpResponse<T = any> = {
19
- data: T;
20
- status: number;
21
- statusText: string;
22
- headers: any;
23
- request?: any;
24
- };
25
- type RequestOptions<_TResponse = any, Data = any> = {
26
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
27
- url: string;
28
- data?: Data;
29
- params?: URLSearchParams;
30
- } & APIMetadata;
31
- type APIMetadata = {
32
- methodFqn?: string;
33
- entityFqdn?: string;
34
- packageName?: string;
35
- };
36
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
37
-
38
- declare function getFunctionShop$1(httpClient: HttpClient): (_id: string) => Promise<FunctionShop>;
39
-
40
- declare const getFunctionShop: BuildRESTFunction<typeof getFunctionShop$1>;
41
-
42
- declare const context_getFunctionShop: typeof getFunctionShop;
43
- declare namespace context {
44
- export { context_getFunctionShop as getFunctionShop };
45
- }
46
-
47
- export { context as functionShop };
@@ -1,58 +0,0 @@
1
- interface FunctionShop {
2
- /**
3
- * Id of the shop
4
- * @readonly
5
- */
6
- _id?: string | null;
7
- /** Name of the shop */
8
- name?: string | null;
9
- /** Price of the shop */
10
- price?: number | null;
11
- }
12
- interface GetFunctionShopRequest {
13
- /** Description of value */
14
- _id: string;
15
- }
16
- interface GetFunctionShopResponse {
17
- /** Description of value */
18
- functionShop?: FunctionShop;
19
- }
20
-
21
- interface HttpClient {
22
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
23
- }
24
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
25
- type HttpResponse<T = any> = {
26
- data: T;
27
- status: number;
28
- statusText: string;
29
- headers: any;
30
- request?: any;
31
- };
32
- type RequestOptions<_TResponse = any, Data = any> = {
33
- method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
34
- url: string;
35
- data?: Data;
36
- params?: URLSearchParams;
37
- } & APIMetadata;
38
- type APIMetadata = {
39
- methodFqn?: string;
40
- entityFqdn?: string;
41
- packageName?: string;
42
- };
43
-
44
- declare const __metadata: {
45
- PACKAGE_NAME: string;
46
- };
47
- declare function getFunctionShop(httpClient: HttpClient): (_id: string) => Promise<FunctionShop>;
48
-
49
- type index_d_FunctionShop = FunctionShop;
50
- type index_d_GetFunctionShopRequest = GetFunctionShopRequest;
51
- type index_d_GetFunctionShopResponse = GetFunctionShopResponse;
52
- declare const index_d___metadata: typeof __metadata;
53
- declare const index_d_getFunctionShop: typeof getFunctionShop;
54
- declare namespace index_d {
55
- export { type index_d_FunctionShop as FunctionShop, type index_d_GetFunctionShopRequest as GetFunctionShopRequest, type index_d_GetFunctionShopResponse as GetFunctionShopResponse, index_d___metadata as __metadata, index_d_getFunctionShop as getFunctionShop };
56
- }
57
-
58
- export { index_d as functionShop };
@@ -1,61 +0,0 @@
1
- interface FunctionShop$1 {
2
- /**
3
- * Id of the shop
4
- * @readonly
5
- */
6
- id?: string | null;
7
- /** Name of the shop */
8
- name?: string | null;
9
- /** Price of the shop */
10
- price?: number | null;
11
- }
12
- interface GetFunctionShopRequest$1 {
13
- /** Description of value */
14
- id: string;
15
- }
16
- interface GetFunctionShopResponse$1 {
17
- /** Description of value */
18
- functionShop?: FunctionShop$1;
19
- }
20
-
21
- interface FunctionShop {
22
- /**
23
- * Id of the shop
24
- * @readonly
25
- */
26
- _id?: string | null;
27
- /** Name of the shop */
28
- name?: string | null;
29
- /** Price of the shop */
30
- price?: number | null;
31
- }
32
- interface GetFunctionShopRequest {
33
- /** Description of value */
34
- _id: string;
35
- }
36
- interface GetFunctionShopResponse {
37
- /** Description of value */
38
- functionShop?: FunctionShop;
39
- }
40
-
41
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
42
- getUrl: (context: any) => string;
43
- httpMethod: K;
44
- path: string;
45
- pathParams: M;
46
- __requestType: T;
47
- __originalRequestType: S;
48
- __responseType: Q;
49
- __originalResponseType: R;
50
- };
51
- declare function getFunctionShop(): __PublicMethodMetaInfo<'GET', {
52
- id: string;
53
- }, GetFunctionShopRequest, GetFunctionShopRequest$1, GetFunctionShopResponse, GetFunctionShopResponse$1>;
54
-
55
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
56
- declare const meta_getFunctionShop: typeof getFunctionShop;
57
- declare namespace meta {
58
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_getFunctionShop as getFunctionShop };
59
- }
60
-
61
- export { meta as functionShop };