@or-sdk/ccp 2.3.2 → 2.3.3-beta.3704.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/dist/cjs/Ccp.js +0 -8
  2. package/dist/cjs/Ccp.js.map +1 -1
  3. package/dist/cjs/api/customers-api/constants.js +1 -18
  4. package/dist/cjs/api/customers-api/constants.js.map +1 -1
  5. package/dist/cjs/api/customers-api/customersApi.js +0 -58
  6. package/dist/cjs/api/customers-api/customersApi.js.map +1 -1
  7. package/dist/cjs/api/index.js +1 -17
  8. package/dist/cjs/api/index.js.map +1 -1
  9. package/dist/cjs/constants.js +0 -1
  10. package/dist/cjs/constants.js.map +1 -1
  11. package/dist/cjs/types.js +0 -4
  12. package/dist/cjs/types.js.map +1 -1
  13. package/dist/esm/Ccp.js +1 -9
  14. package/dist/esm/Ccp.js.map +1 -1
  15. package/dist/esm/api/customers-api/constants.js +0 -17
  16. package/dist/esm/api/customers-api/constants.js.map +1 -1
  17. package/dist/esm/api/customers-api/customersApi.js +0 -37
  18. package/dist/esm/api/customers-api/customersApi.js.map +1 -1
  19. package/dist/esm/api/index.js +0 -8
  20. package/dist/esm/api/index.js.map +1 -1
  21. package/dist/esm/constants.js +0 -1
  22. package/dist/esm/constants.js.map +1 -1
  23. package/dist/esm/types.js +0 -4
  24. package/dist/esm/types.js.map +1 -1
  25. package/dist/types/Ccp.d.ts +1 -9
  26. package/dist/types/Ccp.d.ts.map +1 -1
  27. package/dist/types/api/customers-api/constants.d.ts +0 -14
  28. package/dist/types/api/customers-api/constants.d.ts.map +1 -1
  29. package/dist/types/api/customers-api/customersApi.d.ts +1 -6
  30. package/dist/types/api/customers-api/customersApi.d.ts.map +1 -1
  31. package/dist/types/api/customers-api/types.d.ts +1 -65
  32. package/dist/types/api/customers-api/types.d.ts.map +1 -1
  33. package/dist/types/api/index.d.ts +0 -8
  34. package/dist/types/api/index.d.ts.map +1 -1
  35. package/dist/types/constants.d.ts +0 -1
  36. package/dist/types/constants.d.ts.map +1 -1
  37. package/dist/types/types.d.ts +0 -32
  38. package/dist/types/types.d.ts.map +1 -1
  39. package/package.json +2 -3
  40. package/src/Ccp.ts +0 -24
  41. package/src/api/customers-api/constants.ts +0 -17
  42. package/src/api/customers-api/customersApi.ts +2 -52
  43. package/src/api/customers-api/types.ts +1 -72
  44. package/src/api/index.ts +2 -8
  45. package/src/constants.ts +0 -1
  46. package/src/types.ts +0 -38
  47. package/dist/cjs/api/contracts-api/contractsApi.js +0 -136
  48. package/dist/cjs/api/contracts-api/contractsApi.js.map +0 -1
  49. package/dist/cjs/api/contracts-api/types.js +0 -3
  50. package/dist/cjs/api/contracts-api/types.js.map +0 -1
  51. package/dist/cjs/api/custom-skus-api/customSkusApi.js +0 -92
  52. package/dist/cjs/api/custom-skus-api/customSkusApi.js.map +0 -1
  53. package/dist/cjs/api/custom-skus-api/types.js +0 -3
  54. package/dist/cjs/api/custom-skus-api/types.js.map +0 -1
  55. package/dist/cjs/api/employeesApi.js +0 -78
  56. package/dist/cjs/api/employeesApi.js.map +0 -1
  57. package/dist/cjs/api/patterns-api/constants.js +0 -9
  58. package/dist/cjs/api/patterns-api/constants.js.map +0 -1
  59. package/dist/cjs/api/patterns-api/patternsApi.js +0 -107
  60. package/dist/cjs/api/patterns-api/patternsApi.js.map +0 -1
  61. package/dist/cjs/api/patterns-api/types.js +0 -3
  62. package/dist/cjs/api/patterns-api/types.js.map +0 -1
  63. package/dist/cjs/api/paymentProvidersApi.js +0 -122
  64. package/dist/cjs/api/paymentProvidersApi.js.map +0 -1
  65. package/dist/cjs/api/sageApi.js +0 -78
  66. package/dist/cjs/api/sageApi.js.map +0 -1
  67. package/dist/cjs/api/tiers-api/tiersApi.js +0 -78
  68. package/dist/cjs/api/tiers-api/tiersApi.js.map +0 -1
  69. package/dist/cjs/api/tiers-api/types.js +0 -3
  70. package/dist/cjs/api/tiers-api/types.js.map +0 -1
  71. package/dist/cjs/api/vedorsApi.js +0 -122
  72. package/dist/cjs/api/vedorsApi.js.map +0 -1
  73. package/dist/esm/api/contracts-api/contractsApi.js +0 -62
  74. package/dist/esm/api/contracts-api/contractsApi.js.map +0 -1
  75. package/dist/esm/api/contracts-api/types.js +0 -2
  76. package/dist/esm/api/contracts-api/types.js.map +0 -1
  77. package/dist/esm/api/custom-skus-api/customSkusApi.js +0 -34
  78. package/dist/esm/api/custom-skus-api/customSkusApi.js.map +0 -1
  79. package/dist/esm/api/custom-skus-api/types.js +0 -2
  80. package/dist/esm/api/custom-skus-api/types.js.map +0 -1
  81. package/dist/esm/api/employeesApi.js +0 -25
  82. package/dist/esm/api/employeesApi.js.map +0 -1
  83. package/dist/esm/api/patterns-api/constants.js +0 -6
  84. package/dist/esm/api/patterns-api/constants.js.map +0 -1
  85. package/dist/esm/api/patterns-api/patternsApi.js +0 -44
  86. package/dist/esm/api/patterns-api/patternsApi.js.map +0 -1
  87. package/dist/esm/api/patterns-api/types.js +0 -2
  88. package/dist/esm/api/patterns-api/types.js.map +0 -1
  89. package/dist/esm/api/paymentProvidersApi.js +0 -54
  90. package/dist/esm/api/paymentProvidersApi.js.map +0 -1
  91. package/dist/esm/api/sageApi.js +0 -25
  92. package/dist/esm/api/sageApi.js.map +0 -1
  93. package/dist/esm/api/tiers-api/tiersApi.js +0 -25
  94. package/dist/esm/api/tiers-api/tiersApi.js.map +0 -1
  95. package/dist/esm/api/tiers-api/types.js +0 -2
  96. package/dist/esm/api/tiers-api/types.js.map +0 -1
  97. package/dist/esm/api/vedorsApi.js +0 -54
  98. package/dist/esm/api/vedorsApi.js.map +0 -1
  99. package/dist/types/api/contracts-api/contractsApi.d.ts +0 -12
  100. package/dist/types/api/contracts-api/contractsApi.d.ts.map +0 -1
  101. package/dist/types/api/contracts-api/types.d.ts +0 -108
  102. package/dist/types/api/contracts-api/types.d.ts.map +0 -1
  103. package/dist/types/api/custom-skus-api/customSkusApi.d.ts +0 -8
  104. package/dist/types/api/custom-skus-api/customSkusApi.d.ts.map +0 -1
  105. package/dist/types/api/custom-skus-api/types.d.ts +0 -14
  106. package/dist/types/api/custom-skus-api/types.d.ts.map +0 -1
  107. package/dist/types/api/employeesApi.d.ts +0 -7
  108. package/dist/types/api/employeesApi.d.ts.map +0 -1
  109. package/dist/types/api/patterns-api/constants.d.ts +0 -5
  110. package/dist/types/api/patterns-api/constants.d.ts.map +0 -1
  111. package/dist/types/api/patterns-api/patternsApi.d.ts +0 -9
  112. package/dist/types/api/patterns-api/patternsApi.d.ts.map +0 -1
  113. package/dist/types/api/patterns-api/types.d.ts +0 -26
  114. package/dist/types/api/patterns-api/types.d.ts.map +0 -1
  115. package/dist/types/api/paymentProvidersApi.d.ts +0 -10
  116. package/dist/types/api/paymentProvidersApi.d.ts.map +0 -1
  117. package/dist/types/api/sageApi.d.ts +0 -7
  118. package/dist/types/api/sageApi.d.ts.map +0 -1
  119. package/dist/types/api/tiers-api/tiersApi.d.ts +0 -7
  120. package/dist/types/api/tiers-api/tiersApi.d.ts.map +0 -1
  121. package/dist/types/api/tiers-api/types.d.ts +0 -13
  122. package/dist/types/api/tiers-api/types.d.ts.map +0 -1
  123. package/dist/types/api/vedorsApi.d.ts +0 -10
  124. package/dist/types/api/vedorsApi.d.ts.map +0 -1
  125. package/src/api/contracts-api/contractsApi.ts +0 -67
  126. package/src/api/contracts-api/types.ts +0 -117
  127. package/src/api/custom-skus-api/customSkusApi.ts +0 -29
  128. package/src/api/custom-skus-api/types.ts +0 -15
  129. package/src/api/employeesApi.ts +0 -17
  130. package/src/api/patterns-api/constants.ts +0 -4
  131. package/src/api/patterns-api/patternsApi.ts +0 -44
  132. package/src/api/patterns-api/types.ts +0 -30
  133. package/src/api/paymentProvidersApi.ts +0 -60
  134. package/src/api/sageApi.ts +0 -18
  135. package/src/api/tiers-api/tiersApi.ts +0 -17
  136. package/src/api/tiers-api/types.ts +0 -12
  137. package/src/api/vedorsApi.ts +0 -60
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("./baseApi");
55
- var MappingApi = (function (_super) {
56
- __extends(MappingApi, _super);
57
- function MappingApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/employees';
60
- return _this;
61
- }
62
- MappingApi.prototype.getEmployees = function () {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: "".concat(this.apiBasePath),
69
- })];
70
- case 1: return [2, _a.sent()];
71
- }
72
- });
73
- });
74
- };
75
- return MappingApi;
76
- }(baseApi_1.BaseApi));
77
- exports.default = MappingApi;
78
- //# sourceMappingURL=employeesApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"employeesApi.js","sourceRoot":"","sources":["../../../src/api/employeesApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAwC,8BAAO;IAA/C;;QACmB,iBAAW,GAAG,kBAAkB,CAAC;;IAWpD,CAAC;IANc,iCAAY,GAAzB;;;;4BACS,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;yBAC7B,CAAC,EAAA;4BAHF,WAAO,SAGL,EAAC;;;;KACJ;IACH,iBAAC;AAAD,CAAC,AAZD,CAAwC,iBAAO,GAY9C"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PatternStatuses = void 0;
4
- var PatternStatuses;
5
- (function (PatternStatuses) {
6
- PatternStatuses["active"] = "ACTIVE";
7
- PatternStatuses["deleted"] = "DELETED";
8
- })(PatternStatuses || (exports.PatternStatuses = PatternStatuses = {}));
9
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/api/patterns-api/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,sCAAmB,CAAA;AACrB,CAAC,EAHW,eAAe,+BAAf,eAAe,QAG1B"}
@@ -1,107 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("../baseApi");
55
- var PatternsApi = (function (_super) {
56
- __extends(PatternsApi, _super);
57
- function PatternsApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/patterns';
60
- return _this;
61
- }
62
- PatternsApi.prototype.getAllPatterns = function () {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: "".concat(this.apiBasePath),
69
- })];
70
- case 1: return [2, _a.sent()];
71
- }
72
- });
73
- });
74
- };
75
- PatternsApi.prototype.updatePattern = function (contractId, data) {
76
- return __awaiter(this, void 0, void 0, function () {
77
- return __generator(this, function (_a) {
78
- switch (_a.label) {
79
- case 0: return [4, this.apiCall({
80
- method: 'PUT',
81
- route: "".concat(this.apiBasePath),
82
- params: { contractId: contractId },
83
- data: data,
84
- })];
85
- case 1: return [2, _a.sent()];
86
- }
87
- });
88
- });
89
- };
90
- PatternsApi.prototype.createPattern = function (data) {
91
- return __awaiter(this, void 0, void 0, function () {
92
- return __generator(this, function (_a) {
93
- switch (_a.label) {
94
- case 0: return [4, this.apiCall({
95
- method: 'POST',
96
- route: "".concat(this.apiBasePath),
97
- data: data,
98
- })];
99
- case 1: return [2, _a.sent()];
100
- }
101
- });
102
- });
103
- };
104
- return PatternsApi;
105
- }(baseApi_1.BaseApi));
106
- exports.default = PatternsApi;
107
- //# sourceMappingURL=patternsApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"patternsApi.js","sourceRoot":"","sources":["../../../../src/api/patterns-api/patternsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAKrC;IAAyC,+BAAO;IAAhD;;QACmB,iBAAW,GAAG,iBAAiB,CAAC;;IAqCnD,CAAC;IAhCc,oCAAc,GAA3B;;;;4BACS,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;yBAC7B,CAAC,EAAA;4BAHF,WAAO,SAGL,EAAC;;;;KACJ;IAOK,mCAAa,GAAnB,UAAoB,UAAkB,EAAE,IAAsB;;;;4BACrD,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;4BAC5B,MAAM,EAAE,EAAE,UAAU,YAAA,EAAE;4BACtB,IAAI,MAAA;yBACL,CAAC,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IAMK,mCAAa,GAAnB,UAAoB,IAAsB;;;;4BACjC,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;4BAC5B,IAAI,MAAA;yBACL,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,kBAAC;AAAD,CAAC,AAtCD,CAAyC,iBAAO,GAsC/C"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/patterns-api/types.ts"],"names":[],"mappings":""}
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("./baseApi");
55
- var PaymentProvidersApi = (function (_super) {
56
- __extends(PaymentProvidersApi, _super);
57
- function PaymentProvidersApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/payment-providers';
60
- return _this;
61
- }
62
- PaymentProvidersApi.prototype.listPaymentProviders = function (params) {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: this.apiBasePath,
69
- params: params,
70
- })];
71
- case 1: return [2, _a.sent()];
72
- }
73
- });
74
- });
75
- };
76
- PaymentProvidersApi.prototype.createPaymentProvider = function (name) {
77
- return __awaiter(this, void 0, void 0, function () {
78
- return __generator(this, function (_a) {
79
- switch (_a.label) {
80
- case 0: return [4, this.apiCall({
81
- method: 'POST',
82
- route: this.apiBasePath,
83
- data: { name: name },
84
- })];
85
- case 1: return [2, _a.sent()];
86
- }
87
- });
88
- });
89
- };
90
- PaymentProvidersApi.prototype.deletePaymentProvider = function (id) {
91
- return __awaiter(this, void 0, void 0, function () {
92
- return __generator(this, function (_a) {
93
- switch (_a.label) {
94
- case 0: return [4, this.apiCall({
95
- method: 'DELETE',
96
- route: this.apiBasePath,
97
- params: { id: id },
98
- })];
99
- case 1: return [2, _a.sent()];
100
- }
101
- });
102
- });
103
- };
104
- PaymentProvidersApi.prototype.updatePaymentProvider = function (id, data) {
105
- return __awaiter(this, void 0, void 0, function () {
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0: return [4, this.apiCall({
109
- method: 'PUT',
110
- route: this.apiBasePath,
111
- params: { id: id },
112
- data: data,
113
- })];
114
- case 1: return [2, _a.sent()];
115
- }
116
- });
117
- });
118
- };
119
- return PaymentProvidersApi;
120
- }(baseApi_1.BaseApi));
121
- exports.default = PaymentProvidersApi;
122
- //# sourceMappingURL=paymentProvidersApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paymentProvidersApi.js","sourceRoot":"","sources":["../../../src/api/paymentProvidersApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAiD,uCAAO;IAAxD;;QACmB,iBAAW,GAAG,0BAA0B,CAAC;;IAsD5D,CAAC;IA/CO,kDAAoB,GAA1B,UAA2B,MAAkC;;;;4BACpD,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,QAAA;yBACP,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAOK,mDAAqB,GAA3B,UAA4B,IAAY;;;;4BAC/B,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,IAAI,EAAE,EAAE,IAAI,MAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAMK,mDAAqB,GAA3B,UAA4B,EAAU;;;;4BAC7B,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,QAAQ;4BAChB,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAQK,mDAAqB,GAA3B,UAA4B,EAAU,EAAE,IAA2B;;;;4BAC1D,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;4BACd,IAAI,MAAA;yBACL,CAAC,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IACH,0BAAC;AAAD,CAAC,AAvDD,CAAiD,iBAAO,GAuDvD"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("./baseApi");
55
- var SageApi = (function (_super) {
56
- __extends(SageApi, _super);
57
- function SageApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/sage';
60
- return _this;
61
- }
62
- SageApi.prototype.getCustomers = function (id) {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: "".concat(this.apiBasePath, "/customers/").concat(id || ''),
69
- })];
70
- case 1: return [2, _a.sent()];
71
- }
72
- });
73
- });
74
- };
75
- return SageApi;
76
- }(baseApi_1.BaseApi));
77
- exports.default = SageApi;
78
- //# sourceMappingURL=sageApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sageApi.js","sourceRoot":"","sources":["../../../src/api/sageApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAqC,2BAAO;IAA5C;;QACmB,iBAAW,GAAG,aAAa,CAAC;;IAY/C,CAAC;IANc,8BAAY,GAAzB,UAA0B,EAAW;;;;4BAC5B,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,wBAAc,EAAE,IAAI,EAAE,CAAE;yBACnD,CAAC,EAAA;4BAHF,WAAO,SAGL,EAAC;;;;KACJ;IACH,cAAC;AAAD,CAAC,AAbD,CAAqC,iBAAO,GAa3C"}
@@ -1,78 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("../baseApi");
55
- var TiersApi = (function (_super) {
56
- __extends(TiersApi, _super);
57
- function TiersApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/tiers';
60
- return _this;
61
- }
62
- TiersApi.prototype.listOfTiers = function () {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: "".concat(this.apiBasePath, "/list"),
69
- })];
70
- case 1: return [2, _a.sent()];
71
- }
72
- });
73
- });
74
- };
75
- return TiersApi;
76
- }(baseApi_1.BaseApi));
77
- exports.default = TiersApi;
78
- //# sourceMappingURL=tiersApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tiersApi.js","sourceRoot":"","sources":["../../../../src/api/tiers-api/tiersApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAIrC;IAAsC,4BAAO;IAA7C;;QACmB,iBAAW,GAAG,cAAc,CAAC;;IAWhD,CAAC;IANc,8BAAW,GAAxB;;;;4BACS,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,UAAO;yBAClC,CAAC,EAAA;4BAHF,WAAO,SAGL,EAAC;;;;KACJ;IACH,eAAC;AAAD,CAAC,AAZD,CAAsC,iBAAO,GAY5C"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/tiers-api/types.ts"],"names":[],"mappings":""}
@@ -1,122 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
28
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- 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;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- var baseApi_1 = require("./baseApi");
55
- var VendorsApi = (function (_super) {
56
- __extends(VendorsApi, _super);
57
- function VendorsApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/vendors';
60
- return _this;
61
- }
62
- VendorsApi.prototype.listVendors = function (id) {
63
- return __awaiter(this, void 0, void 0, function () {
64
- return __generator(this, function (_a) {
65
- switch (_a.label) {
66
- case 0: return [4, this.apiCall({
67
- method: 'GET',
68
- route: this.apiBasePath,
69
- params: { id: id },
70
- })];
71
- case 1: return [2, _a.sent()];
72
- }
73
- });
74
- });
75
- };
76
- VendorsApi.prototype.createVendor = function (name) {
77
- return __awaiter(this, void 0, void 0, function () {
78
- return __generator(this, function (_a) {
79
- switch (_a.label) {
80
- case 0: return [4, this.apiCall({
81
- method: 'POST',
82
- route: this.apiBasePath,
83
- data: { name: name },
84
- })];
85
- case 1: return [2, _a.sent()];
86
- }
87
- });
88
- });
89
- };
90
- VendorsApi.prototype.deleteVendor = function (id) {
91
- return __awaiter(this, void 0, void 0, function () {
92
- return __generator(this, function (_a) {
93
- switch (_a.label) {
94
- case 0: return [4, this.apiCall({
95
- method: 'DELETE',
96
- route: this.apiBasePath,
97
- params: { id: id },
98
- })];
99
- case 1: return [2, _a.sent()];
100
- }
101
- });
102
- });
103
- };
104
- VendorsApi.prototype.updateVendor = function (id, data) {
105
- return __awaiter(this, void 0, void 0, function () {
106
- return __generator(this, function (_a) {
107
- switch (_a.label) {
108
- case 0: return [4, this.apiCall({
109
- method: 'PUT',
110
- route: this.apiBasePath,
111
- params: { id: id },
112
- data: data,
113
- })];
114
- case 1: return [2, _a.sent()];
115
- }
116
- });
117
- });
118
- };
119
- return VendorsApi;
120
- }(baseApi_1.BaseApi));
121
- exports.default = VendorsApi;
122
- //# sourceMappingURL=vedorsApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vedorsApi.js","sourceRoot":"","sources":["../../../src/api/vedorsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAAoC;AAEpC;IAAwC,8BAAO;IAA/C;;QACmB,iBAAW,GAAG,gBAAgB,CAAC;;IAsDlD,CAAC;IA/CO,gCAAW,GAAjB,UAAkB,EAAW;;;;4BACpB,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAOK,iCAAY,GAAlB,UAAmB,IAAY;;;;4BACtB,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,IAAI,EAAE,EAAE,IAAI,MAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAMK,iCAAY,GAAlB,UAAmB,EAAU;;;;4BACpB,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,QAAQ;4BAChB,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAQK,iCAAY,GAAlB,UAAmB,EAAU,EAAE,IAAkB;;;;4BACxC,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,IAAI,CAAC,WAAW;4BACvB,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;4BACd,IAAI,MAAA;yBACL,CAAC,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IACH,iBAAC;AAAD,CAAC,AAvDD,CAAwC,iBAAO,GAuD9C"}