@wix/auto_sdk_ecom_ecommerce-settings 1.0.33 → 1.0.35
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/package.json +4 -11
- package/build/cjs/schemas.d.ts +0 -32
- package/build/cjs/schemas.js +0 -77
- package/build/cjs/schemas.js.map +0 -1
- package/build/es/schemas.d.mts +0 -32
- package/build/es/schemas.mjs +0 -39
- package/build/es/schemas.mjs.map +0 -1
- package/build/internal/cjs/index.js +0 -355
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -342
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -305
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.d.ts +0 -32
- package/build/internal/cjs/schemas.js +0 -77
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -318
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -305
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -265
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.d.mts +0 -32
- package/build/internal/es/schemas.mjs +0 -39
- package/build/internal/es/schemas.mjs.map +0 -1
- package/schemas/package.json +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_ecom_ecommerce-settings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.35",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,23 +21,16 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
-
},
|
|
25
|
-
"./schemas": {
|
|
26
|
-
"import": "./build/es/schemas.mjs",
|
|
27
|
-
"require": "./build/cjs/schemas.js",
|
|
28
|
-
"types": "./build/es/schemas.d.mts"
|
|
29
24
|
}
|
|
30
25
|
},
|
|
31
26
|
"files": [
|
|
32
27
|
"build",
|
|
33
28
|
"meta",
|
|
34
|
-
"service-plugins"
|
|
35
|
-
"schemas"
|
|
29
|
+
"service-plugins"
|
|
36
30
|
],
|
|
37
31
|
"dependencies": {
|
|
38
32
|
"@wix/sdk-runtime": "^1.0.24",
|
|
39
|
-
"@wix/sdk-types": "^1.17.11"
|
|
40
|
-
"zod": "^4.3.6"
|
|
33
|
+
"@wix/sdk-types": "^1.17.11"
|
|
41
34
|
},
|
|
42
35
|
"devDependencies": {
|
|
43
36
|
"tsup": "^8.4.0",
|
|
@@ -57,5 +50,5 @@
|
|
|
57
50
|
"fqdn": "wix.ecom.v1.ecommerce_settings"
|
|
58
51
|
}
|
|
59
52
|
},
|
|
60
|
-
"falconPackageHash": "
|
|
53
|
+
"falconPackageHash": "84b4d38faf97af6ecaa01b27a91609c936675fdf55e1618e4776c02b"
|
|
61
54
|
}
|
package/build/cjs/schemas.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetEcommerceSettingsRequest: z.ZodObject<{
|
|
4
|
-
fields: z.ZodArray<z.ZodEnum<{
|
|
5
|
-
CHECKOUT: "CHECKOUT";
|
|
6
|
-
ADDITIONAL_FEES_SERVICE_PLUGIN: "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
7
|
-
VALIDATIONS_SERVICE_PLUGIN: "VALIDATIONS_SERVICE_PLUGIN";
|
|
8
|
-
TAX: "TAX";
|
|
9
|
-
DISCOUNT_RULES: "DISCOUNT_RULES";
|
|
10
|
-
DELIVERY: "DELIVERY";
|
|
11
|
-
PREMIUM_SITE: "PREMIUM_SITE";
|
|
12
|
-
BUSINESS_INFO: "BUSINESS_INFO";
|
|
13
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN: "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
14
|
-
}>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
declare const GetEcommerceSettingsResponse: z.ZodObject<{
|
|
17
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
-
requestedField: z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
CHECKOUT: "CHECKOUT";
|
|
20
|
-
ADDITIONAL_FEES_SERVICE_PLUGIN: "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
21
|
-
VALIDATIONS_SERVICE_PLUGIN: "VALIDATIONS_SERVICE_PLUGIN";
|
|
22
|
-
TAX: "TAX";
|
|
23
|
-
DISCOUNT_RULES: "DISCOUNT_RULES";
|
|
24
|
-
DELIVERY: "DELIVERY";
|
|
25
|
-
PREMIUM_SITE: "PREMIUM_SITE";
|
|
26
|
-
BUSINESS_INFO: "BUSINESS_INFO";
|
|
27
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN: "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
28
|
-
}>>;
|
|
29
|
-
}, z.core.$strip>>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
|
|
32
|
-
export { GetEcommerceSettingsRequest, GetEcommerceSettingsResponse };
|
package/build/cjs/schemas.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
|
|
30
|
-
// schemas.ts
|
|
31
|
-
var schemas_exports = {};
|
|
32
|
-
__export(schemas_exports, {
|
|
33
|
-
GetEcommerceSettingsRequest: () => GetEcommerceSettingsRequest,
|
|
34
|
-
GetEcommerceSettingsResponse: () => GetEcommerceSettingsResponse
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(schemas_exports);
|
|
37
|
-
|
|
38
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.schemas.ts
|
|
39
|
-
var z = __toESM(require("zod"));
|
|
40
|
-
var GetEcommerceSettingsRequest = /* @__PURE__ */ z.object({
|
|
41
|
-
fields: z.array(
|
|
42
|
-
z.enum([
|
|
43
|
-
"ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
44
|
-
"VALIDATIONS_SERVICE_PLUGIN",
|
|
45
|
-
"TAX",
|
|
46
|
-
"DISCOUNT_RULES",
|
|
47
|
-
"CHECKOUT",
|
|
48
|
-
"DELIVERY",
|
|
49
|
-
"PREMIUM_SITE",
|
|
50
|
-
"BUSINESS_INFO",
|
|
51
|
-
"PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
52
|
-
])
|
|
53
|
-
).min(1).max(25)
|
|
54
|
-
});
|
|
55
|
-
var GetEcommerceSettingsResponse = /* @__PURE__ */ z.object({
|
|
56
|
-
errors: z.array(
|
|
57
|
-
z.object({
|
|
58
|
-
requestedField: z.enum([
|
|
59
|
-
"ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
60
|
-
"VALIDATIONS_SERVICE_PLUGIN",
|
|
61
|
-
"TAX",
|
|
62
|
-
"DISCOUNT_RULES",
|
|
63
|
-
"CHECKOUT",
|
|
64
|
-
"DELIVERY",
|
|
65
|
-
"PREMIUM_SITE",
|
|
66
|
-
"BUSINESS_INFO",
|
|
67
|
-
"PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
68
|
-
]).describe("The requested field the error is related to.").optional()
|
|
69
|
-
})
|
|
70
|
-
).optional()
|
|
71
|
-
});
|
|
72
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
-
0 && (module.exports = {
|
|
74
|
-
GetEcommerceSettingsRequest,
|
|
75
|
-
GetEcommerceSettingsResponse
|
|
76
|
-
});
|
|
77
|
-
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/ecom-v1-ecommerce-settings-ecommerce-settings.schemas.ts"],"sourcesContent":["export * from './src/ecom-v1-ecommerce-settings-ecommerce-settings.schemas.js';\n","import * as z from 'zod';\n\nexport const GetEcommerceSettingsRequest = /*#__PURE__*/ z.object({\n fields: z\n .array(\n z.enum([\n 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n 'VALIDATIONS_SERVICE_PLUGIN',\n 'TAX',\n 'DISCOUNT_RULES',\n 'CHECKOUT',\n 'DELIVERY',\n 'PREMIUM_SITE',\n 'BUSINESS_INFO',\n 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN',\n ])\n )\n .min(1)\n .max(25),\n});\nexport const GetEcommerceSettingsResponse = /*#__PURE__*/ z.object({\n errors: z\n .array(\n z.object({\n requestedField: z\n .enum([\n 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n 'VALIDATIONS_SERVICE_PLUGIN',\n 'TAX',\n 'DISCOUNT_RULES',\n 'CHECKOUT',\n 'DELIVERY',\n 'PREMIUM_SITE',\n 'BUSINESS_INFO',\n 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN',\n ])\n .describe('The requested field the error is related to.')\n .optional(),\n })\n )\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,8BAA4C,gBAAE,SAAO;AAAA,EAChE,QACG;AAAA,IACG,OAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,EAAE;AACX,CAAC;AACM,IAAM,+BAA6C,gBAAE,SAAO;AAAA,EACjE,QACG;AAAA,IACG,SAAO;AAAA,MACP,gBACG,OAAK;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,CAAC,EACA,SAAS,8CAA8C,EACvD,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;","names":[]}
|
package/build/es/schemas.d.mts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare const GetEcommerceSettingsRequest: z.ZodObject<{
|
|
4
|
-
fields: z.ZodArray<z.ZodEnum<{
|
|
5
|
-
CHECKOUT: "CHECKOUT";
|
|
6
|
-
ADDITIONAL_FEES_SERVICE_PLUGIN: "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
7
|
-
VALIDATIONS_SERVICE_PLUGIN: "VALIDATIONS_SERVICE_PLUGIN";
|
|
8
|
-
TAX: "TAX";
|
|
9
|
-
DISCOUNT_RULES: "DISCOUNT_RULES";
|
|
10
|
-
DELIVERY: "DELIVERY";
|
|
11
|
-
PREMIUM_SITE: "PREMIUM_SITE";
|
|
12
|
-
BUSINESS_INFO: "BUSINESS_INFO";
|
|
13
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN: "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
14
|
-
}>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
declare const GetEcommerceSettingsResponse: z.ZodObject<{
|
|
17
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
-
requestedField: z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
CHECKOUT: "CHECKOUT";
|
|
20
|
-
ADDITIONAL_FEES_SERVICE_PLUGIN: "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
21
|
-
VALIDATIONS_SERVICE_PLUGIN: "VALIDATIONS_SERVICE_PLUGIN";
|
|
22
|
-
TAX: "TAX";
|
|
23
|
-
DISCOUNT_RULES: "DISCOUNT_RULES";
|
|
24
|
-
DELIVERY: "DELIVERY";
|
|
25
|
-
PREMIUM_SITE: "PREMIUM_SITE";
|
|
26
|
-
BUSINESS_INFO: "BUSINESS_INFO";
|
|
27
|
-
PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN: "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
28
|
-
}>>;
|
|
29
|
-
}, z.core.$strip>>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
|
|
32
|
-
export { GetEcommerceSettingsRequest, GetEcommerceSettingsResponse };
|
package/build/es/schemas.mjs
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.schemas.ts
|
|
2
|
-
import * as z from "zod";
|
|
3
|
-
var GetEcommerceSettingsRequest = /* @__PURE__ */ z.object({
|
|
4
|
-
fields: z.array(
|
|
5
|
-
z.enum([
|
|
6
|
-
"ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
7
|
-
"VALIDATIONS_SERVICE_PLUGIN",
|
|
8
|
-
"TAX",
|
|
9
|
-
"DISCOUNT_RULES",
|
|
10
|
-
"CHECKOUT",
|
|
11
|
-
"DELIVERY",
|
|
12
|
-
"PREMIUM_SITE",
|
|
13
|
-
"BUSINESS_INFO",
|
|
14
|
-
"PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
15
|
-
])
|
|
16
|
-
).min(1).max(25)
|
|
17
|
-
});
|
|
18
|
-
var GetEcommerceSettingsResponse = /* @__PURE__ */ z.object({
|
|
19
|
-
errors: z.array(
|
|
20
|
-
z.object({
|
|
21
|
-
requestedField: z.enum([
|
|
22
|
-
"ADDITIONAL_FEES_SERVICE_PLUGIN",
|
|
23
|
-
"VALIDATIONS_SERVICE_PLUGIN",
|
|
24
|
-
"TAX",
|
|
25
|
-
"DISCOUNT_RULES",
|
|
26
|
-
"CHECKOUT",
|
|
27
|
-
"DELIVERY",
|
|
28
|
-
"PREMIUM_SITE",
|
|
29
|
-
"BUSINESS_INFO",
|
|
30
|
-
"PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"
|
|
31
|
-
]).describe("The requested field the error is related to.").optional()
|
|
32
|
-
})
|
|
33
|
-
).optional()
|
|
34
|
-
});
|
|
35
|
-
export {
|
|
36
|
-
GetEcommerceSettingsRequest,
|
|
37
|
-
GetEcommerceSettingsResponse
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=schemas.mjs.map
|
package/build/es/schemas.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ecom-v1-ecommerce-settings-ecommerce-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetEcommerceSettingsRequest = /*#__PURE__*/ z.object({\n fields: z\n .array(\n z.enum([\n 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n 'VALIDATIONS_SERVICE_PLUGIN',\n 'TAX',\n 'DISCOUNT_RULES',\n 'CHECKOUT',\n 'DELIVERY',\n 'PREMIUM_SITE',\n 'BUSINESS_INFO',\n 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN',\n ])\n )\n .min(1)\n .max(25),\n});\nexport const GetEcommerceSettingsResponse = /*#__PURE__*/ z.object({\n errors: z\n .array(\n z.object({\n requestedField: z\n .enum([\n 'ADDITIONAL_FEES_SERVICE_PLUGIN',\n 'VALIDATIONS_SERVICE_PLUGIN',\n 'TAX',\n 'DISCOUNT_RULES',\n 'CHECKOUT',\n 'DELIVERY',\n 'PREMIUM_SITE',\n 'BUSINESS_INFO',\n 'PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN',\n ])\n .describe('The requested field the error is related to.')\n .optional(),\n })\n )\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,8BAA4C,gBAAE,SAAO;AAAA,EAChE,QACG;AAAA,IACG,OAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,IAAI,EAAE;AACX,CAAC;AACM,IAAM,+BAA6C,gBAAE,SAAO;AAAA,EACjE,QACG;AAAA,IACG,SAAO;AAAA,MACP,gBACG,OAAK;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF,CAAC,EACA,SAAS,8CAA8C,EACvD,SAAS;AAAA,IACd,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -1,355 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
Alignment: () => Alignment,
|
|
24
|
-
CheckoutBillingFields: () => CheckoutBillingFields,
|
|
25
|
-
ContractSwitchClassification: () => ContractSwitchClassification,
|
|
26
|
-
DestinationScope: () => DestinationScope,
|
|
27
|
-
DisplayType: () => DisplayType,
|
|
28
|
-
ExpressButtonsCornerRadius: () => ExpressButtonsCornerRadius,
|
|
29
|
-
FeaturePeriod: () => FeaturePeriod,
|
|
30
|
-
InputFieldBackgroundStyle: () => InputFieldBackgroundStyle,
|
|
31
|
-
LogoSize: () => LogoSize,
|
|
32
|
-
RequestedFields: () => RequestedFields,
|
|
33
|
-
TestMode: () => TestMode,
|
|
34
|
-
TriggerFlow: () => TriggerFlow,
|
|
35
|
-
WebhookIdentityType: () => WebhookIdentityType,
|
|
36
|
-
getEcommerceSettings: () => getEcommerceSettings4
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(index_exports);
|
|
39
|
-
|
|
40
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts
|
|
41
|
-
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
42
|
-
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
43
|
-
|
|
44
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.http.ts
|
|
45
|
-
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
46
|
-
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
47
|
-
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
48
|
-
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
49
|
-
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
50
|
-
function resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl(opts) {
|
|
51
|
-
const domainToMappings = {
|
|
52
|
-
_: [
|
|
53
|
-
{
|
|
54
|
-
srcPath: "/_api/ecommerce-settings",
|
|
55
|
-
destPath: ""
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"editor._base_domain_": [
|
|
59
|
-
{
|
|
60
|
-
srcPath: "/_api/ecommerce-settings",
|
|
61
|
-
destPath: ""
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"blocks._base_domain_": [
|
|
65
|
-
{
|
|
66
|
-
srcPath: "/_api/ecommerce-settings",
|
|
67
|
-
destPath: ""
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"create.editorx": [
|
|
71
|
-
{
|
|
72
|
-
srcPath: "/_api/ecommerce-settings",
|
|
73
|
-
destPath: ""
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"*.dev.wix-code.com": [
|
|
77
|
-
{
|
|
78
|
-
srcPath: "/_api/ecommerce-settings",
|
|
79
|
-
destPath: ""
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"editor.wixapps.net": [
|
|
83
|
-
{
|
|
84
|
-
srcPath: "/_api/ecommerce-settings",
|
|
85
|
-
destPath: ""
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"www._base_domain_": [
|
|
89
|
-
{
|
|
90
|
-
srcPath: "/_api/ecommerce-settings",
|
|
91
|
-
destPath: ""
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
"www.wixapis.com": [
|
|
95
|
-
{
|
|
96
|
-
srcPath: "/_api/ecommerce-settings",
|
|
97
|
-
destPath: ""
|
|
98
|
-
}
|
|
99
|
-
]
|
|
100
|
-
};
|
|
101
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
102
|
-
}
|
|
103
|
-
var PACKAGE_NAME = "@wix/auto_sdk_ecom_ecommerce-settings";
|
|
104
|
-
function getEcommerceSettings(payload) {
|
|
105
|
-
function __getEcommerceSettings({ host }) {
|
|
106
|
-
const metadata = {
|
|
107
|
-
entityFqdn: "wix.ecom.v1.ecommerce_settings",
|
|
108
|
-
method: "GET",
|
|
109
|
-
methodFqn: "wix.ecom.ecommerce_settings.v1.EcommerceSettingsService.GetEcommerceSettings",
|
|
110
|
-
packageName: PACKAGE_NAME,
|
|
111
|
-
migrationOptions: {
|
|
112
|
-
optInTransformResponse: true
|
|
113
|
-
},
|
|
114
|
-
url: resolveWixEcomEcommerceSettingsV1EcommerceSettingsServiceUrl({
|
|
115
|
-
protoPath: "/v1/ecommerce-settings",
|
|
116
|
-
data: payload,
|
|
117
|
-
host
|
|
118
|
-
}),
|
|
119
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
120
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
121
|
-
{
|
|
122
|
-
transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
|
|
123
|
-
paths: [
|
|
124
|
-
{ path: "ecommerceSettings.checkout.createdDate" },
|
|
125
|
-
{ path: "ecommerceSettings.checkout.updatedDate" },
|
|
126
|
-
{
|
|
127
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.urlExpirationDate"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.urlExpirationDate"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.urlExpirationDate"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.urlExpirationDate"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.urlExpirationDate"
|
|
140
|
-
}
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
transformFn: import_float.transformRESTFloatToSDKFloat,
|
|
145
|
-
paths: [
|
|
146
|
-
{
|
|
147
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.x"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image.focalPoint.y"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.x"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image.focalPoint.y"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.x"
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image.focalPoint.y"
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.x"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image.focalPoint.y"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.focalPoint.x"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image.focalPoint.y"
|
|
175
|
-
}
|
|
176
|
-
]
|
|
177
|
-
}
|
|
178
|
-
])
|
|
179
|
-
};
|
|
180
|
-
return metadata;
|
|
181
|
-
}
|
|
182
|
-
return __getEcommerceSettings;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.universal.ts
|
|
186
|
-
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
187
|
-
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
188
|
-
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
189
|
-
var TriggerFlow = /* @__PURE__ */ ((TriggerFlow2) => {
|
|
190
|
-
TriggerFlow2["CART"] = "CART";
|
|
191
|
-
TriggerFlow2["CHECKOUT"] = "CHECKOUT";
|
|
192
|
-
return TriggerFlow2;
|
|
193
|
-
})(TriggerFlow || {});
|
|
194
|
-
var TestMode = /* @__PURE__ */ ((TestMode2) => {
|
|
195
|
-
TestMode2["DISABLED"] = "DISABLED";
|
|
196
|
-
TestMode2["ENABLED_TO_ALL"] = "ENABLED_TO_ALL";
|
|
197
|
-
TestMode2["ENABLED_TO_OWNER_AND_COLLABORATORS"] = "ENABLED_TO_OWNER_AND_COLLABORATORS";
|
|
198
|
-
return TestMode2;
|
|
199
|
-
})(TestMode || {});
|
|
200
|
-
var LogoSize = /* @__PURE__ */ ((LogoSize2) => {
|
|
201
|
-
LogoSize2["SMALL"] = "SMALL";
|
|
202
|
-
LogoSize2["MEDIUM"] = "MEDIUM";
|
|
203
|
-
LogoSize2["LARGE"] = "LARGE";
|
|
204
|
-
return LogoSize2;
|
|
205
|
-
})(LogoSize || {});
|
|
206
|
-
var Alignment = /* @__PURE__ */ ((Alignment2) => {
|
|
207
|
-
Alignment2["SIDE"] = "SIDE";
|
|
208
|
-
Alignment2["CENTER"] = "CENTER";
|
|
209
|
-
return Alignment2;
|
|
210
|
-
})(Alignment || {});
|
|
211
|
-
var DisplayType = /* @__PURE__ */ ((DisplayType2) => {
|
|
212
|
-
DisplayType2["TEXT"] = "TEXT";
|
|
213
|
-
DisplayType2["ICON"] = "ICON";
|
|
214
|
-
return DisplayType2;
|
|
215
|
-
})(DisplayType || {});
|
|
216
|
-
var ExpressButtonsCornerRadius = /* @__PURE__ */ ((ExpressButtonsCornerRadius2) => {
|
|
217
|
-
ExpressButtonsCornerRadius2["RECTANGLE"] = "RECTANGLE";
|
|
218
|
-
ExpressButtonsCornerRadius2["PILL"] = "PILL";
|
|
219
|
-
return ExpressButtonsCornerRadius2;
|
|
220
|
-
})(ExpressButtonsCornerRadius || {});
|
|
221
|
-
var InputFieldBackgroundStyle = /* @__PURE__ */ ((InputFieldBackgroundStyle2) => {
|
|
222
|
-
InputFieldBackgroundStyle2["WHITE"] = "WHITE";
|
|
223
|
-
InputFieldBackgroundStyle2["TRANSPARENT"] = "TRANSPARENT";
|
|
224
|
-
return InputFieldBackgroundStyle2;
|
|
225
|
-
})(InputFieldBackgroundStyle || {});
|
|
226
|
-
var CheckoutBillingFields = /* @__PURE__ */ ((CheckoutBillingFields2) => {
|
|
227
|
-
CheckoutBillingFields2["All_FIELDS"] = "All_FIELDS";
|
|
228
|
-
CheckoutBillingFields2["MINIMUM_REQUIRED_FIELDS"] = "MINIMUM_REQUIRED_FIELDS";
|
|
229
|
-
return CheckoutBillingFields2;
|
|
230
|
-
})(CheckoutBillingFields || {});
|
|
231
|
-
var DestinationScope = /* @__PURE__ */ ((DestinationScope2) => {
|
|
232
|
-
DestinationScope2["SPECIFIC_DESTINATIONS"] = "SPECIFIC_DESTINATIONS";
|
|
233
|
-
DestinationScope2["WORLDWIDE"] = "WORLDWIDE";
|
|
234
|
-
return DestinationScope2;
|
|
235
|
-
})(DestinationScope || {});
|
|
236
|
-
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
237
|
-
RequestedFields2["ADDITIONAL_FEES_SERVICE_PLUGIN"] = "ADDITIONAL_FEES_SERVICE_PLUGIN";
|
|
238
|
-
RequestedFields2["VALIDATIONS_SERVICE_PLUGIN"] = "VALIDATIONS_SERVICE_PLUGIN";
|
|
239
|
-
RequestedFields2["TAX"] = "TAX";
|
|
240
|
-
RequestedFields2["DISCOUNT_RULES"] = "DISCOUNT_RULES";
|
|
241
|
-
RequestedFields2["CHECKOUT"] = "CHECKOUT";
|
|
242
|
-
RequestedFields2["DELIVERY"] = "DELIVERY";
|
|
243
|
-
RequestedFields2["PREMIUM_SITE"] = "PREMIUM_SITE";
|
|
244
|
-
RequestedFields2["BUSINESS_INFO"] = "BUSINESS_INFO";
|
|
245
|
-
RequestedFields2["PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN"] = "PURCHASE_RECOMMENDATIONS_SERVICE_PLUGIN";
|
|
246
|
-
return RequestedFields2;
|
|
247
|
-
})(RequestedFields || {});
|
|
248
|
-
var FeaturePeriod = /* @__PURE__ */ ((FeaturePeriod2) => {
|
|
249
|
-
FeaturePeriod2["NO_PERIOD"] = "NO_PERIOD";
|
|
250
|
-
FeaturePeriod2["MILLISECOND"] = "MILLISECOND";
|
|
251
|
-
FeaturePeriod2["SECOND"] = "SECOND";
|
|
252
|
-
FeaturePeriod2["MINUTE"] = "MINUTE";
|
|
253
|
-
FeaturePeriod2["HOUR"] = "HOUR";
|
|
254
|
-
FeaturePeriod2["DAY"] = "DAY";
|
|
255
|
-
FeaturePeriod2["WEEK"] = "WEEK";
|
|
256
|
-
FeaturePeriod2["MONTH"] = "MONTH";
|
|
257
|
-
FeaturePeriod2["YEAR"] = "YEAR";
|
|
258
|
-
return FeaturePeriod2;
|
|
259
|
-
})(FeaturePeriod || {});
|
|
260
|
-
var ContractSwitchClassification = /* @__PURE__ */ ((ContractSwitchClassification2) => {
|
|
261
|
-
ContractSwitchClassification2["UNKNOWN"] = "UNKNOWN";
|
|
262
|
-
ContractSwitchClassification2["UPGRADE"] = "UPGRADE";
|
|
263
|
-
ContractSwitchClassification2["DOWNGRADE"] = "DOWNGRADE";
|
|
264
|
-
ContractSwitchClassification2["PRICE_INCREASE"] = "PRICE_INCREASE";
|
|
265
|
-
return ContractSwitchClassification2;
|
|
266
|
-
})(ContractSwitchClassification || {});
|
|
267
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
268
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
269
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
270
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
271
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
272
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
273
|
-
return WebhookIdentityType2;
|
|
274
|
-
})(WebhookIdentityType || {});
|
|
275
|
-
async function getEcommerceSettings2(fields) {
|
|
276
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
277
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fields });
|
|
278
|
-
const reqOpts = getEcommerceSettings(payload);
|
|
279
|
-
sideEffects?.onSiteCall?.();
|
|
280
|
-
try {
|
|
281
|
-
const result = await httpClient.request(reqOpts);
|
|
282
|
-
sideEffects?.onSuccess?.(result);
|
|
283
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
284
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
285
|
-
{
|
|
286
|
-
transformFn: import_image.transformRESTImageToSDKImage,
|
|
287
|
-
paths: [
|
|
288
|
-
{
|
|
289
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.logo.image"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
path: "ecommerceSettings.checkout.checkoutBrand.header.backgroundFill.image"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.formBackgroundFill.image"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
path: "ecommerceSettings.checkout.checkoutBrand.mainSection.summaryBackgroundFill.image"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
path: "ecommerceSettings.checkout.checkoutBrand.footer.backgroundFill.image"
|
|
302
|
-
}
|
|
303
|
-
]
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
transformFn: import_address.transformRESTAddressToSDKAddress,
|
|
307
|
-
paths: [{ path: "ecommerceSettings.businessInfo.address" }]
|
|
308
|
-
}
|
|
309
|
-
])
|
|
310
|
-
);
|
|
311
|
-
} catch (err) {
|
|
312
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
313
|
-
err,
|
|
314
|
-
{
|
|
315
|
-
spreadPathsToArguments: {},
|
|
316
|
-
explicitPathsToArguments: { fields: "$[0]" },
|
|
317
|
-
singleArgumentUnchanged: false
|
|
318
|
-
},
|
|
319
|
-
["fields"]
|
|
320
|
-
);
|
|
321
|
-
sideEffects?.onError?.(err);
|
|
322
|
-
throw transformedError;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.public.ts
|
|
327
|
-
function getEcommerceSettings3(httpClient) {
|
|
328
|
-
return (fields) => getEcommerceSettings2(
|
|
329
|
-
fields,
|
|
330
|
-
// @ts-ignore
|
|
331
|
-
{ httpClient }
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
// src/ecom-v1-ecommerce-settings-ecommerce-settings.context.ts
|
|
336
|
-
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
337
|
-
var getEcommerceSettings4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEcommerceSettings3);
|
|
338
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
339
|
-
0 && (module.exports = {
|
|
340
|
-
Alignment,
|
|
341
|
-
CheckoutBillingFields,
|
|
342
|
-
ContractSwitchClassification,
|
|
343
|
-
DestinationScope,
|
|
344
|
-
DisplayType,
|
|
345
|
-
ExpressButtonsCornerRadius,
|
|
346
|
-
FeaturePeriod,
|
|
347
|
-
InputFieldBackgroundStyle,
|
|
348
|
-
LogoSize,
|
|
349
|
-
RequestedFields,
|
|
350
|
-
TestMode,
|
|
351
|
-
TriggerFlow,
|
|
352
|
-
WebhookIdentityType,
|
|
353
|
-
getEcommerceSettings
|
|
354
|
-
});
|
|
355
|
-
//# sourceMappingURL=index.js.map
|