@wix/bex-utils 2.34.0 → 2.36.0
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/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/builders.impl.d.ts +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/builders.impl.js +561 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/builders.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.js +120 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/http.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.js +81 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/meta.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/client/proto-generated.d.ts +7332 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/client/proto-generated.js +2 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/proto-generated.d.ts +3666 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/proto-generated.js +59840 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/server/proto-generated.d.ts +7328 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/proto/server/proto-generated.js +2 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.js +73 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/rpc.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.d.ts +363 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.js +56 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/cjs/types.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.d.ts +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.js +507 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/builders.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.js +114 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/http.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.d.ts +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.js +56 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/meta.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.d.ts +23 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.js +48 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/rpc.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.d.ts +363 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.js +53 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/build/es/types.impl.js.map +1 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/builders/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/http/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/meta/package.json +7 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/package.json +52 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/rpc/package.json +6 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/ecom_catalog_data.proto +20 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data/inbox_data.proto +17 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/additional_data.proto +16 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/image.proto +11 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_config.proto +246 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/src/main/proto/com/wixpress/items_selection/spi/v1/items_selection_spi.proto +145 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/action_payload.proto +33 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/annotations.proto +393 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/api_errors.proto +117 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/callback.proto +156 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/context.proto +19 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/entity.proto +122 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/errors.proto +119 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/idempotency.proto +25 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/permissions.proto +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/sla.proto +24 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/subscription.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/api/validations.proto +137 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/address.proto +148 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/bulk.proto +53 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/identification.proto +40 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/image.proto +8 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/media.proto +236 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/money.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/pageurl.proto +32 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/paging.proto +121 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/query.proto +795 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/sorting.proto +36 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/spi.proto +85 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/tags.proto +55 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/common/wixlink.proto +201 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/graphql/definitions.proto +13 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/http/field_mask.proto +46 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/items_selection/spi_host/v1/items_selection_service.proto +136 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/sdk/definitions.proto +191 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/spi/definitions.proto +186 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/src/main/proto/wix/spi/http_error_status.proto +24 -0
- package/@wix/ambassador-items-selection-spi-host-v1-provider/types/package.json +7 -0
- package/@wix/bex-bundled-mini-essentials/CHANGELOG.md +4 -0
- package/@wix/bex-bundled-mini-essentials/dist/tsconfig.tsbuildinfo +1 -1
- package/@wix/bex-bundled-mini-essentials/package.json +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/index.js +4 -1
- package/@wix/bi-logger-os-data/dist/cjs/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/client-testkit.js +4 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/client-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/common.js +101 -5
- package/@wix/bi-logger-os-data/dist/cjs/testkit/common.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/node-testkit.js +4 -1
- package/@wix/bi-logger-os-data/dist/cjs/testkit/node-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/cjs/v2/index.js +53 -23
- package/@wix/bi-logger-os-data/dist/cjs/v2/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/index.js +4 -1
- package/@wix/bi-logger-os-data/dist/esm/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/client-testkit.js +4 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/client-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/common.js +101 -5
- package/@wix/bi-logger-os-data/dist/esm/testkit/common.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/node-testkit.js +4 -1
- package/@wix/bi-logger-os-data/dist/esm/testkit/node-testkit.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/esm/v2/index.js +35 -6
- package/@wix/bi-logger-os-data/dist/esm/v2/index.js.map +1 -1
- package/@wix/bi-logger-os-data/dist/types/index.d.ts +4 -3
- package/@wix/bi-logger-os-data/dist/types/testkit/client-testkit.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/testkit/node-testkit.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/types.d.ts +22 -2
- package/@wix/bi-logger-os-data/dist/types/v2/index.d.ts +34 -7
- package/@wix/bi-logger-os-data/package.json +2 -2
- package/@wix/bi-logger-os-data/src/index.ts +7 -3
- package/@wix/bi-logger-os-data/src/testkit/client-testkit.ts +25 -2
- package/@wix/bi-logger-os-data/src/testkit/common.ts +119 -6
- package/@wix/bi-logger-os-data/src/testkit/node-testkit.ts +25 -2
- package/@wix/bi-logger-os-data/src/types.ts +42 -4
- package/@wix/bi-logger-os-data/src/v2/index.ts +37 -7
- package/package.json +5 -4
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as httpWixItemsSelectionSpiHostV1Provider from './http.impl';
|
|
2
|
+
export function listInstalledProviders() {
|
|
3
|
+
var payload = {};
|
|
4
|
+
var getRequestOptions = httpWixItemsSelectionSpiHostV1Provider.listInstalledProviders(payload);
|
|
5
|
+
var getUrl = function (context) {
|
|
6
|
+
var url = getRequestOptions(context).url;
|
|
7
|
+
return url;
|
|
8
|
+
};
|
|
9
|
+
return {
|
|
10
|
+
getUrl: getUrl,
|
|
11
|
+
httpMethod: 'GET',
|
|
12
|
+
path: '/v1/items-selection/installed-providers',
|
|
13
|
+
pathParams: {},
|
|
14
|
+
__requestType: null,
|
|
15
|
+
__originalRequestType: null,
|
|
16
|
+
__responseType: null,
|
|
17
|
+
__originalResponseType: null,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function listProviders() {
|
|
21
|
+
var payload = {};
|
|
22
|
+
var getRequestOptions = httpWixItemsSelectionSpiHostV1Provider.listProviders(payload);
|
|
23
|
+
var getUrl = function (context) {
|
|
24
|
+
var url = getRequestOptions(context).url;
|
|
25
|
+
return url;
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
getUrl: getUrl,
|
|
29
|
+
httpMethod: 'POST',
|
|
30
|
+
path: '/v1/items-selection/providers',
|
|
31
|
+
pathParams: {},
|
|
32
|
+
__requestType: null,
|
|
33
|
+
__originalRequestType: null,
|
|
34
|
+
__responseType: null,
|
|
35
|
+
__originalResponseType: null,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function queryItems() {
|
|
39
|
+
var payload = { providerKey: ':providerKey' };
|
|
40
|
+
var getRequestOptions = httpWixItemsSelectionSpiHostV1Provider.queryItems(payload);
|
|
41
|
+
var getUrl = function (context) {
|
|
42
|
+
var url = getRequestOptions(context).url;
|
|
43
|
+
return url;
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
getUrl: getUrl,
|
|
47
|
+
httpMethod: 'POST',
|
|
48
|
+
path: '/v1/items-selection/{providerKey}/items',
|
|
49
|
+
pathParams: { providerKey: 'providerKey' },
|
|
50
|
+
__requestType: null,
|
|
51
|
+
__originalRequestType: null,
|
|
52
|
+
__responseType: null,
|
|
53
|
+
__originalResponseType: null,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=meta.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.impl.js","sourceRoot":"","sources":["../../meta.impl.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,sCAAsC,MAAM,aAAa,CAAC;AAoBtE,MAAM,UAAU,sBAAsB;IAQpC,IAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,IAAM,iBAAiB,GACrB,sCAAsC,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAEzE,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM,QAAA;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,aAAa;IAQ3B,IAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,IAAM,iBAAiB,GACrB,sCAAsC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAEhE,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM,QAAA;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,+BAA+B;QACrC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,UAAU;IAQxB,IAAM,OAAO,GAAG,EAAE,WAAW,EAAE,cAAc,EAAS,CAAC;IAEvD,IAAM,iBAAiB,GACrB,sCAAsC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAE7D,IAAM,MAAM,GAAG,UAAC,OAAY;QAClB,IAAA,GAAG,GAAK,iBAAiB,CAAC,OAAO,CAAC,IAA/B,CAAgC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM,QAAA;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE;QAC1C,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ListProvidersRequest, ListProvidersResponse, ListInstalledProvidersRequest, ListInstalledProvidersResponse, QueryItemsRequest, QueryItemsResponse } from './types.impl';
|
|
2
|
+
import * as wrapper from './proto/proto-generated';
|
|
3
|
+
declare const ItemsSelectionService: typeof wrapper.wix.items_selection.spi_host.v1.ItemsSelectionService;
|
|
4
|
+
export declare type RequestOptions<T = any, U = any> = {
|
|
5
|
+
_?: T;
|
|
6
|
+
requestData: any;
|
|
7
|
+
serviceArtifactId: string;
|
|
8
|
+
serviceProtoClass: U;
|
|
9
|
+
methodName: string;
|
|
10
|
+
};
|
|
11
|
+
/** Returns list of installed app providers for a specific site */
|
|
12
|
+
export declare function listInstalledProviders(payload: ListInstalledProvidersRequest): RequestOptions<ListInstalledProvidersResponse, typeof ItemsSelectionService>;
|
|
13
|
+
/** Returns list of all existing providers */
|
|
14
|
+
export declare function listProviders(payload: ListProvidersRequest): RequestOptions<ListProvidersResponse, typeof ItemsSelectionService>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves a list of items that match the specified criteria.
|
|
17
|
+
*
|
|
18
|
+
* Returns:
|
|
19
|
+
* - A list of items that match the search criteria.
|
|
20
|
+
* - Metadata about the search results, such as the total number of items and pagination information.
|
|
21
|
+
*/
|
|
22
|
+
export declare function queryItems(payload: QueryItemsRequest): RequestOptions<QueryItemsResponse, typeof ItemsSelectionService>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as wrapper from './proto/proto-generated';
|
|
2
|
+
var ItemsSelectionService = wrapper.wix.items_selection.spi_host.v1.ItemsSelectionService;
|
|
3
|
+
/** Returns list of installed app providers for a specific site */
|
|
4
|
+
export function listInstalledProviders(payload) {
|
|
5
|
+
var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
|
|
6
|
+
var serviceProtoClass = ItemsSelectionService;
|
|
7
|
+
var methodName = 'listInstalledProviders';
|
|
8
|
+
var requestData = payload;
|
|
9
|
+
return {
|
|
10
|
+
serviceProtoClass: serviceProtoClass,
|
|
11
|
+
serviceArtifactId: serviceArtifactId,
|
|
12
|
+
methodName: methodName,
|
|
13
|
+
requestData: requestData,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/** Returns list of all existing providers */
|
|
17
|
+
export function listProviders(payload) {
|
|
18
|
+
var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
|
|
19
|
+
var serviceProtoClass = ItemsSelectionService;
|
|
20
|
+
var methodName = 'listProviders';
|
|
21
|
+
var requestData = payload;
|
|
22
|
+
return {
|
|
23
|
+
serviceProtoClass: serviceProtoClass,
|
|
24
|
+
serviceArtifactId: serviceArtifactId,
|
|
25
|
+
methodName: methodName,
|
|
26
|
+
requestData: requestData,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of items that match the specified criteria.
|
|
31
|
+
*
|
|
32
|
+
* Returns:
|
|
33
|
+
* - A list of items that match the search criteria.
|
|
34
|
+
* - Metadata about the search results, such as the total number of items and pagination information.
|
|
35
|
+
*/
|
|
36
|
+
export function queryItems(payload) {
|
|
37
|
+
var serviceArtifactId = 'com.wixpress.wixos.items-selection-service';
|
|
38
|
+
var serviceProtoClass = ItemsSelectionService;
|
|
39
|
+
var methodName = 'queryItems';
|
|
40
|
+
var requestData = payload;
|
|
41
|
+
return {
|
|
42
|
+
serviceProtoClass: serviceProtoClass,
|
|
43
|
+
serviceArtifactId: serviceArtifactId,
|
|
44
|
+
methodName: methodName,
|
|
45
|
+
requestData: requestData,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=rpc.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.impl.js","sourceRoot":"","sources":["../../rpc.impl.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,OAAO,MAAM,yBAAyB,CAAC;AAEnD,IAAM,qBAAqB,GACzB,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC,qBAAqB,CAAC;AAUhE,kEAAkE;AAClE,MAAM,UAAU,sBAAsB,CACpC,OAAsC;IAKtC,IAAM,iBAAiB,GACrB,4CAA4C,CAAC;IAC/C,IAAM,iBAAiB,GAAiC,qBAAqB,CAAC;IAC9E,IAAM,UAAU,GAAW,wBAAwB,CAAC;IACpD,IAAM,WAAW,GAAkC,OAAO,CAAC;IAC3D,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED,6CAA6C;AAC7C,MAAM,UAAU,aAAa,CAC3B,OAA6B;IAE7B,IAAM,iBAAiB,GACrB,4CAA4C,CAAC;IAC/C,IAAM,iBAAiB,GAAiC,qBAAqB,CAAC;IAC9E,IAAM,UAAU,GAAW,eAAe,CAAC;IAC3C,IAAM,WAAW,GAAyB,OAAO,CAAC;IAClD,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CACxB,OAA0B;IAE1B,IAAM,iBAAiB,GACrB,4CAA4C,CAAC;IAC/C,IAAM,iBAAiB,GAAiC,qBAAqB,CAAC;IAC9E,IAAM,UAAU,GAAW,YAAY,CAAC;IACxC,IAAM,WAAW,GAAsB,OAAO,CAAC;IAC/C,OAAO;QACL,iBAAiB,mBAAA;QACjB,iBAAiB,mBAAA;QACjB,UAAU,YAAA;QACV,WAAW,aAAA;KACZ,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
export interface ItemsSelectionProvider {
|
|
2
|
+
/** Provider unique identifier. */
|
|
3
|
+
key?: string;
|
|
4
|
+
/** The app ID of the provider. */
|
|
5
|
+
appId?: string;
|
|
6
|
+
/** Supported search params. */
|
|
7
|
+
searchParams?: SearchParams;
|
|
8
|
+
/** Visual content data like provider name and icon. */
|
|
9
|
+
contentData?: ContentData;
|
|
10
|
+
/** Optional additional step taken after the initial item selection. */
|
|
11
|
+
additionalStepInfo?: AdditionalStepInfo;
|
|
12
|
+
/** Optional supported tags, used to change the content of the request based on specified tag. */
|
|
13
|
+
supportedTags?: Tag[];
|
|
14
|
+
/** Optional add new button info to create during initial item selection. */
|
|
15
|
+
createNewItemInfo?: CreateNewItemInfo;
|
|
16
|
+
/** Optional configuration settings for how the thumbnail is displayed. */
|
|
17
|
+
itemThumbnail?: ItemThumbnail;
|
|
18
|
+
}
|
|
19
|
+
export interface SearchParams {
|
|
20
|
+
/** Supported search parameters. */
|
|
21
|
+
fields?: SearchField[];
|
|
22
|
+
/** Filter for viewing only part of the items. */
|
|
23
|
+
filter?: FilterInfo;
|
|
24
|
+
}
|
|
25
|
+
export interface SearchField {
|
|
26
|
+
/** Supported searchable fields. */
|
|
27
|
+
key?: string;
|
|
28
|
+
/** Item description. */
|
|
29
|
+
description?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface FilterInfo extends FilterInfoOptionsOneOf {
|
|
32
|
+
/** Static hardcoded options */
|
|
33
|
+
staticOptions?: StaticFilterOptions;
|
|
34
|
+
/** Key of the filter */
|
|
35
|
+
key?: string;
|
|
36
|
+
/** Optional filter will be shown only for consumers with this tag. Only one filter is allowed per tag. */
|
|
37
|
+
tag?: Tag;
|
|
38
|
+
/** The filter selection type. For now only single selection is available */
|
|
39
|
+
selectionType?: FilterSelectionType;
|
|
40
|
+
/** Filter options type. For now only static options are supported */
|
|
41
|
+
optionsType?: FilterOptionsType;
|
|
42
|
+
}
|
|
43
|
+
/** @oneof */
|
|
44
|
+
export interface FilterInfoOptionsOneOf {
|
|
45
|
+
/** Static hardcoded options */
|
|
46
|
+
staticOptions?: StaticFilterOptions;
|
|
47
|
+
}
|
|
48
|
+
export declare enum Tag {
|
|
49
|
+
UNKNOWN_TAG = "UNKNOWN_TAG",
|
|
50
|
+
EMBEDDABLE = "EMBEDDABLE",
|
|
51
|
+
ECOM_EDIT_ORDER = "ECOM_EDIT_ORDER",
|
|
52
|
+
ECOM_CREATE_ORDER = "ECOM_CREATE_ORDER",
|
|
53
|
+
INBOX = "INBOX",
|
|
54
|
+
ECOM_CREATE_PAY_LINK = "ECOM_CREATE_PAY_LINK",
|
|
55
|
+
ECOM_DELIVERY_PROFILES = "ECOM_DELIVERY_PROFILES",
|
|
56
|
+
ADD_TO_CATEGORY = "ADD_TO_CATEGORY"
|
|
57
|
+
}
|
|
58
|
+
export declare enum FilterSelectionType {
|
|
59
|
+
UNKNOWN_SELECTION = "UNKNOWN_SELECTION",
|
|
60
|
+
/** Allow to select only a single item */
|
|
61
|
+
SINGLE_SELECTION = "SINGLE_SELECTION"
|
|
62
|
+
}
|
|
63
|
+
export declare enum FilterOptionsType {
|
|
64
|
+
UNKNOWN_FILTER_OPTIONS = "UNKNOWN_FILTER_OPTIONS",
|
|
65
|
+
/** Static hardcoded options */
|
|
66
|
+
STATIC = "STATIC"
|
|
67
|
+
}
|
|
68
|
+
export interface StaticFilterOptions {
|
|
69
|
+
/** List of hardcoded options for a filter */
|
|
70
|
+
data?: StaticFilterOption[];
|
|
71
|
+
}
|
|
72
|
+
export interface StaticFilterOption {
|
|
73
|
+
/** Title of a filter option */
|
|
74
|
+
label?: string;
|
|
75
|
+
/** Value of a filter option */
|
|
76
|
+
value?: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ContentData {
|
|
79
|
+
/** Provider icon. Choose an icon name from the [Wix Design System](https://www.wixdesignsystem.com/). */
|
|
80
|
+
iconKey?: string | null;
|
|
81
|
+
/** Provider name. */
|
|
82
|
+
providerName?: string;
|
|
83
|
+
/** Item title. */
|
|
84
|
+
title?: string;
|
|
85
|
+
/** Button label. */
|
|
86
|
+
button?: string;
|
|
87
|
+
/** Item description. */
|
|
88
|
+
subtitle?: string | null;
|
|
89
|
+
/** Learn more link. */
|
|
90
|
+
learnMore?: LearnMore;
|
|
91
|
+
}
|
|
92
|
+
export interface LearnMore {
|
|
93
|
+
/** The url of the learn more link. If you want a dynamic url according to the user locale, you can add {{locale}} variable within the string. */
|
|
94
|
+
url?: string;
|
|
95
|
+
/** Optional link label. */
|
|
96
|
+
label?: string | null;
|
|
97
|
+
}
|
|
98
|
+
export interface AdditionalStepInfo {
|
|
99
|
+
/** ID of the widget associated with the step. */
|
|
100
|
+
widgetId?: string;
|
|
101
|
+
/**
|
|
102
|
+
* one app (mobile) component id that will be opened to show additional step
|
|
103
|
+
* @internal
|
|
104
|
+
*/
|
|
105
|
+
mobileComponentId?: string | null;
|
|
106
|
+
/** Title of the additional step. */
|
|
107
|
+
title?: string;
|
|
108
|
+
/** Subtitle of the additional step. */
|
|
109
|
+
subtitle?: string | null;
|
|
110
|
+
/** Hide item note if exists when showing selected item on additional step header, default: false. */
|
|
111
|
+
hideItemNote?: boolean | null;
|
|
112
|
+
}
|
|
113
|
+
export interface CreateNewItemInfo {
|
|
114
|
+
/** ID of the widget associated with the new item modal. */
|
|
115
|
+
widgetId?: string;
|
|
116
|
+
/**
|
|
117
|
+
* one app (mobile) component id that will be opened to create a new item
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
mobileComponentId?: string | null;
|
|
121
|
+
/** Button label for creating a new item */
|
|
122
|
+
buttonText?: string | null;
|
|
123
|
+
}
|
|
124
|
+
export interface ItemThumbnail extends ItemThumbnailOptionsOneOf {
|
|
125
|
+
/** Configuration specific to images. */
|
|
126
|
+
imageConfig?: ImageConfig;
|
|
127
|
+
/** Configuration specific to avatars. */
|
|
128
|
+
avatarConfig?: AvatarConfig;
|
|
129
|
+
/** Thumbnail type */
|
|
130
|
+
type?: ThumbnailType;
|
|
131
|
+
/** Whether the thumbnail is hidden from the UI. */
|
|
132
|
+
hidden?: boolean | null;
|
|
133
|
+
}
|
|
134
|
+
/** @oneof */
|
|
135
|
+
export interface ItemThumbnailOptionsOneOf {
|
|
136
|
+
/** Configuration specific to images. */
|
|
137
|
+
imageConfig?: ImageConfig;
|
|
138
|
+
/** Configuration specific to avatars. */
|
|
139
|
+
avatarConfig?: AvatarConfig;
|
|
140
|
+
}
|
|
141
|
+
export declare enum ThumbnailType {
|
|
142
|
+
UNKNOWN_THUMBNAIL_TYPE = "UNKNOWN_THUMBNAIL_TYPE",
|
|
143
|
+
IMAGE = "IMAGE",
|
|
144
|
+
AVATAR = "AVATAR"
|
|
145
|
+
}
|
|
146
|
+
export interface ImageConfig {
|
|
147
|
+
shape?: ImageShape;
|
|
148
|
+
}
|
|
149
|
+
export declare enum ImageShape {
|
|
150
|
+
UNKNOWN_SHAPE = "UNKNOWN_SHAPE",
|
|
151
|
+
/** Circle */
|
|
152
|
+
CIRCLE = "CIRCLE",
|
|
153
|
+
/** Square */
|
|
154
|
+
SQUARE = "SQUARE",
|
|
155
|
+
/** Rectangle */
|
|
156
|
+
RECTANGLE = "RECTANGLE"
|
|
157
|
+
}
|
|
158
|
+
export interface AvatarConfig {
|
|
159
|
+
shape?: AvatarShape;
|
|
160
|
+
}
|
|
161
|
+
export declare enum AvatarShape {
|
|
162
|
+
UNKNOWN_SHAPE = "UNKNOWN_SHAPE",
|
|
163
|
+
/** Circle */
|
|
164
|
+
CIRCLE = "CIRCLE",
|
|
165
|
+
/** Square */
|
|
166
|
+
SQUARE = "SQUARE"
|
|
167
|
+
}
|
|
168
|
+
export interface ListInstalledProvidersRequest {
|
|
169
|
+
/** An optional tag to filter providers that have been tagged with the specified tag. */
|
|
170
|
+
tag?: Tag;
|
|
171
|
+
}
|
|
172
|
+
export interface ListInstalledProvidersResponse {
|
|
173
|
+
/** List of installed providers. */
|
|
174
|
+
providers?: ItemsSelectionProvider[];
|
|
175
|
+
}
|
|
176
|
+
export interface ListProvidersRequest {
|
|
177
|
+
/** An optional tag to filter providers that have been tagged with the specified tag. */
|
|
178
|
+
tag?: Tag;
|
|
179
|
+
}
|
|
180
|
+
export interface ListProvidersResponse {
|
|
181
|
+
/** List of registered providers. */
|
|
182
|
+
providers?: ItemsSelectionProvider[];
|
|
183
|
+
}
|
|
184
|
+
export interface QueryItemsRequest {
|
|
185
|
+
/** The provider key used to identify the provider being queried. */
|
|
186
|
+
providerKey: string;
|
|
187
|
+
/** An optional query object containing search parameters and filtering criteria. */
|
|
188
|
+
query?: Query;
|
|
189
|
+
/** An optional tag to change the content of the request. */
|
|
190
|
+
tag?: Tag;
|
|
191
|
+
}
|
|
192
|
+
export interface Query extends QueryPagingMethodOneOf {
|
|
193
|
+
/** Paging options to limit and skip the number of items. */
|
|
194
|
+
paging?: Paging;
|
|
195
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests include a cursor token and do not define `filter`. */
|
|
196
|
+
cursorPaging?: CursorPaging;
|
|
197
|
+
/**
|
|
198
|
+
* Filter object.
|
|
199
|
+
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more information.
|
|
200
|
+
*/
|
|
201
|
+
filter?: Record<string, any> | null;
|
|
202
|
+
/**
|
|
203
|
+
* An optional repeated field that allows to specify sorting criteria for the search results.
|
|
204
|
+
* @internal
|
|
205
|
+
* @deprecated
|
|
206
|
+
*/
|
|
207
|
+
sort?: Sorting[];
|
|
208
|
+
/**
|
|
209
|
+
* Plain text search for an exact match.
|
|
210
|
+
*
|
|
211
|
+
* Supported properties are defined in the `searchParams.fields` property of the Item Selection Provider configuration in the Wix Developers Center.
|
|
212
|
+
*
|
|
213
|
+
* Max: 100 characters
|
|
214
|
+
*/
|
|
215
|
+
search?: string | null;
|
|
216
|
+
}
|
|
217
|
+
/** @oneof */
|
|
218
|
+
export interface QueryPagingMethodOneOf {
|
|
219
|
+
/** Paging options to limit and skip the number of items. */
|
|
220
|
+
paging?: Paging;
|
|
221
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests include a cursor token and do not define `filter`. */
|
|
222
|
+
cursorPaging?: CursorPaging;
|
|
223
|
+
}
|
|
224
|
+
export interface Sorting {
|
|
225
|
+
/** Name of the field to sort by. */
|
|
226
|
+
fieldName?: string;
|
|
227
|
+
/** Sort order. */
|
|
228
|
+
order?: SortOrder;
|
|
229
|
+
/**
|
|
230
|
+
* When `field_name` is a property of repeated field that is marked as `MATCH_ITEMS` and sort should be done by
|
|
231
|
+
* a specific element from a collection, filter can/should be provided to ensure correct sort value is picked.
|
|
232
|
+
*
|
|
233
|
+
* If multiple filters are provided, they are combined with AND operator.
|
|
234
|
+
*
|
|
235
|
+
* Example:
|
|
236
|
+
* Given we have document like {"id": "1", "nestedField": [{"price": 10, "region": "EU"}, {"price": 20, "region": "US"}]}
|
|
237
|
+
* and `nestedField` is marked as `MATCH_ITEMS`, to ensure that sorting is done by correct region, filter should be
|
|
238
|
+
* { fieldName: "nestedField.price", "select_items_by": [{"nestedField.region": "US"}] }
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
selectItemsBy?: Record<string, any>[] | null;
|
|
242
|
+
}
|
|
243
|
+
export declare enum SortOrder {
|
|
244
|
+
ASC = "ASC",
|
|
245
|
+
DESC = "DESC"
|
|
246
|
+
}
|
|
247
|
+
export interface Paging {
|
|
248
|
+
/** Number of items to load. */
|
|
249
|
+
limit?: number | null;
|
|
250
|
+
/** Number of items to skip in the current sort order. */
|
|
251
|
+
offset?: number | null;
|
|
252
|
+
}
|
|
253
|
+
export interface CursorPaging {
|
|
254
|
+
/** Maximum number of items to return in the results. */
|
|
255
|
+
limit?: number | null;
|
|
256
|
+
/**
|
|
257
|
+
* Pointer to the next or previous page in the list of results.
|
|
258
|
+
*
|
|
259
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
260
|
+
* Not relevant for the first request.
|
|
261
|
+
*/
|
|
262
|
+
cursor?: string | null;
|
|
263
|
+
}
|
|
264
|
+
export interface QueryItemsResponse {
|
|
265
|
+
/** Items. */
|
|
266
|
+
items?: Item[];
|
|
267
|
+
/** Pagination. */
|
|
268
|
+
pagingMetadata?: PagingMetadataV2;
|
|
269
|
+
}
|
|
270
|
+
export interface Item {
|
|
271
|
+
/** Item ID. */
|
|
272
|
+
id?: string;
|
|
273
|
+
/** Item name. */
|
|
274
|
+
name?: string | null;
|
|
275
|
+
/** Item description. */
|
|
276
|
+
description?: string | null;
|
|
277
|
+
/** Item image. */
|
|
278
|
+
image?: Image;
|
|
279
|
+
/** Additional information about the item. For example, an item's price. */
|
|
280
|
+
note?: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Indicates whether the item has additional steps, additional step will replace any existing additional_data exists on the item.
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
285
|
+
hasAdditionalStep?: boolean | null;
|
|
286
|
+
/**
|
|
287
|
+
* Additional data associated with an item. The content of this object changes based on the Wix service defined in the `tag` field.
|
|
288
|
+
* @internal
|
|
289
|
+
* @deprecated Additional data associated with an item. The content of this object changes based on the Wix service defined in the `tag` field.
|
|
290
|
+
* @replacedBy additional_fields
|
|
291
|
+
* @targetRemovalDate 2025-01-01
|
|
292
|
+
*/
|
|
293
|
+
additionalData?: AdditionalData;
|
|
294
|
+
/** Additional fields associated with an item. The content of this object might changes based on the Wix service defined in the `tag` field. */
|
|
295
|
+
additionalFields?: Record<string, any> | null;
|
|
296
|
+
}
|
|
297
|
+
export interface Image {
|
|
298
|
+
/** Image URL. */
|
|
299
|
+
url?: string | null;
|
|
300
|
+
}
|
|
301
|
+
export interface AdditionalData extends AdditionalDataDataOneOf {
|
|
302
|
+
/** Additional data associated with ecom catalog order. */
|
|
303
|
+
ecomCatalogData?: EcomCatalogData;
|
|
304
|
+
/** Additional data associated with inbox */
|
|
305
|
+
inboxData?: InboxData;
|
|
306
|
+
}
|
|
307
|
+
/** @oneof */
|
|
308
|
+
export interface AdditionalDataDataOneOf {
|
|
309
|
+
/** Additional data associated with ecom catalog order. */
|
|
310
|
+
ecomCatalogData?: EcomCatalogData;
|
|
311
|
+
/** Additional data associated with inbox */
|
|
312
|
+
inboxData?: InboxData;
|
|
313
|
+
}
|
|
314
|
+
export interface EcomCatalogData {
|
|
315
|
+
/** ID of the app that owns the order. */
|
|
316
|
+
appId?: string;
|
|
317
|
+
/** ID of the catalog item associated with the order. */
|
|
318
|
+
catalogItemId?: string;
|
|
319
|
+
/** Price of the item associated with the order. */
|
|
320
|
+
price?: string;
|
|
321
|
+
/** Additional options associated with the order. */
|
|
322
|
+
options?: Record<string, any> | null;
|
|
323
|
+
}
|
|
324
|
+
export interface InboxData {
|
|
325
|
+
/** An array of actions that is supported by Inbox page */
|
|
326
|
+
actions?: Action[];
|
|
327
|
+
}
|
|
328
|
+
export interface Action {
|
|
329
|
+
/** The title of the action */
|
|
330
|
+
title?: string;
|
|
331
|
+
/** The url of the action */
|
|
332
|
+
url?: string;
|
|
333
|
+
}
|
|
334
|
+
export interface PagingMetadataV2 {
|
|
335
|
+
/** Number of items returned in the response. */
|
|
336
|
+
count?: number | null;
|
|
337
|
+
/** Offset that was requested. */
|
|
338
|
+
offset?: number | null;
|
|
339
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
340
|
+
total?: number | null;
|
|
341
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
342
|
+
tooManyToCount?: boolean | null;
|
|
343
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
344
|
+
cursors?: Cursors;
|
|
345
|
+
/**
|
|
346
|
+
* Indicates if there are more results after the current page.
|
|
347
|
+
* If `true`, another page of results can be retrieved.
|
|
348
|
+
* If `false`, this is the last page.
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
hasNext?: boolean | null;
|
|
352
|
+
}
|
|
353
|
+
export interface Cursors {
|
|
354
|
+
/** Cursor string pointing to the next page in the list of results. */
|
|
355
|
+
next?: string | null;
|
|
356
|
+
/** Cursor pointing to the previous page in the list of results. */
|
|
357
|
+
prev?: string | null;
|
|
358
|
+
}
|
|
359
|
+
export declare type QueryItemsApplicationErrors = {
|
|
360
|
+
code?: 'PROVIDER_NOT_FOUND';
|
|
361
|
+
description?: string;
|
|
362
|
+
data?: Record<string, any>;
|
|
363
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export var Tag;
|
|
2
|
+
(function (Tag) {
|
|
3
|
+
Tag["UNKNOWN_TAG"] = "UNKNOWN_TAG";
|
|
4
|
+
Tag["EMBEDDABLE"] = "EMBEDDABLE";
|
|
5
|
+
Tag["ECOM_EDIT_ORDER"] = "ECOM_EDIT_ORDER";
|
|
6
|
+
Tag["ECOM_CREATE_ORDER"] = "ECOM_CREATE_ORDER";
|
|
7
|
+
Tag["INBOX"] = "INBOX";
|
|
8
|
+
Tag["ECOM_CREATE_PAY_LINK"] = "ECOM_CREATE_PAY_LINK";
|
|
9
|
+
Tag["ECOM_DELIVERY_PROFILES"] = "ECOM_DELIVERY_PROFILES";
|
|
10
|
+
Tag["ADD_TO_CATEGORY"] = "ADD_TO_CATEGORY";
|
|
11
|
+
})(Tag || (Tag = {}));
|
|
12
|
+
export var FilterSelectionType;
|
|
13
|
+
(function (FilterSelectionType) {
|
|
14
|
+
FilterSelectionType["UNKNOWN_SELECTION"] = "UNKNOWN_SELECTION";
|
|
15
|
+
/** Allow to select only a single item */
|
|
16
|
+
FilterSelectionType["SINGLE_SELECTION"] = "SINGLE_SELECTION";
|
|
17
|
+
})(FilterSelectionType || (FilterSelectionType = {}));
|
|
18
|
+
export var FilterOptionsType;
|
|
19
|
+
(function (FilterOptionsType) {
|
|
20
|
+
FilterOptionsType["UNKNOWN_FILTER_OPTIONS"] = "UNKNOWN_FILTER_OPTIONS";
|
|
21
|
+
/** Static hardcoded options */
|
|
22
|
+
FilterOptionsType["STATIC"] = "STATIC";
|
|
23
|
+
})(FilterOptionsType || (FilterOptionsType = {}));
|
|
24
|
+
export var ThumbnailType;
|
|
25
|
+
(function (ThumbnailType) {
|
|
26
|
+
ThumbnailType["UNKNOWN_THUMBNAIL_TYPE"] = "UNKNOWN_THUMBNAIL_TYPE";
|
|
27
|
+
ThumbnailType["IMAGE"] = "IMAGE";
|
|
28
|
+
ThumbnailType["AVATAR"] = "AVATAR";
|
|
29
|
+
})(ThumbnailType || (ThumbnailType = {}));
|
|
30
|
+
export var ImageShape;
|
|
31
|
+
(function (ImageShape) {
|
|
32
|
+
ImageShape["UNKNOWN_SHAPE"] = "UNKNOWN_SHAPE";
|
|
33
|
+
/** Circle */
|
|
34
|
+
ImageShape["CIRCLE"] = "CIRCLE";
|
|
35
|
+
/** Square */
|
|
36
|
+
ImageShape["SQUARE"] = "SQUARE";
|
|
37
|
+
/** Rectangle */
|
|
38
|
+
ImageShape["RECTANGLE"] = "RECTANGLE";
|
|
39
|
+
})(ImageShape || (ImageShape = {}));
|
|
40
|
+
export var AvatarShape;
|
|
41
|
+
(function (AvatarShape) {
|
|
42
|
+
AvatarShape["UNKNOWN_SHAPE"] = "UNKNOWN_SHAPE";
|
|
43
|
+
/** Circle */
|
|
44
|
+
AvatarShape["CIRCLE"] = "CIRCLE";
|
|
45
|
+
/** Square */
|
|
46
|
+
AvatarShape["SQUARE"] = "SQUARE";
|
|
47
|
+
})(AvatarShape || (AvatarShape = {}));
|
|
48
|
+
export var SortOrder;
|
|
49
|
+
(function (SortOrder) {
|
|
50
|
+
SortOrder["ASC"] = "ASC";
|
|
51
|
+
SortOrder["DESC"] = "DESC";
|
|
52
|
+
})(SortOrder || (SortOrder = {}));
|
|
53
|
+
//# sourceMappingURL=types.impl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.impl.js","sourceRoot":"","sources":["../../types.impl.ts"],"names":[],"mappings":"AAoDA,MAAM,CAAN,IAAY,GASX;AATD,WAAY,GAAG;IACb,kCAA2B,CAAA;IAC3B,gCAAyB,CAAA;IACzB,0CAAmC,CAAA;IACnC,8CAAuC,CAAA;IACvC,sBAAe,CAAA;IACf,oDAA6C,CAAA;IAC7C,wDAAiD,CAAA;IACjD,0CAAmC,CAAA;AACrC,CAAC,EATW,GAAG,KAAH,GAAG,QASd;AAED,MAAM,CAAN,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,8DAAuC,CAAA;IACvC,yCAAyC;IACzC,4DAAqC,CAAA;AACvC,CAAC,EAJW,mBAAmB,KAAnB,mBAAmB,QAI9B;AAED,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,sEAAiD,CAAA;IACjD,+BAA+B;IAC/B,sCAAiB,CAAA;AACnB,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B;AAmFD,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,kEAAiD,CAAA;IACjD,gCAAe,CAAA;IACf,kCAAiB,CAAA;AACnB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAMD,MAAM,CAAN,IAAY,UAQX;AARD,WAAY,UAAU;IACpB,6CAA+B,CAAA;IAC/B,aAAa;IACb,+BAAiB,CAAA;IACjB,aAAa;IACb,+BAAiB,CAAA;IACjB,gBAAgB;IAChB,qCAAuB,CAAA;AACzB,CAAC,EARW,UAAU,KAAV,UAAU,QAQrB;AAMD,MAAM,CAAN,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,8CAA+B,CAAA;IAC/B,aAAa;IACb,gCAAiB,CAAA;IACjB,aAAa;IACb,gCAAiB,CAAA;AACnB,CAAC,EANW,WAAW,KAAX,WAAW,QAMtB;AAqFD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/ambassador-items-selection-spi-host-v1-provider",
|
|
3
|
+
"version": "1.0.92",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://npm-cache.dev.wixpress.com/",
|
|
6
|
+
"access": "restricted"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"build",
|
|
10
|
+
"http",
|
|
11
|
+
"rpc",
|
|
12
|
+
"builders",
|
|
13
|
+
"types",
|
|
14
|
+
"validators",
|
|
15
|
+
"meta",
|
|
16
|
+
"crud/!(*.ts)",
|
|
17
|
+
"src/main/proto"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "yarn proto && yarn tsc && cp -r proto build/cjs",
|
|
22
|
+
"proto": "wix-proto-codegen --module . --dir proto --stringEnums --tsClasses --stringLongs",
|
|
23
|
+
"tsc": "tsc -b tsconfig.json tsconfig.esm.json",
|
|
24
|
+
"test": ":"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@wix/http-client": "^1.0.0",
|
|
28
|
+
"@wix/metro-common-builders": "^1.0.0",
|
|
29
|
+
"@wix/metro-runtime": "^1.0.0",
|
|
30
|
+
"joi": "^17.0.0",
|
|
31
|
+
"callsite": "^1.0.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/callsite": "^1.0.0"
|
|
35
|
+
},
|
|
36
|
+
"wix": {
|
|
37
|
+
"artifact": {
|
|
38
|
+
"artifactId": "items-selection-spi-host-v1-provider",
|
|
39
|
+
"groupId": "com.wixpress.metro-packages"
|
|
40
|
+
},
|
|
41
|
+
"ambassador": {
|
|
42
|
+
"fqdn": "wix.items_selection.spi_host.v1.provider",
|
|
43
|
+
"protoArtifactId": "com.wixpress.wixos:items-selection-service"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"falconPackageHash": "4ffcac9172f0abac72298a83fa87044f311428279a0d04dc6d1a6340",
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "https://github.com/wix-private/metro-packages.git",
|
|
50
|
+
"directory": "packages/ambassador/items-selection-spi-host-v1-provider"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package com.wixpress.items_selection.spi.v1;
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/struct.proto";
|
|
6
|
+
import "wix/api/validations.proto";
|
|
7
|
+
|
|
8
|
+
message EcomCatalogData {
|
|
9
|
+
// ID of the app that owns the order.
|
|
10
|
+
string app_id = 1 [(.wix.api.format) = GUID];
|
|
11
|
+
|
|
12
|
+
// ID of the catalog item associated with the order.
|
|
13
|
+
string catalog_item_id = 2 [(.wix.api.minLength) = 1, (.wix.api.maxLength) = 36];
|
|
14
|
+
|
|
15
|
+
// Price of the item associated with the order.
|
|
16
|
+
string price = 3 [(.wix.api.decimalValue) = { gte: "0" lte: "1000000000000000"}];
|
|
17
|
+
|
|
18
|
+
// Additional options associated with the order.
|
|
19
|
+
google.protobuf.Struct options = 4;
|
|
20
|
+
}
|