@wix/auto_sdk_ecom_validations 1.0.6 → 1.0.8

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.
Files changed (69) hide show
  1. package/build/{cjs/src/service-plugins-types.d.ts → index.d.mts} +99 -69
  2. package/build/{internal/cjs/src/service-plugins-types.d.ts → index.d.ts} +99 -69
  3. package/build/index.js +194 -0
  4. package/build/index.js.map +1 -0
  5. package/build/index.mjs +156 -0
  6. package/build/index.mjs.map +1 -0
  7. package/build/{es/src/service-plugins-types.d.ts → internal/index.d.mts} +99 -69
  8. package/build/internal/{es/src/service-plugins-types.d.ts → index.d.ts} +99 -69
  9. package/build/internal/index.js +194 -0
  10. package/build/internal/index.js.map +1 -0
  11. package/build/internal/index.mjs +156 -0
  12. package/build/internal/index.mjs.map +1 -0
  13. package/package.json +13 -12
  14. package/build/cjs/index.d.ts +0 -2
  15. package/build/cjs/index.js +0 -19
  16. package/build/cjs/index.js.map +0 -1
  17. package/build/cjs/index.typings.d.ts +0 -15
  18. package/build/cjs/index.typings.js +0 -18
  19. package/build/cjs/index.typings.js.map +0 -1
  20. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +0 -5
  21. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js +0 -9
  22. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js.map +0 -1
  23. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -19
  24. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -50
  25. package/build/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  26. package/build/cjs/src/service-plugins-types.js +0 -121
  27. package/build/cjs/src/service-plugins-types.js.map +0 -1
  28. package/build/es/index.d.ts +0 -2
  29. package/build/es/index.js +0 -3
  30. package/build/es/index.js.map +0 -1
  31. package/build/es/index.typings.d.ts +0 -15
  32. package/build/es/index.typings.js +0 -2
  33. package/build/es/index.typings.js.map +0 -1
  34. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +0 -5
  35. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.js +0 -6
  36. package/build/es/src/interfaces-ecommerce-v1-validations-provider.context.js.map +0 -1
  37. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -19
  38. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -47
  39. package/build/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  40. package/build/es/src/service-plugins-types.js +0 -118
  41. package/build/es/src/service-plugins-types.js.map +0 -1
  42. package/build/internal/cjs/index.d.ts +0 -2
  43. package/build/internal/cjs/index.js +0 -19
  44. package/build/internal/cjs/index.js.map +0 -1
  45. package/build/internal/cjs/index.typings.d.ts +0 -15
  46. package/build/internal/cjs/index.typings.js +0 -18
  47. package/build/internal/cjs/index.typings.js.map +0 -1
  48. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +0 -5
  49. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js +0 -9
  50. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.context.js.map +0 -1
  51. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -19
  52. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -50
  53. package/build/internal/cjs/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  54. package/build/internal/cjs/src/service-plugins-types.js +0 -121
  55. package/build/internal/cjs/src/service-plugins-types.js.map +0 -1
  56. package/build/internal/es/index.d.ts +0 -2
  57. package/build/internal/es/index.js +0 -3
  58. package/build/internal/es/index.js.map +0 -1
  59. package/build/internal/es/index.typings.d.ts +0 -15
  60. package/build/internal/es/index.typings.js +0 -2
  61. package/build/internal/es/index.typings.js.map +0 -1
  62. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.d.ts +0 -5
  63. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.js +0 -6
  64. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.context.js.map +0 -1
  65. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.d.ts +0 -19
  66. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.js +0 -47
  67. package/build/internal/es/src/interfaces-ecommerce-v1-validations-provider.public.js.map +0 -1
  68. package/build/internal/es/src/service-plugins-types.js +0 -118
  69. package/build/internal/es/src/service-plugins-types.js.map +0 -1
@@ -1,18 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/service-plugins-types"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,8DAA4C"}
@@ -1,5 +0,0 @@
1
- import './interfaces-ecommerce-v1-validations-provider.public.js';
2
- import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
3
- import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-validations-provider.public.js';
4
- export { publicProvideHandlers };
5
- export declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provideHandlers = exports.publicProvideHandlers = void 0;
4
- require("./interfaces-ecommerce-v1-validations-provider.public.js");
5
- const service_plugin_modules_1 = require("@wix/sdk-runtime/service-plugin-modules");
6
- const interfaces_ecommerce_v1_validations_provider_public_js_1 = require("./interfaces-ecommerce-v1-validations-provider.public.js");
7
- Object.defineProperty(exports, "publicProvideHandlers", { enumerable: true, get: function () { return interfaces_ecommerce_v1_validations_provider_public_js_1.provideHandlers; } });
8
- exports.provideHandlers = (0, service_plugin_modules_1.createServicePluginModule)(interfaces_ecommerce_v1_validations_provider_public_js_1.provideHandlers);
9
- //# sourceMappingURL=interfaces-ecommerce-v1-validations-provider.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces-ecommerce-v1-validations-provider.context.js","sourceRoot":"","sources":["../../../src/interfaces-ecommerce-v1-validations-provider.context.ts"],"names":[],"mappings":";;;AAAA,oEAAkE;AAClE,oFAAoF;AACpF,qIAAoH;AAE3G,sGAFmB,wEAAqB,OAEnB;AAEjB,QAAA,eAAe,GAExB,IAAA,kDAAyB,EAAC,wEAAqB,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { ServicePluginDefinition } from '@wix/sdk-types';
2
- import { Context, GetValidationViolationsRequest, GetValidationViolationsResponse } from './service-plugins-types.js';
3
- export interface GetValidationViolationsEnvelope {
4
- request: GetValidationViolationsRequest;
5
- metadata: Context;
6
- }
7
- export declare const provideHandlers: ServicePluginDefinition<{
8
- /**
9
- *
10
- * This method retrieves validation violations from your app.
11
- *
12
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
13
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
14
- *
15
- * > __Notes:__
16
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
17
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
18
- getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
19
- }>;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provideHandlers = void 0;
4
- const sdk_types_1 = require("@wix/sdk-types");
5
- const address_1 = require("@wix/sdk-runtime/transformations/address");
6
- const float_1 = require("@wix/sdk-runtime/transformations/float");
7
- const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
8
- const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
9
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
10
- exports.provideHandlers = (0, sdk_types_1.ServicePluginDefinition)('ECOM_VALIDATIONS', [
11
- {
12
- name: 'getValidationViolations',
13
- primaryHttpMappingPath: '/v1/get-violations',
14
- transformations: {
15
- toREST: (payload) => {
16
- const toRestResponse = payload;
17
- return (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)(toRestResponse);
18
- },
19
- fromREST: (payload) => {
20
- const fromRestRequest = (0, transform_paths_1.transformPaths)(payload, [
21
- {
22
- transformFn: float_1.transformRESTFloatToSDKFloat,
23
- paths: [
24
- {
25
- path: 'request.validationInfo.lineItems.physicalProperties.weight',
26
- },
27
- ],
28
- },
29
- {
30
- transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
31
- paths: [
32
- {
33
- path: 'request.validationInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
34
- },
35
- ],
36
- },
37
- {
38
- transformFn: address_1.transformRESTAddressToSDKAddress,
39
- paths: [
40
- { path: 'request.validationInfo.billingInfo.address' },
41
- { path: 'request.validationInfo.shippingAddress.address' },
42
- ],
43
- },
44
- ]);
45
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(fromRestRequest);
46
- },
47
- },
48
- },
49
- ]);
50
- //# sourceMappingURL=interfaces-ecommerce-v1-validations-provider.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces-ecommerce-v1-validations-provider.public.js","sourceRoot":"","sources":["../../../src/interfaces-ecommerce-v1-validations-provider.public.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AAMzD,sEAA4F;AAC5F,kEAAsF;AACtF,0EAAkG;AAClG,sFAAkF;AAClF,oFAGiD;AAOpC,QAAA,eAAe,GAAG,IAAA,mCAAuB,EAcnD,kBAAkB,EAAE;IACrB;QACE,IAAI,EAAE,yBAAyB;QAC/B,sBAAsB,EAAE,oBAAoB;QAC5C,eAAe,EAAE;YACf,MAAM,EAAE,CAAC,OAAY,EAAE,EAAE;gBACvB,MAAM,cAAc,GAAG,OAAO,CAAC;gBAE/B,OAAO,IAAA,8DAAqC,EAAC,cAAc,CAAC,CAAC;YAC/D,CAAC;YACD,QAAQ,EAAE,CAAC,OAAY,EAAE,EAAE;gBACzB,MAAM,eAAe,GAAG,IAAA,gCAAc,EAAC,OAAO,EAAE;oBAC9C;wBACE,WAAW,EAAE,oCAA4B;wBACzC,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,4DAA4D;6BACnE;yBACF;qBACF;oBACD;wBACE,WAAW,EAAE,gDAAoC;wBACjD,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,wFAAwF;6BAC/F;yBACF;qBACF;oBACD;wBACE,WAAW,EAAE,0CAAgC;wBAC7C,KAAK,EAAE;4BACL,EAAE,IAAI,EAAE,4CAA4C,EAAE;4BACtD,EAAE,IAAI,EAAE,gDAAgD,EAAE;yBAC3D;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,IAAA,gEAAuC,EAAC,eAAe,CAAC,CAAC;YAClE,CAAC;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,121 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IdentityType = exports.SuggestedFix = exports.NameInLineItem = exports.NameInOther = exports.Severity = exports.DiscountType = exports.VatType = exports.WeightUnit = exports.JurisdictionType = exports.SubscriptionFrequency = exports.ItemTypeItemType = exports.CheckoutStage = exports.Source = void 0;
4
- var Source;
5
- (function (Source) {
6
- /** Context cannot be recognized */
7
- Source["OTHER"] = "OTHER";
8
- /** Called from Ecom's Cart service */
9
- Source["CART"] = "CART";
10
- /** Called from Ecom's Checkout service */
11
- Source["CHECKOUT"] = "CHECKOUT";
12
- })(Source || (exports.Source = Source = {}));
13
- var CheckoutStage;
14
- (function (CheckoutStage) {
15
- /** Not implemented. */
16
- CheckoutStage["UNKNOWN_CHECKOUT_STAGE"] = "UNKNOWN_CHECKOUT_STAGE";
17
- /** Used during the initialization of the checkout (Create Checkout). */
18
- CheckoutStage["INITIALIZATION"] = "INITIALIZATION";
19
- /** Used during the checkout process, such as updating or retrieving the checkout. */
20
- CheckoutStage["IN_PROGRESS"] = "IN_PROGRESS";
21
- /** Used during the creation of an order from the checkout. */
22
- CheckoutStage["ORDER_CREATION"] = "ORDER_CREATION";
23
- })(CheckoutStage || (exports.CheckoutStage = CheckoutStage = {}));
24
- var ItemTypeItemType;
25
- (function (ItemTypeItemType) {
26
- ItemTypeItemType["UNRECOGNISED"] = "UNRECOGNISED";
27
- ItemTypeItemType["PHYSICAL"] = "PHYSICAL";
28
- ItemTypeItemType["DIGITAL"] = "DIGITAL";
29
- ItemTypeItemType["GIFT_CARD"] = "GIFT_CARD";
30
- ItemTypeItemType["SERVICE"] = "SERVICE";
31
- })(ItemTypeItemType || (exports.ItemTypeItemType = ItemTypeItemType = {}));
32
- /** Frequency unit of recurring payment */
33
- var SubscriptionFrequency;
34
- (function (SubscriptionFrequency) {
35
- SubscriptionFrequency["UNDEFINED"] = "UNDEFINED";
36
- SubscriptionFrequency["DAY"] = "DAY";
37
- SubscriptionFrequency["WEEK"] = "WEEK";
38
- SubscriptionFrequency["MONTH"] = "MONTH";
39
- SubscriptionFrequency["YEAR"] = "YEAR";
40
- })(SubscriptionFrequency || (exports.SubscriptionFrequency = SubscriptionFrequency = {}));
41
- /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
42
- var JurisdictionType;
43
- (function (JurisdictionType) {
44
- /** Undefined jurisdiction type. */
45
- JurisdictionType["UNDEFINED"] = "UNDEFINED";
46
- /** Country jurisdiction. */
47
- JurisdictionType["COUNTRY"] = "COUNTRY";
48
- /** State jurisdiction. */
49
- JurisdictionType["STATE"] = "STATE";
50
- /** County jurisdiction. */
51
- JurisdictionType["COUNTY"] = "COUNTY";
52
- /** City jurisdiction. */
53
- JurisdictionType["CITY"] = "CITY";
54
- /** Special jurisdiction. */
55
- JurisdictionType["SPECIAL"] = "SPECIAL";
56
- })(JurisdictionType || (exports.JurisdictionType = JurisdictionType = {}));
57
- var WeightUnit;
58
- (function (WeightUnit) {
59
- /** Weight unit can't be classified due to an error. */
60
- WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
61
- /** Kilograms. */
62
- WeightUnit["KG"] = "KG";
63
- /** Pounds. */
64
- WeightUnit["LB"] = "LB";
65
- })(WeightUnit || (exports.WeightUnit = WeightUnit = {}));
66
- /** tax info types */
67
- var VatType;
68
- (function (VatType) {
69
- VatType["UNSPECIFIED"] = "UNSPECIFIED";
70
- /** CPF - for individual tax payers. */
71
- VatType["CPF"] = "CPF";
72
- /** CNPJ - for corporations */
73
- VatType["CNPJ"] = "CNPJ";
74
- })(VatType || (exports.VatType = VatType = {}));
75
- var DiscountType;
76
- (function (DiscountType) {
77
- /** Global discount. */
78
- DiscountType["GLOBAL"] = "GLOBAL";
79
- /** Discount for specific items. */
80
- DiscountType["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
81
- /** Shipping discount. */
82
- DiscountType["SHIPPING"] = "SHIPPING";
83
- })(DiscountType || (exports.DiscountType = DiscountType = {}));
84
- var Severity;
85
- (function (Severity) {
86
- /** The user is allowed to move forward in the flow. */
87
- Severity["WARNING"] = "WARNING";
88
- /**
89
- * The user is blocked from moving forward in the flow.
90
- * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
91
- */
92
- Severity["ERROR"] = "ERROR";
93
- })(Severity || (exports.Severity = Severity = {}));
94
- /** Available locations on the webpage */
95
- var NameInOther;
96
- (function (NameInOther) {
97
- /** Default location, in case no specific location is specified. */
98
- NameInOther["OTHER_DEFAULT"] = "OTHER_DEFAULT";
99
- })(NameInOther || (exports.NameInOther = NameInOther = {}));
100
- /** Available locations on the line item */
101
- var NameInLineItem;
102
- (function (NameInLineItem) {
103
- /** Default location, in case no specific location is specified. */
104
- NameInLineItem["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
105
- })(NameInLineItem || (exports.NameInLineItem = NameInLineItem = {}));
106
- var SuggestedFix;
107
- (function (SuggestedFix) {
108
- /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
109
- SuggestedFix["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
110
- /** The line item should be removed from the cart or checkout to resolve the violation. */
111
- SuggestedFix["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
112
- })(SuggestedFix || (exports.SuggestedFix = SuggestedFix = {}));
113
- var IdentityType;
114
- (function (IdentityType) {
115
- IdentityType["UNKNOWN"] = "UNKNOWN";
116
- IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
117
- IdentityType["MEMBER"] = "MEMBER";
118
- IdentityType["WIX_USER"] = "WIX_USER";
119
- IdentityType["APP"] = "APP";
120
- })(IdentityType || (exports.IdentityType = IdentityType = {}));
121
- //# sourceMappingURL=service-plugins-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings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-ecommerce-v1-validations-provider.context';
package/build/es/index.js DELETED
@@ -1,3 +0,0 @@
1
- export * from './src/service-plugins-types';
2
- export * from './src/interfaces-ecommerce-v1-validations-provider.context';
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4DAA4D,CAAC"}
@@ -1,15 +0,0 @@
1
- import { GetValidationViolationsResponse } from './src/service-plugins-types.js';
2
- import { GetValidationViolationsEnvelope } from './src/interfaces-ecommerce-v1-validations-provider.public.js';
3
- export * from './src/service-plugins-types';
4
- export { GetValidationViolationsEnvelope };
5
- /**
6
- * This method retrieves validation violations from your app.
7
- *
8
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
9
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
10
- *
11
- * > __Notes:__
12
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
13
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file.
14
- */
15
- export declare function getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
@@ -1,2 +0,0 @@
1
- export * from './src/service-plugins-types';
2
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC"}
@@ -1,5 +0,0 @@
1
- import './interfaces-ecommerce-v1-validations-provider.public.js';
2
- import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
3
- import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-validations-provider.public.js';
4
- export { publicProvideHandlers };
5
- export declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
@@ -1,6 +0,0 @@
1
- import './interfaces-ecommerce-v1-validations-provider.public.js';
2
- import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
3
- import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-validations-provider.public.js';
4
- export { publicProvideHandlers };
5
- export const provideHandlers = createServicePluginModule(publicProvideHandlers);
6
- //# sourceMappingURL=interfaces-ecommerce-v1-validations-provider.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces-ecommerce-v1-validations-provider.context.js","sourceRoot":"","sources":["../../../src/interfaces-ecommerce-v1-validations-provider.context.ts"],"names":[],"mappings":"AAAA,OAAO,0DAA0D,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AAEpH,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,CAAC,MAAM,eAAe,GAExB,yBAAyB,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { ServicePluginDefinition } from '@wix/sdk-types';
2
- import { Context, GetValidationViolationsRequest, GetValidationViolationsResponse } from './service-plugins-types.js';
3
- export interface GetValidationViolationsEnvelope {
4
- request: GetValidationViolationsRequest;
5
- metadata: Context;
6
- }
7
- export declare const provideHandlers: ServicePluginDefinition<{
8
- /**
9
- *
10
- * This method retrieves validation violations from your app.
11
- *
12
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
13
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
14
- *
15
- * > __Notes:__
16
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
17
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
18
- getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
19
- }>;
@@ -1,47 +0,0 @@
1
- import { ServicePluginDefinition } from '@wix/sdk-types';
2
- import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
3
- import { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';
4
- import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
5
- import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
6
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
7
- export const provideHandlers = ServicePluginDefinition('ECOM_VALIDATIONS', [
8
- {
9
- name: 'getValidationViolations',
10
- primaryHttpMappingPath: '/v1/get-violations',
11
- transformations: {
12
- toREST: (payload) => {
13
- const toRestResponse = payload;
14
- return renameKeysFromSDKRequestToRESTRequest(toRestResponse);
15
- },
16
- fromREST: (payload) => {
17
- const fromRestRequest = transformPaths(payload, [
18
- {
19
- transformFn: transformRESTFloatToSDKFloat,
20
- paths: [
21
- {
22
- path: 'request.validationInfo.lineItems.physicalProperties.weight',
23
- },
24
- ],
25
- },
26
- {
27
- transformFn: transformRESTTimestampToSDKTimestamp,
28
- paths: [
29
- {
30
- path: 'request.validationInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',
31
- },
32
- ],
33
- },
34
- {
35
- transformFn: transformRESTAddressToSDKAddress,
36
- paths: [
37
- { path: 'request.validationInfo.billingInfo.address' },
38
- { path: 'request.validationInfo.shippingAddress.address' },
39
- ],
40
- },
41
- ]);
42
- return renameKeysFromRESTResponseToSDKResponse(fromRestRequest);
43
- },
44
- },
45
- },
46
- ]);
47
- //# sourceMappingURL=interfaces-ecommerce-v1-validations-provider.public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces-ecommerce-v1-validations-provider.public.js","sourceRoot":"","sources":["../../../src/interfaces-ecommerce-v1-validations-provider.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAMzD,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AACtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAOjD,MAAM,CAAC,MAAM,eAAe,GAAG,uBAAuB,CAcnD,kBAAkB,EAAE;IACrB;QACE,IAAI,EAAE,yBAAyB;QAC/B,sBAAsB,EAAE,oBAAoB;QAC5C,eAAe,EAAE;YACf,MAAM,EAAE,CAAC,OAAY,EAAE,EAAE;gBACvB,MAAM,cAAc,GAAG,OAAO,CAAC;gBAE/B,OAAO,qCAAqC,CAAC,cAAc,CAAC,CAAC;YAC/D,CAAC;YACD,QAAQ,EAAE,CAAC,OAAY,EAAE,EAAE;gBACzB,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,EAAE;oBAC9C;wBACE,WAAW,EAAE,4BAA4B;wBACzC,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,4DAA4D;6BACnE;yBACF;qBACF;oBACD;wBACE,WAAW,EAAE,oCAAoC;wBACjD,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,wFAAwF;6BAC/F;yBACF;qBACF;oBACD;wBACE,WAAW,EAAE,gCAAgC;wBAC7C,KAAK,EAAE;4BACL,EAAE,IAAI,EAAE,4CAA4C,EAAE;4BACtD,EAAE,IAAI,EAAE,gDAAgD,EAAE;yBAC3D;qBACF;iBACF,CAAC,CAAC;gBAEH,OAAO,uCAAuC,CAAC,eAAe,CAAC,CAAC;YAClE,CAAC;SACF;KACF;CACF,CAAC,CAAC"}
@@ -1,118 +0,0 @@
1
- export var Source;
2
- (function (Source) {
3
- /** Context cannot be recognized */
4
- Source["OTHER"] = "OTHER";
5
- /** Called from Ecom's Cart service */
6
- Source["CART"] = "CART";
7
- /** Called from Ecom's Checkout service */
8
- Source["CHECKOUT"] = "CHECKOUT";
9
- })(Source || (Source = {}));
10
- export var CheckoutStage;
11
- (function (CheckoutStage) {
12
- /** Not implemented. */
13
- CheckoutStage["UNKNOWN_CHECKOUT_STAGE"] = "UNKNOWN_CHECKOUT_STAGE";
14
- /** Used during the initialization of the checkout (Create Checkout). */
15
- CheckoutStage["INITIALIZATION"] = "INITIALIZATION";
16
- /** Used during the checkout process, such as updating or retrieving the checkout. */
17
- CheckoutStage["IN_PROGRESS"] = "IN_PROGRESS";
18
- /** Used during the creation of an order from the checkout. */
19
- CheckoutStage["ORDER_CREATION"] = "ORDER_CREATION";
20
- })(CheckoutStage || (CheckoutStage = {}));
21
- export var ItemTypeItemType;
22
- (function (ItemTypeItemType) {
23
- ItemTypeItemType["UNRECOGNISED"] = "UNRECOGNISED";
24
- ItemTypeItemType["PHYSICAL"] = "PHYSICAL";
25
- ItemTypeItemType["DIGITAL"] = "DIGITAL";
26
- ItemTypeItemType["GIFT_CARD"] = "GIFT_CARD";
27
- ItemTypeItemType["SERVICE"] = "SERVICE";
28
- })(ItemTypeItemType || (ItemTypeItemType = {}));
29
- /** Frequency unit of recurring payment */
30
- export var SubscriptionFrequency;
31
- (function (SubscriptionFrequency) {
32
- SubscriptionFrequency["UNDEFINED"] = "UNDEFINED";
33
- SubscriptionFrequency["DAY"] = "DAY";
34
- SubscriptionFrequency["WEEK"] = "WEEK";
35
- SubscriptionFrequency["MONTH"] = "MONTH";
36
- SubscriptionFrequency["YEAR"] = "YEAR";
37
- })(SubscriptionFrequency || (SubscriptionFrequency = {}));
38
- /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
39
- export var JurisdictionType;
40
- (function (JurisdictionType) {
41
- /** Undefined jurisdiction type. */
42
- JurisdictionType["UNDEFINED"] = "UNDEFINED";
43
- /** Country jurisdiction. */
44
- JurisdictionType["COUNTRY"] = "COUNTRY";
45
- /** State jurisdiction. */
46
- JurisdictionType["STATE"] = "STATE";
47
- /** County jurisdiction. */
48
- JurisdictionType["COUNTY"] = "COUNTY";
49
- /** City jurisdiction. */
50
- JurisdictionType["CITY"] = "CITY";
51
- /** Special jurisdiction. */
52
- JurisdictionType["SPECIAL"] = "SPECIAL";
53
- })(JurisdictionType || (JurisdictionType = {}));
54
- export var WeightUnit;
55
- (function (WeightUnit) {
56
- /** Weight unit can't be classified due to an error. */
57
- WeightUnit["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
58
- /** Kilograms. */
59
- WeightUnit["KG"] = "KG";
60
- /** Pounds. */
61
- WeightUnit["LB"] = "LB";
62
- })(WeightUnit || (WeightUnit = {}));
63
- /** tax info types */
64
- export var VatType;
65
- (function (VatType) {
66
- VatType["UNSPECIFIED"] = "UNSPECIFIED";
67
- /** CPF - for individual tax payers. */
68
- VatType["CPF"] = "CPF";
69
- /** CNPJ - for corporations */
70
- VatType["CNPJ"] = "CNPJ";
71
- })(VatType || (VatType = {}));
72
- export var DiscountType;
73
- (function (DiscountType) {
74
- /** Global discount. */
75
- DiscountType["GLOBAL"] = "GLOBAL";
76
- /** Discount for specific items. */
77
- DiscountType["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
78
- /** Shipping discount. */
79
- DiscountType["SHIPPING"] = "SHIPPING";
80
- })(DiscountType || (DiscountType = {}));
81
- export var Severity;
82
- (function (Severity) {
83
- /** The user is allowed to move forward in the flow. */
84
- Severity["WARNING"] = "WARNING";
85
- /**
86
- * The user is blocked from moving forward in the flow.
87
- * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.
88
- */
89
- Severity["ERROR"] = "ERROR";
90
- })(Severity || (Severity = {}));
91
- /** Available locations on the webpage */
92
- export var NameInOther;
93
- (function (NameInOther) {
94
- /** Default location, in case no specific location is specified. */
95
- NameInOther["OTHER_DEFAULT"] = "OTHER_DEFAULT";
96
- })(NameInOther || (NameInOther = {}));
97
- /** Available locations on the line item */
98
- export var NameInLineItem;
99
- (function (NameInLineItem) {
100
- /** Default location, in case no specific location is specified. */
101
- NameInLineItem["LINE_ITEM_DEFAULT"] = "LINE_ITEM_DEFAULT";
102
- })(NameInLineItem || (NameInLineItem = {}));
103
- export var SuggestedFix;
104
- (function (SuggestedFix) {
105
- /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */
106
- SuggestedFix["UNKNOWN_SUGGESTED_FIX"] = "UNKNOWN_SUGGESTED_FIX";
107
- /** The line item should be removed from the cart or checkout to resolve the violation. */
108
- SuggestedFix["REMOVE_LINE_ITEM"] = "REMOVE_LINE_ITEM";
109
- })(SuggestedFix || (SuggestedFix = {}));
110
- export var IdentityType;
111
- (function (IdentityType) {
112
- IdentityType["UNKNOWN"] = "UNKNOWN";
113
- IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
114
- IdentityType["MEMBER"] = "MEMBER";
115
- IdentityType["WIX_USER"] = "WIX_USER";
116
- IdentityType["APP"] = "APP";
117
- })(IdentityType || (IdentityType = {}));
118
- //# sourceMappingURL=service-plugins-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-plugins-types.js","sourceRoot":"","sources":["../../../src/service-plugins-types.ts"],"names":[],"mappings":"AAmBA,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,mCAAmC;IACnC,yBAAe,CAAA;IACf,sCAAsC;IACtC,uBAAa,CAAA;IACb,0CAA0C;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src/interfaces-ecommerce-v1-validations-provider.context';
@@ -1,19 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/service-plugins-types"), exports);
18
- __exportStar(require("./src/interfaces-ecommerce-v1-validations-provider.context"), exports);
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6FAA2E"}
@@ -1,15 +0,0 @@
1
- import { GetValidationViolationsResponse } from './src/service-plugins-types.js';
2
- import { GetValidationViolationsEnvelope } from './src/interfaces-ecommerce-v1-validations-provider.public.js';
3
- export * from './src/service-plugins-types';
4
- export { GetValidationViolationsEnvelope };
5
- /**
6
- * This method retrieves validation violations from your app.
7
- *
8
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
9
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
10
- *
11
- * > __Notes:__
12
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
13
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file.
14
- */
15
- export declare function getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
@@ -1,18 +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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./src/service-plugins-types"), exports);
18
- //# sourceMappingURL=index.typings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,8DAA4C"}
@@ -1,5 +0,0 @@
1
- import './interfaces-ecommerce-v1-validations-provider.public.js';
2
- import { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';
3
- import { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-validations-provider.public.js';
4
- export { publicProvideHandlers };
5
- export declare const provideHandlers: ReturnType<typeof createServicePluginModule<typeof publicProvideHandlers>>;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provideHandlers = exports.publicProvideHandlers = void 0;
4
- require("./interfaces-ecommerce-v1-validations-provider.public.js");
5
- const service_plugin_modules_1 = require("@wix/sdk-runtime/service-plugin-modules");
6
- const interfaces_ecommerce_v1_validations_provider_public_js_1 = require("./interfaces-ecommerce-v1-validations-provider.public.js");
7
- Object.defineProperty(exports, "publicProvideHandlers", { enumerable: true, get: function () { return interfaces_ecommerce_v1_validations_provider_public_js_1.provideHandlers; } });
8
- exports.provideHandlers = (0, service_plugin_modules_1.createServicePluginModule)(interfaces_ecommerce_v1_validations_provider_public_js_1.provideHandlers);
9
- //# sourceMappingURL=interfaces-ecommerce-v1-validations-provider.context.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces-ecommerce-v1-validations-provider.context.js","sourceRoot":"","sources":["../../../../src/interfaces-ecommerce-v1-validations-provider.context.ts"],"names":[],"mappings":";;;AAAA,oEAAkE;AAClE,oFAAoF;AACpF,qIAAoH;AAE3G,sGAFmB,wEAAqB,OAEnB;AAEjB,QAAA,eAAe,GAExB,IAAA,kDAAyB,EAAC,wEAAqB,CAAC,CAAC"}
@@ -1,19 +0,0 @@
1
- import { ServicePluginDefinition } from '@wix/sdk-types';
2
- import { Context, GetValidationViolationsRequest, GetValidationViolationsResponse } from './service-plugins-types.js';
3
- export interface GetValidationViolationsEnvelope {
4
- request: GetValidationViolationsRequest;
5
- metadata: Context;
6
- }
7
- export declare const provideHandlers: ServicePluginDefinition<{
8
- /**
9
- *
10
- * This method retrieves validation violations from your app.
11
- *
12
- * Wix calls this method when certain actions are performed on a visitor's cart and checkout. For example, when an item is added to the cart, or when a coupon is added to a checkout.
13
- * This method validates a visitor's cart and checkout, and returns any validation violations (using the structure provided by Wix eCommerce). Site visitors can see the validation violations in their cart and checkout pages. If there aren't any validation violations, the method returns an object containing an empty list.
14
- *
15
- * > __Notes:__
16
- * > + Do not call the Estimate Cart Totals, Estimate Current Cart Totals or Get Checkout methods from your implementation code for Get Validation Violations. Doing so will result in an error.
17
- * > + By default, this method only retrieves validation violations from a visitor's checkout. If you want to also retrieve validation violations from a visitor's cart, set the `validateInCart` parameter to `true` in the Ecom Validations Integration's config file. */
18
- getValidationViolations(payload: GetValidationViolationsEnvelope): GetValidationViolationsResponse | Promise<GetValidationViolationsResponse>;
19
- }>;