@innvoid/getmarket-contracts 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-TBCODCKV.js +13 -0
- package/dist/chunk-TBCODCKV.js.map +1 -0
- package/dist/headers.js +3 -8
- package/dist/headers.js.map +1 -1
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -0
- package/package.json +26 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// src/headers.ts
|
|
2
|
+
var HEADERS = {
|
|
3
|
+
COMPANY_UID: "x-company",
|
|
4
|
+
BRANCH_UID: "x-branch",
|
|
5
|
+
EMPLOYEE_UID: "x-employee-uid",
|
|
6
|
+
REQUEST_ID: "x-request-id",
|
|
7
|
+
INTERNAL_API_KEY: "x-internal-api-key"
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
HEADERS
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=chunk-TBCODCKV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/headers.ts"],"sourcesContent":["import type {UID} from \"./common\";\n\nexport const HEADERS = {\n COMPANY_UID: \"x-company\",\n BRANCH_UID: \"x-branch\",\n EMPLOYEE_UID: \"x-employee-uid\",\n REQUEST_ID: \"x-request-id\",\n INTERNAL_API_KEY: \"x-internal-api-key\",\n} as const;\n\nexport type TenantHeaders = {\n \"x-company\"?: UID;\n \"x-branch\"?: UID;\n \"x-employee-uid\"?: UID;\n \"x-request-id\"?: string;\n};\n\nexport type InternalHeaders = TenantHeaders & {\n \"x-internal-api-key\"?: string;\n};\n"],"mappings":";AAEO,IAAM,UAAU;AAAA,EACnB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,kBAAkB;AACtB;","names":[]}
|
package/dist/headers.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
BRANCH_UID: "x-branch",
|
|
5
|
-
EMPLOYEE_UID: "x-employee-uid",
|
|
6
|
-
REQUEST_ID: "x-request-id",
|
|
7
|
-
INTERNAL_API_KEY: "x-internal-api-key"
|
|
8
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
HEADERS
|
|
3
|
+
} from "./chunk-TBCODCKV.js";
|
|
9
4
|
export {
|
|
10
5
|
HEADERS
|
|
11
6
|
};
|
package/dist/headers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/index.cjs
CHANGED
|
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
6
10
|
var __copyProps = (to, from, except, desc) => {
|
|
7
11
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
12
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,5 +19,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
19
|
|
|
16
20
|
// src/index.ts
|
|
17
21
|
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
HEADERS: () => HEADERS
|
|
24
|
+
});
|
|
18
25
|
module.exports = __toCommonJS(src_exports);
|
|
26
|
+
|
|
27
|
+
// src/headers.ts
|
|
28
|
+
var HEADERS = {
|
|
29
|
+
COMPANY_UID: "x-company",
|
|
30
|
+
BRANCH_UID: "x-branch",
|
|
31
|
+
EMPLOYEE_UID: "x-employee-uid",
|
|
32
|
+
REQUEST_ID: "x-request-id",
|
|
33
|
+
INTERNAL_API_KEY: "x-internal-api-key"
|
|
34
|
+
};
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {
|
|
37
|
+
HEADERS
|
|
38
|
+
});
|
|
19
39
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./common\";\nexport * from \"./auth\";\nexport * from \"./platform\";\nexport * from \"./md\";\nexport * from \"./res\";\nexport * from \"./fis\";\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/headers.ts"],"sourcesContent":["export * from \"./common\";\nexport * from \"./auth\";\nexport * from \"./platform\";\nexport * from \"./md\";\nexport * from \"./res\";\nexport * from \"./fis\";\nexport * from \"./headers\";\n","import type {UID} from \"./common\";\n\nexport const HEADERS = {\n COMPANY_UID: \"x-company\",\n BRANCH_UID: \"x-branch\",\n EMPLOYEE_UID: \"x-employee-uid\",\n REQUEST_ID: \"x-request-id\",\n INTERNAL_API_KEY: \"x-internal-api-key\",\n} as const;\n\nexport type TenantHeaders = {\n \"x-company\"?: UID;\n \"x-branch\"?: UID;\n \"x-employee-uid\"?: UID;\n \"x-request-id\"?: string;\n};\n\nexport type InternalHeaders = TenantHeaders & {\n \"x-internal-api-key\"?: string;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEO,IAAM,UAAU;AAAA,EACnB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,kBAAkB;AACtB;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -4,3 +4,4 @@ export { PlatformResolveTenantResponse, PlatformTenantResolved } from './platfor
|
|
|
4
4
|
export { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse } from './md.cjs';
|
|
5
5
|
export { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef } from './res.cjs';
|
|
6
6
|
export { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse } from './fis.cjs';
|
|
7
|
+
export { HEADERS, InternalHeaders, TenantHeaders } from './headers.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ export { PlatformResolveTenantResponse, PlatformTenantResolved } from './platfor
|
|
|
4
4
|
export { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse } from './md.js';
|
|
5
5
|
export { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef } from './res.js';
|
|
6
6
|
export { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse } from './fis.js';
|
|
7
|
+
export { HEADERS, InternalHeaders, TenantHeaders } from './headers.js';
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import "./chunk-5CHG5ZVH.js";
|
|
2
2
|
import "./chunk-GYQ2KZV6.js";
|
|
3
|
+
import {
|
|
4
|
+
HEADERS
|
|
5
|
+
} from "./chunk-TBCODCKV.js";
|
|
3
6
|
import "./chunk-PAA2WCJ2.js";
|
|
4
7
|
import "./chunk-EAJW72VX.js";
|
|
5
8
|
import "./chunk-PDYRRMMO.js";
|
|
6
9
|
import "./chunk-YLVXY5BQ.js";
|
|
10
|
+
export {
|
|
11
|
+
HEADERS
|
|
12
|
+
};
|
|
7
13
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innvoid/getmarket-contracts",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -48,6 +48,31 @@
|
|
|
48
48
|
"require": "./dist/fis.cjs"
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
+
"typesVersions": {
|
|
52
|
+
"*": {
|
|
53
|
+
"auth": [
|
|
54
|
+
"dist/auth.d.ts"
|
|
55
|
+
],
|
|
56
|
+
"common": [
|
|
57
|
+
"dist/common.d.ts"
|
|
58
|
+
],
|
|
59
|
+
"headers": [
|
|
60
|
+
"dist/headers.d.ts"
|
|
61
|
+
],
|
|
62
|
+
"md": [
|
|
63
|
+
"dist/md.d.ts"
|
|
64
|
+
],
|
|
65
|
+
"platform": [
|
|
66
|
+
"dist/platform.d.ts"
|
|
67
|
+
],
|
|
68
|
+
"res": [
|
|
69
|
+
"dist/res.d.ts"
|
|
70
|
+
],
|
|
71
|
+
"fis": [
|
|
72
|
+
"dist/fis.d.ts"
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
},
|
|
51
76
|
"files": [
|
|
52
77
|
"dist",
|
|
53
78
|
"README.md"
|