@medusajs/medusa 1.2.2-dev.53 → 1.2.2-dev.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/api/routes/admin/index.js +21 -19
  2. package/dist/api/routes/admin/index.js.map +1 -1
  3. package/dist/api/routes/admin/price-lists/add-prices-batch.d.ts +70 -0
  4. package/dist/api/routes/admin/price-lists/add-prices-batch.js +158 -0
  5. package/dist/api/routes/admin/price-lists/add-prices-batch.js.map +1 -0
  6. package/dist/api/routes/admin/price-lists/create-price-list.d.ts +87 -0
  7. package/dist/api/routes/admin/price-lists/create-price-list.js +193 -0
  8. package/dist/api/routes/admin/price-lists/create-price-list.js.map +1 -0
  9. package/dist/api/routes/admin/price-lists/delete-price-list.d.ts +28 -0
  10. package/dist/api/routes/admin/price-lists/delete-price-list.js +84 -0
  11. package/dist/api/routes/admin/price-lists/delete-price-list.js.map +1 -0
  12. package/dist/api/routes/admin/price-lists/delete-prices-batch.d.ts +43 -0
  13. package/dist/api/routes/admin/price-lists/delete-prices-batch.js +118 -0
  14. package/dist/api/routes/admin/price-lists/delete-prices-batch.js.map +1 -0
  15. package/dist/api/routes/admin/price-lists/get-price-list.d.ts +22 -0
  16. package/dist/api/routes/admin/price-lists/get-price-list.js +78 -0
  17. package/dist/api/routes/admin/price-lists/get-price-list.js.map +1 -0
  18. package/dist/api/routes/admin/price-lists/index.d.ts +21 -0
  19. package/dist/api/routes/admin/price-lists/index.js +52 -0
  20. package/dist/api/routes/admin/price-lists/index.js.map +1 -0
  21. package/dist/api/routes/admin/price-lists/list-price-lists.d.ts +38 -0
  22. package/dist/api/routes/admin/price-lists/list-price-lists.js +197 -0
  23. package/dist/api/routes/admin/price-lists/list-price-lists.js.map +1 -0
  24. package/dist/api/routes/admin/price-lists/update-price-list.d.ts +92 -0
  25. package/dist/api/routes/admin/price-lists/update-price-list.js +211 -0
  26. package/dist/api/routes/admin/price-lists/update-price-list.js.map +1 -0
  27. package/dist/api/routes/admin/products/create-product.d.ts +2 -7
  28. package/dist/api/routes/admin/products/create-product.js +2 -24
  29. package/dist/api/routes/admin/products/create-product.js.map +1 -1
  30. package/dist/api/routes/admin/products/create-variant.d.ts +7 -9
  31. package/dist/api/routes/admin/products/create-variant.js +7 -26
  32. package/dist/api/routes/admin/products/create-variant.js.map +1 -1
  33. package/dist/api/routes/admin/products/index.d.ts +1 -1
  34. package/dist/api/routes/admin/products/index.js +1 -1
  35. package/dist/api/routes/admin/products/index.js.map +1 -1
  36. package/dist/api/routes/admin/products/update-product.d.ts +2 -7
  37. package/dist/api/routes/admin/products/update-product.js +2 -24
  38. package/dist/api/routes/admin/products/update-product.js.map +1 -1
  39. package/dist/api/routes/admin/products/update-variant.d.ts +10 -9
  40. package/dist/api/routes/admin/products/update-variant.js +10 -26
  41. package/dist/api/routes/admin/products/update-variant.js.map +1 -1
  42. package/dist/api/routes/store/collections/list-collections.d.ts +3 -0
  43. package/dist/api/routes/store/collections/list-collections.js +33 -16
  44. package/dist/api/routes/store/collections/list-collections.js.map +1 -1
  45. package/dist/api/routes/store/products/list-products.d.ts +0 -1
  46. package/dist/api/routes/store/products/list-products.js +0 -6
  47. package/dist/api/routes/store/products/list-products.js.map +1 -1
  48. package/dist/api/routes/store/regions/list-regions.d.ts +3 -0
  49. package/dist/api/routes/store/regions/list-regions.js +22 -7
  50. package/dist/api/routes/store/regions/list-regions.js.map +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.js +1 -0
  53. package/dist/index.js.map +1 -1
  54. package/dist/migrations/1646915480108-update_money_amount_add_price_list.d.ts +6 -0
  55. package/dist/migrations/1646915480108-update_money_amount_add_price_list.js +143 -0
  56. package/dist/migrations/1646915480108-update_money_amount_add_price_list.js.map +1 -0
  57. package/dist/models/customer-group.d.ts +3 -1
  58. package/dist/models/customer-group.js +7 -13
  59. package/dist/models/customer-group.js.map +1 -1
  60. package/dist/models/money-amount.d.ts +10 -3
  61. package/dist/models/money-amount.js +22 -5
  62. package/dist/models/money-amount.js.map +1 -1
  63. package/dist/models/price-list.d.ts +57 -0
  64. package/dist/models/price-list.js +142 -0
  65. package/dist/models/price-list.js.map +1 -0
  66. package/dist/repositories/money-amount.d.ts +6 -2
  67. package/dist/repositories/money-amount.js +102 -2
  68. package/dist/repositories/money-amount.js.map +1 -1
  69. package/dist/repositories/price-list.d.ts +4 -0
  70. package/dist/repositories/price-list.js +38 -0
  71. package/dist/repositories/price-list.js.map +1 -0
  72. package/dist/services/discount.js +2 -2
  73. package/dist/services/discount.js.map +1 -1
  74. package/dist/services/price-list.d.ts +86 -0
  75. package/dist/services/price-list.js +469 -0
  76. package/dist/services/price-list.js.map +1 -0
  77. package/dist/services/product-variant.d.ts +16 -9
  78. package/dist/services/product-variant.js +37 -33
  79. package/dist/services/product-variant.js.map +1 -1
  80. package/dist/types/price-list.d.ts +70 -0
  81. package/dist/types/price-list.js +152 -0
  82. package/dist/types/price-list.js.map +1 -0
  83. package/dist/types/product-variant.d.ts +18 -1
  84. package/dist/types/product-variant.js +65 -1
  85. package/dist/types/product-variant.js.map +1 -1
  86. package/package.json +7 -7
@@ -22,35 +22,36 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- var express_1 = require("express");
26
25
  var cors_1 = __importDefault(require("cors"));
26
+ var express_1 = require("express");
27
27
  var middlewares_1 = __importDefault(require("../../middlewares"));
28
+ var apps_1 = __importDefault(require("./apps"));
28
29
  var auth_1 = __importDefault(require("./auth"));
29
- var products_1 = __importDefault(require("./products"));
30
- var users_1 = __importStar(require("./users"));
31
- var invites_1 = __importStar(require("./invites"));
32
- var regions_1 = __importDefault(require("./regions"));
33
- var shipping_options_1 = __importDefault(require("./shipping-options"));
34
- var shipping_profiles_1 = __importDefault(require("./shipping-profiles"));
30
+ var collections_1 = __importDefault(require("./collections"));
31
+ var customer_groups_1 = __importDefault(require("./customer-groups"));
32
+ var customers_1 = __importDefault(require("./customers"));
35
33
  var discounts_1 = __importDefault(require("./discounts"));
34
+ var draft_orders_1 = __importDefault(require("./draft-orders"));
36
35
  var gift_cards_1 = __importDefault(require("./gift-cards"));
36
+ var invites_1 = __importStar(require("./invites"));
37
+ var notes_1 = __importDefault(require("./notes"));
38
+ var notifications_1 = __importDefault(require("./notifications"));
37
39
  var orders_1 = __importDefault(require("./orders"));
40
+ var price_lists_1 = __importDefault(require("./price-lists"));
41
+ var product_tags_1 = __importDefault(require("./product-tags"));
42
+ var product_types_1 = __importDefault(require("./product-types"));
43
+ var products_1 = __importDefault(require("./products"));
44
+ var regions_1 = __importDefault(require("./regions"));
38
45
  var return_reasons_1 = __importDefault(require("./return-reasons"));
46
+ var returns_1 = __importDefault(require("./returns"));
47
+ var shipping_options_1 = __importDefault(require("./shipping-options"));
48
+ var shipping_profiles_1 = __importDefault(require("./shipping-profiles"));
39
49
  var store_1 = __importDefault(require("./store"));
40
- var uploads_1 = __importDefault(require("./uploads"));
41
- var customers_1 = __importDefault(require("./customers"));
42
- var apps_1 = __importDefault(require("./apps"));
43
50
  var swaps_1 = __importDefault(require("./swaps"));
44
- var returns_1 = __importDefault(require("./returns"));
45
- var variants_1 = __importDefault(require("./variants"));
46
- var draft_orders_1 = __importDefault(require("./draft-orders"));
47
- var collections_1 = __importDefault(require("./collections"));
48
- var product_tags_1 = __importDefault(require("./product-tags"));
49
- var notifications_1 = __importDefault(require("./notifications"));
50
- var notes_1 = __importDefault(require("./notes"));
51
51
  var tax_rates_1 = __importDefault(require("./tax-rates"));
52
- var product_types_1 = __importDefault(require("./product-types"));
53
- var customer_groups_1 = __importDefault(require("./customer-groups"));
52
+ var uploads_1 = __importDefault(require("./uploads"));
53
+ var users_1 = __importStar(require("./users"));
54
+ var variants_1 = __importDefault(require("./variants"));
54
55
  var route = (0, express_1.Router)();
55
56
  exports.default = (function (app, container, config) {
56
57
  app.use("/admin", route);
@@ -97,6 +98,7 @@ exports.default = (function (app, container, config) {
97
98
  (0, invites_1.default)(route);
98
99
  (0, tax_rates_1.default)(route);
99
100
  (0, customer_groups_1.default)(route);
101
+ (0, price_lists_1.default)(route);
100
102
  return app;
101
103
  });
102
104
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/routes/admin/index.js"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/routes/admin/index.js"],"names":[],"mappings":"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"}
@@ -0,0 +1,70 @@
1
+ import { AdminPriceListPricesUpdateReq } from "../../../../types/price-list";
2
+ declare const _default: (req: any, res: any) => Promise<void>;
3
+ /**
4
+ * @oas [post] /price-lists/{id}/prices/batch
5
+ * operationId: "PostPriceListsPriceListPricesBatch"
6
+ * summary: "Batch update prices for a Price List"
7
+ * description: "Batch update prices for a Price List"
8
+ * x-authenticated: true
9
+ * parameters:
10
+ * - (path) id=* {string} The id of the Price List to update prices for.
11
+ * requestBody:
12
+ * content:
13
+ * application/json:
14
+ * schema:
15
+ * properties:
16
+ * prices:
17
+ * description: The prices to update or add.
18
+ * type: array
19
+ * items:
20
+ * properties:
21
+ * id:
22
+ * description: The id of the price.
23
+ * type: string
24
+ * status:
25
+ * description: The status of the Price List.
26
+ * type: string
27
+ * enum:
28
+ * - active
29
+ * - draft
30
+ * region_id:
31
+ * description: The id of the Region for which the price is used.
32
+ * type: string
33
+ * currency_code:
34
+ * description: The 3 character ISO currency code for which the price will be used.
35
+ * type: string
36
+ * amount:
37
+ * description: The amount of the price.
38
+ * type: number
39
+ * min_quantity:
40
+ * description: The minimum quantity for which the price will be used.
41
+ * type: number
42
+ * max_quantity:
43
+ * description: The maximum quantity for which the price will be used.
44
+ * type: number
45
+ * override:
46
+ * description: "If true the prices will replace all existing prices associated with the Price List."
47
+ * type: boolean
48
+ * tags:
49
+ * - Price List
50
+ * responses:
51
+ * 200:
52
+ * description: OK
53
+ * content:
54
+ * application/json:
55
+ * schema:
56
+ * properties:
57
+ * id:
58
+ * type: string
59
+ * description: The id of the deleted Price List.
60
+ * object:
61
+ * type: string
62
+ * description: The type of the object that was deleted.
63
+ * deleted:
64
+ * type: boolean
65
+ */
66
+ export default _default;
67
+ export declare class AdminPostPriceListPricesPricesReq {
68
+ prices: AdminPriceListPricesUpdateReq[];
69
+ override?: boolean;
70
+ }
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
+ return new (P || (P = Promise))(function (resolve, reject) {
14
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ var __generator = (this && this.__generator) || function (thisArg, body) {
21
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
22
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ function verb(n) { return function (v) { return step([n, v]); }; }
24
+ function step(op) {
25
+ if (f) throw new TypeError("Generator is already executing.");
26
+ while (_) try {
27
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28
+ if (y = 0, t) op = [op[0] & 2, t.value];
29
+ switch (op[0]) {
30
+ case 0: case 1: t = op; break;
31
+ case 4: _.label++; return { value: op[1], done: false };
32
+ case 5: _.label++; y = op[1]; op = [0]; continue;
33
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
34
+ default:
35
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
36
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
37
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
38
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
39
+ if (t[2]) _.ops.pop();
40
+ _.trys.pop(); continue;
41
+ }
42
+ op = body.call(thisArg, _);
43
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
44
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
45
+ }
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.AdminPostPriceListPricesPricesReq = void 0;
49
+ var class_transformer_1 = require("class-transformer");
50
+ var class_validator_1 = require("class-validator");
51
+ var _1 = require(".");
52
+ var price_list_1 = require("../../../../types/price-list");
53
+ var validator_1 = require("../../../../utils/validator");
54
+ /**
55
+ * @oas [post] /price-lists/{id}/prices/batch
56
+ * operationId: "PostPriceListsPriceListPricesBatch"
57
+ * summary: "Batch update prices for a Price List"
58
+ * description: "Batch update prices for a Price List"
59
+ * x-authenticated: true
60
+ * parameters:
61
+ * - (path) id=* {string} The id of the Price List to update prices for.
62
+ * requestBody:
63
+ * content:
64
+ * application/json:
65
+ * schema:
66
+ * properties:
67
+ * prices:
68
+ * description: The prices to update or add.
69
+ * type: array
70
+ * items:
71
+ * properties:
72
+ * id:
73
+ * description: The id of the price.
74
+ * type: string
75
+ * status:
76
+ * description: The status of the Price List.
77
+ * type: string
78
+ * enum:
79
+ * - active
80
+ * - draft
81
+ * region_id:
82
+ * description: The id of the Region for which the price is used.
83
+ * type: string
84
+ * currency_code:
85
+ * description: The 3 character ISO currency code for which the price will be used.
86
+ * type: string
87
+ * amount:
88
+ * description: The amount of the price.
89
+ * type: number
90
+ * min_quantity:
91
+ * description: The minimum quantity for which the price will be used.
92
+ * type: number
93
+ * max_quantity:
94
+ * description: The maximum quantity for which the price will be used.
95
+ * type: number
96
+ * override:
97
+ * description: "If true the prices will replace all existing prices associated with the Price List."
98
+ * type: boolean
99
+ * tags:
100
+ * - Price List
101
+ * responses:
102
+ * 200:
103
+ * description: OK
104
+ * content:
105
+ * application/json:
106
+ * schema:
107
+ * properties:
108
+ * id:
109
+ * type: string
110
+ * description: The id of the deleted Price List.
111
+ * object:
112
+ * type: string
113
+ * description: The type of the object that was deleted.
114
+ * deleted:
115
+ * type: boolean
116
+ */
117
+ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
118
+ var id, validated, priceListService, priceList;
119
+ return __generator(this, function (_a) {
120
+ switch (_a.label) {
121
+ case 0:
122
+ id = req.params.id;
123
+ return [4 /*yield*/, (0, validator_1.validator)(AdminPostPriceListPricesPricesReq, req.body)];
124
+ case 1:
125
+ validated = _a.sent();
126
+ priceListService = req.scope.resolve("priceListService");
127
+ return [4 /*yield*/, priceListService.addPrices(id, validated.prices, validated.override)];
128
+ case 2:
129
+ _a.sent();
130
+ return [4 /*yield*/, priceListService.retrieve(id, {
131
+ select: _1.defaultAdminPriceListFields,
132
+ relations: _1.defaultAdminPriceListRelations,
133
+ })];
134
+ case 3:
135
+ priceList = _a.sent();
136
+ res.json({ price_list: priceList });
137
+ return [2 /*return*/];
138
+ }
139
+ });
140
+ }); });
141
+ var AdminPostPriceListPricesPricesReq = /** @class */ (function () {
142
+ function AdminPostPriceListPricesPricesReq() {
143
+ }
144
+ __decorate([
145
+ (0, class_validator_1.IsArray)(),
146
+ (0, class_transformer_1.Type)(function () { return price_list_1.AdminPriceListPricesUpdateReq; }),
147
+ (0, class_validator_1.ValidateNested)({ each: true }),
148
+ __metadata("design:type", Array)
149
+ ], AdminPostPriceListPricesPricesReq.prototype, "prices", void 0);
150
+ __decorate([
151
+ (0, class_validator_1.IsOptional)(),
152
+ (0, class_validator_1.IsBoolean)(),
153
+ __metadata("design:type", Boolean)
154
+ ], AdminPostPriceListPricesPricesReq.prototype, "override", void 0);
155
+ return AdminPostPriceListPricesPricesReq;
156
+ }());
157
+ exports.AdminPostPriceListPricesPricesReq = AdminPostPriceListPricesPricesReq;
158
+ //# sourceMappingURL=add-prices-batch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-prices-batch.js","sourceRoot":"","sources":["../../../../../src/api/routes/admin/price-lists/add-prices-batch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAwC;AACxC,mDAAgF;AAChF,sBAA+E;AAG/E,2DAA4E;AAC5E,yDAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,mBAAe,UAAO,GAAG,EAAE,GAAG;;;;;gBACpB,EAAE,GAAK,GAAG,CAAC,MAAM,GAAf,CAAe;gBAEP,qBAAM,IAAA,qBAAS,EAAC,iCAAiC,EAAE,GAAG,CAAC,IAAI,CAAC,EAAA;;gBAAxE,SAAS,GAAG,SAA4D;gBAExE,gBAAgB,GACpB,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;gBAEvC,qBAAM,gBAAgB,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAA;;gBAA1E,SAA0E,CAAA;gBAExD,qBAAM,gBAAgB,CAAC,QAAQ,CAAC,EAAE,EAAE;wBACpD,MAAM,EAAE,8BAAkD;wBAC1D,SAAS,EAAE,iCAA8B;qBAC1C,CAAC,EAAA;;gBAHI,SAAS,GAAG,SAGhB;gBAEF,GAAG,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAA;;;;KACpC,EAAA;AAED;IAAA;IASA,CAAC;IALC;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,wBAAI,EAAC,cAAM,OAAA,0CAA6B,EAA7B,CAA6B,CAAC;QACzC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qEACQ;IAIvC;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,2BAAS,GAAE;;uEACM;IACpB,wCAAC;CAAA,AATD,IASC;AATY,8EAAiC"}
@@ -0,0 +1,87 @@
1
+ import { AdminPriceListPricesCreateReq, PriceListStatus, PriceListType } from "../../../../types/price-list";
2
+ declare const _default: (req: any, res: any) => Promise<void>;
3
+ /**
4
+ * @oas [post] /price_lists
5
+ * operationId: "PostPriceListsPriceList"
6
+ * summary: "Creates a Price List"
7
+ * description: "Creates a Price List"
8
+ * x-authenticated: true
9
+ * requestBody:
10
+ * content:
11
+ * application/json:
12
+ * schema:
13
+ * properties:
14
+ * name:
15
+ * description: "The name of the Price List"
16
+ * type: string
17
+ * description:
18
+ * description: "A description of the Price List."
19
+ * type: string
20
+ * type:
21
+ * description: The type of the Price List.
22
+ * type: string
23
+ * enum:
24
+ * - sale
25
+ * - override
26
+ * status:
27
+ * description: The status of the Price List.
28
+ * type: string
29
+ * enum:
30
+ * - active
31
+ * - draft
32
+ * prices:
33
+ * description: The prices of the Price List.
34
+ * type: array
35
+ * items:
36
+ * properties:
37
+ * region_id:
38
+ * description: The id of the Region for which the price is used.
39
+ * type: string
40
+ * currency_code:
41
+ * description: The 3 character ISO currency code for which the price will be used.
42
+ * type: string
43
+ * amount:
44
+ * description: The amount to charge for the Product Variant.
45
+ * type: integer
46
+ * min_quantity:
47
+ * description: The minimum quantity for which the price will be used.
48
+ * type: integer
49
+ * max_quantity:
50
+ * description: The maximum quantity for which the price will be used.
51
+ * type: integer
52
+ * customer_groups:
53
+ * type: array
54
+ * description: A list of customer groups that the Price List applies to.
55
+ * items:
56
+ * required:
57
+ * - id
58
+ * properties:
59
+ * id:
60
+ * description: The id of a customer group
61
+ * type: string
62
+ * tags:
63
+ * - Price List
64
+ * responses:
65
+ * 200:
66
+ * description: OK
67
+ * content:
68
+ * application/json:
69
+ * schema:
70
+ * properties:
71
+ * product:
72
+ * $ref: "#/components/schemas/price_list"
73
+ */
74
+ export default _default;
75
+ declare class CustomerGroup {
76
+ id: string;
77
+ }
78
+ export declare class AdminPostPriceListsPriceListReq {
79
+ name: string;
80
+ description: string;
81
+ starts_at?: Date;
82
+ ends_at?: Date;
83
+ status?: PriceListStatus;
84
+ type: PriceListType;
85
+ prices: AdminPriceListPricesCreateReq[];
86
+ customer_groups?: CustomerGroup[];
87
+ }
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
12
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13
+ return new (P || (P = Promise))(function (resolve, reject) {
14
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
15
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
16
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
17
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
18
+ });
19
+ };
20
+ var __generator = (this && this.__generator) || function (thisArg, body) {
21
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
22
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
23
+ function verb(n) { return function (v) { return step([n, v]); }; }
24
+ function step(op) {
25
+ if (f) throw new TypeError("Generator is already executing.");
26
+ while (_) try {
27
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
28
+ if (y = 0, t) op = [op[0] & 2, t.value];
29
+ switch (op[0]) {
30
+ case 0: case 1: t = op; break;
31
+ case 4: _.label++; return { value: op[1], done: false };
32
+ case 5: _.label++; y = op[1]; op = [0]; continue;
33
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
34
+ default:
35
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
36
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
37
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
38
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
39
+ if (t[2]) _.ops.pop();
40
+ _.trys.pop(); continue;
41
+ }
42
+ op = body.call(thisArg, _);
43
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
44
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
45
+ }
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.AdminPostPriceListsPriceListReq = void 0;
49
+ var class_transformer_1 = require("class-transformer");
50
+ var class_validator_1 = require("class-validator");
51
+ var price_list_1 = require("../../../../types/price-list");
52
+ var validator_1 = require("../../../../utils/validator");
53
+ /**
54
+ * @oas [post] /price_lists
55
+ * operationId: "PostPriceListsPriceList"
56
+ * summary: "Creates a Price List"
57
+ * description: "Creates a Price List"
58
+ * x-authenticated: true
59
+ * requestBody:
60
+ * content:
61
+ * application/json:
62
+ * schema:
63
+ * properties:
64
+ * name:
65
+ * description: "The name of the Price List"
66
+ * type: string
67
+ * description:
68
+ * description: "A description of the Price List."
69
+ * type: string
70
+ * type:
71
+ * description: The type of the Price List.
72
+ * type: string
73
+ * enum:
74
+ * - sale
75
+ * - override
76
+ * status:
77
+ * description: The status of the Price List.
78
+ * type: string
79
+ * enum:
80
+ * - active
81
+ * - draft
82
+ * prices:
83
+ * description: The prices of the Price List.
84
+ * type: array
85
+ * items:
86
+ * properties:
87
+ * region_id:
88
+ * description: The id of the Region for which the price is used.
89
+ * type: string
90
+ * currency_code:
91
+ * description: The 3 character ISO currency code for which the price will be used.
92
+ * type: string
93
+ * amount:
94
+ * description: The amount to charge for the Product Variant.
95
+ * type: integer
96
+ * min_quantity:
97
+ * description: The minimum quantity for which the price will be used.
98
+ * type: integer
99
+ * max_quantity:
100
+ * description: The maximum quantity for which the price will be used.
101
+ * type: integer
102
+ * customer_groups:
103
+ * type: array
104
+ * description: A list of customer groups that the Price List applies to.
105
+ * items:
106
+ * required:
107
+ * - id
108
+ * properties:
109
+ * id:
110
+ * description: The id of a customer group
111
+ * type: string
112
+ * tags:
113
+ * - Price List
114
+ * responses:
115
+ * 200:
116
+ * description: OK
117
+ * content:
118
+ * application/json:
119
+ * schema:
120
+ * properties:
121
+ * product:
122
+ * $ref: "#/components/schemas/price_list"
123
+ */
124
+ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0, function () {
125
+ var validated, priceListService, priceList;
126
+ return __generator(this, function (_a) {
127
+ switch (_a.label) {
128
+ case 0: return [4 /*yield*/, (0, validator_1.validator)(AdminPostPriceListsPriceListReq, req.body)];
129
+ case 1:
130
+ validated = _a.sent();
131
+ priceListService = req.scope.resolve("priceListService");
132
+ return [4 /*yield*/, priceListService.create(validated)];
133
+ case 2:
134
+ priceList = _a.sent();
135
+ res.json({ price_list: priceList });
136
+ return [2 /*return*/];
137
+ }
138
+ });
139
+ }); });
140
+ var CustomerGroup = /** @class */ (function () {
141
+ function CustomerGroup() {
142
+ }
143
+ __decorate([
144
+ (0, class_validator_1.IsString)(),
145
+ __metadata("design:type", String)
146
+ ], CustomerGroup.prototype, "id", void 0);
147
+ return CustomerGroup;
148
+ }());
149
+ var AdminPostPriceListsPriceListReq = /** @class */ (function () {
150
+ function AdminPostPriceListsPriceListReq() {
151
+ }
152
+ __decorate([
153
+ (0, class_validator_1.IsString)(),
154
+ __metadata("design:type", String)
155
+ ], AdminPostPriceListsPriceListReq.prototype, "name", void 0);
156
+ __decorate([
157
+ (0, class_validator_1.IsString)(),
158
+ __metadata("design:type", String)
159
+ ], AdminPostPriceListsPriceListReq.prototype, "description", void 0);
160
+ __decorate([
161
+ (0, class_validator_1.IsOptional)(),
162
+ __metadata("design:type", Date)
163
+ ], AdminPostPriceListsPriceListReq.prototype, "starts_at", void 0);
164
+ __decorate([
165
+ (0, class_validator_1.IsOptional)(),
166
+ __metadata("design:type", Date)
167
+ ], AdminPostPriceListsPriceListReq.prototype, "ends_at", void 0);
168
+ __decorate([
169
+ (0, class_validator_1.IsOptional)(),
170
+ (0, class_validator_1.IsEnum)(price_list_1.PriceListStatus),
171
+ __metadata("design:type", String)
172
+ ], AdminPostPriceListsPriceListReq.prototype, "status", void 0);
173
+ __decorate([
174
+ (0, class_validator_1.IsEnum)(price_list_1.PriceListType),
175
+ __metadata("design:type", String)
176
+ ], AdminPostPriceListsPriceListReq.prototype, "type", void 0);
177
+ __decorate([
178
+ (0, class_validator_1.IsArray)(),
179
+ (0, class_transformer_1.Type)(function () { return price_list_1.AdminPriceListPricesCreateReq; }),
180
+ (0, class_validator_1.ValidateNested)({ each: true }),
181
+ __metadata("design:type", Array)
182
+ ], AdminPostPriceListsPriceListReq.prototype, "prices", void 0);
183
+ __decorate([
184
+ (0, class_validator_1.IsOptional)(),
185
+ (0, class_validator_1.IsArray)(),
186
+ (0, class_transformer_1.Type)(function () { return CustomerGroup; }),
187
+ (0, class_validator_1.ValidateNested)({ each: true }),
188
+ __metadata("design:type", Array)
189
+ ], AdminPostPriceListsPriceListReq.prototype, "customer_groups", void 0);
190
+ return AdminPostPriceListsPriceListReq;
191
+ }());
192
+ exports.AdminPostPriceListsPriceListReq = AdminPostPriceListsPriceListReq;
193
+ //# sourceMappingURL=create-price-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-price-list.js","sourceRoot":"","sources":["../../../../../src/api/routes/admin/price-lists/create-price-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAwC;AACxC,mDAMwB;AAExB,2DAIqC;AACrC,yDAAuD;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,mBAAe,UAAO,GAAG,EAAE,GAAG;;;;oBACV,qBAAM,IAAA,qBAAS,EAAC,+BAA+B,EAAE,GAAG,CAAC,IAAI,CAAC,EAAA;;gBAAtE,SAAS,GAAG,SAA0D;gBAEtE,gBAAgB,GACpB,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;gBAErB,qBAAM,gBAAgB,CAAC,MAAM,CAAC,SAAS,CAAC,EAAA;;gBAApD,SAAS,GAAG,SAAwC;gBAE1D,GAAG,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAA;;;;KACpC,EAAA;AAED;IAAA;IAGA,CAAC;IADC;QADC,IAAA,0BAAQ,GAAE;;6CACD;IACZ,oBAAC;CAAA,AAHD,IAGC;AAED;IAAA;IA8BA,CAAC;IA5BC;QADC,IAAA,0BAAQ,GAAE;;iEACC;IAGZ;QADC,IAAA,0BAAQ,GAAE;;wEACQ;IAGnB;QADC,IAAA,4BAAU,GAAE;kCACD,IAAI;sEAAA;IAGhB;QADC,IAAA,4BAAU,GAAE;kCACH,IAAI;oEAAA;IAId;QAFC,IAAA,4BAAU,GAAE;QACZ,IAAA,wBAAM,EAAC,4BAAe,CAAC;;mEACA;IAGxB;QADC,IAAA,wBAAM,EAAC,0BAAa,CAAC;;iEACH;IAKnB;QAHC,IAAA,yBAAO,GAAE;QACT,IAAA,wBAAI,EAAC,cAAM,OAAA,0CAA6B,EAA7B,CAA6B,CAAC;QACzC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;mEACQ;IAMvC;QAJC,IAAA,4BAAU,GAAE;QACZ,IAAA,yBAAO,GAAE;QACT,IAAA,wBAAI,EAAC,cAAM,OAAA,aAAa,EAAb,CAAa,CAAC;QACzB,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4EACE;IACnC,sCAAC;CAAA,AA9BD,IA8BC;AA9BY,0EAA+B"}
@@ -0,0 +1,28 @@
1
+ declare const _default: (req: any, res: any) => Promise<void>;
2
+ /**
3
+ * @oas [delete] /price-lists/{id}
4
+ * operationId: "DeletePriceListsPriceList"
5
+ * summary: "Delete a Price List"
6
+ * description: "Deletes a Price List"
7
+ * x-authenticated: true
8
+ * parameters:
9
+ * - (path) id=* {string} The id of the Price List to delete.
10
+ * tags:
11
+ * - Price List
12
+ * responses:
13
+ * 200:
14
+ * description: OK
15
+ * content:
16
+ * application/json:
17
+ * schema:
18
+ * properties:
19
+ * id:
20
+ * type: string
21
+ * description: The id of the deleted Price List.
22
+ * object:
23
+ * type: string
24
+ * description: The type of the object that was deleted.
25
+ * deleted:
26
+ * type: boolean
27
+ */
28
+ export default _default;