@or-sdk/ccp 2.2.2-beta.3541.0 → 2.2.2-beta.3546.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 (114) hide show
  1. package/dist/cjs/Ccp.js +0 -4
  2. package/dist/cjs/Ccp.js.map +1 -1
  3. package/dist/cjs/api/index.js +2 -10
  4. package/dist/cjs/api/index.js.map +1 -1
  5. package/dist/cjs/api/{contracts-api/contractsApi.js → mapping-api/mappingApi.js} +28 -27
  6. package/dist/cjs/api/mapping-api/mappingApi.js.map +1 -0
  7. package/dist/cjs/api/{tiers-api → mapping-api}/types.js.map +1 -1
  8. package/dist/cjs/constants.js +0 -16
  9. package/dist/cjs/constants.js.map +1 -1
  10. package/dist/cjs/index.js +0 -1
  11. package/dist/cjs/index.js.map +1 -1
  12. package/dist/cjs/types.js +1 -4
  13. package/dist/cjs/types.js.map +1 -1
  14. package/dist/esm/Ccp.js +1 -5
  15. package/dist/esm/Ccp.js.map +1 -1
  16. package/dist/esm/api/index.js +1 -5
  17. package/dist/esm/api/index.js.map +1 -1
  18. package/dist/esm/api/{contracts-api/contractsApi.js → mapping-api/mappingApi.js} +20 -19
  19. package/dist/esm/api/mapping-api/mappingApi.js.map +1 -0
  20. package/dist/esm/api/{tiers-api → mapping-api}/types.js.map +1 -1
  21. package/dist/esm/constants.js +0 -2
  22. package/dist/esm/constants.js.map +1 -1
  23. package/dist/esm/index.js +0 -1
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/types.js +1 -4
  26. package/dist/esm/types.js.map +1 -1
  27. package/dist/types/Ccp.d.ts +1 -5
  28. package/dist/types/Ccp.d.ts.map +1 -1
  29. package/dist/types/api/index.d.ts +1 -5
  30. package/dist/types/api/index.d.ts.map +1 -1
  31. package/dist/types/api/mapping-api/mappingApi.d.ts +13 -0
  32. package/dist/types/api/mapping-api/mappingApi.d.ts.map +1 -0
  33. package/dist/types/api/mapping-api/types.d.ts +27 -0
  34. package/dist/types/api/mapping-api/types.d.ts.map +1 -0
  35. package/dist/types/constants.d.ts +0 -2
  36. package/dist/types/constants.d.ts.map +1 -1
  37. package/dist/types/index.d.ts +0 -1
  38. package/dist/types/index.d.ts.map +1 -1
  39. package/dist/types/types.d.ts +1 -10
  40. package/dist/types/types.d.ts.map +1 -1
  41. package/package.json +1 -1
  42. package/src/Ccp.ts +0 -12
  43. package/src/api/index.ts +1 -5
  44. package/src/api/mapping-api/mappingApi.ts +70 -0
  45. package/src/api/mapping-api/types.ts +28 -0
  46. package/src/constants.ts +0 -3
  47. package/src/index.ts +0 -1
  48. package/src/types.ts +1 -11
  49. package/dist/cjs/api/contracts-api/contractsApi.js.map +0 -1
  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/mappingApi.js +0 -78
  56. package/dist/cjs/api/mappingApi.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/tiers-api/tiersApi.js +0 -78
  64. package/dist/cjs/api/tiers-api/tiersApi.js.map +0 -1
  65. package/dist/cjs/api/tiers-api/types.js +0 -3
  66. package/dist/esm/api/contracts-api/contractsApi.js.map +0 -1
  67. package/dist/esm/api/contracts-api/types.js.map +0 -1
  68. package/dist/esm/api/custom-skus-api/customSkusApi.js +0 -34
  69. package/dist/esm/api/custom-skus-api/customSkusApi.js.map +0 -1
  70. package/dist/esm/api/custom-skus-api/types.js +0 -2
  71. package/dist/esm/api/custom-skus-api/types.js.map +0 -1
  72. package/dist/esm/api/mappingApi.js +0 -25
  73. package/dist/esm/api/mappingApi.js.map +0 -1
  74. package/dist/esm/api/patterns-api/constants.js +0 -6
  75. package/dist/esm/api/patterns-api/constants.js.map +0 -1
  76. package/dist/esm/api/patterns-api/patternsApi.js +0 -44
  77. package/dist/esm/api/patterns-api/patternsApi.js.map +0 -1
  78. package/dist/esm/api/patterns-api/types.js +0 -2
  79. package/dist/esm/api/patterns-api/types.js.map +0 -1
  80. package/dist/esm/api/tiers-api/tiersApi.js +0 -25
  81. package/dist/esm/api/tiers-api/tiersApi.js.map +0 -1
  82. package/dist/esm/api/tiers-api/types.js +0 -2
  83. package/dist/types/api/contracts-api/contractsApi.d.ts +0 -12
  84. package/dist/types/api/contracts-api/contractsApi.d.ts.map +0 -1
  85. package/dist/types/api/contracts-api/types.d.ts +0 -112
  86. package/dist/types/api/contracts-api/types.d.ts.map +0 -1
  87. package/dist/types/api/custom-skus-api/customSkusApi.d.ts +0 -8
  88. package/dist/types/api/custom-skus-api/customSkusApi.d.ts.map +0 -1
  89. package/dist/types/api/custom-skus-api/types.d.ts +0 -14
  90. package/dist/types/api/custom-skus-api/types.d.ts.map +0 -1
  91. package/dist/types/api/mappingApi.d.ts +0 -7
  92. package/dist/types/api/mappingApi.d.ts.map +0 -1
  93. package/dist/types/api/patterns-api/constants.d.ts +0 -5
  94. package/dist/types/api/patterns-api/constants.d.ts.map +0 -1
  95. package/dist/types/api/patterns-api/patternsApi.d.ts +0 -9
  96. package/dist/types/api/patterns-api/patternsApi.d.ts.map +0 -1
  97. package/dist/types/api/patterns-api/types.d.ts +0 -26
  98. package/dist/types/api/patterns-api/types.d.ts.map +0 -1
  99. package/dist/types/api/tiers-api/tiersApi.d.ts +0 -7
  100. package/dist/types/api/tiers-api/tiersApi.d.ts.map +0 -1
  101. package/dist/types/api/tiers-api/types.d.ts +0 -13
  102. package/dist/types/api/tiers-api/types.d.ts.map +0 -1
  103. package/src/api/contracts-api/contractsApi.ts +0 -67
  104. package/src/api/contracts-api/types.ts +0 -121
  105. package/src/api/custom-skus-api/customSkusApi.ts +0 -29
  106. package/src/api/custom-skus-api/types.ts +0 -15
  107. package/src/api/mappingApi.ts +0 -16
  108. package/src/api/patterns-api/constants.ts +0 -4
  109. package/src/api/patterns-api/patternsApi.ts +0 -44
  110. package/src/api/patterns-api/types.ts +0 -30
  111. package/src/api/tiers-api/tiersApi.ts +0 -17
  112. package/src/api/tiers-api/types.ts +0 -12
  113. /package/dist/cjs/api/{contracts-api → mapping-api}/types.js +0 -0
  114. /package/dist/esm/api/{contracts-api → mapping-api}/types.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/ccp",
3
- "version": "2.2.2-beta.3541.0",
3
+ "version": "2.2.2-beta.3546.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
package/src/Ccp.ts CHANGED
@@ -13,10 +13,6 @@ import {
13
13
  SkusApi,
14
14
  EmployeesApi,
15
15
  SageApi,
16
- ContractsApi,
17
- TiersApi,
18
- CustomSkusApi,
19
- PatternsApi,
20
16
  } from './api';
21
17
  import { ApiError } from './apiError';
22
18
  import { SERVICE_KEY } from './constants';
@@ -42,10 +38,6 @@ export class Ccp extends Base {
42
38
  public readonly skusApi: SkusApi;
43
39
  public readonly employeesApi: EmployeesApi;
44
40
  public readonly sageApi: SageApi;
45
- public readonly contractsApi: ContractsApi;
46
- public readonly tiersApi: TiersApi;
47
- public readonly customSkusApi: CustomSkusApi;
48
- public readonly patternsApi: PatternsApi;
49
41
  private withApiErrorLog: boolean;
50
42
 
51
43
  /**
@@ -80,10 +72,6 @@ export class Ccp extends Base {
80
72
  this.skusApi = new SkusApi(apiCall);
81
73
  this.employeesApi = new EmployeesApi(apiCall);
82
74
  this.sageApi = new SageApi(apiCall);
83
- this.contractsApi = new ContractsApi(apiCall);
84
- this.tiersApi = new TiersApi(apiCall);
85
- this.customSkusApi = new CustomSkusApi(apiCall);
86
- this.patternsApi = new PatternsApi(apiCall);
87
75
  }
88
76
 
89
77
  callApi<T>(params: CalApiParams): Promise<T> {
package/src/api/index.ts CHANGED
@@ -2,7 +2,7 @@ export { default as CustomersApi } from './customers-api/customersApi';
2
2
  export { default as EnvironmentsApi } from './environmentsApi';
3
3
  export { default as AccountsApi } from './accountsApi';
4
4
  export { default as CategoriesApi } from './categoriesApi';
5
- export { default as MappingApi } from './mappingApi';
5
+ export { default as MappingApi } from './mapping-api/mappingApi';
6
6
  export { default as FlowsApi } from './flowsApi';
7
7
  export { default as ReportingApi } from './reportingApi';
8
8
  export { default as PaymentProvidersApi } from './paymentProvidersApi';
@@ -10,7 +10,3 @@ export { default as VendorsApi } from './vedorsApi';
10
10
  export { default as SkusApi } from './skusApi';
11
11
  export { default as EmployeesApi } from './employeesApi';
12
12
  export { default as SageApi } from './sageApi';
13
- export { default as ContractsApi } from './contracts-api/contractsApi';
14
- export { default as TiersApi } from './tiers-api/tiersApi';
15
- export { default as CustomSkusApi } from './custom-skus-api/customSkusApi';
16
- export { default as PatternsApi } from './patterns-api/patternsApi';
@@ -0,0 +1,70 @@
1
+ import { PaginatedResponse } from '../../types';
2
+ import { BaseApi } from '../baseApi';
3
+
4
+ import { Mapping, SkuMappingDto, FindSkuMappingDto, CreateSkuMappingDto } from './types';
5
+
6
+ export default class MappingApi extends BaseApi {
7
+ private readonly apiBasePath = 'api/v1/mapping';
8
+ private readonly apiBasePathV2 = 'api/v1/mapping-v2';
9
+
10
+ /**
11
+ * @description get mapping
12
+ */
13
+ public async getMapping(): Promise<Mapping> {
14
+ return await this.apiCall({
15
+ method: 'GET',
16
+ route: `${this.apiBasePath}`,
17
+ });
18
+ }
19
+
20
+ /**
21
+ * Get paginated list of mapping
22
+ * @param params Query parameters for filtering and pagination
23
+ */
24
+ async getPaginatedMapping(params: FindSkuMappingDto = {}): Promise<PaginatedResponse<SkuMappingDto>> {
25
+ return await this.apiCall({
26
+ method: 'GET',
27
+ route: `${this.apiBasePathV2}`,
28
+ params,
29
+ });
30
+ }
31
+
32
+ /**
33
+ * Update mapping
34
+ * @param id mapping ID
35
+ * @param data Updated mapping data
36
+ */
37
+ async updateMapping(id: number, data: Partial<CreateSkuMappingDto>): Promise<void> {
38
+ return await this.apiCall({
39
+ method: 'PUT',
40
+ route: `${this.apiBasePathV2}`,
41
+ params: { id },
42
+ data,
43
+ });
44
+ }
45
+
46
+ /**
47
+ * Create mapping
48
+ * @param data mapping data
49
+ */
50
+ async createMapping(data: CreateSkuMappingDto): Promise<SkuMappingDto> {
51
+ return await this.apiCall({
52
+ method: 'POST',
53
+ route: `${this.apiBasePathV2}`,
54
+ data,
55
+ });
56
+ }
57
+
58
+ /**
59
+ * Delete mapping
60
+ * @param id mapping ID
61
+ */
62
+ async deleteMapping(id: number): Promise<void> {
63
+ return await this.apiCall({
64
+ method: 'DELETE',
65
+ route: `${this.apiBasePathV2}`,
66
+ params: { id },
67
+ });
68
+ }
69
+
70
+ }
@@ -0,0 +1,28 @@
1
+ import { ApiParamsRequestDto } from '../../types';
2
+
3
+ export interface Mapping {
4
+ [key: string]: { [key: string]: string; };
5
+ }
6
+
7
+ export type FindSkuMappingDto = {
8
+ id?: number;
9
+ groupId?: string;
10
+ name?: string;
11
+ skuCode?: string;
12
+ sqlCode?: string;
13
+ } & ApiParamsRequestDto;
14
+
15
+ export type CreateSkuMappingDto = {
16
+ groupId: string;
17
+ name: string;
18
+ skuCode: string;
19
+ sqlCode: string;
20
+ };
21
+
22
+ export type SkuMappingDto = {
23
+ id: number;
24
+ groupId: string;
25
+ name: string;
26
+ skuCode: string;
27
+ sqlCode: string;
28
+ };
package/src/constants.ts CHANGED
@@ -1,6 +1,3 @@
1
- export * from './api/patterns-api/constants';
2
- export * from './api/customers-api/constants';
3
-
4
1
  export const SERVICE_KEY = 'customer-portal-api';
5
2
 
6
3
  export enum SortOrder {
package/src/index.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export { Ccp } from './Ccp';
2
2
  export * from './types';
3
- export * from './constants';
package/src/types.ts CHANGED
@@ -3,12 +3,7 @@ import { OrderDirection, Token } from '@or-sdk/base';
3
3
  import { SortOrder } from './constants';
4
4
 
5
5
  export * from './api/customers-api/types';
6
- export * from './api/contracts-api/types';
7
- export * from './api/tiers-api/types';
8
- export * from './api/custom-skus-api/types';
9
- export * from './api/patterns-api/types';
10
-
11
-
6
+ export * from './api/mapping-api/types';
12
7
  export type CcpConfig = {
13
8
  /**
14
9
  * token
@@ -101,14 +96,9 @@ export interface Category {
101
96
  value: string;
102
97
  }
103
98
 
104
- export interface Mapping {
105
- [key: string]: { [key: string]: string; };
106
- }
107
-
108
99
  export type Sku = {
109
100
  id: string;
110
101
  category?: string;
111
- listRate?: string;
112
102
  friendlyName?: string;
113
103
  unit?: string;
114
104
  sku: string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"contractsApi.js","sourceRoot":"","sources":["../../../../src/api/contracts-api/contractsApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,sCAAqC;AAIrC;IAA0C,gCAAO;IAAjD;;QACmB,iBAAW,GAAG,kBAAkB,CAAC;;IA4DpD,CAAC;IAvDc,mCAAY,GAAzB;4DAA0B,MAAiC;YAAjC,uBAAA,EAAA,WAAiC;;;4BAClD,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;4BAC5B,MAAM,QAAA;yBACP,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAOK,qCAAc,GAApB,UAAqB,EAAU,EAAE,IAAuB;;;;4BAC/C,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,KAAK;4BACb,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;4BAC5B,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;4BACd,IAAI,MAAA;yBACL,CAAC,EAAA;4BALF,WAAO,SAKL,EAAC;;;;KACJ;IAMK,qCAAc,GAApB,UAAqB,IAAuB;;;;4BACnC,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;IAMK,qCAAc,GAApB,UAAqB,EAAU;;;;4BACtB,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,QAAQ;4BAChB,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,CAAE;4BAC5B,MAAM,EAAE,EAAE,EAAE,IAAA,EAAE;yBACf,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAKY,yCAAkB,GAA/B;;;;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,mBAAC;AAAD,CAAC,AA7DD,CAA0C,iBAAO,GA6DhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/contracts-api/types.ts"],"names":[],"mappings":""}
@@ -1,92 +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 CustomSkusApi = (function (_super) {
56
- __extends(CustomSkusApi, _super);
57
- function CustomSkusApi() {
58
- var _this = _super !== null && _super.apply(this, arguments) || this;
59
- _this.apiBasePath = 'api/v1/custom-skus';
60
- return _this;
61
- }
62
- CustomSkusApi.prototype.listOfCustomSkus = 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
- CustomSkusApi.prototype.updateCustomSkus = function (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: 'POST',
81
- route: "".concat(this.apiBasePath),
82
- data: data,
83
- })];
84
- case 1: return [2, _a.sent()];
85
- }
86
- });
87
- });
88
- };
89
- return CustomSkusApi;
90
- }(baseApi_1.BaseApi));
91
- exports.default = CustomSkusApi;
92
- //# sourceMappingURL=customSkusApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customSkusApi.js","sourceRoot":"","sources":["../../../../src/api/custom-skus-api/customSkusApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAIrC;IAA2C,iCAAO;IAAlD;;QACmB,iBAAW,GAAG,oBAAoB,CAAC;;IAuBtD,CAAC;IAlBc,wCAAgB,GAA7B;;;;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;IAMK,wCAAgB,GAAtB,UAAuB,IAAyB;;;;4BACvC,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,oBAAC;AAAD,CAAC,AAxBD,CAA2C,iBAAO,GAwBjD"}
@@ -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/custom-skus-api/types.ts"],"names":[],"mappings":""}
@@ -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/mapping';
60
- return _this;
61
- }
62
- MappingApi.prototype.getMapping = 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=mappingApi.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mappingApi.js","sourceRoot":"","sources":["../../../src/api/mappingApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAoC;AAGpC;IAAwC,8BAAO;IAA/C;;QACmB,iBAAW,GAAG,gBAAgB,CAAC;;IAWlD,CAAC;IANc,+BAAU,GAAvB;;;;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,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":"contractsApi.js","sourceRoot":"","sources":["../../../../src/api/contracts-api/contractsApi.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;IAAjD;;QACmB,gBAAW,GAAG,kBAAkB,CAAC;IA4DpD,CAAC;IAvDc,YAAY;6DAAC,SAA+B,EAAE;YACzD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;gBAC5B,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;IAOK,cAAc,CAAC,EAAU,EAAE,IAAuB;;YACtD,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;gBAC5B,MAAM,EAAE,EAAE,EAAE,EAAE;gBACd,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAMK,cAAc,CAAC,IAAuB;;YAC1C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;gBAC5B,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAMK,cAAc,CAAC,EAAU;;YAC7B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,QAAQ;gBAChB,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;gBAC5B,MAAM,EAAE,EAAE,EAAE,EAAE;aACf,CAAC,CAAC;QACL,CAAC;KAAA;IAKY,kBAAkB;;YAC7B,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,KAAK;gBACb,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,OAAO;aAClC,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/api/contracts-api/types.ts"],"names":[],"mappings":""}