@revenexx/cli 0.0.1 → 0.0.3
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 +2 -2
- package/dist/bundle-win-arm64.mjs +107207 -0
- package/dist/cli.cjs +2787 -47
- package/dist/cli.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/commands/services/inventories.d.ts +3 -0
- package/dist/lib/commands/services/inventories.d.ts.map +1 -0
- package/dist/lib/commands/services/orders.d.ts +3 -0
- package/dist/lib/commands/services/orders.d.ts.map +1 -0
- package/dist/lib/commands/services/pages.d.ts +3 -0
- package/dist/lib/commands/services/pages.d.ts.map +1 -0
- package/dist/lib/commands/services/payments.d.ts +3 -0
- package/dist/lib/commands/services/payments.d.ts.map +1 -0
- package/dist/lib/commands/services/prices.d.ts +3 -0
- package/dist/lib/commands/services/prices.d.ts.map +1 -0
- package/dist/lib/commands/services/shipping.d.ts +3 -0
- package/dist/lib/commands/services/shipping.d.ts.map +1 -0
- package/dist/lib/constants.d.ts +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -16554,9 +16554,9 @@ var require_onetime = __commonJS({
|
|
|
16554
16554
|
}
|
|
16555
16555
|
});
|
|
16556
16556
|
|
|
16557
|
-
// node_modules/signal-exit/signals.js
|
|
16557
|
+
// node_modules/restore-cursor/node_modules/signal-exit/signals.js
|
|
16558
16558
|
var require_signals = __commonJS({
|
|
16559
|
-
"node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
16559
|
+
"node_modules/restore-cursor/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
16560
16560
|
module2.exports = [
|
|
16561
16561
|
"SIGABRT",
|
|
16562
16562
|
"SIGALRM",
|
|
@@ -16591,9 +16591,9 @@ var require_signals = __commonJS({
|
|
|
16591
16591
|
}
|
|
16592
16592
|
});
|
|
16593
16593
|
|
|
16594
|
-
// node_modules/signal-exit/index.js
|
|
16594
|
+
// node_modules/restore-cursor/node_modules/signal-exit/index.js
|
|
16595
16595
|
var require_signal_exit = __commonJS({
|
|
16596
|
-
"node_modules/signal-exit/index.js"(exports2, module2) {
|
|
16596
|
+
"node_modules/restore-cursor/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
16597
16597
|
var process4 = global.process;
|
|
16598
16598
|
var processOk = function(process5) {
|
|
16599
16599
|
return process5 && typeof process5 === "object" && typeof process5.removeListener === "function" && typeof process5.emit === "function" && typeof process5.reallyExit === "function" && typeof process5.listeners === "function" && typeof process5.kill === "function" && typeof process5.pid === "number" && typeof process5.on === "function";
|
|
@@ -57745,7 +57745,7 @@ var require_lodash = __commonJS({
|
|
|
57745
57745
|
n += n < 0 ? length : 0;
|
|
57746
57746
|
return isIndex(n, length) ? array2[n] : undefined2;
|
|
57747
57747
|
}
|
|
57748
|
-
function baseOrderBy(collection, iteratees,
|
|
57748
|
+
function baseOrderBy(collection, iteratees, orders2) {
|
|
57749
57749
|
if (iteratees.length) {
|
|
57750
57750
|
iteratees = arrayMap(iteratees, function(iteratee2) {
|
|
57751
57751
|
if (isArray(iteratee2)) {
|
|
@@ -57767,7 +57767,7 @@ var require_lodash = __commonJS({
|
|
|
57767
57767
|
return { "criteria": criteria, "index": ++index, "value": value };
|
|
57768
57768
|
});
|
|
57769
57769
|
return baseSortBy(result2, function(object2, other) {
|
|
57770
|
-
return compareMultiple(object2, other,
|
|
57770
|
+
return compareMultiple(object2, other, orders2);
|
|
57771
57771
|
});
|
|
57772
57772
|
}
|
|
57773
57773
|
function basePick(object2, paths) {
|
|
@@ -58165,15 +58165,15 @@ var require_lodash = __commonJS({
|
|
|
58165
58165
|
}
|
|
58166
58166
|
return 0;
|
|
58167
58167
|
}
|
|
58168
|
-
function compareMultiple(object2, other,
|
|
58169
|
-
var index = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength =
|
|
58168
|
+
function compareMultiple(object2, other, orders2) {
|
|
58169
|
+
var index = -1, objCriteria = object2.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders2.length;
|
|
58170
58170
|
while (++index < length) {
|
|
58171
58171
|
var result2 = compareAscending(objCriteria[index], othCriteria[index]);
|
|
58172
58172
|
if (result2) {
|
|
58173
58173
|
if (index >= ordersLength) {
|
|
58174
58174
|
return result2;
|
|
58175
58175
|
}
|
|
58176
|
-
var order =
|
|
58176
|
+
var order = orders2[index];
|
|
58177
58177
|
return result2 * (order == "desc" ? -1 : 1);
|
|
58178
58178
|
}
|
|
58179
58179
|
}
|
|
@@ -59800,18 +59800,18 @@ var require_lodash = __commonJS({
|
|
|
59800
59800
|
var func = isArray(collection) ? arrayMap : baseMap;
|
|
59801
59801
|
return func(collection, getIteratee(iteratee2, 3));
|
|
59802
59802
|
}
|
|
59803
|
-
function orderBy(collection, iteratees,
|
|
59803
|
+
function orderBy(collection, iteratees, orders2, guard) {
|
|
59804
59804
|
if (collection == null) {
|
|
59805
59805
|
return [];
|
|
59806
59806
|
}
|
|
59807
59807
|
if (!isArray(iteratees)) {
|
|
59808
59808
|
iteratees = iteratees == null ? [] : [iteratees];
|
|
59809
59809
|
}
|
|
59810
|
-
|
|
59811
|
-
if (!isArray(
|
|
59812
|
-
|
|
59810
|
+
orders2 = guard ? undefined2 : orders2;
|
|
59811
|
+
if (!isArray(orders2)) {
|
|
59812
|
+
orders2 = orders2 == null ? [] : [orders2];
|
|
59813
59813
|
}
|
|
59814
|
-
return baseOrderBy(collection, iteratees,
|
|
59814
|
+
return baseOrderBy(collection, iteratees, orders2);
|
|
59815
59815
|
}
|
|
59816
59816
|
var partition = createAggregator(function(result2, value, key) {
|
|
59817
59817
|
result2[key ? 0 : 1].push(value);
|
|
@@ -61609,9 +61609,9 @@ var require_lodash = __commonJS({
|
|
|
61609
61609
|
}
|
|
61610
61610
|
});
|
|
61611
61611
|
|
|
61612
|
-
// node_modules/inquirer-search-list/node_modules/escape-string-regexp/index.js
|
|
61612
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/escape-string-regexp/index.js
|
|
61613
61613
|
var require_escape_string_regexp2 = __commonJS({
|
|
61614
|
-
"node_modules/inquirer-search-list/node_modules/escape-string-regexp/index.js"(exports2, module2) {
|
|
61614
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/escape-string-regexp/index.js"(exports2, module2) {
|
|
61615
61615
|
"use strict";
|
|
61616
61616
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
61617
61617
|
module2.exports = function(str) {
|
|
@@ -61623,9 +61623,9 @@ var require_escape_string_regexp2 = __commonJS({
|
|
|
61623
61623
|
}
|
|
61624
61624
|
});
|
|
61625
61625
|
|
|
61626
|
-
// node_modules/inquirer-search-list/node_modules/color-name/index.js
|
|
61626
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js
|
|
61627
61627
|
var require_color_name2 = __commonJS({
|
|
61628
|
-
"node_modules/inquirer-search-list/node_modules/color-name/index.js"(exports2, module2) {
|
|
61628
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js"(exports2, module2) {
|
|
61629
61629
|
"use strict";
|
|
61630
61630
|
module2.exports = {
|
|
61631
61631
|
"aliceblue": [240, 248, 255],
|
|
@@ -61780,9 +61780,9 @@ var require_color_name2 = __commonJS({
|
|
|
61780
61780
|
}
|
|
61781
61781
|
});
|
|
61782
61782
|
|
|
61783
|
-
// node_modules/inquirer-search-list/node_modules/color-convert/conversions.js
|
|
61783
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js
|
|
61784
61784
|
var require_conversions2 = __commonJS({
|
|
61785
|
-
"node_modules/inquirer-search-list/node_modules/color-convert/conversions.js"(exports2, module2) {
|
|
61785
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js"(exports2, module2) {
|
|
61786
61786
|
var cssKeywords = require_color_name2();
|
|
61787
61787
|
var reverseKeywords = {};
|
|
61788
61788
|
for (key in cssKeywords) {
|
|
@@ -62493,9 +62493,9 @@ var require_conversions2 = __commonJS({
|
|
|
62493
62493
|
}
|
|
62494
62494
|
});
|
|
62495
62495
|
|
|
62496
|
-
// node_modules/inquirer-search-list/node_modules/color-convert/route.js
|
|
62496
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js
|
|
62497
62497
|
var require_route2 = __commonJS({
|
|
62498
|
-
"node_modules/inquirer-search-list/node_modules/color-convert/route.js"(exports2, module2) {
|
|
62498
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js"(exports2, module2) {
|
|
62499
62499
|
var conversions = require_conversions2();
|
|
62500
62500
|
function buildGraph() {
|
|
62501
62501
|
var graph = {};
|
|
@@ -62563,9 +62563,9 @@ var require_route2 = __commonJS({
|
|
|
62563
62563
|
}
|
|
62564
62564
|
});
|
|
62565
62565
|
|
|
62566
|
-
// node_modules/inquirer-search-list/node_modules/color-convert/index.js
|
|
62566
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js
|
|
62567
62567
|
var require_color_convert2 = __commonJS({
|
|
62568
|
-
"node_modules/inquirer-search-list/node_modules/color-convert/index.js"(exports2, module2) {
|
|
62568
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js"(exports2, module2) {
|
|
62569
62569
|
var conversions = require_conversions2();
|
|
62570
62570
|
var route = require_route2();
|
|
62571
62571
|
var convert = {};
|
|
@@ -62622,9 +62622,9 @@ var require_color_convert2 = __commonJS({
|
|
|
62622
62622
|
}
|
|
62623
62623
|
});
|
|
62624
62624
|
|
|
62625
|
-
// node_modules/inquirer-search-list/node_modules/ansi-styles/index.js
|
|
62625
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/index.js
|
|
62626
62626
|
var require_ansi_styles2 = __commonJS({
|
|
62627
|
-
"node_modules/inquirer-search-list/node_modules/ansi-styles/index.js"(exports2, module2) {
|
|
62627
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/ansi-styles/index.js"(exports2, module2) {
|
|
62628
62628
|
"use strict";
|
|
62629
62629
|
var colorConvert = require_color_convert2();
|
|
62630
62630
|
var wrapAnsi16 = (fn, offset) => function() {
|
|
@@ -62765,9 +62765,9 @@ var require_ansi_styles2 = __commonJS({
|
|
|
62765
62765
|
}
|
|
62766
62766
|
});
|
|
62767
62767
|
|
|
62768
|
-
// node_modules/inquirer-search-list/node_modules/has-flag/index.js
|
|
62768
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/index.js
|
|
62769
62769
|
var require_has_flag3 = __commonJS({
|
|
62770
|
-
"node_modules/inquirer-search-list/node_modules/has-flag/index.js"(exports2, module2) {
|
|
62770
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/supports-color/node_modules/has-flag/index.js"(exports2, module2) {
|
|
62771
62771
|
"use strict";
|
|
62772
62772
|
module2.exports = (flag, argv) => {
|
|
62773
62773
|
argv = argv || process.argv;
|
|
@@ -62779,9 +62779,9 @@ var require_has_flag3 = __commonJS({
|
|
|
62779
62779
|
}
|
|
62780
62780
|
});
|
|
62781
62781
|
|
|
62782
|
-
// node_modules/inquirer-search-list/node_modules/supports-color/index.js
|
|
62782
|
+
// node_modules/inquirer-search-list/node_modules/chalk/node_modules/supports-color/index.js
|
|
62783
62783
|
var require_supports_color2 = __commonJS({
|
|
62784
|
-
"node_modules/inquirer-search-list/node_modules/supports-color/index.js"(exports2, module2) {
|
|
62784
|
+
"node_modules/inquirer-search-list/node_modules/chalk/node_modules/supports-color/index.js"(exports2, module2) {
|
|
62785
62785
|
"use strict";
|
|
62786
62786
|
var os7 = require("os");
|
|
62787
62787
|
var hasFlag = require_has_flag3();
|
|
@@ -63152,11 +63152,25 @@ var require_chalk = __commonJS({
|
|
|
63152
63152
|
}
|
|
63153
63153
|
});
|
|
63154
63154
|
|
|
63155
|
+
// node_modules/inquirer-search-list/node_modules/figures/node_modules/escape-string-regexp/index.js
|
|
63156
|
+
var require_escape_string_regexp3 = __commonJS({
|
|
63157
|
+
"node_modules/inquirer-search-list/node_modules/figures/node_modules/escape-string-regexp/index.js"(exports2, module2) {
|
|
63158
|
+
"use strict";
|
|
63159
|
+
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
63160
|
+
module2.exports = function(str) {
|
|
63161
|
+
if (typeof str !== "string") {
|
|
63162
|
+
throw new TypeError("Expected a string");
|
|
63163
|
+
}
|
|
63164
|
+
return str.replace(matchOperatorsRe, "\\$&");
|
|
63165
|
+
};
|
|
63166
|
+
}
|
|
63167
|
+
});
|
|
63168
|
+
|
|
63155
63169
|
// node_modules/inquirer-search-list/node_modules/figures/index.js
|
|
63156
63170
|
var require_figures2 = __commonJS({
|
|
63157
63171
|
"node_modules/inquirer-search-list/node_modules/figures/index.js"(exports2, module2) {
|
|
63158
63172
|
"use strict";
|
|
63159
|
-
var escapeStringRegexp =
|
|
63173
|
+
var escapeStringRegexp = require_escape_string_regexp3();
|
|
63160
63174
|
var platform = process.platform;
|
|
63161
63175
|
var main = {
|
|
63162
63176
|
tick: "\u2714",
|
|
@@ -63417,9 +63431,9 @@ var require_choices2 = __commonJS({
|
|
|
63417
63431
|
}
|
|
63418
63432
|
});
|
|
63419
63433
|
|
|
63420
|
-
// node_modules/inquirer-search-list/node_modules/ansi-escapes/index.js
|
|
63434
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/ansi-escapes/index.js
|
|
63421
63435
|
var require_ansi_escapes2 = __commonJS({
|
|
63422
|
-
"node_modules/inquirer-search-list/node_modules/ansi-escapes/index.js"(exports2, module2) {
|
|
63436
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/ansi-escapes/index.js"(exports2, module2) {
|
|
63423
63437
|
"use strict";
|
|
63424
63438
|
var x = module2.exports;
|
|
63425
63439
|
var ESC = "\x1B[";
|
|
@@ -63550,9 +63564,9 @@ var require_readline2 = __commonJS({
|
|
|
63550
63564
|
}
|
|
63551
63565
|
});
|
|
63552
63566
|
|
|
63553
|
-
// node_modules/inquirer-search-list/node_modules/cli-width/index.js
|
|
63567
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/cli-width/index.js
|
|
63554
63568
|
var require_cli_width2 = __commonJS({
|
|
63555
|
-
"node_modules/inquirer-search-list/node_modules/cli-width/index.js"(exports2, module2) {
|
|
63569
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/cli-width/index.js"(exports2, module2) {
|
|
63556
63570
|
"use strict";
|
|
63557
63571
|
exports2 = module2.exports = cliWidth;
|
|
63558
63572
|
function normalizeOpts(options) {
|
|
@@ -63593,9 +63607,9 @@ var require_cli_width2 = __commonJS({
|
|
|
63593
63607
|
}
|
|
63594
63608
|
});
|
|
63595
63609
|
|
|
63596
|
-
// node_modules/inquirer-search-list/node_modules/ansi-regex/index.js
|
|
63610
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/node_modules/ansi-regex/index.js
|
|
63597
63611
|
var require_ansi_regex2 = __commonJS({
|
|
63598
|
-
"node_modules/inquirer-search-list/node_modules/ansi-regex/index.js"(exports2, module2) {
|
|
63612
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/node_modules/ansi-regex/index.js"(exports2, module2) {
|
|
63599
63613
|
"use strict";
|
|
63600
63614
|
module2.exports = () => {
|
|
63601
63615
|
const pattern = [
|
|
@@ -63607,18 +63621,18 @@ var require_ansi_regex2 = __commonJS({
|
|
|
63607
63621
|
}
|
|
63608
63622
|
});
|
|
63609
63623
|
|
|
63610
|
-
// node_modules/inquirer-search-list/node_modules/strip-ansi/index.js
|
|
63624
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/index.js
|
|
63611
63625
|
var require_strip_ansi2 = __commonJS({
|
|
63612
|
-
"node_modules/inquirer-search-list/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
63626
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
63613
63627
|
"use strict";
|
|
63614
63628
|
var ansiRegex = require_ansi_regex2();
|
|
63615
63629
|
module2.exports = (input) => typeof input === "string" ? input.replace(ansiRegex(), "") : input;
|
|
63616
63630
|
}
|
|
63617
63631
|
});
|
|
63618
63632
|
|
|
63619
|
-
// node_modules/inquirer-search-list/node_modules/is-fullwidth-code-point/index.js
|
|
63633
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/node_modules/is-fullwidth-code-point/index.js
|
|
63620
63634
|
var require_is_fullwidth_code_point2 = __commonJS({
|
|
63621
|
-
"node_modules/inquirer-search-list/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
63635
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
|
|
63622
63636
|
"use strict";
|
|
63623
63637
|
module2.exports = (x) => {
|
|
63624
63638
|
if (Number.isNaN(x)) {
|
|
@@ -63647,9 +63661,9 @@ var require_is_fullwidth_code_point2 = __commonJS({
|
|
|
63647
63661
|
}
|
|
63648
63662
|
});
|
|
63649
63663
|
|
|
63650
|
-
// node_modules/inquirer-search-list/node_modules/string-width/index.js
|
|
63664
|
+
// node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js
|
|
63651
63665
|
var require_string_width2 = __commonJS({
|
|
63652
|
-
"node_modules/inquirer-search-list/node_modules/string-width/index.js"(exports2, module2) {
|
|
63666
|
+
"node_modules/inquirer-search-list/node_modules/inquirer/node_modules/string-width/index.js"(exports2, module2) {
|
|
63653
63667
|
"use strict";
|
|
63654
63668
|
var stripAnsi = require_strip_ansi2();
|
|
63655
63669
|
var isFullwidthCodePoint = require_is_fullwidth_code_point2();
|
|
@@ -77453,7 +77467,7 @@ var package_default = {
|
|
|
77453
77467
|
type: "module",
|
|
77454
77468
|
homepage: "https://revenexx.com",
|
|
77455
77469
|
description: "Revenexx CLI.",
|
|
77456
|
-
version: "0.0.
|
|
77470
|
+
version: "0.0.3",
|
|
77457
77471
|
license: "MIT",
|
|
77458
77472
|
main: "dist/index.cjs",
|
|
77459
77473
|
module: "dist/index.js",
|
|
@@ -92487,7 +92501,7 @@ var ConfigSchema = external_exports.object({
|
|
|
92487
92501
|
// lib/constants.ts
|
|
92488
92502
|
var SDK_TITLE = "RevenexxAPIRevenexx";
|
|
92489
92503
|
var SDK_TITLE_LOWER = "revenexx api \u2014 revenexx";
|
|
92490
|
-
var SDK_VERSION = "0.0.
|
|
92504
|
+
var SDK_VERSION = "0.0.3";
|
|
92491
92505
|
var SDK_NAME = "Revenexx CLI";
|
|
92492
92506
|
var SDK_PLATFORM = "";
|
|
92493
92507
|
var SDK_LANGUAGE = "cli";
|
|
@@ -99255,6 +99269,429 @@ greetings.command(`greetings-update`).description(``).requiredOption(`--id <id>`
|
|
|
99255
99269
|
)
|
|
99256
99270
|
);
|
|
99257
99271
|
|
|
99272
|
+
// lib/commands/services/inventories.ts
|
|
99273
|
+
var inventories = new Command("inventories").description(commandDescriptions["inventories"] ?? "").configureHelp({
|
|
99274
|
+
helpWidth: process.stdout.columns || 80
|
|
99275
|
+
});
|
|
99276
|
+
inventories.command(`inventories-adjust`).description(``).action(
|
|
99277
|
+
actionRunner(
|
|
99278
|
+
async () => {
|
|
99279
|
+
const _client = await sdkForProject();
|
|
99280
|
+
const _apiPath = `/inventories/adjust`;
|
|
99281
|
+
const _payload = {};
|
|
99282
|
+
const _headers = {
|
|
99283
|
+
"content-type": "application/json"
|
|
99284
|
+
};
|
|
99285
|
+
const _response = await _client.call(
|
|
99286
|
+
`post`,
|
|
99287
|
+
_apiPath,
|
|
99288
|
+
_headers,
|
|
99289
|
+
_payload
|
|
99290
|
+
);
|
|
99291
|
+
parse3(_response);
|
|
99292
|
+
}
|
|
99293
|
+
)
|
|
99294
|
+
);
|
|
99295
|
+
inventories.command(`inventories-availability`).description(``).action(
|
|
99296
|
+
actionRunner(
|
|
99297
|
+
async () => {
|
|
99298
|
+
const _client = await sdkForProject();
|
|
99299
|
+
const _apiPath = `/inventories/availability`;
|
|
99300
|
+
const _payload = {};
|
|
99301
|
+
const _headers = {
|
|
99302
|
+
"content-type": "application/json"
|
|
99303
|
+
};
|
|
99304
|
+
const _response = await _client.call(
|
|
99305
|
+
`post`,
|
|
99306
|
+
_apiPath,
|
|
99307
|
+
_headers,
|
|
99308
|
+
_payload
|
|
99309
|
+
);
|
|
99310
|
+
parse3(_response);
|
|
99311
|
+
}
|
|
99312
|
+
)
|
|
99313
|
+
);
|
|
99314
|
+
inventories.command(`inventories-commit`).description(``).action(
|
|
99315
|
+
actionRunner(
|
|
99316
|
+
async () => {
|
|
99317
|
+
const _client = await sdkForProject();
|
|
99318
|
+
const _apiPath = `/inventories/commit`;
|
|
99319
|
+
const _payload = {};
|
|
99320
|
+
const _headers = {
|
|
99321
|
+
"content-type": "application/json"
|
|
99322
|
+
};
|
|
99323
|
+
const _response = await _client.call(
|
|
99324
|
+
`post`,
|
|
99325
|
+
_apiPath,
|
|
99326
|
+
_headers,
|
|
99327
|
+
_payload
|
|
99328
|
+
);
|
|
99329
|
+
parse3(_response);
|
|
99330
|
+
}
|
|
99331
|
+
)
|
|
99332
|
+
);
|
|
99333
|
+
inventories.command(`inventories-locations-list`).description(``).action(
|
|
99334
|
+
actionRunner(
|
|
99335
|
+
async () => {
|
|
99336
|
+
const _client = await sdkForProject();
|
|
99337
|
+
const _apiPath = `/inventories/locations`;
|
|
99338
|
+
const _payload = {};
|
|
99339
|
+
const _headers = {
|
|
99340
|
+
"content-type": "application/json"
|
|
99341
|
+
};
|
|
99342
|
+
const _response = await _client.call(
|
|
99343
|
+
`get`,
|
|
99344
|
+
_apiPath,
|
|
99345
|
+
_headers,
|
|
99346
|
+
_payload
|
|
99347
|
+
);
|
|
99348
|
+
parse3(_response);
|
|
99349
|
+
}
|
|
99350
|
+
)
|
|
99351
|
+
);
|
|
99352
|
+
inventories.command(`inventories-locations-create`).description(``).action(
|
|
99353
|
+
actionRunner(
|
|
99354
|
+
async () => {
|
|
99355
|
+
const _client = await sdkForProject();
|
|
99356
|
+
const _apiPath = `/inventories/locations`;
|
|
99357
|
+
const _payload = {};
|
|
99358
|
+
const _headers = {
|
|
99359
|
+
"content-type": "application/json"
|
|
99360
|
+
};
|
|
99361
|
+
const _response = await _client.call(
|
|
99362
|
+
`post`,
|
|
99363
|
+
_apiPath,
|
|
99364
|
+
_headers,
|
|
99365
|
+
_payload
|
|
99366
|
+
);
|
|
99367
|
+
parse3(_response);
|
|
99368
|
+
}
|
|
99369
|
+
)
|
|
99370
|
+
);
|
|
99371
|
+
inventories.command(`inventories-locations-defaults`).description(``).action(
|
|
99372
|
+
actionRunner(
|
|
99373
|
+
async () => {
|
|
99374
|
+
const _client = await sdkForProject();
|
|
99375
|
+
const _apiPath = `/inventories/locations/defaults`;
|
|
99376
|
+
const _payload = {};
|
|
99377
|
+
const _headers = {
|
|
99378
|
+
"content-type": "application/json"
|
|
99379
|
+
};
|
|
99380
|
+
const _response = await _client.call(
|
|
99381
|
+
`post`,
|
|
99382
|
+
_apiPath,
|
|
99383
|
+
_headers,
|
|
99384
|
+
_payload
|
|
99385
|
+
);
|
|
99386
|
+
parse3(_response);
|
|
99387
|
+
}
|
|
99388
|
+
)
|
|
99389
|
+
);
|
|
99390
|
+
inventories.command(`inventories-locations-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99391
|
+
actionRunner(
|
|
99392
|
+
async ({ id }) => {
|
|
99393
|
+
const _client = await sdkForProject();
|
|
99394
|
+
const _apiPath = `/inventories/locations/{id}`.replace(`{id}`, id);
|
|
99395
|
+
const _payload = {};
|
|
99396
|
+
const _headers = {
|
|
99397
|
+
"content-type": "application/json"
|
|
99398
|
+
};
|
|
99399
|
+
const _response = await _client.call(
|
|
99400
|
+
`delete`,
|
|
99401
|
+
_apiPath,
|
|
99402
|
+
_headers,
|
|
99403
|
+
_payload
|
|
99404
|
+
);
|
|
99405
|
+
parse3(_response);
|
|
99406
|
+
}
|
|
99407
|
+
)
|
|
99408
|
+
);
|
|
99409
|
+
inventories.command(`inventories-locations-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99410
|
+
actionRunner(
|
|
99411
|
+
async ({ id }) => {
|
|
99412
|
+
const _client = await sdkForProject();
|
|
99413
|
+
const _apiPath = `/inventories/locations/{id}`.replace(`{id}`, id);
|
|
99414
|
+
const _payload = {};
|
|
99415
|
+
const _headers = {
|
|
99416
|
+
"content-type": "application/json"
|
|
99417
|
+
};
|
|
99418
|
+
const _response = await _client.call(
|
|
99419
|
+
`get`,
|
|
99420
|
+
_apiPath,
|
|
99421
|
+
_headers,
|
|
99422
|
+
_payload
|
|
99423
|
+
);
|
|
99424
|
+
parse3(_response);
|
|
99425
|
+
}
|
|
99426
|
+
)
|
|
99427
|
+
);
|
|
99428
|
+
inventories.command(`inventories-locations-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99429
|
+
actionRunner(
|
|
99430
|
+
async ({ id }) => {
|
|
99431
|
+
const _client = await sdkForProject();
|
|
99432
|
+
const _apiPath = `/inventories/locations/{id}`.replace(`{id}`, id);
|
|
99433
|
+
const _payload = {};
|
|
99434
|
+
const _headers = {
|
|
99435
|
+
"content-type": "application/json"
|
|
99436
|
+
};
|
|
99437
|
+
const _response = await _client.call(
|
|
99438
|
+
`put`,
|
|
99439
|
+
_apiPath,
|
|
99440
|
+
_headers,
|
|
99441
|
+
_payload
|
|
99442
|
+
);
|
|
99443
|
+
parse3(_response);
|
|
99444
|
+
}
|
|
99445
|
+
)
|
|
99446
|
+
);
|
|
99447
|
+
inventories.command(`inventories-movements-list`).description(``).action(
|
|
99448
|
+
actionRunner(
|
|
99449
|
+
async () => {
|
|
99450
|
+
const _client = await sdkForProject();
|
|
99451
|
+
const _apiPath = `/inventories/movements`;
|
|
99452
|
+
const _payload = {};
|
|
99453
|
+
const _headers = {
|
|
99454
|
+
"content-type": "application/json"
|
|
99455
|
+
};
|
|
99456
|
+
const _response = await _client.call(
|
|
99457
|
+
`get`,
|
|
99458
|
+
_apiPath,
|
|
99459
|
+
_headers,
|
|
99460
|
+
_payload
|
|
99461
|
+
);
|
|
99462
|
+
parse3(_response);
|
|
99463
|
+
}
|
|
99464
|
+
)
|
|
99465
|
+
);
|
|
99466
|
+
inventories.command(`inventories-movements-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99467
|
+
actionRunner(
|
|
99468
|
+
async ({ id }) => {
|
|
99469
|
+
const _client = await sdkForProject();
|
|
99470
|
+
const _apiPath = `/inventories/movements/{id}`.replace(`{id}`, id);
|
|
99471
|
+
const _payload = {};
|
|
99472
|
+
const _headers = {
|
|
99473
|
+
"content-type": "application/json"
|
|
99474
|
+
};
|
|
99475
|
+
const _response = await _client.call(
|
|
99476
|
+
`get`,
|
|
99477
|
+
_apiPath,
|
|
99478
|
+
_headers,
|
|
99479
|
+
_payload
|
|
99480
|
+
);
|
|
99481
|
+
parse3(_response);
|
|
99482
|
+
}
|
|
99483
|
+
)
|
|
99484
|
+
);
|
|
99485
|
+
inventories.command(`inventories-receive`).description(``).action(
|
|
99486
|
+
actionRunner(
|
|
99487
|
+
async () => {
|
|
99488
|
+
const _client = await sdkForProject();
|
|
99489
|
+
const _apiPath = `/inventories/receive`;
|
|
99490
|
+
const _payload = {};
|
|
99491
|
+
const _headers = {
|
|
99492
|
+
"content-type": "application/json"
|
|
99493
|
+
};
|
|
99494
|
+
const _response = await _client.call(
|
|
99495
|
+
`post`,
|
|
99496
|
+
_apiPath,
|
|
99497
|
+
_headers,
|
|
99498
|
+
_payload
|
|
99499
|
+
);
|
|
99500
|
+
parse3(_response);
|
|
99501
|
+
}
|
|
99502
|
+
)
|
|
99503
|
+
);
|
|
99504
|
+
inventories.command(`inventories-release`).description(``).action(
|
|
99505
|
+
actionRunner(
|
|
99506
|
+
async () => {
|
|
99507
|
+
const _client = await sdkForProject();
|
|
99508
|
+
const _apiPath = `/inventories/release`;
|
|
99509
|
+
const _payload = {};
|
|
99510
|
+
const _headers = {
|
|
99511
|
+
"content-type": "application/json"
|
|
99512
|
+
};
|
|
99513
|
+
const _response = await _client.call(
|
|
99514
|
+
`post`,
|
|
99515
|
+
_apiPath,
|
|
99516
|
+
_headers,
|
|
99517
|
+
_payload
|
|
99518
|
+
);
|
|
99519
|
+
parse3(_response);
|
|
99520
|
+
}
|
|
99521
|
+
)
|
|
99522
|
+
);
|
|
99523
|
+
inventories.command(`inventories-reservations-list`).description(``).action(
|
|
99524
|
+
actionRunner(
|
|
99525
|
+
async () => {
|
|
99526
|
+
const _client = await sdkForProject();
|
|
99527
|
+
const _apiPath = `/inventories/reservations`;
|
|
99528
|
+
const _payload = {};
|
|
99529
|
+
const _headers = {
|
|
99530
|
+
"content-type": "application/json"
|
|
99531
|
+
};
|
|
99532
|
+
const _response = await _client.call(
|
|
99533
|
+
`get`,
|
|
99534
|
+
_apiPath,
|
|
99535
|
+
_headers,
|
|
99536
|
+
_payload
|
|
99537
|
+
);
|
|
99538
|
+
parse3(_response);
|
|
99539
|
+
}
|
|
99540
|
+
)
|
|
99541
|
+
);
|
|
99542
|
+
inventories.command(`inventories-reservations-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99543
|
+
actionRunner(
|
|
99544
|
+
async ({ id }) => {
|
|
99545
|
+
const _client = await sdkForProject();
|
|
99546
|
+
const _apiPath = `/inventories/reservations/{id}`.replace(`{id}`, id);
|
|
99547
|
+
const _payload = {};
|
|
99548
|
+
const _headers = {
|
|
99549
|
+
"content-type": "application/json"
|
|
99550
|
+
};
|
|
99551
|
+
const _response = await _client.call(
|
|
99552
|
+
`get`,
|
|
99553
|
+
_apiPath,
|
|
99554
|
+
_headers,
|
|
99555
|
+
_payload
|
|
99556
|
+
);
|
|
99557
|
+
parse3(_response);
|
|
99558
|
+
}
|
|
99559
|
+
)
|
|
99560
|
+
);
|
|
99561
|
+
inventories.command(`inventories-reserve`).description(``).action(
|
|
99562
|
+
actionRunner(
|
|
99563
|
+
async () => {
|
|
99564
|
+
const _client = await sdkForProject();
|
|
99565
|
+
const _apiPath = `/inventories/reserve`;
|
|
99566
|
+
const _payload = {};
|
|
99567
|
+
const _headers = {
|
|
99568
|
+
"content-type": "application/json"
|
|
99569
|
+
};
|
|
99570
|
+
const _response = await _client.call(
|
|
99571
|
+
`post`,
|
|
99572
|
+
_apiPath,
|
|
99573
|
+
_headers,
|
|
99574
|
+
_payload
|
|
99575
|
+
);
|
|
99576
|
+
parse3(_response);
|
|
99577
|
+
}
|
|
99578
|
+
)
|
|
99579
|
+
);
|
|
99580
|
+
inventories.command(`inventories-restock`).description(``).action(
|
|
99581
|
+
actionRunner(
|
|
99582
|
+
async () => {
|
|
99583
|
+
const _client = await sdkForProject();
|
|
99584
|
+
const _apiPath = `/inventories/restock`;
|
|
99585
|
+
const _payload = {};
|
|
99586
|
+
const _headers = {
|
|
99587
|
+
"content-type": "application/json"
|
|
99588
|
+
};
|
|
99589
|
+
const _response = await _client.call(
|
|
99590
|
+
`post`,
|
|
99591
|
+
_apiPath,
|
|
99592
|
+
_headers,
|
|
99593
|
+
_payload
|
|
99594
|
+
);
|
|
99595
|
+
parse3(_response);
|
|
99596
|
+
}
|
|
99597
|
+
)
|
|
99598
|
+
);
|
|
99599
|
+
inventories.command(`inventories-stock-list`).description(``).action(
|
|
99600
|
+
actionRunner(
|
|
99601
|
+
async () => {
|
|
99602
|
+
const _client = await sdkForProject();
|
|
99603
|
+
const _apiPath = `/inventories/stock`;
|
|
99604
|
+
const _payload = {};
|
|
99605
|
+
const _headers = {
|
|
99606
|
+
"content-type": "application/json"
|
|
99607
|
+
};
|
|
99608
|
+
const _response = await _client.call(
|
|
99609
|
+
`get`,
|
|
99610
|
+
_apiPath,
|
|
99611
|
+
_headers,
|
|
99612
|
+
_payload
|
|
99613
|
+
);
|
|
99614
|
+
parse3(_response);
|
|
99615
|
+
}
|
|
99616
|
+
)
|
|
99617
|
+
);
|
|
99618
|
+
inventories.command(`inventories-stock-create`).description(``).action(
|
|
99619
|
+
actionRunner(
|
|
99620
|
+
async () => {
|
|
99621
|
+
const _client = await sdkForProject();
|
|
99622
|
+
const _apiPath = `/inventories/stock`;
|
|
99623
|
+
const _payload = {};
|
|
99624
|
+
const _headers = {
|
|
99625
|
+
"content-type": "application/json"
|
|
99626
|
+
};
|
|
99627
|
+
const _response = await _client.call(
|
|
99628
|
+
`post`,
|
|
99629
|
+
_apiPath,
|
|
99630
|
+
_headers,
|
|
99631
|
+
_payload
|
|
99632
|
+
);
|
|
99633
|
+
parse3(_response);
|
|
99634
|
+
}
|
|
99635
|
+
)
|
|
99636
|
+
);
|
|
99637
|
+
inventories.command(`inventories-stock-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99638
|
+
actionRunner(
|
|
99639
|
+
async ({ id }) => {
|
|
99640
|
+
const _client = await sdkForProject();
|
|
99641
|
+
const _apiPath = `/inventories/stock/{id}`.replace(`{id}`, id);
|
|
99642
|
+
const _payload = {};
|
|
99643
|
+
const _headers = {
|
|
99644
|
+
"content-type": "application/json"
|
|
99645
|
+
};
|
|
99646
|
+
const _response = await _client.call(
|
|
99647
|
+
`delete`,
|
|
99648
|
+
_apiPath,
|
|
99649
|
+
_headers,
|
|
99650
|
+
_payload
|
|
99651
|
+
);
|
|
99652
|
+
parse3(_response);
|
|
99653
|
+
}
|
|
99654
|
+
)
|
|
99655
|
+
);
|
|
99656
|
+
inventories.command(`inventories-stock-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99657
|
+
actionRunner(
|
|
99658
|
+
async ({ id }) => {
|
|
99659
|
+
const _client = await sdkForProject();
|
|
99660
|
+
const _apiPath = `/inventories/stock/{id}`.replace(`{id}`, id);
|
|
99661
|
+
const _payload = {};
|
|
99662
|
+
const _headers = {
|
|
99663
|
+
"content-type": "application/json"
|
|
99664
|
+
};
|
|
99665
|
+
const _response = await _client.call(
|
|
99666
|
+
`get`,
|
|
99667
|
+
_apiPath,
|
|
99668
|
+
_headers,
|
|
99669
|
+
_payload
|
|
99670
|
+
);
|
|
99671
|
+
parse3(_response);
|
|
99672
|
+
}
|
|
99673
|
+
)
|
|
99674
|
+
);
|
|
99675
|
+
inventories.command(`inventories-stock-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
99676
|
+
actionRunner(
|
|
99677
|
+
async ({ id }) => {
|
|
99678
|
+
const _client = await sdkForProject();
|
|
99679
|
+
const _apiPath = `/inventories/stock/{id}`.replace(`{id}`, id);
|
|
99680
|
+
const _payload = {};
|
|
99681
|
+
const _headers = {
|
|
99682
|
+
"content-type": "application/json"
|
|
99683
|
+
};
|
|
99684
|
+
const _response = await _client.call(
|
|
99685
|
+
`put`,
|
|
99686
|
+
_apiPath,
|
|
99687
|
+
_headers,
|
|
99688
|
+
_payload
|
|
99689
|
+
);
|
|
99690
|
+
parse3(_response);
|
|
99691
|
+
}
|
|
99692
|
+
)
|
|
99693
|
+
);
|
|
99694
|
+
|
|
99258
99695
|
// lib/commands/services/locale.ts
|
|
99259
99696
|
var locale = new Command("locale").description(commandDescriptions["locale"] ?? "").configureHelp({
|
|
99260
99697
|
helpWidth: process.stdout.columns || 80
|
|
@@ -101222,6 +101659,2057 @@ messaging.command(`messaging-get-subscriber`).description(`Get a subscriber by i
|
|
|
101222
101659
|
)
|
|
101223
101660
|
);
|
|
101224
101661
|
|
|
101662
|
+
// lib/commands/services/orders.ts
|
|
101663
|
+
var orders = new Command("orders").description(commandDescriptions["orders"] ?? "").configureHelp({
|
|
101664
|
+
helpWidth: process.stdout.columns || 80
|
|
101665
|
+
});
|
|
101666
|
+
orders.command(`orders-list`).description(``).action(
|
|
101667
|
+
actionRunner(
|
|
101668
|
+
async () => {
|
|
101669
|
+
const _client = await sdkForProject();
|
|
101670
|
+
const _apiPath = `/orders`;
|
|
101671
|
+
const _payload = {};
|
|
101672
|
+
const _headers = {
|
|
101673
|
+
"content-type": "application/json"
|
|
101674
|
+
};
|
|
101675
|
+
const _response = await _client.call(
|
|
101676
|
+
`get`,
|
|
101677
|
+
_apiPath,
|
|
101678
|
+
_headers,
|
|
101679
|
+
_payload
|
|
101680
|
+
);
|
|
101681
|
+
parse3(_response);
|
|
101682
|
+
}
|
|
101683
|
+
)
|
|
101684
|
+
);
|
|
101685
|
+
orders.command(`orders-number-ranges-list`).description(``).action(
|
|
101686
|
+
actionRunner(
|
|
101687
|
+
async () => {
|
|
101688
|
+
const _client = await sdkForProject();
|
|
101689
|
+
const _apiPath = `/orders/number-ranges`;
|
|
101690
|
+
const _payload = {};
|
|
101691
|
+
const _headers = {
|
|
101692
|
+
"content-type": "application/json"
|
|
101693
|
+
};
|
|
101694
|
+
const _response = await _client.call(
|
|
101695
|
+
`get`,
|
|
101696
|
+
_apiPath,
|
|
101697
|
+
_headers,
|
|
101698
|
+
_payload
|
|
101699
|
+
);
|
|
101700
|
+
parse3(_response);
|
|
101701
|
+
}
|
|
101702
|
+
)
|
|
101703
|
+
);
|
|
101704
|
+
orders.command(`orders-number-ranges-create`).description(``).action(
|
|
101705
|
+
actionRunner(
|
|
101706
|
+
async () => {
|
|
101707
|
+
const _client = await sdkForProject();
|
|
101708
|
+
const _apiPath = `/orders/number-ranges`;
|
|
101709
|
+
const _payload = {};
|
|
101710
|
+
const _headers = {
|
|
101711
|
+
"content-type": "application/json"
|
|
101712
|
+
};
|
|
101713
|
+
const _response = await _client.call(
|
|
101714
|
+
`post`,
|
|
101715
|
+
_apiPath,
|
|
101716
|
+
_headers,
|
|
101717
|
+
_payload
|
|
101718
|
+
);
|
|
101719
|
+
parse3(_response);
|
|
101720
|
+
}
|
|
101721
|
+
)
|
|
101722
|
+
);
|
|
101723
|
+
orders.command(`orders-number-ranges-defaults`).description(``).action(
|
|
101724
|
+
actionRunner(
|
|
101725
|
+
async () => {
|
|
101726
|
+
const _client = await sdkForProject();
|
|
101727
|
+
const _apiPath = `/orders/number-ranges/defaults`;
|
|
101728
|
+
const _payload = {};
|
|
101729
|
+
const _headers = {
|
|
101730
|
+
"content-type": "application/json"
|
|
101731
|
+
};
|
|
101732
|
+
const _response = await _client.call(
|
|
101733
|
+
`post`,
|
|
101734
|
+
_apiPath,
|
|
101735
|
+
_headers,
|
|
101736
|
+
_payload
|
|
101737
|
+
);
|
|
101738
|
+
parse3(_response);
|
|
101739
|
+
}
|
|
101740
|
+
)
|
|
101741
|
+
);
|
|
101742
|
+
orders.command(`orders-number-ranges-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101743
|
+
actionRunner(
|
|
101744
|
+
async ({ id }) => {
|
|
101745
|
+
const _client = await sdkForProject();
|
|
101746
|
+
const _apiPath = `/orders/number-ranges/{id}`.replace(`{id}`, id);
|
|
101747
|
+
const _payload = {};
|
|
101748
|
+
const _headers = {
|
|
101749
|
+
"content-type": "application/json"
|
|
101750
|
+
};
|
|
101751
|
+
const _response = await _client.call(
|
|
101752
|
+
`delete`,
|
|
101753
|
+
_apiPath,
|
|
101754
|
+
_headers,
|
|
101755
|
+
_payload
|
|
101756
|
+
);
|
|
101757
|
+
parse3(_response);
|
|
101758
|
+
}
|
|
101759
|
+
)
|
|
101760
|
+
);
|
|
101761
|
+
orders.command(`orders-number-ranges-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101762
|
+
actionRunner(
|
|
101763
|
+
async ({ id }) => {
|
|
101764
|
+
const _client = await sdkForProject();
|
|
101765
|
+
const _apiPath = `/orders/number-ranges/{id}`.replace(`{id}`, id);
|
|
101766
|
+
const _payload = {};
|
|
101767
|
+
const _headers = {
|
|
101768
|
+
"content-type": "application/json"
|
|
101769
|
+
};
|
|
101770
|
+
const _response = await _client.call(
|
|
101771
|
+
`get`,
|
|
101772
|
+
_apiPath,
|
|
101773
|
+
_headers,
|
|
101774
|
+
_payload
|
|
101775
|
+
);
|
|
101776
|
+
parse3(_response);
|
|
101777
|
+
}
|
|
101778
|
+
)
|
|
101779
|
+
);
|
|
101780
|
+
orders.command(`orders-number-ranges-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101781
|
+
actionRunner(
|
|
101782
|
+
async ({ id }) => {
|
|
101783
|
+
const _client = await sdkForProject();
|
|
101784
|
+
const _apiPath = `/orders/number-ranges/{id}`.replace(`{id}`, id);
|
|
101785
|
+
const _payload = {};
|
|
101786
|
+
const _headers = {
|
|
101787
|
+
"content-type": "application/json"
|
|
101788
|
+
};
|
|
101789
|
+
const _response = await _client.call(
|
|
101790
|
+
`put`,
|
|
101791
|
+
_apiPath,
|
|
101792
|
+
_headers,
|
|
101793
|
+
_payload
|
|
101794
|
+
);
|
|
101795
|
+
parse3(_response);
|
|
101796
|
+
}
|
|
101797
|
+
)
|
|
101798
|
+
);
|
|
101799
|
+
orders.command(`orders-place`).description(``).action(
|
|
101800
|
+
actionRunner(
|
|
101801
|
+
async () => {
|
|
101802
|
+
const _client = await sdkForProject();
|
|
101803
|
+
const _apiPath = `/orders/place`;
|
|
101804
|
+
const _payload = {};
|
|
101805
|
+
const _headers = {
|
|
101806
|
+
"content-type": "application/json"
|
|
101807
|
+
};
|
|
101808
|
+
const _response = await _client.call(
|
|
101809
|
+
`post`,
|
|
101810
|
+
_apiPath,
|
|
101811
|
+
_headers,
|
|
101812
|
+
_payload
|
|
101813
|
+
);
|
|
101814
|
+
parse3(_response);
|
|
101815
|
+
}
|
|
101816
|
+
)
|
|
101817
|
+
);
|
|
101818
|
+
orders.command(`orders-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101819
|
+
actionRunner(
|
|
101820
|
+
async ({ id }) => {
|
|
101821
|
+
const _client = await sdkForProject();
|
|
101822
|
+
const _apiPath = `/orders/{id}`.replace(`{id}`, id);
|
|
101823
|
+
const _payload = {};
|
|
101824
|
+
const _headers = {
|
|
101825
|
+
"content-type": "application/json"
|
|
101826
|
+
};
|
|
101827
|
+
const _response = await _client.call(
|
|
101828
|
+
`get`,
|
|
101829
|
+
_apiPath,
|
|
101830
|
+
_headers,
|
|
101831
|
+
_payload
|
|
101832
|
+
);
|
|
101833
|
+
parse3(_response);
|
|
101834
|
+
}
|
|
101835
|
+
)
|
|
101836
|
+
);
|
|
101837
|
+
orders.command(`orders-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101838
|
+
actionRunner(
|
|
101839
|
+
async ({ id }) => {
|
|
101840
|
+
const _client = await sdkForProject();
|
|
101841
|
+
const _apiPath = `/orders/{id}`.replace(`{id}`, id);
|
|
101842
|
+
const _payload = {};
|
|
101843
|
+
const _headers = {
|
|
101844
|
+
"content-type": "application/json"
|
|
101845
|
+
};
|
|
101846
|
+
const _response = await _client.call(
|
|
101847
|
+
`put`,
|
|
101848
|
+
_apiPath,
|
|
101849
|
+
_headers,
|
|
101850
|
+
_payload
|
|
101851
|
+
);
|
|
101852
|
+
parse3(_response);
|
|
101853
|
+
}
|
|
101854
|
+
)
|
|
101855
|
+
);
|
|
101856
|
+
orders.command(`orders-acknowledge`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101857
|
+
actionRunner(
|
|
101858
|
+
async ({ id }) => {
|
|
101859
|
+
const _client = await sdkForProject();
|
|
101860
|
+
const _apiPath = `/orders/{id}/acknowledge`.replace(`{id}`, id);
|
|
101861
|
+
const _payload = {};
|
|
101862
|
+
const _headers = {
|
|
101863
|
+
"content-type": "application/json"
|
|
101864
|
+
};
|
|
101865
|
+
const _response = await _client.call(
|
|
101866
|
+
`post`,
|
|
101867
|
+
_apiPath,
|
|
101868
|
+
_headers,
|
|
101869
|
+
_payload
|
|
101870
|
+
);
|
|
101871
|
+
parse3(_response);
|
|
101872
|
+
}
|
|
101873
|
+
)
|
|
101874
|
+
);
|
|
101875
|
+
orders.command(`orders-cancel`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101876
|
+
actionRunner(
|
|
101877
|
+
async ({ id }) => {
|
|
101878
|
+
const _client = await sdkForProject();
|
|
101879
|
+
const _apiPath = `/orders/{id}/cancel`.replace(`{id}`, id);
|
|
101880
|
+
const _payload = {};
|
|
101881
|
+
const _headers = {
|
|
101882
|
+
"content-type": "application/json"
|
|
101883
|
+
};
|
|
101884
|
+
const _response = await _client.call(
|
|
101885
|
+
`post`,
|
|
101886
|
+
_apiPath,
|
|
101887
|
+
_headers,
|
|
101888
|
+
_payload
|
|
101889
|
+
);
|
|
101890
|
+
parse3(_response);
|
|
101891
|
+
}
|
|
101892
|
+
)
|
|
101893
|
+
);
|
|
101894
|
+
orders.command(`orders-comments-list`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101895
|
+
actionRunner(
|
|
101896
|
+
async ({ id }) => {
|
|
101897
|
+
const _client = await sdkForProject();
|
|
101898
|
+
const _apiPath = `/orders/{id}/comments`.replace(`{id}`, id);
|
|
101899
|
+
const _payload = {};
|
|
101900
|
+
const _headers = {
|
|
101901
|
+
"content-type": "application/json"
|
|
101902
|
+
};
|
|
101903
|
+
const _response = await _client.call(
|
|
101904
|
+
`get`,
|
|
101905
|
+
_apiPath,
|
|
101906
|
+
_headers,
|
|
101907
|
+
_payload
|
|
101908
|
+
);
|
|
101909
|
+
parse3(_response);
|
|
101910
|
+
}
|
|
101911
|
+
)
|
|
101912
|
+
);
|
|
101913
|
+
orders.command(`orders-comments-create`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101914
|
+
actionRunner(
|
|
101915
|
+
async ({ id }) => {
|
|
101916
|
+
const _client = await sdkForProject();
|
|
101917
|
+
const _apiPath = `/orders/{id}/comments`.replace(`{id}`, id);
|
|
101918
|
+
const _payload = {};
|
|
101919
|
+
const _headers = {
|
|
101920
|
+
"content-type": "application/json"
|
|
101921
|
+
};
|
|
101922
|
+
const _response = await _client.call(
|
|
101923
|
+
`post`,
|
|
101924
|
+
_apiPath,
|
|
101925
|
+
_headers,
|
|
101926
|
+
_payload
|
|
101927
|
+
);
|
|
101928
|
+
parse3(_response);
|
|
101929
|
+
}
|
|
101930
|
+
)
|
|
101931
|
+
);
|
|
101932
|
+
orders.command(`orders-events-list`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101933
|
+
actionRunner(
|
|
101934
|
+
async ({ id }) => {
|
|
101935
|
+
const _client = await sdkForProject();
|
|
101936
|
+
const _apiPath = `/orders/{id}/events`.replace(`{id}`, id);
|
|
101937
|
+
const _payload = {};
|
|
101938
|
+
const _headers = {
|
|
101939
|
+
"content-type": "application/json"
|
|
101940
|
+
};
|
|
101941
|
+
const _response = await _client.call(
|
|
101942
|
+
`get`,
|
|
101943
|
+
_apiPath,
|
|
101944
|
+
_headers,
|
|
101945
|
+
_payload
|
|
101946
|
+
);
|
|
101947
|
+
parse3(_response);
|
|
101948
|
+
}
|
|
101949
|
+
)
|
|
101950
|
+
);
|
|
101951
|
+
orders.command(`orders-hold`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101952
|
+
actionRunner(
|
|
101953
|
+
async ({ id }) => {
|
|
101954
|
+
const _client = await sdkForProject();
|
|
101955
|
+
const _apiPath = `/orders/{id}/hold`.replace(`{id}`, id);
|
|
101956
|
+
const _payload = {};
|
|
101957
|
+
const _headers = {
|
|
101958
|
+
"content-type": "application/json"
|
|
101959
|
+
};
|
|
101960
|
+
const _response = await _client.call(
|
|
101961
|
+
`post`,
|
|
101962
|
+
_apiPath,
|
|
101963
|
+
_headers,
|
|
101964
|
+
_payload
|
|
101965
|
+
);
|
|
101966
|
+
parse3(_response);
|
|
101967
|
+
}
|
|
101968
|
+
)
|
|
101969
|
+
);
|
|
101970
|
+
orders.command(`orders-items-cancel`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101971
|
+
actionRunner(
|
|
101972
|
+
async ({ id }) => {
|
|
101973
|
+
const _client = await sdkForProject();
|
|
101974
|
+
const _apiPath = `/orders/{id}/items/cancel`.replace(`{id}`, id);
|
|
101975
|
+
const _payload = {};
|
|
101976
|
+
const _headers = {
|
|
101977
|
+
"content-type": "application/json"
|
|
101978
|
+
};
|
|
101979
|
+
const _response = await _client.call(
|
|
101980
|
+
`post`,
|
|
101981
|
+
_apiPath,
|
|
101982
|
+
_headers,
|
|
101983
|
+
_payload
|
|
101984
|
+
);
|
|
101985
|
+
parse3(_response);
|
|
101986
|
+
}
|
|
101987
|
+
)
|
|
101988
|
+
);
|
|
101989
|
+
orders.command(`orders-payment-status-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
101990
|
+
actionRunner(
|
|
101991
|
+
async ({ id }) => {
|
|
101992
|
+
const _client = await sdkForProject();
|
|
101993
|
+
const _apiPath = `/orders/{id}/payment-status`.replace(`{id}`, id);
|
|
101994
|
+
const _payload = {};
|
|
101995
|
+
const _headers = {
|
|
101996
|
+
"content-type": "application/json"
|
|
101997
|
+
};
|
|
101998
|
+
const _response = await _client.call(
|
|
101999
|
+
`post`,
|
|
102000
|
+
_apiPath,
|
|
102001
|
+
_headers,
|
|
102002
|
+
_payload
|
|
102003
|
+
);
|
|
102004
|
+
parse3(_response);
|
|
102005
|
+
}
|
|
102006
|
+
)
|
|
102007
|
+
);
|
|
102008
|
+
orders.command(`orders-return`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102009
|
+
actionRunner(
|
|
102010
|
+
async ({ id }) => {
|
|
102011
|
+
const _client = await sdkForProject();
|
|
102012
|
+
const _apiPath = `/orders/{id}/return`.replace(`{id}`, id);
|
|
102013
|
+
const _payload = {};
|
|
102014
|
+
const _headers = {
|
|
102015
|
+
"content-type": "application/json"
|
|
102016
|
+
};
|
|
102017
|
+
const _response = await _client.call(
|
|
102018
|
+
`post`,
|
|
102019
|
+
_apiPath,
|
|
102020
|
+
_headers,
|
|
102021
|
+
_payload
|
|
102022
|
+
);
|
|
102023
|
+
parse3(_response);
|
|
102024
|
+
}
|
|
102025
|
+
)
|
|
102026
|
+
);
|
|
102027
|
+
orders.command(`orders-returns-complete`).description(``).requiredOption(`--id <id>`, ``).requiredOption(`--rid <rid>`, ``).action(
|
|
102028
|
+
actionRunner(
|
|
102029
|
+
async ({ id, rid }) => {
|
|
102030
|
+
const _client = await sdkForProject();
|
|
102031
|
+
const _apiPath = `/orders/{id}/returns/{rid}/complete`.replace(`{id}`, id).replace(`{rid}`, rid);
|
|
102032
|
+
const _payload = {};
|
|
102033
|
+
const _headers = {
|
|
102034
|
+
"content-type": "application/json"
|
|
102035
|
+
};
|
|
102036
|
+
const _response = await _client.call(
|
|
102037
|
+
`post`,
|
|
102038
|
+
_apiPath,
|
|
102039
|
+
_headers,
|
|
102040
|
+
_payload
|
|
102041
|
+
);
|
|
102042
|
+
parse3(_response);
|
|
102043
|
+
}
|
|
102044
|
+
)
|
|
102045
|
+
);
|
|
102046
|
+
orders.command(`orders-returns-receive`).description(``).requiredOption(`--id <id>`, ``).requiredOption(`--rid <rid>`, ``).action(
|
|
102047
|
+
actionRunner(
|
|
102048
|
+
async ({ id, rid }) => {
|
|
102049
|
+
const _client = await sdkForProject();
|
|
102050
|
+
const _apiPath = `/orders/{id}/returns/{rid}/receive`.replace(`{id}`, id).replace(`{rid}`, rid);
|
|
102051
|
+
const _payload = {};
|
|
102052
|
+
const _headers = {
|
|
102053
|
+
"content-type": "application/json"
|
|
102054
|
+
};
|
|
102055
|
+
const _response = await _client.call(
|
|
102056
|
+
`post`,
|
|
102057
|
+
_apiPath,
|
|
102058
|
+
_headers,
|
|
102059
|
+
_payload
|
|
102060
|
+
);
|
|
102061
|
+
parse3(_response);
|
|
102062
|
+
}
|
|
102063
|
+
)
|
|
102064
|
+
);
|
|
102065
|
+
orders.command(`orders-returns-reject`).description(``).requiredOption(`--id <id>`, ``).requiredOption(`--rid <rid>`, ``).action(
|
|
102066
|
+
actionRunner(
|
|
102067
|
+
async ({ id, rid }) => {
|
|
102068
|
+
const _client = await sdkForProject();
|
|
102069
|
+
const _apiPath = `/orders/{id}/returns/{rid}/reject`.replace(`{id}`, id).replace(`{rid}`, rid);
|
|
102070
|
+
const _payload = {};
|
|
102071
|
+
const _headers = {
|
|
102072
|
+
"content-type": "application/json"
|
|
102073
|
+
};
|
|
102074
|
+
const _response = await _client.call(
|
|
102075
|
+
`post`,
|
|
102076
|
+
_apiPath,
|
|
102077
|
+
_headers,
|
|
102078
|
+
_payload
|
|
102079
|
+
);
|
|
102080
|
+
parse3(_response);
|
|
102081
|
+
}
|
|
102082
|
+
)
|
|
102083
|
+
);
|
|
102084
|
+
orders.command(`orders-ship`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102085
|
+
actionRunner(
|
|
102086
|
+
async ({ id }) => {
|
|
102087
|
+
const _client = await sdkForProject();
|
|
102088
|
+
const _apiPath = `/orders/{id}/ship`.replace(`{id}`, id);
|
|
102089
|
+
const _payload = {};
|
|
102090
|
+
const _headers = {
|
|
102091
|
+
"content-type": "application/json"
|
|
102092
|
+
};
|
|
102093
|
+
const _response = await _client.call(
|
|
102094
|
+
`post`,
|
|
102095
|
+
_apiPath,
|
|
102096
|
+
_headers,
|
|
102097
|
+
_payload
|
|
102098
|
+
);
|
|
102099
|
+
parse3(_response);
|
|
102100
|
+
}
|
|
102101
|
+
)
|
|
102102
|
+
);
|
|
102103
|
+
orders.command(`orders-unhold`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102104
|
+
actionRunner(
|
|
102105
|
+
async ({ id }) => {
|
|
102106
|
+
const _client = await sdkForProject();
|
|
102107
|
+
const _apiPath = `/orders/{id}/unhold`.replace(`{id}`, id);
|
|
102108
|
+
const _payload = {};
|
|
102109
|
+
const _headers = {
|
|
102110
|
+
"content-type": "application/json"
|
|
102111
|
+
};
|
|
102112
|
+
const _response = await _client.call(
|
|
102113
|
+
`post`,
|
|
102114
|
+
_apiPath,
|
|
102115
|
+
_headers,
|
|
102116
|
+
_payload
|
|
102117
|
+
);
|
|
102118
|
+
parse3(_response);
|
|
102119
|
+
}
|
|
102120
|
+
)
|
|
102121
|
+
);
|
|
102122
|
+
|
|
102123
|
+
// lib/commands/services/pages.ts
|
|
102124
|
+
var pages = new Command("pages").description(commandDescriptions["pages"] ?? "").configureHelp({
|
|
102125
|
+
helpWidth: process.stdout.columns || 80
|
|
102126
|
+
});
|
|
102127
|
+
pages.command(`pages-delivery-page`).description(``).action(
|
|
102128
|
+
actionRunner(
|
|
102129
|
+
async () => {
|
|
102130
|
+
const _client = await sdkForProject();
|
|
102131
|
+
const _apiPath = `/pages/delivery/page`;
|
|
102132
|
+
const _payload = {};
|
|
102133
|
+
const _headers = {
|
|
102134
|
+
"content-type": "application/json"
|
|
102135
|
+
};
|
|
102136
|
+
const _response = await _client.call(
|
|
102137
|
+
`get`,
|
|
102138
|
+
_apiPath,
|
|
102139
|
+
_headers,
|
|
102140
|
+
_payload
|
|
102141
|
+
);
|
|
102142
|
+
parse3(_response);
|
|
102143
|
+
}
|
|
102144
|
+
)
|
|
102145
|
+
);
|
|
102146
|
+
pages.command(`pages-delivery-pages`).description(``).action(
|
|
102147
|
+
actionRunner(
|
|
102148
|
+
async () => {
|
|
102149
|
+
const _client = await sdkForProject();
|
|
102150
|
+
const _apiPath = `/pages/delivery/pages`;
|
|
102151
|
+
const _payload = {};
|
|
102152
|
+
const _headers = {
|
|
102153
|
+
"content-type": "application/json"
|
|
102154
|
+
};
|
|
102155
|
+
const _response = await _client.call(
|
|
102156
|
+
`get`,
|
|
102157
|
+
_apiPath,
|
|
102158
|
+
_headers,
|
|
102159
|
+
_payload
|
|
102160
|
+
);
|
|
102161
|
+
parse3(_response);
|
|
102162
|
+
}
|
|
102163
|
+
)
|
|
102164
|
+
);
|
|
102165
|
+
pages.command(`pages-delivery-preview`).description(``).requiredOption(`--token <token>`, ``).action(
|
|
102166
|
+
actionRunner(
|
|
102167
|
+
async ({ token }) => {
|
|
102168
|
+
const _client = await sdkForProject();
|
|
102169
|
+
const _apiPath = `/pages/delivery/preview/{token}`.replace(`{token}`, token);
|
|
102170
|
+
const _payload = {};
|
|
102171
|
+
const _headers = {
|
|
102172
|
+
"content-type": "application/json"
|
|
102173
|
+
};
|
|
102174
|
+
const _response = await _client.call(
|
|
102175
|
+
`get`,
|
|
102176
|
+
_apiPath,
|
|
102177
|
+
_headers,
|
|
102178
|
+
_payload
|
|
102179
|
+
);
|
|
102180
|
+
parse3(_response);
|
|
102181
|
+
}
|
|
102182
|
+
)
|
|
102183
|
+
);
|
|
102184
|
+
pages.command(`pages-editor-edit-states`).description(``).action(
|
|
102185
|
+
actionRunner(
|
|
102186
|
+
async () => {
|
|
102187
|
+
const _client = await sdkForProject();
|
|
102188
|
+
const _apiPath = `/pages/editor/edit-states`;
|
|
102189
|
+
const _payload = {};
|
|
102190
|
+
const _headers = {
|
|
102191
|
+
"content-type": "application/json"
|
|
102192
|
+
};
|
|
102193
|
+
const _response = await _client.call(
|
|
102194
|
+
`get`,
|
|
102195
|
+
_apiPath,
|
|
102196
|
+
_headers,
|
|
102197
|
+
_payload
|
|
102198
|
+
);
|
|
102199
|
+
parse3(_response);
|
|
102200
|
+
}
|
|
102201
|
+
)
|
|
102202
|
+
);
|
|
102203
|
+
pages.command(`pages-editor-notifications-list`).description(``).action(
|
|
102204
|
+
actionRunner(
|
|
102205
|
+
async () => {
|
|
102206
|
+
const _client = await sdkForProject();
|
|
102207
|
+
const _apiPath = `/pages/editor/notifications`;
|
|
102208
|
+
const _payload = {};
|
|
102209
|
+
const _headers = {
|
|
102210
|
+
"content-type": "application/json"
|
|
102211
|
+
};
|
|
102212
|
+
const _response = await _client.call(
|
|
102213
|
+
`get`,
|
|
102214
|
+
_apiPath,
|
|
102215
|
+
_headers,
|
|
102216
|
+
_payload
|
|
102217
|
+
);
|
|
102218
|
+
parse3(_response);
|
|
102219
|
+
}
|
|
102220
|
+
)
|
|
102221
|
+
);
|
|
102222
|
+
pages.command(`pages-editor-notifications-mark-all-read`).description(``).action(
|
|
102223
|
+
actionRunner(
|
|
102224
|
+
async () => {
|
|
102225
|
+
const _client = await sdkForProject();
|
|
102226
|
+
const _apiPath = `/pages/editor/notifications/mark-all-read`;
|
|
102227
|
+
const _payload = {};
|
|
102228
|
+
const _headers = {
|
|
102229
|
+
"content-type": "application/json"
|
|
102230
|
+
};
|
|
102231
|
+
const _response = await _client.call(
|
|
102232
|
+
`post`,
|
|
102233
|
+
_apiPath,
|
|
102234
|
+
_headers,
|
|
102235
|
+
_payload
|
|
102236
|
+
);
|
|
102237
|
+
parse3(_response);
|
|
102238
|
+
}
|
|
102239
|
+
)
|
|
102240
|
+
);
|
|
102241
|
+
pages.command(`pages-editor-notifications-unread-count`).description(``).action(
|
|
102242
|
+
actionRunner(
|
|
102243
|
+
async () => {
|
|
102244
|
+
const _client = await sdkForProject();
|
|
102245
|
+
const _apiPath = `/pages/editor/notifications/unread-count`;
|
|
102246
|
+
const _payload = {};
|
|
102247
|
+
const _headers = {
|
|
102248
|
+
"content-type": "application/json"
|
|
102249
|
+
};
|
|
102250
|
+
const _response = await _client.call(
|
|
102251
|
+
`get`,
|
|
102252
|
+
_apiPath,
|
|
102253
|
+
_headers,
|
|
102254
|
+
_payload
|
|
102255
|
+
);
|
|
102256
|
+
parse3(_response);
|
|
102257
|
+
}
|
|
102258
|
+
)
|
|
102259
|
+
);
|
|
102260
|
+
pages.command(`pages-editor-translate`).description(``).option(`--items [items...]`, ``).action(
|
|
102261
|
+
actionRunner(
|
|
102262
|
+
async ({ items }) => {
|
|
102263
|
+
const _client = await sdkForProject();
|
|
102264
|
+
const _apiPath = `/pages/editor/translate`;
|
|
102265
|
+
const _payload = {};
|
|
102266
|
+
if (items !== void 0) {
|
|
102267
|
+
_payload[`items`] = items;
|
|
102268
|
+
}
|
|
102269
|
+
const _headers = {
|
|
102270
|
+
"content-type": "application/json"
|
|
102271
|
+
};
|
|
102272
|
+
const _response = await _client.call(
|
|
102273
|
+
`post`,
|
|
102274
|
+
_apiPath,
|
|
102275
|
+
_headers,
|
|
102276
|
+
_payload
|
|
102277
|
+
);
|
|
102278
|
+
parse3(_response);
|
|
102279
|
+
}
|
|
102280
|
+
)
|
|
102281
|
+
);
|
|
102282
|
+
pages.command(`pages-editor-user-settings-get`).description(``).action(
|
|
102283
|
+
actionRunner(
|
|
102284
|
+
async () => {
|
|
102285
|
+
const _client = await sdkForProject();
|
|
102286
|
+
const _apiPath = `/pages/editor/user-settings`;
|
|
102287
|
+
const _payload = {};
|
|
102288
|
+
const _headers = {
|
|
102289
|
+
"content-type": "application/json"
|
|
102290
|
+
};
|
|
102291
|
+
const _response = await _client.call(
|
|
102292
|
+
`get`,
|
|
102293
|
+
_apiPath,
|
|
102294
|
+
_headers,
|
|
102295
|
+
_payload
|
|
102296
|
+
);
|
|
102297
|
+
parse3(_response);
|
|
102298
|
+
}
|
|
102299
|
+
)
|
|
102300
|
+
);
|
|
102301
|
+
pages.command(`pages-editor-user-settings-put`).description(``).option(`--settings <settings>`, ``).action(
|
|
102302
|
+
actionRunner(
|
|
102303
|
+
async ({ settings }) => {
|
|
102304
|
+
const _client = await sdkForProject();
|
|
102305
|
+
const _apiPath = `/pages/editor/user-settings`;
|
|
102306
|
+
const _payload = {};
|
|
102307
|
+
if (settings !== void 0) {
|
|
102308
|
+
_payload[`settings`] = JSON.parse(settings);
|
|
102309
|
+
}
|
|
102310
|
+
const _headers = {
|
|
102311
|
+
"content-type": "application/json"
|
|
102312
|
+
};
|
|
102313
|
+
const _response = await _client.call(
|
|
102314
|
+
`put`,
|
|
102315
|
+
_apiPath,
|
|
102316
|
+
_headers,
|
|
102317
|
+
_payload
|
|
102318
|
+
);
|
|
102319
|
+
parse3(_response);
|
|
102320
|
+
}
|
|
102321
|
+
)
|
|
102322
|
+
);
|
|
102323
|
+
pages.command(`pages-editor-users`).description(``).action(
|
|
102324
|
+
actionRunner(
|
|
102325
|
+
async () => {
|
|
102326
|
+
const _client = await sdkForProject();
|
|
102327
|
+
const _apiPath = `/pages/editor/users`;
|
|
102328
|
+
const _payload = {};
|
|
102329
|
+
const _headers = {
|
|
102330
|
+
"content-type": "application/json"
|
|
102331
|
+
};
|
|
102332
|
+
const _response = await _client.call(
|
|
102333
|
+
`get`,
|
|
102334
|
+
_apiPath,
|
|
102335
|
+
_headers,
|
|
102336
|
+
_payload
|
|
102337
|
+
);
|
|
102338
|
+
parse3(_response);
|
|
102339
|
+
}
|
|
102340
|
+
)
|
|
102341
|
+
);
|
|
102342
|
+
pages.command(`pages-editor-comments-list`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102343
|
+
actionRunner(
|
|
102344
|
+
async ({ page_id }) => {
|
|
102345
|
+
const _client = await sdkForProject();
|
|
102346
|
+
const _apiPath = `/pages/editor/{page_id}/comments`.replace(`{page_id}`, page_id);
|
|
102347
|
+
const _payload = {};
|
|
102348
|
+
const _headers = {
|
|
102349
|
+
"content-type": "application/json"
|
|
102350
|
+
};
|
|
102351
|
+
const _response = await _client.call(
|
|
102352
|
+
`get`,
|
|
102353
|
+
_apiPath,
|
|
102354
|
+
_headers,
|
|
102355
|
+
_payload
|
|
102356
|
+
);
|
|
102357
|
+
parse3(_response);
|
|
102358
|
+
}
|
|
102359
|
+
)
|
|
102360
|
+
);
|
|
102361
|
+
pages.command(`pages-editor-comments-create`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--body <body>`, ``).option(`--block-uuids [block-uuids...]`, ``).option(`--parent-uuid <parent-uuid>`, ``).action(
|
|
102362
|
+
actionRunner(
|
|
102363
|
+
async ({ page_id, body, blockUuids, parentUuid }) => {
|
|
102364
|
+
const _client = await sdkForProject();
|
|
102365
|
+
const _apiPath = `/pages/editor/{page_id}/comments`.replace(`{page_id}`, page_id);
|
|
102366
|
+
const _payload = {};
|
|
102367
|
+
if (blockUuids !== void 0) {
|
|
102368
|
+
_payload[`blockUuids`] = blockUuids;
|
|
102369
|
+
}
|
|
102370
|
+
if (body !== void 0) {
|
|
102371
|
+
_payload[`body`] = body;
|
|
102372
|
+
}
|
|
102373
|
+
if (parentUuid !== void 0) {
|
|
102374
|
+
_payload[`parentUuid`] = parentUuid;
|
|
102375
|
+
}
|
|
102376
|
+
const _headers = {
|
|
102377
|
+
"content-type": "application/json"
|
|
102378
|
+
};
|
|
102379
|
+
const _response = await _client.call(
|
|
102380
|
+
`post`,
|
|
102381
|
+
_apiPath,
|
|
102382
|
+
_headers,
|
|
102383
|
+
_payload
|
|
102384
|
+
);
|
|
102385
|
+
parse3(_response);
|
|
102386
|
+
}
|
|
102387
|
+
)
|
|
102388
|
+
);
|
|
102389
|
+
pages.command(`pages-editor-comments-delete`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--uuid <uuid>`, ``).action(
|
|
102390
|
+
actionRunner(
|
|
102391
|
+
async ({ page_id, uuid: uuid3 }) => {
|
|
102392
|
+
const _client = await sdkForProject();
|
|
102393
|
+
const _apiPath = `/pages/editor/{page_id}/comments/{uuid}`.replace(`{page_id}`, page_id).replace(`{uuid}`, uuid3);
|
|
102394
|
+
const _payload = {};
|
|
102395
|
+
const _headers = {
|
|
102396
|
+
"content-type": "application/json"
|
|
102397
|
+
};
|
|
102398
|
+
const _response = await _client.call(
|
|
102399
|
+
`delete`,
|
|
102400
|
+
_apiPath,
|
|
102401
|
+
_headers,
|
|
102402
|
+
_payload
|
|
102403
|
+
);
|
|
102404
|
+
parse3(_response);
|
|
102405
|
+
}
|
|
102406
|
+
)
|
|
102407
|
+
);
|
|
102408
|
+
pages.command(`pages-editor-comments-update`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--uuid <uuid>`, ``).requiredOption(`--body <body>`, ``).action(
|
|
102409
|
+
actionRunner(
|
|
102410
|
+
async ({ page_id, uuid: uuid3, body }) => {
|
|
102411
|
+
const _client = await sdkForProject();
|
|
102412
|
+
const _apiPath = `/pages/editor/{page_id}/comments/{uuid}`.replace(`{page_id}`, page_id).replace(`{uuid}`, uuid3);
|
|
102413
|
+
const _payload = {};
|
|
102414
|
+
if (body !== void 0) {
|
|
102415
|
+
_payload[`body`] = body;
|
|
102416
|
+
}
|
|
102417
|
+
const _headers = {
|
|
102418
|
+
"content-type": "application/json"
|
|
102419
|
+
};
|
|
102420
|
+
const _response = await _client.call(
|
|
102421
|
+
`put`,
|
|
102422
|
+
_apiPath,
|
|
102423
|
+
_headers,
|
|
102424
|
+
_payload
|
|
102425
|
+
);
|
|
102426
|
+
parse3(_response);
|
|
102427
|
+
}
|
|
102428
|
+
)
|
|
102429
|
+
);
|
|
102430
|
+
pages.command(`pages-editor-comments-resolve`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--uuid <uuid>`, ``).action(
|
|
102431
|
+
actionRunner(
|
|
102432
|
+
async ({ page_id, uuid: uuid3 }) => {
|
|
102433
|
+
const _client = await sdkForProject();
|
|
102434
|
+
const _apiPath = `/pages/editor/{page_id}/comments/{uuid}/resolve`.replace(`{page_id}`, page_id).replace(`{uuid}`, uuid3);
|
|
102435
|
+
const _payload = {};
|
|
102436
|
+
const _headers = {
|
|
102437
|
+
"content-type": "application/json"
|
|
102438
|
+
};
|
|
102439
|
+
const _response = await _client.call(
|
|
102440
|
+
`post`,
|
|
102441
|
+
_apiPath,
|
|
102442
|
+
_headers,
|
|
102443
|
+
_payload
|
|
102444
|
+
);
|
|
102445
|
+
parse3(_response);
|
|
102446
|
+
}
|
|
102447
|
+
)
|
|
102448
|
+
);
|
|
102449
|
+
pages.command(`pages-editor-comments-toggle-task`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--uuid <uuid>`, ``).requiredOption(`--task-index <task-index>`, ``, parseInteger).action(
|
|
102450
|
+
actionRunner(
|
|
102451
|
+
async ({ page_id, uuid: uuid3, taskIndex }) => {
|
|
102452
|
+
const _client = await sdkForProject();
|
|
102453
|
+
const _apiPath = `/pages/editor/{page_id}/comments/{uuid}/toggle-task`.replace(`{page_id}`, page_id).replace(`{uuid}`, uuid3);
|
|
102454
|
+
const _payload = {};
|
|
102455
|
+
if (taskIndex !== void 0) {
|
|
102456
|
+
_payload[`taskIndex`] = taskIndex;
|
|
102457
|
+
}
|
|
102458
|
+
const _headers = {
|
|
102459
|
+
"content-type": "application/json"
|
|
102460
|
+
};
|
|
102461
|
+
const _response = await _client.call(
|
|
102462
|
+
`post`,
|
|
102463
|
+
_apiPath,
|
|
102464
|
+
_headers,
|
|
102465
|
+
_payload
|
|
102466
|
+
);
|
|
102467
|
+
parse3(_response);
|
|
102468
|
+
}
|
|
102469
|
+
)
|
|
102470
|
+
);
|
|
102471
|
+
pages.command(`pages-editor-comments-unresolve`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--uuid <uuid>`, ``).action(
|
|
102472
|
+
actionRunner(
|
|
102473
|
+
async ({ page_id, uuid: uuid3 }) => {
|
|
102474
|
+
const _client = await sdkForProject();
|
|
102475
|
+
const _apiPath = `/pages/editor/{page_id}/comments/{uuid}/unresolve`.replace(`{page_id}`, page_id).replace(`{uuid}`, uuid3);
|
|
102476
|
+
const _payload = {};
|
|
102477
|
+
const _headers = {
|
|
102478
|
+
"content-type": "application/json"
|
|
102479
|
+
};
|
|
102480
|
+
const _response = await _client.call(
|
|
102481
|
+
`post`,
|
|
102482
|
+
_apiPath,
|
|
102483
|
+
_headers,
|
|
102484
|
+
_payload
|
|
102485
|
+
);
|
|
102486
|
+
parse3(_response);
|
|
102487
|
+
}
|
|
102488
|
+
)
|
|
102489
|
+
);
|
|
102490
|
+
pages.command(`pages-editor-history`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--index <index>`, ``, parseInteger).option(`--langcode <langcode>`, ``).action(
|
|
102491
|
+
actionRunner(
|
|
102492
|
+
async ({ page_id, index, langcode }) => {
|
|
102493
|
+
const _client = await sdkForProject();
|
|
102494
|
+
const _apiPath = `/pages/editor/{page_id}/history`.replace(`{page_id}`, page_id);
|
|
102495
|
+
const _payload = {};
|
|
102496
|
+
if (index !== void 0) {
|
|
102497
|
+
_payload[`index`] = index;
|
|
102498
|
+
}
|
|
102499
|
+
if (langcode !== void 0) {
|
|
102500
|
+
_payload[`langcode`] = langcode;
|
|
102501
|
+
}
|
|
102502
|
+
const _headers = {
|
|
102503
|
+
"content-type": "application/json"
|
|
102504
|
+
};
|
|
102505
|
+
const _response = await _client.call(
|
|
102506
|
+
`post`,
|
|
102507
|
+
_apiPath,
|
|
102508
|
+
_headers,
|
|
102509
|
+
_payload
|
|
102510
|
+
);
|
|
102511
|
+
parse3(_response);
|
|
102512
|
+
}
|
|
102513
|
+
)
|
|
102514
|
+
);
|
|
102515
|
+
pages.command(`pages-editor-last-changed`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102516
|
+
actionRunner(
|
|
102517
|
+
async ({ page_id }) => {
|
|
102518
|
+
const _client = await sdkForProject();
|
|
102519
|
+
const _apiPath = `/pages/editor/{page_id}/last-changed`.replace(`{page_id}`, page_id);
|
|
102520
|
+
const _payload = {};
|
|
102521
|
+
const _headers = {
|
|
102522
|
+
"content-type": "application/json"
|
|
102523
|
+
};
|
|
102524
|
+
const _response = await _client.call(
|
|
102525
|
+
`get`,
|
|
102526
|
+
_apiPath,
|
|
102527
|
+
_headers,
|
|
102528
|
+
_payload
|
|
102529
|
+
);
|
|
102530
|
+
parse3(_response);
|
|
102531
|
+
}
|
|
102532
|
+
)
|
|
102533
|
+
);
|
|
102534
|
+
pages.command(`pages-editor-mutation-status`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--enabled <enabled>`, ``, parseBool).requiredOption(`--index <index>`, ``, parseInteger).option(`--langcode <langcode>`, ``).action(
|
|
102535
|
+
actionRunner(
|
|
102536
|
+
async ({ page_id, enabled, index, langcode }) => {
|
|
102537
|
+
const _client = await sdkForProject();
|
|
102538
|
+
const _apiPath = `/pages/editor/{page_id}/mutation-status`.replace(`{page_id}`, page_id);
|
|
102539
|
+
const _payload = {};
|
|
102540
|
+
if (enabled !== void 0) {
|
|
102541
|
+
_payload[`enabled`] = enabled;
|
|
102542
|
+
}
|
|
102543
|
+
if (index !== void 0) {
|
|
102544
|
+
_payload[`index`] = index;
|
|
102545
|
+
}
|
|
102546
|
+
if (langcode !== void 0) {
|
|
102547
|
+
_payload[`langcode`] = langcode;
|
|
102548
|
+
}
|
|
102549
|
+
const _headers = {
|
|
102550
|
+
"content-type": "application/json"
|
|
102551
|
+
};
|
|
102552
|
+
const _response = await _client.call(
|
|
102553
|
+
`post`,
|
|
102554
|
+
_apiPath,
|
|
102555
|
+
_headers,
|
|
102556
|
+
_payload
|
|
102557
|
+
);
|
|
102558
|
+
parse3(_response);
|
|
102559
|
+
}
|
|
102560
|
+
)
|
|
102561
|
+
);
|
|
102562
|
+
pages.command(`pages-editor-mutate`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102563
|
+
actionRunner(
|
|
102564
|
+
async ({ page_id }) => {
|
|
102565
|
+
const _client = await sdkForProject();
|
|
102566
|
+
const _apiPath = `/pages/editor/{page_id}/mutations`.replace(`{page_id}`, page_id);
|
|
102567
|
+
const _payload = {};
|
|
102568
|
+
const _headers = {
|
|
102569
|
+
"content-type": "application/json"
|
|
102570
|
+
};
|
|
102571
|
+
const _response = await _client.call(
|
|
102572
|
+
`post`,
|
|
102573
|
+
_apiPath,
|
|
102574
|
+
_headers,
|
|
102575
|
+
_payload
|
|
102576
|
+
);
|
|
102577
|
+
parse3(_response);
|
|
102578
|
+
}
|
|
102579
|
+
)
|
|
102580
|
+
);
|
|
102581
|
+
pages.command(`pages-editor-preview-grant`).description(``).requiredOption(`--page-_id <page-_id>`, ``).option(`--ttl-hours <ttl-hours>`, ``, parseInteger).action(
|
|
102582
|
+
actionRunner(
|
|
102583
|
+
async ({ page_id, ttlHours }) => {
|
|
102584
|
+
const _client = await sdkForProject();
|
|
102585
|
+
const _apiPath = `/pages/editor/{page_id}/preview-grant`.replace(`{page_id}`, page_id);
|
|
102586
|
+
const _payload = {};
|
|
102587
|
+
if (ttlHours !== void 0) {
|
|
102588
|
+
_payload[`ttlHours`] = ttlHours;
|
|
102589
|
+
}
|
|
102590
|
+
const _headers = {
|
|
102591
|
+
"content-type": "application/json"
|
|
102592
|
+
};
|
|
102593
|
+
const _response = await _client.call(
|
|
102594
|
+
`post`,
|
|
102595
|
+
_apiPath,
|
|
102596
|
+
_headers,
|
|
102597
|
+
_payload
|
|
102598
|
+
);
|
|
102599
|
+
parse3(_response);
|
|
102600
|
+
}
|
|
102601
|
+
)
|
|
102602
|
+
);
|
|
102603
|
+
pages.command(`pages-editor-publish`).description(``).requiredOption(`--page-_id <page-_id>`, ``).option(
|
|
102604
|
+
`--force [value]`,
|
|
102605
|
+
`Publish despite violations.`,
|
|
102606
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
102607
|
+
).option(`--label <label>`, ``).action(
|
|
102608
|
+
actionRunner(
|
|
102609
|
+
async ({ page_id, force, label }) => {
|
|
102610
|
+
const _client = await sdkForProject();
|
|
102611
|
+
const _apiPath = `/pages/editor/{page_id}/publish`.replace(`{page_id}`, page_id);
|
|
102612
|
+
const _payload = {};
|
|
102613
|
+
if (force !== void 0) {
|
|
102614
|
+
_payload[`force`] = force;
|
|
102615
|
+
}
|
|
102616
|
+
if (label !== void 0) {
|
|
102617
|
+
_payload[`label`] = label;
|
|
102618
|
+
}
|
|
102619
|
+
const _headers = {
|
|
102620
|
+
"content-type": "application/json"
|
|
102621
|
+
};
|
|
102622
|
+
const _response = await _client.call(
|
|
102623
|
+
`post`,
|
|
102624
|
+
_apiPath,
|
|
102625
|
+
_headers,
|
|
102626
|
+
_payload
|
|
102627
|
+
);
|
|
102628
|
+
parse3(_response);
|
|
102629
|
+
}
|
|
102630
|
+
)
|
|
102631
|
+
);
|
|
102632
|
+
pages.command(`pages-editor-revert`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102633
|
+
actionRunner(
|
|
102634
|
+
async ({ page_id }) => {
|
|
102635
|
+
const _client = await sdkForProject();
|
|
102636
|
+
const _apiPath = `/pages/editor/{page_id}/revert`.replace(`{page_id}`, page_id);
|
|
102637
|
+
const _payload = {};
|
|
102638
|
+
const _headers = {
|
|
102639
|
+
"content-type": "application/json"
|
|
102640
|
+
};
|
|
102641
|
+
const _response = await _client.call(
|
|
102642
|
+
`post`,
|
|
102643
|
+
_apiPath,
|
|
102644
|
+
_headers,
|
|
102645
|
+
_payload
|
|
102646
|
+
);
|
|
102647
|
+
parse3(_response);
|
|
102648
|
+
}
|
|
102649
|
+
)
|
|
102650
|
+
);
|
|
102651
|
+
pages.command(`pages-editor-schedule`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--scheduled-at <scheduled-at>`, ``).action(
|
|
102652
|
+
actionRunner(
|
|
102653
|
+
async ({ page_id, scheduledAt }) => {
|
|
102654
|
+
const _client = await sdkForProject();
|
|
102655
|
+
const _apiPath = `/pages/editor/{page_id}/schedule`.replace(`{page_id}`, page_id);
|
|
102656
|
+
const _payload = {};
|
|
102657
|
+
if (scheduledAt !== void 0) {
|
|
102658
|
+
_payload[`scheduledAt`] = scheduledAt;
|
|
102659
|
+
}
|
|
102660
|
+
const _headers = {
|
|
102661
|
+
"content-type": "application/json"
|
|
102662
|
+
};
|
|
102663
|
+
const _response = await _client.call(
|
|
102664
|
+
`post`,
|
|
102665
|
+
_apiPath,
|
|
102666
|
+
_headers,
|
|
102667
|
+
_payload
|
|
102668
|
+
);
|
|
102669
|
+
parse3(_response);
|
|
102670
|
+
}
|
|
102671
|
+
)
|
|
102672
|
+
);
|
|
102673
|
+
pages.command(`pages-editor-state`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102674
|
+
actionRunner(
|
|
102675
|
+
async ({ page_id }) => {
|
|
102676
|
+
const _client = await sdkForProject();
|
|
102677
|
+
const _apiPath = `/pages/editor/{page_id}/state`.replace(`{page_id}`, page_id);
|
|
102678
|
+
const _payload = {};
|
|
102679
|
+
const _headers = {
|
|
102680
|
+
"content-type": "application/json"
|
|
102681
|
+
};
|
|
102682
|
+
const _response = await _client.call(
|
|
102683
|
+
`get`,
|
|
102684
|
+
_apiPath,
|
|
102685
|
+
_headers,
|
|
102686
|
+
_payload
|
|
102687
|
+
);
|
|
102688
|
+
parse3(_response);
|
|
102689
|
+
}
|
|
102690
|
+
)
|
|
102691
|
+
);
|
|
102692
|
+
pages.command(`pages-editor-take-ownership`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102693
|
+
actionRunner(
|
|
102694
|
+
async ({ page_id }) => {
|
|
102695
|
+
const _client = await sdkForProject();
|
|
102696
|
+
const _apiPath = `/pages/editor/{page_id}/take-ownership`.replace(`{page_id}`, page_id);
|
|
102697
|
+
const _payload = {};
|
|
102698
|
+
const _headers = {
|
|
102699
|
+
"content-type": "application/json"
|
|
102700
|
+
};
|
|
102701
|
+
const _response = await _client.call(
|
|
102702
|
+
`post`,
|
|
102703
|
+
_apiPath,
|
|
102704
|
+
_headers,
|
|
102705
|
+
_payload
|
|
102706
|
+
);
|
|
102707
|
+
parse3(_response);
|
|
102708
|
+
}
|
|
102709
|
+
)
|
|
102710
|
+
);
|
|
102711
|
+
pages.command(`pages-editor-templates-create`).description(``).requiredOption(`--page-_id <page-_id>`, ``).requiredOption(`--label <label>`, ``).requiredOption(`--uuids [uuids...]`, ``).option(`--description <description>`, ``).option(`--field-name <field-name>`, ``).option(
|
|
102712
|
+
`--is-default [value]`,
|
|
102713
|
+
``,
|
|
102714
|
+
(value) => value === void 0 ? true : parseBool(value)
|
|
102715
|
+
).option(`--page-bundle <page-bundle>`, ``).action(
|
|
102716
|
+
actionRunner(
|
|
102717
|
+
async ({ page_id, label, uuids, description: description2, fieldName, isDefault, pageBundle }) => {
|
|
102718
|
+
const _client = await sdkForProject();
|
|
102719
|
+
const _apiPath = `/pages/editor/{page_id}/templates`.replace(`{page_id}`, page_id);
|
|
102720
|
+
const _payload = {};
|
|
102721
|
+
if (description2 !== void 0) {
|
|
102722
|
+
_payload[`description`] = description2;
|
|
102723
|
+
}
|
|
102724
|
+
if (fieldName !== void 0) {
|
|
102725
|
+
_payload[`fieldName`] = fieldName;
|
|
102726
|
+
}
|
|
102727
|
+
if (isDefault !== void 0) {
|
|
102728
|
+
_payload[`isDefault`] = isDefault;
|
|
102729
|
+
}
|
|
102730
|
+
if (label !== void 0) {
|
|
102731
|
+
_payload[`label`] = label;
|
|
102732
|
+
}
|
|
102733
|
+
if (pageBundle !== void 0) {
|
|
102734
|
+
_payload[`pageBundle`] = pageBundle;
|
|
102735
|
+
}
|
|
102736
|
+
if (uuids !== void 0) {
|
|
102737
|
+
_payload[`uuids`] = uuids;
|
|
102738
|
+
}
|
|
102739
|
+
const _headers = {
|
|
102740
|
+
"content-type": "application/json"
|
|
102741
|
+
};
|
|
102742
|
+
const _response = await _client.call(
|
|
102743
|
+
`post`,
|
|
102744
|
+
_apiPath,
|
|
102745
|
+
_headers,
|
|
102746
|
+
_payload
|
|
102747
|
+
);
|
|
102748
|
+
parse3(_response);
|
|
102749
|
+
}
|
|
102750
|
+
)
|
|
102751
|
+
);
|
|
102752
|
+
pages.command(`pages-editor-unschedule`).description(``).requiredOption(`--page-_id <page-_id>`, ``).action(
|
|
102753
|
+
actionRunner(
|
|
102754
|
+
async ({ page_id }) => {
|
|
102755
|
+
const _client = await sdkForProject();
|
|
102756
|
+
const _apiPath = `/pages/editor/{page_id}/unschedule`.replace(`{page_id}`, page_id);
|
|
102757
|
+
const _payload = {};
|
|
102758
|
+
const _headers = {
|
|
102759
|
+
"content-type": "application/json"
|
|
102760
|
+
};
|
|
102761
|
+
const _response = await _client.call(
|
|
102762
|
+
`post`,
|
|
102763
|
+
_apiPath,
|
|
102764
|
+
_headers,
|
|
102765
|
+
_payload
|
|
102766
|
+
);
|
|
102767
|
+
parse3(_response);
|
|
102768
|
+
}
|
|
102769
|
+
)
|
|
102770
|
+
);
|
|
102771
|
+
pages.command(`pages-library-list`).description(``).action(
|
|
102772
|
+
actionRunner(
|
|
102773
|
+
async () => {
|
|
102774
|
+
const _client = await sdkForProject();
|
|
102775
|
+
const _apiPath = `/pages/library`;
|
|
102776
|
+
const _payload = {};
|
|
102777
|
+
const _headers = {
|
|
102778
|
+
"content-type": "application/json"
|
|
102779
|
+
};
|
|
102780
|
+
const _response = await _client.call(
|
|
102781
|
+
`get`,
|
|
102782
|
+
_apiPath,
|
|
102783
|
+
_headers,
|
|
102784
|
+
_payload
|
|
102785
|
+
);
|
|
102786
|
+
parse3(_response);
|
|
102787
|
+
}
|
|
102788
|
+
)
|
|
102789
|
+
);
|
|
102790
|
+
pages.command(`pages-library-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102791
|
+
actionRunner(
|
|
102792
|
+
async ({ id }) => {
|
|
102793
|
+
const _client = await sdkForProject();
|
|
102794
|
+
const _apiPath = `/pages/library/{id}`.replace(`{id}`, id);
|
|
102795
|
+
const _payload = {};
|
|
102796
|
+
const _headers = {
|
|
102797
|
+
"content-type": "application/json"
|
|
102798
|
+
};
|
|
102799
|
+
const _response = await _client.call(
|
|
102800
|
+
`delete`,
|
|
102801
|
+
_apiPath,
|
|
102802
|
+
_headers,
|
|
102803
|
+
_payload
|
|
102804
|
+
);
|
|
102805
|
+
parse3(_response);
|
|
102806
|
+
}
|
|
102807
|
+
)
|
|
102808
|
+
);
|
|
102809
|
+
pages.command(`pages-library-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102810
|
+
actionRunner(
|
|
102811
|
+
async ({ id }) => {
|
|
102812
|
+
const _client = await sdkForProject();
|
|
102813
|
+
const _apiPath = `/pages/library/{id}`.replace(`{id}`, id);
|
|
102814
|
+
const _payload = {};
|
|
102815
|
+
const _headers = {
|
|
102816
|
+
"content-type": "application/json"
|
|
102817
|
+
};
|
|
102818
|
+
const _response = await _client.call(
|
|
102819
|
+
`get`,
|
|
102820
|
+
_apiPath,
|
|
102821
|
+
_headers,
|
|
102822
|
+
_payload
|
|
102823
|
+
);
|
|
102824
|
+
parse3(_response);
|
|
102825
|
+
}
|
|
102826
|
+
)
|
|
102827
|
+
);
|
|
102828
|
+
pages.command(`pages-library-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102829
|
+
actionRunner(
|
|
102830
|
+
async ({ id }) => {
|
|
102831
|
+
const _client = await sdkForProject();
|
|
102832
|
+
const _apiPath = `/pages/library/{id}`.replace(`{id}`, id);
|
|
102833
|
+
const _payload = {};
|
|
102834
|
+
const _headers = {
|
|
102835
|
+
"content-type": "application/json"
|
|
102836
|
+
};
|
|
102837
|
+
const _response = await _client.call(
|
|
102838
|
+
`put`,
|
|
102839
|
+
_apiPath,
|
|
102840
|
+
_headers,
|
|
102841
|
+
_payload
|
|
102842
|
+
);
|
|
102843
|
+
parse3(_response);
|
|
102844
|
+
}
|
|
102845
|
+
)
|
|
102846
|
+
);
|
|
102847
|
+
pages.command(`pages-pages-list`).description(``).action(
|
|
102848
|
+
actionRunner(
|
|
102849
|
+
async () => {
|
|
102850
|
+
const _client = await sdkForProject();
|
|
102851
|
+
const _apiPath = `/pages/pages`;
|
|
102852
|
+
const _payload = {};
|
|
102853
|
+
const _headers = {
|
|
102854
|
+
"content-type": "application/json"
|
|
102855
|
+
};
|
|
102856
|
+
const _response = await _client.call(
|
|
102857
|
+
`get`,
|
|
102858
|
+
_apiPath,
|
|
102859
|
+
_headers,
|
|
102860
|
+
_payload
|
|
102861
|
+
);
|
|
102862
|
+
parse3(_response);
|
|
102863
|
+
}
|
|
102864
|
+
)
|
|
102865
|
+
);
|
|
102866
|
+
pages.command(`pages-pages-create`).description(``).action(
|
|
102867
|
+
actionRunner(
|
|
102868
|
+
async () => {
|
|
102869
|
+
const _client = await sdkForProject();
|
|
102870
|
+
const _apiPath = `/pages/pages`;
|
|
102871
|
+
const _payload = {};
|
|
102872
|
+
const _headers = {
|
|
102873
|
+
"content-type": "application/json"
|
|
102874
|
+
};
|
|
102875
|
+
const _response = await _client.call(
|
|
102876
|
+
`post`,
|
|
102877
|
+
_apiPath,
|
|
102878
|
+
_headers,
|
|
102879
|
+
_payload
|
|
102880
|
+
);
|
|
102881
|
+
parse3(_response);
|
|
102882
|
+
}
|
|
102883
|
+
)
|
|
102884
|
+
);
|
|
102885
|
+
pages.command(`pages-pages-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102886
|
+
actionRunner(
|
|
102887
|
+
async ({ id }) => {
|
|
102888
|
+
const _client = await sdkForProject();
|
|
102889
|
+
const _apiPath = `/pages/pages/{id}`.replace(`{id}`, id);
|
|
102890
|
+
const _payload = {};
|
|
102891
|
+
const _headers = {
|
|
102892
|
+
"content-type": "application/json"
|
|
102893
|
+
};
|
|
102894
|
+
const _response = await _client.call(
|
|
102895
|
+
`delete`,
|
|
102896
|
+
_apiPath,
|
|
102897
|
+
_headers,
|
|
102898
|
+
_payload
|
|
102899
|
+
);
|
|
102900
|
+
parse3(_response);
|
|
102901
|
+
}
|
|
102902
|
+
)
|
|
102903
|
+
);
|
|
102904
|
+
pages.command(`pages-pages-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102905
|
+
actionRunner(
|
|
102906
|
+
async ({ id }) => {
|
|
102907
|
+
const _client = await sdkForProject();
|
|
102908
|
+
const _apiPath = `/pages/pages/{id}`.replace(`{id}`, id);
|
|
102909
|
+
const _payload = {};
|
|
102910
|
+
const _headers = {
|
|
102911
|
+
"content-type": "application/json"
|
|
102912
|
+
};
|
|
102913
|
+
const _response = await _client.call(
|
|
102914
|
+
`get`,
|
|
102915
|
+
_apiPath,
|
|
102916
|
+
_headers,
|
|
102917
|
+
_payload
|
|
102918
|
+
);
|
|
102919
|
+
parse3(_response);
|
|
102920
|
+
}
|
|
102921
|
+
)
|
|
102922
|
+
);
|
|
102923
|
+
pages.command(`pages-pages-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102924
|
+
actionRunner(
|
|
102925
|
+
async ({ id }) => {
|
|
102926
|
+
const _client = await sdkForProject();
|
|
102927
|
+
const _apiPath = `/pages/pages/{id}`.replace(`{id}`, id);
|
|
102928
|
+
const _payload = {};
|
|
102929
|
+
const _headers = {
|
|
102930
|
+
"content-type": "application/json"
|
|
102931
|
+
};
|
|
102932
|
+
const _response = await _client.call(
|
|
102933
|
+
`put`,
|
|
102934
|
+
_apiPath,
|
|
102935
|
+
_headers,
|
|
102936
|
+
_payload
|
|
102937
|
+
);
|
|
102938
|
+
parse3(_response);
|
|
102939
|
+
}
|
|
102940
|
+
)
|
|
102941
|
+
);
|
|
102942
|
+
pages.command(`pages-pages-revisions`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
102943
|
+
actionRunner(
|
|
102944
|
+
async ({ id }) => {
|
|
102945
|
+
const _client = await sdkForProject();
|
|
102946
|
+
const _apiPath = `/pages/pages/{id}/revisions`.replace(`{id}`, id);
|
|
102947
|
+
const _payload = {};
|
|
102948
|
+
const _headers = {
|
|
102949
|
+
"content-type": "application/json"
|
|
102950
|
+
};
|
|
102951
|
+
const _response = await _client.call(
|
|
102952
|
+
`get`,
|
|
102953
|
+
_apiPath,
|
|
102954
|
+
_headers,
|
|
102955
|
+
_payload
|
|
102956
|
+
);
|
|
102957
|
+
parse3(_response);
|
|
102958
|
+
}
|
|
102959
|
+
)
|
|
102960
|
+
);
|
|
102961
|
+
pages.command(`pages-seed`).description(``).action(
|
|
102962
|
+
actionRunner(
|
|
102963
|
+
async () => {
|
|
102964
|
+
const _client = await sdkForProject();
|
|
102965
|
+
const _apiPath = `/pages/seed`;
|
|
102966
|
+
const _payload = {};
|
|
102967
|
+
const _headers = {
|
|
102968
|
+
"content-type": "application/json"
|
|
102969
|
+
};
|
|
102970
|
+
const _response = await _client.call(
|
|
102971
|
+
`post`,
|
|
102972
|
+
_apiPath,
|
|
102973
|
+
_headers,
|
|
102974
|
+
_payload
|
|
102975
|
+
);
|
|
102976
|
+
parse3(_response);
|
|
102977
|
+
}
|
|
102978
|
+
)
|
|
102979
|
+
);
|
|
102980
|
+
pages.command(`pages-templates-list`).description(``).action(
|
|
102981
|
+
actionRunner(
|
|
102982
|
+
async () => {
|
|
102983
|
+
const _client = await sdkForProject();
|
|
102984
|
+
const _apiPath = `/pages/templates`;
|
|
102985
|
+
const _payload = {};
|
|
102986
|
+
const _headers = {
|
|
102987
|
+
"content-type": "application/json"
|
|
102988
|
+
};
|
|
102989
|
+
const _response = await _client.call(
|
|
102990
|
+
`get`,
|
|
102991
|
+
_apiPath,
|
|
102992
|
+
_headers,
|
|
102993
|
+
_payload
|
|
102994
|
+
);
|
|
102995
|
+
parse3(_response);
|
|
102996
|
+
}
|
|
102997
|
+
)
|
|
102998
|
+
);
|
|
102999
|
+
pages.command(`pages-templates-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103000
|
+
actionRunner(
|
|
103001
|
+
async ({ id }) => {
|
|
103002
|
+
const _client = await sdkForProject();
|
|
103003
|
+
const _apiPath = `/pages/templates/{id}`.replace(`{id}`, id);
|
|
103004
|
+
const _payload = {};
|
|
103005
|
+
const _headers = {
|
|
103006
|
+
"content-type": "application/json"
|
|
103007
|
+
};
|
|
103008
|
+
const _response = await _client.call(
|
|
103009
|
+
`delete`,
|
|
103010
|
+
_apiPath,
|
|
103011
|
+
_headers,
|
|
103012
|
+
_payload
|
|
103013
|
+
);
|
|
103014
|
+
parse3(_response);
|
|
103015
|
+
}
|
|
103016
|
+
)
|
|
103017
|
+
);
|
|
103018
|
+
pages.command(`pages-templates-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103019
|
+
actionRunner(
|
|
103020
|
+
async ({ id }) => {
|
|
103021
|
+
const _client = await sdkForProject();
|
|
103022
|
+
const _apiPath = `/pages/templates/{id}`.replace(`{id}`, id);
|
|
103023
|
+
const _payload = {};
|
|
103024
|
+
const _headers = {
|
|
103025
|
+
"content-type": "application/json"
|
|
103026
|
+
};
|
|
103027
|
+
const _response = await _client.call(
|
|
103028
|
+
`get`,
|
|
103029
|
+
_apiPath,
|
|
103030
|
+
_headers,
|
|
103031
|
+
_payload
|
|
103032
|
+
);
|
|
103033
|
+
parse3(_response);
|
|
103034
|
+
}
|
|
103035
|
+
)
|
|
103036
|
+
);
|
|
103037
|
+
pages.command(`pages-templates-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103038
|
+
actionRunner(
|
|
103039
|
+
async ({ id }) => {
|
|
103040
|
+
const _client = await sdkForProject();
|
|
103041
|
+
const _apiPath = `/pages/templates/{id}`.replace(`{id}`, id);
|
|
103042
|
+
const _payload = {};
|
|
103043
|
+
const _headers = {
|
|
103044
|
+
"content-type": "application/json"
|
|
103045
|
+
};
|
|
103046
|
+
const _response = await _client.call(
|
|
103047
|
+
`put`,
|
|
103048
|
+
_apiPath,
|
|
103049
|
+
_headers,
|
|
103050
|
+
_payload
|
|
103051
|
+
);
|
|
103052
|
+
parse3(_response);
|
|
103053
|
+
}
|
|
103054
|
+
)
|
|
103055
|
+
);
|
|
103056
|
+
|
|
103057
|
+
// lib/commands/services/payments.ts
|
|
103058
|
+
var payments = new Command("payments").description(commandDescriptions["payments"] ?? "").configureHelp({
|
|
103059
|
+
helpWidth: process.stdout.columns || 80
|
|
103060
|
+
});
|
|
103061
|
+
payments.command(`payments-list`).description(``).action(
|
|
103062
|
+
actionRunner(
|
|
103063
|
+
async () => {
|
|
103064
|
+
const _client = await sdkForProject();
|
|
103065
|
+
const _apiPath = `/payments`;
|
|
103066
|
+
const _payload = {};
|
|
103067
|
+
const _headers = {
|
|
103068
|
+
"content-type": "application/json"
|
|
103069
|
+
};
|
|
103070
|
+
const _response = await _client.call(
|
|
103071
|
+
`get`,
|
|
103072
|
+
_apiPath,
|
|
103073
|
+
_headers,
|
|
103074
|
+
_payload
|
|
103075
|
+
);
|
|
103076
|
+
parse3(_response);
|
|
103077
|
+
}
|
|
103078
|
+
)
|
|
103079
|
+
);
|
|
103080
|
+
payments.command(`payments-create`).description(``).action(
|
|
103081
|
+
actionRunner(
|
|
103082
|
+
async () => {
|
|
103083
|
+
const _client = await sdkForProject();
|
|
103084
|
+
const _apiPath = `/payments`;
|
|
103085
|
+
const _payload = {};
|
|
103086
|
+
const _headers = {
|
|
103087
|
+
"content-type": "application/json"
|
|
103088
|
+
};
|
|
103089
|
+
const _response = await _client.call(
|
|
103090
|
+
`post`,
|
|
103091
|
+
_apiPath,
|
|
103092
|
+
_headers,
|
|
103093
|
+
_payload
|
|
103094
|
+
);
|
|
103095
|
+
parse3(_response);
|
|
103096
|
+
}
|
|
103097
|
+
)
|
|
103098
|
+
);
|
|
103099
|
+
payments.command(`payments-methods-list`).description(``).action(
|
|
103100
|
+
actionRunner(
|
|
103101
|
+
async () => {
|
|
103102
|
+
const _client = await sdkForProject();
|
|
103103
|
+
const _apiPath = `/payments/methods`;
|
|
103104
|
+
const _payload = {};
|
|
103105
|
+
const _headers = {
|
|
103106
|
+
"content-type": "application/json"
|
|
103107
|
+
};
|
|
103108
|
+
const _response = await _client.call(
|
|
103109
|
+
`get`,
|
|
103110
|
+
_apiPath,
|
|
103111
|
+
_headers,
|
|
103112
|
+
_payload
|
|
103113
|
+
);
|
|
103114
|
+
parse3(_response);
|
|
103115
|
+
}
|
|
103116
|
+
)
|
|
103117
|
+
);
|
|
103118
|
+
payments.command(`payments-methods-create`).description(``).action(
|
|
103119
|
+
actionRunner(
|
|
103120
|
+
async () => {
|
|
103121
|
+
const _client = await sdkForProject();
|
|
103122
|
+
const _apiPath = `/payments/methods`;
|
|
103123
|
+
const _payload = {};
|
|
103124
|
+
const _headers = {
|
|
103125
|
+
"content-type": "application/json"
|
|
103126
|
+
};
|
|
103127
|
+
const _response = await _client.call(
|
|
103128
|
+
`post`,
|
|
103129
|
+
_apiPath,
|
|
103130
|
+
_headers,
|
|
103131
|
+
_payload
|
|
103132
|
+
);
|
|
103133
|
+
parse3(_response);
|
|
103134
|
+
}
|
|
103135
|
+
)
|
|
103136
|
+
);
|
|
103137
|
+
payments.command(`payments-methods-defaults`).description(``).action(
|
|
103138
|
+
actionRunner(
|
|
103139
|
+
async () => {
|
|
103140
|
+
const _client = await sdkForProject();
|
|
103141
|
+
const _apiPath = `/payments/methods/defaults`;
|
|
103142
|
+
const _payload = {};
|
|
103143
|
+
const _headers = {
|
|
103144
|
+
"content-type": "application/json"
|
|
103145
|
+
};
|
|
103146
|
+
const _response = await _client.call(
|
|
103147
|
+
`post`,
|
|
103148
|
+
_apiPath,
|
|
103149
|
+
_headers,
|
|
103150
|
+
_payload
|
|
103151
|
+
);
|
|
103152
|
+
parse3(_response);
|
|
103153
|
+
}
|
|
103154
|
+
)
|
|
103155
|
+
);
|
|
103156
|
+
payments.command(`payments-methods-eligible`).description(``).action(
|
|
103157
|
+
actionRunner(
|
|
103158
|
+
async () => {
|
|
103159
|
+
const _client = await sdkForProject();
|
|
103160
|
+
const _apiPath = `/payments/methods/eligible`;
|
|
103161
|
+
const _payload = {};
|
|
103162
|
+
const _headers = {
|
|
103163
|
+
"content-type": "application/json"
|
|
103164
|
+
};
|
|
103165
|
+
const _response = await _client.call(
|
|
103166
|
+
`post`,
|
|
103167
|
+
_apiPath,
|
|
103168
|
+
_headers,
|
|
103169
|
+
_payload
|
|
103170
|
+
);
|
|
103171
|
+
parse3(_response);
|
|
103172
|
+
}
|
|
103173
|
+
)
|
|
103174
|
+
);
|
|
103175
|
+
payments.command(`payments-methods-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103176
|
+
actionRunner(
|
|
103177
|
+
async ({ id }) => {
|
|
103178
|
+
const _client = await sdkForProject();
|
|
103179
|
+
const _apiPath = `/payments/methods/{id}`.replace(`{id}`, id);
|
|
103180
|
+
const _payload = {};
|
|
103181
|
+
const _headers = {
|
|
103182
|
+
"content-type": "application/json"
|
|
103183
|
+
};
|
|
103184
|
+
const _response = await _client.call(
|
|
103185
|
+
`delete`,
|
|
103186
|
+
_apiPath,
|
|
103187
|
+
_headers,
|
|
103188
|
+
_payload
|
|
103189
|
+
);
|
|
103190
|
+
parse3(_response);
|
|
103191
|
+
}
|
|
103192
|
+
)
|
|
103193
|
+
);
|
|
103194
|
+
payments.command(`payments-methods-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103195
|
+
actionRunner(
|
|
103196
|
+
async ({ id }) => {
|
|
103197
|
+
const _client = await sdkForProject();
|
|
103198
|
+
const _apiPath = `/payments/methods/{id}`.replace(`{id}`, id);
|
|
103199
|
+
const _payload = {};
|
|
103200
|
+
const _headers = {
|
|
103201
|
+
"content-type": "application/json"
|
|
103202
|
+
};
|
|
103203
|
+
const _response = await _client.call(
|
|
103204
|
+
`get`,
|
|
103205
|
+
_apiPath,
|
|
103206
|
+
_headers,
|
|
103207
|
+
_payload
|
|
103208
|
+
);
|
|
103209
|
+
parse3(_response);
|
|
103210
|
+
}
|
|
103211
|
+
)
|
|
103212
|
+
);
|
|
103213
|
+
payments.command(`payments-methods-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103214
|
+
actionRunner(
|
|
103215
|
+
async ({ id }) => {
|
|
103216
|
+
const _client = await sdkForProject();
|
|
103217
|
+
const _apiPath = `/payments/methods/{id}`.replace(`{id}`, id);
|
|
103218
|
+
const _payload = {};
|
|
103219
|
+
const _headers = {
|
|
103220
|
+
"content-type": "application/json"
|
|
103221
|
+
};
|
|
103222
|
+
const _response = await _client.call(
|
|
103223
|
+
`put`,
|
|
103224
|
+
_apiPath,
|
|
103225
|
+
_headers,
|
|
103226
|
+
_payload
|
|
103227
|
+
);
|
|
103228
|
+
parse3(_response);
|
|
103229
|
+
}
|
|
103230
|
+
)
|
|
103231
|
+
);
|
|
103232
|
+
payments.command(`payments-providers-list`).description(``).action(
|
|
103233
|
+
actionRunner(
|
|
103234
|
+
async () => {
|
|
103235
|
+
const _client = await sdkForProject();
|
|
103236
|
+
const _apiPath = `/payments/providers`;
|
|
103237
|
+
const _payload = {};
|
|
103238
|
+
const _headers = {
|
|
103239
|
+
"content-type": "application/json"
|
|
103240
|
+
};
|
|
103241
|
+
const _response = await _client.call(
|
|
103242
|
+
`get`,
|
|
103243
|
+
_apiPath,
|
|
103244
|
+
_headers,
|
|
103245
|
+
_payload
|
|
103246
|
+
);
|
|
103247
|
+
parse3(_response);
|
|
103248
|
+
}
|
|
103249
|
+
)
|
|
103250
|
+
);
|
|
103251
|
+
payments.command(`payments-providers-create`).description(``).action(
|
|
103252
|
+
actionRunner(
|
|
103253
|
+
async () => {
|
|
103254
|
+
const _client = await sdkForProject();
|
|
103255
|
+
const _apiPath = `/payments/providers`;
|
|
103256
|
+
const _payload = {};
|
|
103257
|
+
const _headers = {
|
|
103258
|
+
"content-type": "application/json"
|
|
103259
|
+
};
|
|
103260
|
+
const _response = await _client.call(
|
|
103261
|
+
`post`,
|
|
103262
|
+
_apiPath,
|
|
103263
|
+
_headers,
|
|
103264
|
+
_payload
|
|
103265
|
+
);
|
|
103266
|
+
parse3(_response);
|
|
103267
|
+
}
|
|
103268
|
+
)
|
|
103269
|
+
);
|
|
103270
|
+
payments.command(`payments-providers-catalog`).description(``).action(
|
|
103271
|
+
actionRunner(
|
|
103272
|
+
async () => {
|
|
103273
|
+
const _client = await sdkForProject();
|
|
103274
|
+
const _apiPath = `/payments/providers/catalog`;
|
|
103275
|
+
const _payload = {};
|
|
103276
|
+
const _headers = {
|
|
103277
|
+
"content-type": "application/json"
|
|
103278
|
+
};
|
|
103279
|
+
const _response = await _client.call(
|
|
103280
|
+
`get`,
|
|
103281
|
+
_apiPath,
|
|
103282
|
+
_headers,
|
|
103283
|
+
_payload
|
|
103284
|
+
);
|
|
103285
|
+
parse3(_response);
|
|
103286
|
+
}
|
|
103287
|
+
)
|
|
103288
|
+
);
|
|
103289
|
+
payments.command(`payments-providers-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103290
|
+
actionRunner(
|
|
103291
|
+
async ({ id }) => {
|
|
103292
|
+
const _client = await sdkForProject();
|
|
103293
|
+
const _apiPath = `/payments/providers/{id}`.replace(`{id}`, id);
|
|
103294
|
+
const _payload = {};
|
|
103295
|
+
const _headers = {
|
|
103296
|
+
"content-type": "application/json"
|
|
103297
|
+
};
|
|
103298
|
+
const _response = await _client.call(
|
|
103299
|
+
`delete`,
|
|
103300
|
+
_apiPath,
|
|
103301
|
+
_headers,
|
|
103302
|
+
_payload
|
|
103303
|
+
);
|
|
103304
|
+
parse3(_response);
|
|
103305
|
+
}
|
|
103306
|
+
)
|
|
103307
|
+
);
|
|
103308
|
+
payments.command(`payments-providers-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103309
|
+
actionRunner(
|
|
103310
|
+
async ({ id }) => {
|
|
103311
|
+
const _client = await sdkForProject();
|
|
103312
|
+
const _apiPath = `/payments/providers/{id}`.replace(`{id}`, id);
|
|
103313
|
+
const _payload = {};
|
|
103314
|
+
const _headers = {
|
|
103315
|
+
"content-type": "application/json"
|
|
103316
|
+
};
|
|
103317
|
+
const _response = await _client.call(
|
|
103318
|
+
`get`,
|
|
103319
|
+
_apiPath,
|
|
103320
|
+
_headers,
|
|
103321
|
+
_payload
|
|
103322
|
+
);
|
|
103323
|
+
parse3(_response);
|
|
103324
|
+
}
|
|
103325
|
+
)
|
|
103326
|
+
);
|
|
103327
|
+
payments.command(`payments-providers-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103328
|
+
actionRunner(
|
|
103329
|
+
async ({ id }) => {
|
|
103330
|
+
const _client = await sdkForProject();
|
|
103331
|
+
const _apiPath = `/payments/providers/{id}`.replace(`{id}`, id);
|
|
103332
|
+
const _payload = {};
|
|
103333
|
+
const _headers = {
|
|
103334
|
+
"content-type": "application/json"
|
|
103335
|
+
};
|
|
103336
|
+
const _response = await _client.call(
|
|
103337
|
+
`put`,
|
|
103338
|
+
_apiPath,
|
|
103339
|
+
_headers,
|
|
103340
|
+
_payload
|
|
103341
|
+
);
|
|
103342
|
+
parse3(_response);
|
|
103343
|
+
}
|
|
103344
|
+
)
|
|
103345
|
+
);
|
|
103346
|
+
payments.command(`payments-webhooks-ingest`).description(`Consumes the dispatch envelope from webhooks.revenexx.com: normalizes the provider callback (stripe payment intents + a generic shape), resolves the payment by psp_payment_id or order_ref and moves the ledger. Facts only move forward \u2014 provider retries and redeliveries are idempotent no-ops; unverified envelopes are refused.`).requiredOption(`--provider <provider>`, ``).action(
|
|
103347
|
+
actionRunner(
|
|
103348
|
+
async ({ provider }) => {
|
|
103349
|
+
const _client = await sdkForProject();
|
|
103350
|
+
const _apiPath = `/payments/webhooks/{provider}`.replace(`{provider}`, provider);
|
|
103351
|
+
const _payload = {};
|
|
103352
|
+
const _headers = {
|
|
103353
|
+
"content-type": "application/json"
|
|
103354
|
+
};
|
|
103355
|
+
const _response = await _client.call(
|
|
103356
|
+
`post`,
|
|
103357
|
+
_apiPath,
|
|
103358
|
+
_headers,
|
|
103359
|
+
_payload
|
|
103360
|
+
);
|
|
103361
|
+
parse3(_response);
|
|
103362
|
+
}
|
|
103363
|
+
)
|
|
103364
|
+
);
|
|
103365
|
+
payments.command(`payments-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103366
|
+
actionRunner(
|
|
103367
|
+
async ({ id }) => {
|
|
103368
|
+
const _client = await sdkForProject();
|
|
103369
|
+
const _apiPath = `/payments/{id}`.replace(`{id}`, id);
|
|
103370
|
+
const _payload = {};
|
|
103371
|
+
const _headers = {
|
|
103372
|
+
"content-type": "application/json"
|
|
103373
|
+
};
|
|
103374
|
+
const _response = await _client.call(
|
|
103375
|
+
`get`,
|
|
103376
|
+
_apiPath,
|
|
103377
|
+
_headers,
|
|
103378
|
+
_payload
|
|
103379
|
+
);
|
|
103380
|
+
parse3(_response);
|
|
103381
|
+
}
|
|
103382
|
+
)
|
|
103383
|
+
);
|
|
103384
|
+
payments.command(`payments-cancel`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103385
|
+
actionRunner(
|
|
103386
|
+
async ({ id }) => {
|
|
103387
|
+
const _client = await sdkForProject();
|
|
103388
|
+
const _apiPath = `/payments/{id}/cancel`.replace(`{id}`, id);
|
|
103389
|
+
const _payload = {};
|
|
103390
|
+
const _headers = {
|
|
103391
|
+
"content-type": "application/json"
|
|
103392
|
+
};
|
|
103393
|
+
const _response = await _client.call(
|
|
103394
|
+
`post`,
|
|
103395
|
+
_apiPath,
|
|
103396
|
+
_headers,
|
|
103397
|
+
_payload
|
|
103398
|
+
);
|
|
103399
|
+
parse3(_response);
|
|
103400
|
+
}
|
|
103401
|
+
)
|
|
103402
|
+
);
|
|
103403
|
+
payments.command(`payments-capture`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103404
|
+
actionRunner(
|
|
103405
|
+
async ({ id }) => {
|
|
103406
|
+
const _client = await sdkForProject();
|
|
103407
|
+
const _apiPath = `/payments/{id}/capture`.replace(`{id}`, id);
|
|
103408
|
+
const _payload = {};
|
|
103409
|
+
const _headers = {
|
|
103410
|
+
"content-type": "application/json"
|
|
103411
|
+
};
|
|
103412
|
+
const _response = await _client.call(
|
|
103413
|
+
`post`,
|
|
103414
|
+
_apiPath,
|
|
103415
|
+
_headers,
|
|
103416
|
+
_payload
|
|
103417
|
+
);
|
|
103418
|
+
parse3(_response);
|
|
103419
|
+
}
|
|
103420
|
+
)
|
|
103421
|
+
);
|
|
103422
|
+
payments.command(`payments-confirm`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103423
|
+
actionRunner(
|
|
103424
|
+
async ({ id }) => {
|
|
103425
|
+
const _client = await sdkForProject();
|
|
103426
|
+
const _apiPath = `/payments/{id}/confirm`.replace(`{id}`, id);
|
|
103427
|
+
const _payload = {};
|
|
103428
|
+
const _headers = {
|
|
103429
|
+
"content-type": "application/json"
|
|
103430
|
+
};
|
|
103431
|
+
const _response = await _client.call(
|
|
103432
|
+
`post`,
|
|
103433
|
+
_apiPath,
|
|
103434
|
+
_headers,
|
|
103435
|
+
_payload
|
|
103436
|
+
);
|
|
103437
|
+
parse3(_response);
|
|
103438
|
+
}
|
|
103439
|
+
)
|
|
103440
|
+
);
|
|
103441
|
+
payments.command(`payments-refund`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103442
|
+
actionRunner(
|
|
103443
|
+
async ({ id }) => {
|
|
103444
|
+
const _client = await sdkForProject();
|
|
103445
|
+
const _apiPath = `/payments/{id}/refund`.replace(`{id}`, id);
|
|
103446
|
+
const _payload = {};
|
|
103447
|
+
const _headers = {
|
|
103448
|
+
"content-type": "application/json"
|
|
103449
|
+
};
|
|
103450
|
+
const _response = await _client.call(
|
|
103451
|
+
`post`,
|
|
103452
|
+
_apiPath,
|
|
103453
|
+
_headers,
|
|
103454
|
+
_payload
|
|
103455
|
+
);
|
|
103456
|
+
parse3(_response);
|
|
103457
|
+
}
|
|
103458
|
+
)
|
|
103459
|
+
);
|
|
103460
|
+
|
|
103461
|
+
// lib/commands/services/prices.ts
|
|
103462
|
+
var prices = new Command("prices").description(commandDescriptions["prices"] ?? "").configureHelp({
|
|
103463
|
+
helpWidth: process.stdout.columns || 80
|
|
103464
|
+
});
|
|
103465
|
+
prices.command(`prices-lists-list`).description(``).action(
|
|
103466
|
+
actionRunner(
|
|
103467
|
+
async () => {
|
|
103468
|
+
const _client = await sdkForProject();
|
|
103469
|
+
const _apiPath = `/prices/lists`;
|
|
103470
|
+
const _payload = {};
|
|
103471
|
+
const _headers = {
|
|
103472
|
+
"content-type": "application/json"
|
|
103473
|
+
};
|
|
103474
|
+
const _response = await _client.call(
|
|
103475
|
+
`get`,
|
|
103476
|
+
_apiPath,
|
|
103477
|
+
_headers,
|
|
103478
|
+
_payload
|
|
103479
|
+
);
|
|
103480
|
+
parse3(_response);
|
|
103481
|
+
}
|
|
103482
|
+
)
|
|
103483
|
+
);
|
|
103484
|
+
prices.command(`prices-lists-create`).description(``).action(
|
|
103485
|
+
actionRunner(
|
|
103486
|
+
async () => {
|
|
103487
|
+
const _client = await sdkForProject();
|
|
103488
|
+
const _apiPath = `/prices/lists`;
|
|
103489
|
+
const _payload = {};
|
|
103490
|
+
const _headers = {
|
|
103491
|
+
"content-type": "application/json"
|
|
103492
|
+
};
|
|
103493
|
+
const _response = await _client.call(
|
|
103494
|
+
`post`,
|
|
103495
|
+
_apiPath,
|
|
103496
|
+
_headers,
|
|
103497
|
+
_payload
|
|
103498
|
+
);
|
|
103499
|
+
parse3(_response);
|
|
103500
|
+
}
|
|
103501
|
+
)
|
|
103502
|
+
);
|
|
103503
|
+
prices.command(`prices-lists-defaults`).description(``).action(
|
|
103504
|
+
actionRunner(
|
|
103505
|
+
async () => {
|
|
103506
|
+
const _client = await sdkForProject();
|
|
103507
|
+
const _apiPath = `/prices/lists/defaults`;
|
|
103508
|
+
const _payload = {};
|
|
103509
|
+
const _headers = {
|
|
103510
|
+
"content-type": "application/json"
|
|
103511
|
+
};
|
|
103512
|
+
const _response = await _client.call(
|
|
103513
|
+
`post`,
|
|
103514
|
+
_apiPath,
|
|
103515
|
+
_headers,
|
|
103516
|
+
_payload
|
|
103517
|
+
);
|
|
103518
|
+
parse3(_response);
|
|
103519
|
+
}
|
|
103520
|
+
)
|
|
103521
|
+
);
|
|
103522
|
+
prices.command(`prices-lists-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103523
|
+
actionRunner(
|
|
103524
|
+
async ({ id }) => {
|
|
103525
|
+
const _client = await sdkForProject();
|
|
103526
|
+
const _apiPath = `/prices/lists/{id}`.replace(`{id}`, id);
|
|
103527
|
+
const _payload = {};
|
|
103528
|
+
const _headers = {
|
|
103529
|
+
"content-type": "application/json"
|
|
103530
|
+
};
|
|
103531
|
+
const _response = await _client.call(
|
|
103532
|
+
`delete`,
|
|
103533
|
+
_apiPath,
|
|
103534
|
+
_headers,
|
|
103535
|
+
_payload
|
|
103536
|
+
);
|
|
103537
|
+
parse3(_response);
|
|
103538
|
+
}
|
|
103539
|
+
)
|
|
103540
|
+
);
|
|
103541
|
+
prices.command(`prices-lists-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103542
|
+
actionRunner(
|
|
103543
|
+
async ({ id }) => {
|
|
103544
|
+
const _client = await sdkForProject();
|
|
103545
|
+
const _apiPath = `/prices/lists/{id}`.replace(`{id}`, id);
|
|
103546
|
+
const _payload = {};
|
|
103547
|
+
const _headers = {
|
|
103548
|
+
"content-type": "application/json"
|
|
103549
|
+
};
|
|
103550
|
+
const _response = await _client.call(
|
|
103551
|
+
`get`,
|
|
103552
|
+
_apiPath,
|
|
103553
|
+
_headers,
|
|
103554
|
+
_payload
|
|
103555
|
+
);
|
|
103556
|
+
parse3(_response);
|
|
103557
|
+
}
|
|
103558
|
+
)
|
|
103559
|
+
);
|
|
103560
|
+
prices.command(`prices-lists-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
103561
|
+
actionRunner(
|
|
103562
|
+
async ({ id }) => {
|
|
103563
|
+
const _client = await sdkForProject();
|
|
103564
|
+
const _apiPath = `/prices/lists/{id}`.replace(`{id}`, id);
|
|
103565
|
+
const _payload = {};
|
|
103566
|
+
const _headers = {
|
|
103567
|
+
"content-type": "application/json"
|
|
103568
|
+
};
|
|
103569
|
+
const _response = await _client.call(
|
|
103570
|
+
`put`,
|
|
103571
|
+
_apiPath,
|
|
103572
|
+
_headers,
|
|
103573
|
+
_payload
|
|
103574
|
+
);
|
|
103575
|
+
parse3(_response);
|
|
103576
|
+
}
|
|
103577
|
+
)
|
|
103578
|
+
);
|
|
103579
|
+
prices.command(`prices-entries-list`).description(``).requiredOption(`--list-_id <list-_id>`, ``).action(
|
|
103580
|
+
actionRunner(
|
|
103581
|
+
async ({ list_id }) => {
|
|
103582
|
+
const _client = await sdkForProject();
|
|
103583
|
+
const _apiPath = `/prices/lists/{list_id}/entries`.replace(`{list_id}`, list_id);
|
|
103584
|
+
const _payload = {};
|
|
103585
|
+
const _headers = {
|
|
103586
|
+
"content-type": "application/json"
|
|
103587
|
+
};
|
|
103588
|
+
const _response = await _client.call(
|
|
103589
|
+
`get`,
|
|
103590
|
+
_apiPath,
|
|
103591
|
+
_headers,
|
|
103592
|
+
_payload
|
|
103593
|
+
);
|
|
103594
|
+
parse3(_response);
|
|
103595
|
+
}
|
|
103596
|
+
)
|
|
103597
|
+
);
|
|
103598
|
+
prices.command(`prices-entries-create`).description(``).requiredOption(`--list-_id <list-_id>`, ``).action(
|
|
103599
|
+
actionRunner(
|
|
103600
|
+
async ({ list_id }) => {
|
|
103601
|
+
const _client = await sdkForProject();
|
|
103602
|
+
const _apiPath = `/prices/lists/{list_id}/entries`.replace(`{list_id}`, list_id);
|
|
103603
|
+
const _payload = {};
|
|
103604
|
+
const _headers = {
|
|
103605
|
+
"content-type": "application/json"
|
|
103606
|
+
};
|
|
103607
|
+
const _response = await _client.call(
|
|
103608
|
+
`post`,
|
|
103609
|
+
_apiPath,
|
|
103610
|
+
_headers,
|
|
103611
|
+
_payload
|
|
103612
|
+
);
|
|
103613
|
+
parse3(_response);
|
|
103614
|
+
}
|
|
103615
|
+
)
|
|
103616
|
+
);
|
|
103617
|
+
prices.command(`prices-entries-replace`).description(``).requiredOption(`--list-_id <list-_id>`, ``).action(
|
|
103618
|
+
actionRunner(
|
|
103619
|
+
async ({ list_id }) => {
|
|
103620
|
+
const _client = await sdkForProject();
|
|
103621
|
+
const _apiPath = `/prices/lists/{list_id}/entries`.replace(`{list_id}`, list_id);
|
|
103622
|
+
const _payload = {};
|
|
103623
|
+
const _headers = {
|
|
103624
|
+
"content-type": "application/json"
|
|
103625
|
+
};
|
|
103626
|
+
const _response = await _client.call(
|
|
103627
|
+
`put`,
|
|
103628
|
+
_apiPath,
|
|
103629
|
+
_headers,
|
|
103630
|
+
_payload
|
|
103631
|
+
);
|
|
103632
|
+
parse3(_response);
|
|
103633
|
+
}
|
|
103634
|
+
)
|
|
103635
|
+
);
|
|
103636
|
+
prices.command(`prices-entries-delete`).description(``).requiredOption(`--list-_id <list-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
103637
|
+
actionRunner(
|
|
103638
|
+
async ({ list_id, id }) => {
|
|
103639
|
+
const _client = await sdkForProject();
|
|
103640
|
+
const _apiPath = `/prices/lists/{list_id}/entries/{id}`.replace(`{list_id}`, list_id).replace(`{id}`, id);
|
|
103641
|
+
const _payload = {};
|
|
103642
|
+
const _headers = {
|
|
103643
|
+
"content-type": "application/json"
|
|
103644
|
+
};
|
|
103645
|
+
const _response = await _client.call(
|
|
103646
|
+
`delete`,
|
|
103647
|
+
_apiPath,
|
|
103648
|
+
_headers,
|
|
103649
|
+
_payload
|
|
103650
|
+
);
|
|
103651
|
+
parse3(_response);
|
|
103652
|
+
}
|
|
103653
|
+
)
|
|
103654
|
+
);
|
|
103655
|
+
prices.command(`prices-entries-get`).description(``).requiredOption(`--list-_id <list-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
103656
|
+
actionRunner(
|
|
103657
|
+
async ({ list_id, id }) => {
|
|
103658
|
+
const _client = await sdkForProject();
|
|
103659
|
+
const _apiPath = `/prices/lists/{list_id}/entries/{id}`.replace(`{list_id}`, list_id).replace(`{id}`, id);
|
|
103660
|
+
const _payload = {};
|
|
103661
|
+
const _headers = {
|
|
103662
|
+
"content-type": "application/json"
|
|
103663
|
+
};
|
|
103664
|
+
const _response = await _client.call(
|
|
103665
|
+
`get`,
|
|
103666
|
+
_apiPath,
|
|
103667
|
+
_headers,
|
|
103668
|
+
_payload
|
|
103669
|
+
);
|
|
103670
|
+
parse3(_response);
|
|
103671
|
+
}
|
|
103672
|
+
)
|
|
103673
|
+
);
|
|
103674
|
+
prices.command(`prices-entries-update`).description(``).requiredOption(`--list-_id <list-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
103675
|
+
actionRunner(
|
|
103676
|
+
async ({ list_id, id }) => {
|
|
103677
|
+
const _client = await sdkForProject();
|
|
103678
|
+
const _apiPath = `/prices/lists/{list_id}/entries/{id}`.replace(`{list_id}`, list_id).replace(`{id}`, id);
|
|
103679
|
+
const _payload = {};
|
|
103680
|
+
const _headers = {
|
|
103681
|
+
"content-type": "application/json"
|
|
103682
|
+
};
|
|
103683
|
+
const _response = await _client.call(
|
|
103684
|
+
`put`,
|
|
103685
|
+
_apiPath,
|
|
103686
|
+
_headers,
|
|
103687
|
+
_payload
|
|
103688
|
+
);
|
|
103689
|
+
parse3(_response);
|
|
103690
|
+
}
|
|
103691
|
+
)
|
|
103692
|
+
);
|
|
103693
|
+
prices.command(`prices-resolve`).description(``).action(
|
|
103694
|
+
actionRunner(
|
|
103695
|
+
async () => {
|
|
103696
|
+
const _client = await sdkForProject();
|
|
103697
|
+
const _apiPath = `/prices/resolve`;
|
|
103698
|
+
const _payload = {};
|
|
103699
|
+
const _headers = {
|
|
103700
|
+
"content-type": "application/json"
|
|
103701
|
+
};
|
|
103702
|
+
const _response = await _client.call(
|
|
103703
|
+
`post`,
|
|
103704
|
+
_apiPath,
|
|
103705
|
+
_headers,
|
|
103706
|
+
_payload
|
|
103707
|
+
);
|
|
103708
|
+
parse3(_response);
|
|
103709
|
+
}
|
|
103710
|
+
)
|
|
103711
|
+
);
|
|
103712
|
+
|
|
101225
103713
|
// lib/commands/services/products.ts
|
|
101226
103714
|
var products = new Command("products").description(commandDescriptions["products"] ?? "").configureHelp({
|
|
101227
103715
|
helpWidth: process.stdout.columns || 80
|
|
@@ -102889,6 +105377,258 @@ search.command(`search-multi-search`).description(`Run several searches in one r
|
|
|
102889
105377
|
)
|
|
102890
105378
|
);
|
|
102891
105379
|
|
|
105380
|
+
// lib/commands/services/shipping.ts
|
|
105381
|
+
var shipping = new Command("shipping").description(commandDescriptions["shipping"] ?? "").configureHelp({
|
|
105382
|
+
helpWidth: process.stdout.columns || 80
|
|
105383
|
+
});
|
|
105384
|
+
shipping.command(`shipping-methods-list`).description(``).action(
|
|
105385
|
+
actionRunner(
|
|
105386
|
+
async () => {
|
|
105387
|
+
const _client = await sdkForProject();
|
|
105388
|
+
const _apiPath = `/shipping/methods`;
|
|
105389
|
+
const _payload = {};
|
|
105390
|
+
const _headers = {
|
|
105391
|
+
"content-type": "application/json"
|
|
105392
|
+
};
|
|
105393
|
+
const _response = await _client.call(
|
|
105394
|
+
`get`,
|
|
105395
|
+
_apiPath,
|
|
105396
|
+
_headers,
|
|
105397
|
+
_payload
|
|
105398
|
+
);
|
|
105399
|
+
parse3(_response);
|
|
105400
|
+
}
|
|
105401
|
+
)
|
|
105402
|
+
);
|
|
105403
|
+
shipping.command(`shipping-methods-create`).description(``).action(
|
|
105404
|
+
actionRunner(
|
|
105405
|
+
async () => {
|
|
105406
|
+
const _client = await sdkForProject();
|
|
105407
|
+
const _apiPath = `/shipping/methods`;
|
|
105408
|
+
const _payload = {};
|
|
105409
|
+
const _headers = {
|
|
105410
|
+
"content-type": "application/json"
|
|
105411
|
+
};
|
|
105412
|
+
const _response = await _client.call(
|
|
105413
|
+
`post`,
|
|
105414
|
+
_apiPath,
|
|
105415
|
+
_headers,
|
|
105416
|
+
_payload
|
|
105417
|
+
);
|
|
105418
|
+
parse3(_response);
|
|
105419
|
+
}
|
|
105420
|
+
)
|
|
105421
|
+
);
|
|
105422
|
+
shipping.command(`shipping-methods-defaults`).description(``).action(
|
|
105423
|
+
actionRunner(
|
|
105424
|
+
async () => {
|
|
105425
|
+
const _client = await sdkForProject();
|
|
105426
|
+
const _apiPath = `/shipping/methods/defaults`;
|
|
105427
|
+
const _payload = {};
|
|
105428
|
+
const _headers = {
|
|
105429
|
+
"content-type": "application/json"
|
|
105430
|
+
};
|
|
105431
|
+
const _response = await _client.call(
|
|
105432
|
+
`post`,
|
|
105433
|
+
_apiPath,
|
|
105434
|
+
_headers,
|
|
105435
|
+
_payload
|
|
105436
|
+
);
|
|
105437
|
+
parse3(_response);
|
|
105438
|
+
}
|
|
105439
|
+
)
|
|
105440
|
+
);
|
|
105441
|
+
shipping.command(`shipping-methods-delete`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
105442
|
+
actionRunner(
|
|
105443
|
+
async ({ id }) => {
|
|
105444
|
+
const _client = await sdkForProject();
|
|
105445
|
+
const _apiPath = `/shipping/methods/{id}`.replace(`{id}`, id);
|
|
105446
|
+
const _payload = {};
|
|
105447
|
+
const _headers = {
|
|
105448
|
+
"content-type": "application/json"
|
|
105449
|
+
};
|
|
105450
|
+
const _response = await _client.call(
|
|
105451
|
+
`delete`,
|
|
105452
|
+
_apiPath,
|
|
105453
|
+
_headers,
|
|
105454
|
+
_payload
|
|
105455
|
+
);
|
|
105456
|
+
parse3(_response);
|
|
105457
|
+
}
|
|
105458
|
+
)
|
|
105459
|
+
);
|
|
105460
|
+
shipping.command(`shipping-methods-get`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
105461
|
+
actionRunner(
|
|
105462
|
+
async ({ id }) => {
|
|
105463
|
+
const _client = await sdkForProject();
|
|
105464
|
+
const _apiPath = `/shipping/methods/{id}`.replace(`{id}`, id);
|
|
105465
|
+
const _payload = {};
|
|
105466
|
+
const _headers = {
|
|
105467
|
+
"content-type": "application/json"
|
|
105468
|
+
};
|
|
105469
|
+
const _response = await _client.call(
|
|
105470
|
+
`get`,
|
|
105471
|
+
_apiPath,
|
|
105472
|
+
_headers,
|
|
105473
|
+
_payload
|
|
105474
|
+
);
|
|
105475
|
+
parse3(_response);
|
|
105476
|
+
}
|
|
105477
|
+
)
|
|
105478
|
+
);
|
|
105479
|
+
shipping.command(`shipping-methods-update`).description(``).requiredOption(`--id <id>`, ``).action(
|
|
105480
|
+
actionRunner(
|
|
105481
|
+
async ({ id }) => {
|
|
105482
|
+
const _client = await sdkForProject();
|
|
105483
|
+
const _apiPath = `/shipping/methods/{id}`.replace(`{id}`, id);
|
|
105484
|
+
const _payload = {};
|
|
105485
|
+
const _headers = {
|
|
105486
|
+
"content-type": "application/json"
|
|
105487
|
+
};
|
|
105488
|
+
const _response = await _client.call(
|
|
105489
|
+
`put`,
|
|
105490
|
+
_apiPath,
|
|
105491
|
+
_headers,
|
|
105492
|
+
_payload
|
|
105493
|
+
);
|
|
105494
|
+
parse3(_response);
|
|
105495
|
+
}
|
|
105496
|
+
)
|
|
105497
|
+
);
|
|
105498
|
+
shipping.command(`shipping-tiers-list`).description(``).requiredOption(`--method-_id <method-_id>`, ``).action(
|
|
105499
|
+
actionRunner(
|
|
105500
|
+
async ({ method_id }) => {
|
|
105501
|
+
const _client = await sdkForProject();
|
|
105502
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers`.replace(`{method_id}`, method_id);
|
|
105503
|
+
const _payload = {};
|
|
105504
|
+
const _headers = {
|
|
105505
|
+
"content-type": "application/json"
|
|
105506
|
+
};
|
|
105507
|
+
const _response = await _client.call(
|
|
105508
|
+
`get`,
|
|
105509
|
+
_apiPath,
|
|
105510
|
+
_headers,
|
|
105511
|
+
_payload
|
|
105512
|
+
);
|
|
105513
|
+
parse3(_response);
|
|
105514
|
+
}
|
|
105515
|
+
)
|
|
105516
|
+
);
|
|
105517
|
+
shipping.command(`shipping-tiers-create`).description(``).requiredOption(`--method-_id <method-_id>`, ``).action(
|
|
105518
|
+
actionRunner(
|
|
105519
|
+
async ({ method_id }) => {
|
|
105520
|
+
const _client = await sdkForProject();
|
|
105521
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers`.replace(`{method_id}`, method_id);
|
|
105522
|
+
const _payload = {};
|
|
105523
|
+
const _headers = {
|
|
105524
|
+
"content-type": "application/json"
|
|
105525
|
+
};
|
|
105526
|
+
const _response = await _client.call(
|
|
105527
|
+
`post`,
|
|
105528
|
+
_apiPath,
|
|
105529
|
+
_headers,
|
|
105530
|
+
_payload
|
|
105531
|
+
);
|
|
105532
|
+
parse3(_response);
|
|
105533
|
+
}
|
|
105534
|
+
)
|
|
105535
|
+
);
|
|
105536
|
+
shipping.command(`shipping-tiers-replace`).description(``).requiredOption(`--method-_id <method-_id>`, ``).action(
|
|
105537
|
+
actionRunner(
|
|
105538
|
+
async ({ method_id }) => {
|
|
105539
|
+
const _client = await sdkForProject();
|
|
105540
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers`.replace(`{method_id}`, method_id);
|
|
105541
|
+
const _payload = {};
|
|
105542
|
+
const _headers = {
|
|
105543
|
+
"content-type": "application/json"
|
|
105544
|
+
};
|
|
105545
|
+
const _response = await _client.call(
|
|
105546
|
+
`put`,
|
|
105547
|
+
_apiPath,
|
|
105548
|
+
_headers,
|
|
105549
|
+
_payload
|
|
105550
|
+
);
|
|
105551
|
+
parse3(_response);
|
|
105552
|
+
}
|
|
105553
|
+
)
|
|
105554
|
+
);
|
|
105555
|
+
shipping.command(`shipping-tiers-delete`).description(``).requiredOption(`--method-_id <method-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
105556
|
+
actionRunner(
|
|
105557
|
+
async ({ method_id, id }) => {
|
|
105558
|
+
const _client = await sdkForProject();
|
|
105559
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers/{id}`.replace(`{method_id}`, method_id).replace(`{id}`, id);
|
|
105560
|
+
const _payload = {};
|
|
105561
|
+
const _headers = {
|
|
105562
|
+
"content-type": "application/json"
|
|
105563
|
+
};
|
|
105564
|
+
const _response = await _client.call(
|
|
105565
|
+
`delete`,
|
|
105566
|
+
_apiPath,
|
|
105567
|
+
_headers,
|
|
105568
|
+
_payload
|
|
105569
|
+
);
|
|
105570
|
+
parse3(_response);
|
|
105571
|
+
}
|
|
105572
|
+
)
|
|
105573
|
+
);
|
|
105574
|
+
shipping.command(`shipping-tiers-get`).description(``).requiredOption(`--method-_id <method-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
105575
|
+
actionRunner(
|
|
105576
|
+
async ({ method_id, id }) => {
|
|
105577
|
+
const _client = await sdkForProject();
|
|
105578
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers/{id}`.replace(`{method_id}`, method_id).replace(`{id}`, id);
|
|
105579
|
+
const _payload = {};
|
|
105580
|
+
const _headers = {
|
|
105581
|
+
"content-type": "application/json"
|
|
105582
|
+
};
|
|
105583
|
+
const _response = await _client.call(
|
|
105584
|
+
`get`,
|
|
105585
|
+
_apiPath,
|
|
105586
|
+
_headers,
|
|
105587
|
+
_payload
|
|
105588
|
+
);
|
|
105589
|
+
parse3(_response);
|
|
105590
|
+
}
|
|
105591
|
+
)
|
|
105592
|
+
);
|
|
105593
|
+
shipping.command(`shipping-tiers-update`).description(``).requiredOption(`--method-_id <method-_id>`, ``).requiredOption(`--id <id>`, ``).action(
|
|
105594
|
+
actionRunner(
|
|
105595
|
+
async ({ method_id, id }) => {
|
|
105596
|
+
const _client = await sdkForProject();
|
|
105597
|
+
const _apiPath = `/shipping/methods/{method_id}/tiers/{id}`.replace(`{method_id}`, method_id).replace(`{id}`, id);
|
|
105598
|
+
const _payload = {};
|
|
105599
|
+
const _headers = {
|
|
105600
|
+
"content-type": "application/json"
|
|
105601
|
+
};
|
|
105602
|
+
const _response = await _client.call(
|
|
105603
|
+
`put`,
|
|
105604
|
+
_apiPath,
|
|
105605
|
+
_headers,
|
|
105606
|
+
_payload
|
|
105607
|
+
);
|
|
105608
|
+
parse3(_response);
|
|
105609
|
+
}
|
|
105610
|
+
)
|
|
105611
|
+
);
|
|
105612
|
+
shipping.command(`shipping-rates`).description(``).action(
|
|
105613
|
+
actionRunner(
|
|
105614
|
+
async () => {
|
|
105615
|
+
const _client = await sdkForProject();
|
|
105616
|
+
const _apiPath = `/shipping/rates`;
|
|
105617
|
+
const _payload = {};
|
|
105618
|
+
const _headers = {
|
|
105619
|
+
"content-type": "application/json"
|
|
105620
|
+
};
|
|
105621
|
+
const _response = await _client.call(
|
|
105622
|
+
`post`,
|
|
105623
|
+
_apiPath,
|
|
105624
|
+
_headers,
|
|
105625
|
+
_payload
|
|
105626
|
+
);
|
|
105627
|
+
parse3(_response);
|
|
105628
|
+
}
|
|
105629
|
+
)
|
|
105630
|
+
);
|
|
105631
|
+
|
|
102892
105632
|
// lib/commands/services/sites.ts
|
|
102893
105633
|
var sites = new Command("sites").description(commandDescriptions["sites"] ?? "").configureHelp({
|
|
102894
105634
|
helpWidth: process.stdout.columns || 80
|
|
@@ -104187,7 +106927,7 @@ tokens.command(`tokens-update`).description(`Update a token by its unique ID. Us
|
|
|
104187
106927
|
// lib/commands/about.ts
|
|
104188
106928
|
var about = new Command("about").description("Show information about this CLI and how it was generated").action(() => {
|
|
104189
106929
|
log("name: Revenexx CLI");
|
|
104190
|
-
log("version: 0.0.
|
|
106930
|
+
log("version: 0.0.3");
|
|
104191
106931
|
log("language: cli");
|
|
104192
106932
|
log("generator: revenexx/sdk-generator");
|
|
104193
106933
|
log("generatorUrl: https://github.com/revenexx/sdk-generator");
|
|
@@ -104426,7 +107166,7 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
|
|
|
104426
107166
|
cliConfig.token = this.opts().token;
|
|
104427
107167
|
}).on("option:tenant", function() {
|
|
104428
107168
|
cliConfig.tenant = this.opts().tenant;
|
|
104429
|
-
}).showSuggestionAfterError().addCommand(whoami).addCommand(register).addCommand(login).addCommand(types).addCommand(update).addCommand(generate).addCommand(logout).addCommand(tenants).addCommand(apps).addCommand(avatars).addCommand(carts).addCommand(channels).addCommand(customers).addCommand(greetings).addCommand(locale).addCommand(markets).addCommand(messaging).addCommand(products).addCommand(search).addCommand(sites).addCommand(storage).addCommand(tokens).addCommand(about).addCommand(client).parse(process.argv);
|
|
107169
|
+
}).showSuggestionAfterError().addCommand(whoami).addCommand(register).addCommand(login).addCommand(types).addCommand(update).addCommand(generate).addCommand(logout).addCommand(tenants).addCommand(apps).addCommand(avatars).addCommand(carts).addCommand(channels).addCommand(customers).addCommand(greetings).addCommand(inventories).addCommand(locale).addCommand(markets).addCommand(messaging).addCommand(orders).addCommand(pages).addCommand(payments).addCommand(prices).addCommand(products).addCommand(search).addCommand(shipping).addCommand(sites).addCommand(storage).addCommand(tokens).addCommand(about).addCommand(client).parse(process.argv);
|
|
104430
107170
|
process.stdout.columns = oldWidth;
|
|
104431
107171
|
}
|
|
104432
107172
|
/*! Bundled license information:
|