@webbycrown/webbycommerce 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/_chunks/{Settings-CM-LMCQo.mjs → Settings-BWuSG1Bc.mjs} +220 -90
- package/dist/_chunks/{Settings-TToktNAy.js → Settings-C3yoIgMy.js} +199 -111
- package/dist/_chunks/{en-BsbZxjAR.mjs → en-7gtFcumM.mjs} +2 -0
- package/dist/_chunks/{en-CwvqDxF2.js → en-DIeqB4AB.js} +2 -0
- package/dist/_chunks/{index-D0Y_VvWO.js → index-CtxKh-aM.js} +3 -3
- package/dist/_chunks/{index-Cgnv1DYN.mjs → index-DIGoLhGE.mjs} +3 -3
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +313 -48
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const reactIntl = require("react-intl");
|
|
6
6
|
const designSystem = require("@strapi/design-system");
|
|
7
|
-
const index = require("./index-
|
|
7
|
+
const index = require("./index-CtxKh-aM.js");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
9
|
require("react-dom/client");
|
|
10
10
|
const ReactDOM = require("react-dom");
|
|
@@ -10310,7 +10310,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
10310
10310
|
var ys = arrObjKeys(obj, inspect2);
|
|
10311
10311
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
10312
10312
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
10313
|
-
var stringTag2 = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
10313
|
+
var stringTag2 = !isPlainObject2 && toStringTag$1 && Object(obj) === obj && toStringTag$1 in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
10314
10314
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
10315
10315
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
10316
10316
|
if (ys.length === 0) {
|
|
@@ -10335,25 +10335,25 @@ function canTrustToString(obj) {
|
|
|
10335
10335
|
return !toStringTag$1 || !(typeof obj === "object" && (toStringTag$1 in obj || typeof obj[toStringTag$1] !== "undefined"));
|
|
10336
10336
|
}
|
|
10337
10337
|
function isArray$4(obj) {
|
|
10338
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
10338
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
10339
10339
|
}
|
|
10340
10340
|
function isDate$2(obj) {
|
|
10341
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
10341
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
10342
10342
|
}
|
|
10343
10343
|
function isRegExp$2(obj) {
|
|
10344
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
10344
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
10345
10345
|
}
|
|
10346
10346
|
function isError(obj) {
|
|
10347
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
10347
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
10348
10348
|
}
|
|
10349
10349
|
function isString$1(obj) {
|
|
10350
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
10350
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
10351
10351
|
}
|
|
10352
10352
|
function isNumber$1(obj) {
|
|
10353
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
10353
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
10354
10354
|
}
|
|
10355
10355
|
function isBoolean$1(obj) {
|
|
10356
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
10356
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
10357
10357
|
}
|
|
10358
10358
|
function isSymbol(obj) {
|
|
10359
10359
|
if (hasShammedSymbols) {
|
|
@@ -10389,7 +10389,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
10389
10389
|
function has$5(obj, key) {
|
|
10390
10390
|
return hasOwn$1.call(obj, key);
|
|
10391
10391
|
}
|
|
10392
|
-
function toStr(obj) {
|
|
10392
|
+
function toStr$1(obj) {
|
|
10393
10393
|
return objectToString.call(obj);
|
|
10394
10394
|
}
|
|
10395
10395
|
function nameOf(f2) {
|
|
@@ -10698,7 +10698,7 @@ var syntax = SyntaxError;
|
|
|
10698
10698
|
var uri = URIError;
|
|
10699
10699
|
var abs$1 = Math.abs;
|
|
10700
10700
|
var floor$1 = Math.floor;
|
|
10701
|
-
var max$
|
|
10701
|
+
var max$2 = Math.max;
|
|
10702
10702
|
var min$1 = Math.min;
|
|
10703
10703
|
var pow$1 = Math.pow;
|
|
10704
10704
|
var round$1 = Math.round;
|
|
@@ -10827,99 +10827,78 @@ function requireObject_getPrototypeOf() {
|
|
|
10827
10827
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
10828
10828
|
return Object_getPrototypeOf;
|
|
10829
10829
|
}
|
|
10830
|
-
var
|
|
10831
|
-
var
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
var
|
|
10836
|
-
var
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
var
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
}
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
|
|
10830
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
10831
|
+
var toStr = Object.prototype.toString;
|
|
10832
|
+
var max$1 = Math.max;
|
|
10833
|
+
var funcType = "[object Function]";
|
|
10834
|
+
var concatty = function concatty2(a2, b2) {
|
|
10835
|
+
var arr = [];
|
|
10836
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
10837
|
+
arr[i2] = a2[i2];
|
|
10838
|
+
}
|
|
10839
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
10840
|
+
arr[j2 + a2.length] = b2[j2];
|
|
10841
|
+
}
|
|
10842
|
+
return arr;
|
|
10843
|
+
};
|
|
10844
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
10845
|
+
var arr = [];
|
|
10846
|
+
for (var i2 = offset, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
10847
|
+
arr[j2] = arrLike[i2];
|
|
10848
|
+
}
|
|
10849
|
+
return arr;
|
|
10850
|
+
};
|
|
10851
|
+
var joiny = function(arr, joiner) {
|
|
10852
|
+
var str = "";
|
|
10853
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
10854
|
+
str += arr[i2];
|
|
10855
|
+
if (i2 + 1 < arr.length) {
|
|
10856
|
+
str += joiner;
|
|
10853
10857
|
}
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10858
|
+
}
|
|
10859
|
+
return str;
|
|
10860
|
+
};
|
|
10861
|
+
var implementation$1 = function bind(that) {
|
|
10862
|
+
var target = this;
|
|
10863
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
10864
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
10865
|
+
}
|
|
10866
|
+
var args = slicy(arguments, 1);
|
|
10867
|
+
var bound;
|
|
10868
|
+
var binder = function() {
|
|
10869
|
+
if (this instanceof bound) {
|
|
10870
|
+
var result = target.apply(
|
|
10871
|
+
this,
|
|
10872
|
+
concatty(args, arguments)
|
|
10873
|
+
);
|
|
10874
|
+
if (Object(result) === result) {
|
|
10875
|
+
return result;
|
|
10862
10876
|
}
|
|
10877
|
+
return this;
|
|
10863
10878
|
}
|
|
10864
|
-
return
|
|
10879
|
+
return target.apply(
|
|
10880
|
+
that,
|
|
10881
|
+
concatty(args, arguments)
|
|
10882
|
+
);
|
|
10865
10883
|
};
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
var
|
|
10874
|
-
if (this instanceof bound) {
|
|
10875
|
-
var result = target.apply(
|
|
10876
|
-
this,
|
|
10877
|
-
concatty(args, arguments)
|
|
10878
|
-
);
|
|
10879
|
-
if (Object(result) === result) {
|
|
10880
|
-
return result;
|
|
10881
|
-
}
|
|
10882
|
-
return this;
|
|
10883
|
-
}
|
|
10884
|
-
return target.apply(
|
|
10885
|
-
that,
|
|
10886
|
-
concatty(args, arguments)
|
|
10887
|
-
);
|
|
10884
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
10885
|
+
var boundArgs = [];
|
|
10886
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
10887
|
+
boundArgs[i2] = "$" + i2;
|
|
10888
|
+
}
|
|
10889
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
10890
|
+
if (target.prototype) {
|
|
10891
|
+
var Empty = function Empty2() {
|
|
10888
10892
|
};
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
Empty.prototype = target.prototype;
|
|
10899
|
-
bound.prototype = new Empty();
|
|
10900
|
-
Empty.prototype = null;
|
|
10901
|
-
}
|
|
10902
|
-
return bound;
|
|
10903
|
-
};
|
|
10904
|
-
return implementation;
|
|
10905
|
-
}
|
|
10906
|
-
var functionBind;
|
|
10907
|
-
var hasRequiredFunctionBind;
|
|
10908
|
-
function requireFunctionBind() {
|
|
10909
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
10910
|
-
hasRequiredFunctionBind = 1;
|
|
10911
|
-
var implementation2 = requireImplementation();
|
|
10912
|
-
functionBind = Function.prototype.bind || implementation2;
|
|
10913
|
-
return functionBind;
|
|
10914
|
-
}
|
|
10915
|
-
var functionCall;
|
|
10916
|
-
var hasRequiredFunctionCall;
|
|
10917
|
-
function requireFunctionCall() {
|
|
10918
|
-
if (hasRequiredFunctionCall) return functionCall;
|
|
10919
|
-
hasRequiredFunctionCall = 1;
|
|
10920
|
-
functionCall = Function.prototype.call;
|
|
10921
|
-
return functionCall;
|
|
10922
|
-
}
|
|
10893
|
+
Empty.prototype = target.prototype;
|
|
10894
|
+
bound.prototype = new Empty();
|
|
10895
|
+
Empty.prototype = null;
|
|
10896
|
+
}
|
|
10897
|
+
return bound;
|
|
10898
|
+
};
|
|
10899
|
+
var implementation = implementation$1;
|
|
10900
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
10901
|
+
var functionCall = Function.prototype.call;
|
|
10923
10902
|
var functionApply;
|
|
10924
10903
|
var hasRequiredFunctionApply;
|
|
10925
10904
|
function requireFunctionApply() {
|
|
@@ -10929,14 +10908,14 @@ function requireFunctionApply() {
|
|
|
10929
10908
|
return functionApply;
|
|
10930
10909
|
}
|
|
10931
10910
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
10932
|
-
var bind$3 =
|
|
10911
|
+
var bind$3 = functionBind;
|
|
10933
10912
|
var $apply$1 = requireFunctionApply();
|
|
10934
|
-
var $call$2 =
|
|
10913
|
+
var $call$2 = functionCall;
|
|
10935
10914
|
var $reflectApply = reflectApply;
|
|
10936
10915
|
var actualApply = $reflectApply || bind$3.call($call$2, $apply$1);
|
|
10937
|
-
var bind$2 =
|
|
10916
|
+
var bind$2 = functionBind;
|
|
10938
10917
|
var $TypeError$4 = type;
|
|
10939
|
-
var $call$1 =
|
|
10918
|
+
var $call$1 = functionCall;
|
|
10940
10919
|
var $actualApply = actualApply;
|
|
10941
10920
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
10942
10921
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -11002,8 +10981,8 @@ function requireHasown() {
|
|
|
11002
10981
|
hasRequiredHasown = 1;
|
|
11003
10982
|
var call = Function.prototype.call;
|
|
11004
10983
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
11005
|
-
var
|
|
11006
|
-
hasown =
|
|
10984
|
+
var bind3 = functionBind;
|
|
10985
|
+
hasown = bind3.call(call, $hasOwn);
|
|
11007
10986
|
return hasown;
|
|
11008
10987
|
}
|
|
11009
10988
|
var undefined$1;
|
|
@@ -11017,7 +10996,7 @@ var $TypeError$3 = type;
|
|
|
11017
10996
|
var $URIError = uri;
|
|
11018
10997
|
var abs = abs$1;
|
|
11019
10998
|
var floor = floor$1;
|
|
11020
|
-
var max = max$
|
|
10999
|
+
var max = max$2;
|
|
11021
11000
|
var min = min$1;
|
|
11022
11001
|
var pow = pow$1;
|
|
11023
11002
|
var round = round$1;
|
|
@@ -11051,7 +11030,7 @@ var getProto = requireGetProto();
|
|
|
11051
11030
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
11052
11031
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
11053
11032
|
var $apply = requireFunctionApply();
|
|
11054
|
-
var $call =
|
|
11033
|
+
var $call = functionCall;
|
|
11055
11034
|
var needsEval = {};
|
|
11056
11035
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
11057
11036
|
var INTRINSICS = {
|
|
@@ -11222,7 +11201,7 @@ var LEGACY_ALIASES = {
|
|
|
11222
11201
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
11223
11202
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
11224
11203
|
};
|
|
11225
|
-
var bind$1 =
|
|
11204
|
+
var bind$1 = functionBind;
|
|
11226
11205
|
var hasOwn = requireHasown();
|
|
11227
11206
|
var $concat = bind$1.call($call, Array.prototype.concat);
|
|
11228
11207
|
var $spliceApply = bind$1.call($apply, Array.prototype.splice);
|
|
@@ -15553,7 +15532,7 @@ const admin = adminApi.enhanceEndpoints({
|
|
|
15553
15532
|
overrideExisting: false
|
|
15554
15533
|
});
|
|
15555
15534
|
const { useInitQuery, useTelemetryPropertiesQuery, useInformationQuery, useProjectSettingsQuery, useUpdateProjectSettingsMutation, useGetPluginsQuery, useGetLicenseLimitsQuery, useGetLicenseTrialTimeLeftQuery, useGetGuidedTourMetaQuery } = admin;
|
|
15556
|
-
function
|
|
15535
|
+
function bind2(fn2, thisArg) {
|
|
15557
15536
|
return function wrap() {
|
|
15558
15537
|
return fn2.apply(thisArg, arguments);
|
|
15559
15538
|
};
|
|
@@ -15690,7 +15669,7 @@ function merge2() {
|
|
|
15690
15669
|
const extend = (a2, b2, thisArg, { allOwnKeys } = {}) => {
|
|
15691
15670
|
forEach$1(b2, (val, key) => {
|
|
15692
15671
|
if (thisArg && isFunction$1(val)) {
|
|
15693
|
-
a2[key] =
|
|
15672
|
+
a2[key] = bind2(val, thisArg);
|
|
15694
15673
|
} else {
|
|
15695
15674
|
a2[key] = val;
|
|
15696
15675
|
}
|
|
@@ -17970,7 +17949,7 @@ Object.entries(HttpStatusCode$1).forEach(([key, value]) => {
|
|
|
17970
17949
|
});
|
|
17971
17950
|
function createInstance(defaultConfig) {
|
|
17972
17951
|
const context = new Axios$1(defaultConfig);
|
|
17973
|
-
const instance =
|
|
17952
|
+
const instance = bind2(Axios$1.prototype.request, context);
|
|
17974
17953
|
utils$1.extend(instance, Axios$1.prototype, context, { allOwnKeys: true });
|
|
17975
17954
|
utils$1.extend(instance, context, null, { allOwnKeys: true });
|
|
17976
17955
|
instance.create = function create2(instanceConfig) {
|
|
@@ -27085,6 +27064,115 @@ const ApiCollectionsContent = () => {
|
|
|
27085
27064
|
"dimensions": {"length": 10, "width": 5, "height": 2},
|
|
27086
27065
|
"product_categories": [1, 2],
|
|
27087
27066
|
"tags": [1]
|
|
27067
|
+
}`
|
|
27068
|
+
},
|
|
27069
|
+
{
|
|
27070
|
+
id: "create-bulk-products",
|
|
27071
|
+
method: "POST",
|
|
27072
|
+
path: getApiPath("/api/webbycommerce/products/bulk"),
|
|
27073
|
+
title: formatMessage({
|
|
27074
|
+
id: `${index.PLUGIN_ID}.settings.apiCollections.products.createBulk.title`,
|
|
27075
|
+
defaultMessage: "Create Products in Bulk"
|
|
27076
|
+
}),
|
|
27077
|
+
summary: formatMessage({
|
|
27078
|
+
id: `${index.PLUGIN_ID}.settings.apiCollections.products.createBulk.summary`,
|
|
27079
|
+
defaultMessage: "Create multiple products in a single request. Returns detailed results for each product including success and failure status."
|
|
27080
|
+
}),
|
|
27081
|
+
auth: formatMessage({
|
|
27082
|
+
id: `${index.PLUGIN_ID}.settings.apiCollections.products.authAdmin`,
|
|
27083
|
+
defaultMessage: "Auth: requires JWT token (Authorization: Bearer <token>) and administrator role."
|
|
27084
|
+
}),
|
|
27085
|
+
response: `{
|
|
27086
|
+
"data": {
|
|
27087
|
+
"success": [
|
|
27088
|
+
{
|
|
27089
|
+
"index": 0,
|
|
27090
|
+
"product": {
|
|
27091
|
+
"id": 1,
|
|
27092
|
+
"name": "Product 1",
|
|
27093
|
+
"price": 49.99,
|
|
27094
|
+
"sku": "P001",
|
|
27095
|
+
"createdAt": "2024-01-01T00:00:00.000Z"
|
|
27096
|
+
}
|
|
27097
|
+
}
|
|
27098
|
+
],
|
|
27099
|
+
"failed": [
|
|
27100
|
+
{
|
|
27101
|
+
"index": 1,
|
|
27102
|
+
"product": {
|
|
27103
|
+
"name": "Product 2",
|
|
27104
|
+
"price": "invalid"
|
|
27105
|
+
},
|
|
27106
|
+
"errors": ["Price must be a valid positive number."]
|
|
27107
|
+
}
|
|
27108
|
+
],
|
|
27109
|
+
"summary": {
|
|
27110
|
+
"total": 2,
|
|
27111
|
+
"successful": 1,
|
|
27112
|
+
"failed": 1
|
|
27113
|
+
}
|
|
27114
|
+
}
|
|
27115
|
+
}`,
|
|
27116
|
+
usage: [
|
|
27117
|
+
"Include the JWT token in the Authorization header.",
|
|
27118
|
+
"Send an array of products in the request body.",
|
|
27119
|
+
"Each product must have name and price (same validation as single product creation).",
|
|
27120
|
+
"Maximum 100 products per request.",
|
|
27121
|
+
"Returns 200 if all succeed, 207 if mixed results, 400 if all fail.",
|
|
27122
|
+
"Check the summary and failed arrays to see which products succeeded or failed."
|
|
27123
|
+
],
|
|
27124
|
+
getCurl: () => `curl -X POST http://localhost:1337${getApiPath("/api/webbycommerce/products/bulk")} \\
|
|
27125
|
+
-H "Authorization: Bearer YOUR_JWT_TOKEN" \\
|
|
27126
|
+
-H "Content-Type: application/json" \\
|
|
27127
|
+
-d '{
|
|
27128
|
+
"products": [
|
|
27129
|
+
{
|
|
27130
|
+
"name": "Product 1",
|
|
27131
|
+
"price": 49.99,
|
|
27132
|
+
"description": "First product",
|
|
27133
|
+
"sku": "P001",
|
|
27134
|
+
"stock_quantity": 50
|
|
27135
|
+
},
|
|
27136
|
+
{
|
|
27137
|
+
"name": "Product 2",
|
|
27138
|
+
"price": 29.99,
|
|
27139
|
+
"description": "Second product",
|
|
27140
|
+
"sku": "P002",
|
|
27141
|
+
"stock_quantity": 30
|
|
27142
|
+
}
|
|
27143
|
+
]
|
|
27144
|
+
}'`,
|
|
27145
|
+
requestBody: `{
|
|
27146
|
+
"products": [
|
|
27147
|
+
{
|
|
27148
|
+
"name": "Product 1",
|
|
27149
|
+
"description": "First product description",
|
|
27150
|
+
"price": 49.99,
|
|
27151
|
+
"sale_price": 39.99,
|
|
27152
|
+
"sku": "P001",
|
|
27153
|
+
"slug": "product-1",
|
|
27154
|
+
"stock_quantity": 50,
|
|
27155
|
+
"stock_status": "in_stock",
|
|
27156
|
+
"weight": 1.5,
|
|
27157
|
+
"dimensions": {"length": 10, "width": 5, "height": 2},
|
|
27158
|
+
"product_categories": [1, 2],
|
|
27159
|
+
"tags": [1],
|
|
27160
|
+
"images": [1, 2]
|
|
27161
|
+
},
|
|
27162
|
+
{
|
|
27163
|
+
"name": "Product 2",
|
|
27164
|
+
"description": "Second product description",
|
|
27165
|
+
"price": 29.99,
|
|
27166
|
+
"sale_price": 24.99,
|
|
27167
|
+
"sku": "P002",
|
|
27168
|
+
"slug": "product-2",
|
|
27169
|
+
"stock_quantity": 30,
|
|
27170
|
+
"stock_status": "in_stock",
|
|
27171
|
+
"weight": 0.8,
|
|
27172
|
+
"product_categories": [1],
|
|
27173
|
+
"tags": [2]
|
|
27174
|
+
}
|
|
27175
|
+
]
|
|
27088
27176
|
}`
|
|
27089
27177
|
},
|
|
27090
27178
|
{
|
|
@@ -183,6 +183,8 @@ const en = {
|
|
|
183
183
|
"webbycommerce.settings.apiCollections.products.getBySlug.summary": "Retrieve detailed information for a specific product by slug.",
|
|
184
184
|
"webbycommerce.settings.apiCollections.products.create.title": "Create Product",
|
|
185
185
|
"webbycommerce.settings.apiCollections.products.create.summary": "Create a new product (admin functionality).",
|
|
186
|
+
"webbycommerce.settings.apiCollections.products.createBulk.title": "Create Products in Bulk",
|
|
187
|
+
"webbycommerce.settings.apiCollections.products.createBulk.summary": "Create multiple products in a single request. Returns detailed results for each product including success and failure status.",
|
|
186
188
|
"webbycommerce.settings.apiCollections.products.update.title": "Update Product",
|
|
187
189
|
"webbycommerce.settings.apiCollections.products.update.summary": "Update an existing product (admin functionality).",
|
|
188
190
|
"webbycommerce.settings.apiCollections.products.delete.title": "Delete Product",
|
|
@@ -185,6 +185,8 @@ const en = {
|
|
|
185
185
|
"webbycommerce.settings.apiCollections.products.getBySlug.summary": "Retrieve detailed information for a specific product by slug.",
|
|
186
186
|
"webbycommerce.settings.apiCollections.products.create.title": "Create Product",
|
|
187
187
|
"webbycommerce.settings.apiCollections.products.create.summary": "Create a new product (admin functionality).",
|
|
188
|
+
"webbycommerce.settings.apiCollections.products.createBulk.title": "Create Products in Bulk",
|
|
189
|
+
"webbycommerce.settings.apiCollections.products.createBulk.summary": "Create multiple products in a single request. Returns detailed results for each product including success and failure status.",
|
|
188
190
|
"webbycommerce.settings.apiCollections.products.update.title": "Update Product",
|
|
189
191
|
"webbycommerce.settings.apiCollections.products.update.summary": "Update an existing product (admin functionality).",
|
|
190
192
|
"webbycommerce.settings.apiCollections.products.delete.title": "Delete Product",
|
|
@@ -93,7 +93,7 @@ const index = {
|
|
|
93
93
|
defaultMessage: "Configure"
|
|
94
94
|
},
|
|
95
95
|
to: `${PLUGIN_ID}`,
|
|
96
|
-
Component: () => Promise.resolve().then(() => require("./Settings-
|
|
96
|
+
Component: () => Promise.resolve().then(() => require("./Settings-C3yoIgMy.js"))
|
|
97
97
|
}
|
|
98
98
|
);
|
|
99
99
|
},
|
|
@@ -107,14 +107,14 @@ const index = {
|
|
|
107
107
|
locales.map(async (locale) => {
|
|
108
108
|
if (locale === "en") {
|
|
109
109
|
try {
|
|
110
|
-
const { default: data } = await Promise.resolve().then(() => require("./en-
|
|
110
|
+
const { default: data } = await Promise.resolve().then(() => require("./en-DIeqB4AB.js"));
|
|
111
111
|
return { data, locale };
|
|
112
112
|
} catch {
|
|
113
113
|
return { data: {}, locale };
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
try {
|
|
117
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-
|
|
117
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-DIeqB4AB.js")) }), `./translations/${locale}.json`, 3);
|
|
118
118
|
return { data, locale };
|
|
119
119
|
} catch {
|
|
120
120
|
return { data: {}, locale };
|
|
@@ -92,7 +92,7 @@ const index = {
|
|
|
92
92
|
defaultMessage: "Configure"
|
|
93
93
|
},
|
|
94
94
|
to: `${PLUGIN_ID}`,
|
|
95
|
-
Component: () => import("./Settings-
|
|
95
|
+
Component: () => import("./Settings-BWuSG1Bc.mjs")
|
|
96
96
|
}
|
|
97
97
|
);
|
|
98
98
|
},
|
|
@@ -106,14 +106,14 @@ const index = {
|
|
|
106
106
|
locales.map(async (locale) => {
|
|
107
107
|
if (locale === "en") {
|
|
108
108
|
try {
|
|
109
|
-
const { default: data } = await import("./en-
|
|
109
|
+
const { default: data } = await import("./en-7gtFcumM.mjs");
|
|
110
110
|
return { data, locale };
|
|
111
111
|
} catch {
|
|
112
112
|
return { data: {}, locale };
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
try {
|
|
116
|
-
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-
|
|
116
|
+
const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-7gtFcumM.mjs") }), `./translations/${locale}.json`, 3);
|
|
117
117
|
return { data, locale };
|
|
118
118
|
} catch {
|
|
119
119
|
return { data: {}, locale };
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED