@cimplify/sdk 0.38.5 → 0.39.1
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/dist/{chunk-JTU5P6GM.mjs → chunk-3WD6U5RD.mjs} +1 -83
- package/dist/chunk-BGCEKFLA.js +89 -0
- package/dist/chunk-IRJFDKFV.mjs +83 -0
- package/dist/{chunk-5VHKZTFJ.js → chunk-OMAP327U.js} +0 -87
- package/dist/index.js +34 -33
- package/dist/index.mjs +2 -1
- package/dist/react.js +47 -46
- package/dist/react.mjs +3 -2
- package/dist/server.d.mts +97 -0
- package/dist/server.d.ts +97 -0
- package/dist/server.js +107 -0
- package/dist/server.mjs +92 -0
- package/dist/styles.css +1 -1
- package/package.json +7 -1
- package/templates/storefront/app/about/page.tsx +61 -0
- package/templates/storefront/app/categories/[slug]/listing-client.tsx +19 -0
- package/templates/storefront/app/categories/[slug]/page.tsx +94 -57
- package/templates/storefront/app/collections/[slug]/listing-client.tsx +20 -0
- package/templates/storefront/app/collections/[slug]/page.tsx +94 -57
- package/templates/storefront/app/faq/page.tsx +122 -0
- package/templates/storefront/app/page.tsx +77 -45
- package/templates/storefront/app/privacy/page.tsx +88 -0
- package/templates/storefront/app/shop/page.tsx +25 -41
- package/templates/storefront/app/shop/shop-client.tsx +27 -0
- package/templates/storefront/app/terms/page.tsx +102 -0
- package/templates/storefront/components/cart-pill.tsx +32 -0
- package/templates/storefront/components/footer.tsx +186 -15
- package/templates/storefront/components/header.tsx +32 -22
- package/templates/storefront/components/nav-link.tsx +20 -0
- package/templates/storefront/components/store-product-card.tsx +9 -25
- package/templates/storefront/lib/server-client.ts +27 -0
- package/templates/storefront/next.config.ts +4 -0
|
@@ -939,86 +939,4 @@ function createCimplifyClient(config = {}) {
|
|
|
939
939
|
return new CimplifyClient(config);
|
|
940
940
|
}
|
|
941
941
|
|
|
942
|
-
|
|
943
|
-
function stripProductPrefix(variantName, productName) {
|
|
944
|
-
if (!variantName || !productName) return variantName || productName;
|
|
945
|
-
const lower = variantName.toLowerCase().trim();
|
|
946
|
-
if (lower === "default" || lower === "standard") return productName;
|
|
947
|
-
if (lower.endsWith("-default") || lower.endsWith("-standard")) return productName;
|
|
948
|
-
if (variantName.startsWith(productName)) {
|
|
949
|
-
const rest = variantName.slice(productName.length);
|
|
950
|
-
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
951
|
-
if (match && match[1].length > 0) return match[1];
|
|
952
|
-
}
|
|
953
|
-
const lowerProduct = productName.toLowerCase().trim();
|
|
954
|
-
if (lower.startsWith(lowerProduct)) {
|
|
955
|
-
const rest = variantName.slice(productName.length);
|
|
956
|
-
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
957
|
-
if (match && match[1].length > 0) return match[1];
|
|
958
|
-
}
|
|
959
|
-
const lastDash = variantName.lastIndexOf("-");
|
|
960
|
-
if (lastDash > 0 && lastDash < variantName.length - 1) {
|
|
961
|
-
const prefix = variantName.slice(0, lastDash).trim();
|
|
962
|
-
const suffix = variantName.slice(lastDash + 1).trim();
|
|
963
|
-
if (suffix.length > 0 && prefix.length > suffix.length * 2) {
|
|
964
|
-
return suffix;
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
return variantName;
|
|
968
|
-
}
|
|
969
|
-
function getVariantDisplayName(variant, productName) {
|
|
970
|
-
if (variant.display_attributes?.length) {
|
|
971
|
-
return variant.display_attributes.map((a) => a.value_name).join(" / ");
|
|
972
|
-
}
|
|
973
|
-
if (variant.name) {
|
|
974
|
-
return productName ? stripProductPrefix(variant.name, productName) : variant.name;
|
|
975
|
-
}
|
|
976
|
-
return productName || (variant.is_default ? "Default" : "Option");
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
// src/types/product.ts
|
|
980
|
-
var PRODUCT_TYPE = {
|
|
981
|
-
Product: "product",
|
|
982
|
-
Service: "service",
|
|
983
|
-
Digital: "digital",
|
|
984
|
-
Bundle: "bundle",
|
|
985
|
-
Composite: "composite"
|
|
986
|
-
};
|
|
987
|
-
var RENDER_HINT = {
|
|
988
|
-
Food: "food",
|
|
989
|
-
Physical: "physical",
|
|
990
|
-
General: "general"
|
|
991
|
-
};
|
|
992
|
-
var DURATION_UNIT = {
|
|
993
|
-
Minutes: "minutes",
|
|
994
|
-
Hours: "hours",
|
|
995
|
-
Days: "days",
|
|
996
|
-
Nights: "nights",
|
|
997
|
-
Weeks: "weeks",
|
|
998
|
-
Months: "months",
|
|
999
|
-
Years: "years"
|
|
1000
|
-
};
|
|
1001
|
-
var INPUT_FIELD_TYPE = {
|
|
1002
|
-
Text: "text",
|
|
1003
|
-
Textarea: "textarea",
|
|
1004
|
-
Number: "number",
|
|
1005
|
-
Select: "select",
|
|
1006
|
-
Radio: "radio",
|
|
1007
|
-
Checkbox: "checkbox",
|
|
1008
|
-
Color: "color",
|
|
1009
|
-
Date: "date",
|
|
1010
|
-
File: "file",
|
|
1011
|
-
Image: "image",
|
|
1012
|
-
Url: "url",
|
|
1013
|
-
Address: "address",
|
|
1014
|
-
Phone: "phone",
|
|
1015
|
-
Email: "email",
|
|
1016
|
-
DateTime: "date_time",
|
|
1017
|
-
Time: "time",
|
|
1018
|
-
Signature: "signature",
|
|
1019
|
-
MultiSelect: "multi_select",
|
|
1020
|
-
DateRange: "date_range",
|
|
1021
|
-
Location: "location"
|
|
1022
|
-
};
|
|
1023
|
-
|
|
1024
|
-
export { ActivityService, CimplifyClient, DURATION_UNIT, DeliveryService, INPUT_FIELD_TYPE, PRODUCT_TYPE, PlacesService, RENDER_HINT, SubscriptionService, SupportService, UploadService, createCimplifyClient, getVariantDisplayName };
|
|
942
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/utils/variant.ts
|
|
4
|
+
function stripProductPrefix(variantName, productName) {
|
|
5
|
+
if (!variantName || !productName) return variantName || productName;
|
|
6
|
+
const lower = variantName.toLowerCase().trim();
|
|
7
|
+
if (lower === "default" || lower === "standard") return productName;
|
|
8
|
+
if (lower.endsWith("-default") || lower.endsWith("-standard")) return productName;
|
|
9
|
+
if (variantName.startsWith(productName)) {
|
|
10
|
+
const rest = variantName.slice(productName.length);
|
|
11
|
+
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
12
|
+
if (match && match[1].length > 0) return match[1];
|
|
13
|
+
}
|
|
14
|
+
const lowerProduct = productName.toLowerCase().trim();
|
|
15
|
+
if (lower.startsWith(lowerProduct)) {
|
|
16
|
+
const rest = variantName.slice(productName.length);
|
|
17
|
+
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
18
|
+
if (match && match[1].length > 0) return match[1];
|
|
19
|
+
}
|
|
20
|
+
const lastDash = variantName.lastIndexOf("-");
|
|
21
|
+
if (lastDash > 0 && lastDash < variantName.length - 1) {
|
|
22
|
+
const prefix = variantName.slice(0, lastDash).trim();
|
|
23
|
+
const suffix = variantName.slice(lastDash + 1).trim();
|
|
24
|
+
if (suffix.length > 0 && prefix.length > suffix.length * 2) {
|
|
25
|
+
return suffix;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return variantName;
|
|
29
|
+
}
|
|
30
|
+
function getVariantDisplayName(variant, productName) {
|
|
31
|
+
if (variant.display_attributes?.length) {
|
|
32
|
+
return variant.display_attributes.map((a) => a.value_name).join(" / ");
|
|
33
|
+
}
|
|
34
|
+
if (variant.name) {
|
|
35
|
+
return productName ? stripProductPrefix(variant.name, productName) : variant.name;
|
|
36
|
+
}
|
|
37
|
+
return productName || (variant.is_default ? "Default" : "Option");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// src/types/product.ts
|
|
41
|
+
var PRODUCT_TYPE = {
|
|
42
|
+
Product: "product",
|
|
43
|
+
Service: "service",
|
|
44
|
+
Digital: "digital",
|
|
45
|
+
Bundle: "bundle",
|
|
46
|
+
Composite: "composite"
|
|
47
|
+
};
|
|
48
|
+
var RENDER_HINT = {
|
|
49
|
+
Food: "food",
|
|
50
|
+
Physical: "physical",
|
|
51
|
+
General: "general"
|
|
52
|
+
};
|
|
53
|
+
var DURATION_UNIT = {
|
|
54
|
+
Minutes: "minutes",
|
|
55
|
+
Hours: "hours",
|
|
56
|
+
Days: "days",
|
|
57
|
+
Nights: "nights",
|
|
58
|
+
Weeks: "weeks",
|
|
59
|
+
Months: "months",
|
|
60
|
+
Years: "years"
|
|
61
|
+
};
|
|
62
|
+
var INPUT_FIELD_TYPE = {
|
|
63
|
+
Text: "text",
|
|
64
|
+
Textarea: "textarea",
|
|
65
|
+
Number: "number",
|
|
66
|
+
Select: "select",
|
|
67
|
+
Radio: "radio",
|
|
68
|
+
Checkbox: "checkbox",
|
|
69
|
+
Color: "color",
|
|
70
|
+
Date: "date",
|
|
71
|
+
File: "file",
|
|
72
|
+
Image: "image",
|
|
73
|
+
Url: "url",
|
|
74
|
+
Address: "address",
|
|
75
|
+
Phone: "phone",
|
|
76
|
+
Email: "email",
|
|
77
|
+
DateTime: "date_time",
|
|
78
|
+
Time: "time",
|
|
79
|
+
Signature: "signature",
|
|
80
|
+
MultiSelect: "multi_select",
|
|
81
|
+
DateRange: "date_range",
|
|
82
|
+
Location: "location"
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
exports.DURATION_UNIT = DURATION_UNIT;
|
|
86
|
+
exports.INPUT_FIELD_TYPE = INPUT_FIELD_TYPE;
|
|
87
|
+
exports.PRODUCT_TYPE = PRODUCT_TYPE;
|
|
88
|
+
exports.RENDER_HINT = RENDER_HINT;
|
|
89
|
+
exports.getVariantDisplayName = getVariantDisplayName;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// src/utils/variant.ts
|
|
2
|
+
function stripProductPrefix(variantName, productName) {
|
|
3
|
+
if (!variantName || !productName) return variantName || productName;
|
|
4
|
+
const lower = variantName.toLowerCase().trim();
|
|
5
|
+
if (lower === "default" || lower === "standard") return productName;
|
|
6
|
+
if (lower.endsWith("-default") || lower.endsWith("-standard")) return productName;
|
|
7
|
+
if (variantName.startsWith(productName)) {
|
|
8
|
+
const rest = variantName.slice(productName.length);
|
|
9
|
+
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
10
|
+
if (match && match[1].length > 0) return match[1];
|
|
11
|
+
}
|
|
12
|
+
const lowerProduct = productName.toLowerCase().trim();
|
|
13
|
+
if (lower.startsWith(lowerProduct)) {
|
|
14
|
+
const rest = variantName.slice(productName.length);
|
|
15
|
+
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
16
|
+
if (match && match[1].length > 0) return match[1];
|
|
17
|
+
}
|
|
18
|
+
const lastDash = variantName.lastIndexOf("-");
|
|
19
|
+
if (lastDash > 0 && lastDash < variantName.length - 1) {
|
|
20
|
+
const prefix = variantName.slice(0, lastDash).trim();
|
|
21
|
+
const suffix = variantName.slice(lastDash + 1).trim();
|
|
22
|
+
if (suffix.length > 0 && prefix.length > suffix.length * 2) {
|
|
23
|
+
return suffix;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return variantName;
|
|
27
|
+
}
|
|
28
|
+
function getVariantDisplayName(variant, productName) {
|
|
29
|
+
if (variant.display_attributes?.length) {
|
|
30
|
+
return variant.display_attributes.map((a) => a.value_name).join(" / ");
|
|
31
|
+
}
|
|
32
|
+
if (variant.name) {
|
|
33
|
+
return productName ? stripProductPrefix(variant.name, productName) : variant.name;
|
|
34
|
+
}
|
|
35
|
+
return productName || (variant.is_default ? "Default" : "Option");
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/types/product.ts
|
|
39
|
+
var PRODUCT_TYPE = {
|
|
40
|
+
Product: "product",
|
|
41
|
+
Service: "service",
|
|
42
|
+
Digital: "digital",
|
|
43
|
+
Bundle: "bundle",
|
|
44
|
+
Composite: "composite"
|
|
45
|
+
};
|
|
46
|
+
var RENDER_HINT = {
|
|
47
|
+
Food: "food",
|
|
48
|
+
Physical: "physical",
|
|
49
|
+
General: "general"
|
|
50
|
+
};
|
|
51
|
+
var DURATION_UNIT = {
|
|
52
|
+
Minutes: "minutes",
|
|
53
|
+
Hours: "hours",
|
|
54
|
+
Days: "days",
|
|
55
|
+
Nights: "nights",
|
|
56
|
+
Weeks: "weeks",
|
|
57
|
+
Months: "months",
|
|
58
|
+
Years: "years"
|
|
59
|
+
};
|
|
60
|
+
var INPUT_FIELD_TYPE = {
|
|
61
|
+
Text: "text",
|
|
62
|
+
Textarea: "textarea",
|
|
63
|
+
Number: "number",
|
|
64
|
+
Select: "select",
|
|
65
|
+
Radio: "radio",
|
|
66
|
+
Checkbox: "checkbox",
|
|
67
|
+
Color: "color",
|
|
68
|
+
Date: "date",
|
|
69
|
+
File: "file",
|
|
70
|
+
Image: "image",
|
|
71
|
+
Url: "url",
|
|
72
|
+
Address: "address",
|
|
73
|
+
Phone: "phone",
|
|
74
|
+
Email: "email",
|
|
75
|
+
DateTime: "date_time",
|
|
76
|
+
Time: "time",
|
|
77
|
+
Signature: "signature",
|
|
78
|
+
MultiSelect: "multi_select",
|
|
79
|
+
DateRange: "date_range",
|
|
80
|
+
Location: "location"
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export { DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, getVariantDisplayName };
|
|
@@ -941,98 +941,11 @@ function createCimplifyClient(config = {}) {
|
|
|
941
941
|
return new CimplifyClient(config);
|
|
942
942
|
}
|
|
943
943
|
|
|
944
|
-
// src/utils/variant.ts
|
|
945
|
-
function stripProductPrefix(variantName, productName) {
|
|
946
|
-
if (!variantName || !productName) return variantName || productName;
|
|
947
|
-
const lower = variantName.toLowerCase().trim();
|
|
948
|
-
if (lower === "default" || lower === "standard") return productName;
|
|
949
|
-
if (lower.endsWith("-default") || lower.endsWith("-standard")) return productName;
|
|
950
|
-
if (variantName.startsWith(productName)) {
|
|
951
|
-
const rest = variantName.slice(productName.length);
|
|
952
|
-
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
953
|
-
if (match && match[1].length > 0) return match[1];
|
|
954
|
-
}
|
|
955
|
-
const lowerProduct = productName.toLowerCase().trim();
|
|
956
|
-
if (lower.startsWith(lowerProduct)) {
|
|
957
|
-
const rest = variantName.slice(productName.length);
|
|
958
|
-
const match = rest.match(/^\s*[-–—]\s*(.*)/);
|
|
959
|
-
if (match && match[1].length > 0) return match[1];
|
|
960
|
-
}
|
|
961
|
-
const lastDash = variantName.lastIndexOf("-");
|
|
962
|
-
if (lastDash > 0 && lastDash < variantName.length - 1) {
|
|
963
|
-
const prefix = variantName.slice(0, lastDash).trim();
|
|
964
|
-
const suffix = variantName.slice(lastDash + 1).trim();
|
|
965
|
-
if (suffix.length > 0 && prefix.length > suffix.length * 2) {
|
|
966
|
-
return suffix;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
return variantName;
|
|
970
|
-
}
|
|
971
|
-
function getVariantDisplayName(variant, productName) {
|
|
972
|
-
if (variant.display_attributes?.length) {
|
|
973
|
-
return variant.display_attributes.map((a) => a.value_name).join(" / ");
|
|
974
|
-
}
|
|
975
|
-
if (variant.name) {
|
|
976
|
-
return productName ? stripProductPrefix(variant.name, productName) : variant.name;
|
|
977
|
-
}
|
|
978
|
-
return productName || (variant.is_default ? "Default" : "Option");
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
// src/types/product.ts
|
|
982
|
-
var PRODUCT_TYPE = {
|
|
983
|
-
Product: "product",
|
|
984
|
-
Service: "service",
|
|
985
|
-
Digital: "digital",
|
|
986
|
-
Bundle: "bundle",
|
|
987
|
-
Composite: "composite"
|
|
988
|
-
};
|
|
989
|
-
var RENDER_HINT = {
|
|
990
|
-
Food: "food",
|
|
991
|
-
Physical: "physical",
|
|
992
|
-
General: "general"
|
|
993
|
-
};
|
|
994
|
-
var DURATION_UNIT = {
|
|
995
|
-
Minutes: "minutes",
|
|
996
|
-
Hours: "hours",
|
|
997
|
-
Days: "days",
|
|
998
|
-
Nights: "nights",
|
|
999
|
-
Weeks: "weeks",
|
|
1000
|
-
Months: "months",
|
|
1001
|
-
Years: "years"
|
|
1002
|
-
};
|
|
1003
|
-
var INPUT_FIELD_TYPE = {
|
|
1004
|
-
Text: "text",
|
|
1005
|
-
Textarea: "textarea",
|
|
1006
|
-
Number: "number",
|
|
1007
|
-
Select: "select",
|
|
1008
|
-
Radio: "radio",
|
|
1009
|
-
Checkbox: "checkbox",
|
|
1010
|
-
Color: "color",
|
|
1011
|
-
Date: "date",
|
|
1012
|
-
File: "file",
|
|
1013
|
-
Image: "image",
|
|
1014
|
-
Url: "url",
|
|
1015
|
-
Address: "address",
|
|
1016
|
-
Phone: "phone",
|
|
1017
|
-
Email: "email",
|
|
1018
|
-
DateTime: "date_time",
|
|
1019
|
-
Time: "time",
|
|
1020
|
-
Signature: "signature",
|
|
1021
|
-
MultiSelect: "multi_select",
|
|
1022
|
-
DateRange: "date_range",
|
|
1023
|
-
Location: "location"
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
944
|
exports.ActivityService = ActivityService;
|
|
1027
945
|
exports.CimplifyClient = CimplifyClient;
|
|
1028
|
-
exports.DURATION_UNIT = DURATION_UNIT;
|
|
1029
946
|
exports.DeliveryService = DeliveryService;
|
|
1030
|
-
exports.INPUT_FIELD_TYPE = INPUT_FIELD_TYPE;
|
|
1031
|
-
exports.PRODUCT_TYPE = PRODUCT_TYPE;
|
|
1032
947
|
exports.PlacesService = PlacesService;
|
|
1033
|
-
exports.RENDER_HINT = RENDER_HINT;
|
|
1034
948
|
exports.SubscriptionService = SubscriptionService;
|
|
1035
949
|
exports.SupportService = SupportService;
|
|
1036
950
|
exports.UploadService = UploadService;
|
|
1037
951
|
exports.createCimplifyClient = createCimplifyClient;
|
|
1038
|
-
exports.getVariantDisplayName = getVariantDisplayName;
|
package/dist/index.js
CHANGED
|
@@ -1,75 +1,76 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkBGCEKFLA_js = require('./chunk-BGCEKFLA.js');
|
|
4
4
|
var chunkL5GKVQVJ_js = require('./chunk-L5GKVQVJ.js');
|
|
5
|
+
var chunkOMAP327U_js = require('./chunk-OMAP327U.js');
|
|
5
6
|
var chunkBAWKQRIB_js = require('./chunk-BAWKQRIB.js');
|
|
6
7
|
var chunkV2O5AO7I_js = require('./chunk-V2O5AO7I.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
Object.defineProperty(exports, "
|
|
11
|
+
Object.defineProperty(exports, "DURATION_UNIT", {
|
|
11
12
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkBGCEKFLA_js.DURATION_UNIT; }
|
|
13
14
|
});
|
|
14
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "INPUT_FIELD_TYPE", {
|
|
15
16
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkBGCEKFLA_js.INPUT_FIELD_TYPE; }
|
|
17
18
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "PRODUCT_TYPE", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkBGCEKFLA_js.PRODUCT_TYPE; }
|
|
21
22
|
});
|
|
22
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "RENDER_HINT", {
|
|
23
24
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkBGCEKFLA_js.RENDER_HINT; }
|
|
25
26
|
});
|
|
26
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "getVariantDisplayName", {
|
|
27
28
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkBGCEKFLA_js.getVariantDisplayName; }
|
|
29
30
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "isValidPhoneForContext", {
|
|
31
32
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkL5GKVQVJ_js.isValidPhoneForContext; }
|
|
33
34
|
});
|
|
34
|
-
Object.defineProperty(exports, "
|
|
35
|
+
Object.defineProperty(exports, "normalizePhoneToE164", {
|
|
35
36
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkL5GKVQVJ_js.normalizePhoneToE164; }
|
|
37
38
|
});
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "resolvePhoneCountryCode", {
|
|
39
40
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkL5GKVQVJ_js.resolvePhoneCountryCode; }
|
|
41
42
|
});
|
|
42
|
-
Object.defineProperty(exports, "
|
|
43
|
+
Object.defineProperty(exports, "ActivityService", {
|
|
43
44
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkOMAP327U_js.ActivityService; }
|
|
45
46
|
});
|
|
46
|
-
Object.defineProperty(exports, "
|
|
47
|
+
Object.defineProperty(exports, "CimplifyClient", {
|
|
47
48
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkOMAP327U_js.CimplifyClient; }
|
|
49
50
|
});
|
|
50
|
-
Object.defineProperty(exports, "
|
|
51
|
+
Object.defineProperty(exports, "DeliveryService", {
|
|
51
52
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkOMAP327U_js.DeliveryService; }
|
|
53
54
|
});
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
+
Object.defineProperty(exports, "PlacesService", {
|
|
55
56
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkOMAP327U_js.PlacesService; }
|
|
57
58
|
});
|
|
58
|
-
Object.defineProperty(exports, "
|
|
59
|
+
Object.defineProperty(exports, "SubscriptionService", {
|
|
59
60
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkOMAP327U_js.SubscriptionService; }
|
|
61
62
|
});
|
|
62
|
-
Object.defineProperty(exports, "
|
|
63
|
+
Object.defineProperty(exports, "SupportService", {
|
|
63
64
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkOMAP327U_js.SupportService; }
|
|
65
66
|
});
|
|
66
|
-
Object.defineProperty(exports, "
|
|
67
|
+
Object.defineProperty(exports, "UploadService", {
|
|
67
68
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkOMAP327U_js.UploadService; }
|
|
69
70
|
});
|
|
70
|
-
Object.defineProperty(exports, "
|
|
71
|
+
Object.defineProperty(exports, "createCimplifyClient", {
|
|
71
72
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkOMAP327U_js.createCimplifyClient; }
|
|
73
74
|
});
|
|
74
75
|
Object.defineProperty(exports, "AUTHORIZATION_TYPE", {
|
|
75
76
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { DURATION_UNIT, INPUT_FIELD_TYPE, PRODUCT_TYPE, RENDER_HINT, getVariantDisplayName } from './chunk-IRJFDKFV.mjs';
|
|
2
2
|
export { isValidPhoneForContext, normalizePhoneToE164, resolvePhoneCountryCode } from './chunk-YOIVZ6OA.mjs';
|
|
3
|
+
export { ActivityService, CimplifyClient, DeliveryService, PlacesService, SubscriptionService, SupportService, UploadService, createCimplifyClient } from './chunk-3WD6U5RD.mjs';
|
|
3
4
|
export { AUTHORIZATION_TYPE, AUTH_MUTATION, AuthService, BusinessService, CHECKOUT_MODE, CHECKOUT_MUTATION, CHECKOUT_STEP, CONTACT_TYPE, CartOperations, CatalogueQueries, CheckoutService as CheckoutOperations, CheckoutService, CimplifyElement, CimplifyElements, DEFAULT_COUNTRY, DEFAULT_CURRENCY, DEVICE_TYPE, ELEMENT_TYPES, EVENT_TYPES, FxService, InventoryService, LINK_MUTATION, LINK_QUERY, LinkService, LiteService, MESSAGE_TYPES, MOBILE_MONEY_PROVIDER, ORDER_MUTATION, ORDER_TYPE, OrderQueries, PAYMENT_METHOD, PAYMENT_MUTATION, PAYMENT_STATE, PICKUP_TIME_TYPE, SchedulingService, combine, combineObject, createElements, err, flatMap, fromPromise, generateIdempotencyKey, getOrElse, isErr, isOk, mapError, mapResult, ok, toNullable, tryCatch, unwrap } from './chunk-EZK2FXTM.mjs';
|
|
4
5
|
export { CURRENCY_SYMBOLS, CimplifyError, ERROR_HINTS, ErrorCode, IdempotencyMismatchError, MOBILE_MONEY_PROVIDERS, ZERO, categorizePaymentError, currencyCode, detectMobileMoneyProvider, enrichError, formatMoney, formatNumberCompact, formatPrice, formatPriceAdjustment, formatPriceCompact, formatPriceRange, formatPriceWithTax, formatProductPrice, getBasePrice, getCurrencySymbol, getDiscountPercentage, getDisplayPrice, getErrorHint, getMarkupPercentage, getPriceRange, getProductCurrency, getTaxAmount, getUnitPriceAtQuantity, hasTaxInfo, isCimplifyError, isIdempotencyMismatchError, isOnSale, isPaymentStatusFailure, isPaymentStatusRequiresAction, isPaymentStatusSuccess, isRetryableError, isSupportedCurrency, isTaxInclusive, money, moneyFromNumber, normalizePaymentResponse, normalizeStatusResponse, parsePrice } from './chunk-6TVQQYQ5.mjs';
|