@innvoid/getmarket-contracts 0.1.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.
- package/README.md +93 -0
- package/dist/auth.cjs +19 -0
- package/dist/auth.cjs.map +1 -0
- package/dist/auth.d.cts +52 -0
- package/dist/auth.d.ts +52 -0
- package/dist/auth.js +2 -0
- package/dist/auth.js.map +1 -0
- package/dist/chunk-5CHG5ZVH.js +1 -0
- package/dist/chunk-5CHG5ZVH.js.map +1 -0
- package/dist/chunk-EAJW72VX.js +1 -0
- package/dist/chunk-EAJW72VX.js.map +1 -0
- package/dist/chunk-GYQ2KZV6.js +1 -0
- package/dist/chunk-GYQ2KZV6.js.map +1 -0
- package/dist/chunk-PAA2WCJ2.js +1 -0
- package/dist/chunk-PAA2WCJ2.js.map +1 -0
- package/dist/chunk-PDYRRMMO.js +1 -0
- package/dist/chunk-PDYRRMMO.js.map +1 -0
- package/dist/chunk-YLVXY5BQ.js +1 -0
- package/dist/chunk-YLVXY5BQ.js.map +1 -0
- package/dist/common.cjs +19 -0
- package/dist/common.cjs.map +1 -0
- package/dist/common.d.cts +38 -0
- package/dist/common.d.ts +38 -0
- package/dist/common.js +2 -0
- package/dist/common.js.map +1 -0
- package/dist/fis.cjs +19 -0
- package/dist/fis.cjs.map +1 -0
- package/dist/fis.d.cts +19 -0
- package/dist/fis.d.ts +19 -0
- package/dist/fis.js +2 -0
- package/dist/fis.js.map +1 -0
- package/dist/headers.cjs +37 -0
- package/dist/headers.cjs.map +1 -0
- package/dist/headers.d.cts +20 -0
- package/dist/headers.d.ts +20 -0
- package/dist/headers.js +12 -0
- package/dist/headers.js.map +1 -0
- package/dist/index.cjs +19 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/md.cjs +19 -0
- package/dist/md.cjs.map +1 -0
- package/dist/md.d.cts +41 -0
- package/dist/md.d.ts +41 -0
- package/dist/md.js +2 -0
- package/dist/md.js.map +1 -0
- package/dist/platform.cjs +19 -0
- package/dist/platform.cjs.map +1 -0
- package/dist/platform.d.cts +21 -0
- package/dist/platform.d.ts +21 -0
- package/dist/platform.js +2 -0
- package/dist/platform.js.map +1 -0
- package/dist/res.cjs +19 -0
- package/dist/res.cjs.map +1 -0
- package/dist/res.d.cts +34 -0
- package/dist/res.d.ts +34 -0
- package/dist/res.js +2 -0
- package/dist/res.js.map +1 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# getmarket-contracts
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Getting started
|
|
6
|
+
|
|
7
|
+
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
|
|
8
|
+
|
|
9
|
+
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
|
|
10
|
+
|
|
11
|
+
## Add your files
|
|
12
|
+
|
|
13
|
+
* [Create](https://docs.gitlab.com/user/project/repository/web_editor/#create-a-file) or [upload](https://docs.gitlab.com/user/project/repository/web_editor/#upload-a-file) files
|
|
14
|
+
* [Add files using the command line](https://docs.gitlab.com/topics/git/add_files/#add-files-to-a-git-repository) or push an existing Git repository with the following command:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
cd existing_repo
|
|
18
|
+
git remote add origin https://gitlab.com/innvoid-devs/getmarket-contracts.git
|
|
19
|
+
git branch -M main
|
|
20
|
+
git push -uf origin main
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Integrate with your tools
|
|
24
|
+
|
|
25
|
+
* [Set up project integrations](https://gitlab.com/innvoid-devs/getmarket-contracts/-/settings/integrations)
|
|
26
|
+
|
|
27
|
+
## Collaborate with your team
|
|
28
|
+
|
|
29
|
+
* [Invite team members and collaborators](https://docs.gitlab.com/user/project/members/)
|
|
30
|
+
* [Create a new merge request](https://docs.gitlab.com/user/project/merge_requests/creating_merge_requests/)
|
|
31
|
+
* [Automatically close issues from merge requests](https://docs.gitlab.com/user/project/issues/managing_issues/#closing-issues-automatically)
|
|
32
|
+
* [Enable merge request approvals](https://docs.gitlab.com/user/project/merge_requests/approvals/)
|
|
33
|
+
* [Set auto-merge](https://docs.gitlab.com/user/project/merge_requests/auto_merge/)
|
|
34
|
+
|
|
35
|
+
## Test and Deploy
|
|
36
|
+
|
|
37
|
+
Use the built-in continuous integration in GitLab.
|
|
38
|
+
|
|
39
|
+
* [Get started with GitLab CI/CD](https://docs.gitlab.com/ci/quick_start/)
|
|
40
|
+
* [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/user/application_security/sast/)
|
|
41
|
+
* [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/topics/autodevops/requirements/)
|
|
42
|
+
* [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/user/clusters/agent/)
|
|
43
|
+
* [Set up protected environments](https://docs.gitlab.com/ci/environments/protected_environments/)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
# Editing this README
|
|
48
|
+
|
|
49
|
+
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
|
|
50
|
+
|
|
51
|
+
## Suggestions for a good README
|
|
52
|
+
|
|
53
|
+
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
|
|
54
|
+
|
|
55
|
+
## Name
|
|
56
|
+
Choose a self-explaining name for your project.
|
|
57
|
+
|
|
58
|
+
## Description
|
|
59
|
+
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
60
|
+
|
|
61
|
+
## Badges
|
|
62
|
+
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
63
|
+
|
|
64
|
+
## Visuals
|
|
65
|
+
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
66
|
+
|
|
67
|
+
## Installation
|
|
68
|
+
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
69
|
+
|
|
70
|
+
## Usage
|
|
71
|
+
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
|
|
72
|
+
|
|
73
|
+
## Support
|
|
74
|
+
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
75
|
+
|
|
76
|
+
## Roadmap
|
|
77
|
+
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
78
|
+
|
|
79
|
+
## Contributing
|
|
80
|
+
State if you are open to contributions and what your requirements are for accepting them.
|
|
81
|
+
|
|
82
|
+
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
83
|
+
|
|
84
|
+
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
85
|
+
|
|
86
|
+
## Authors and acknowledgment
|
|
87
|
+
Show your appreciation to those who have contributed to the project.
|
|
88
|
+
|
|
89
|
+
## License
|
|
90
|
+
For open source projects, say how it is licensed.
|
|
91
|
+
|
|
92
|
+
## Project status
|
|
93
|
+
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
package/dist/auth.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/auth.ts
|
|
17
|
+
var auth_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(auth_exports);
|
|
19
|
+
//# sourceMappingURL=auth.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/auth.ts"],"sourcesContent":["import type {UID, Code, RefBase, BulkUidsRequest, BulkRefsResponse} from \"./common\";\n\n/**\n * AUTH is SoT for identity, org structure and access.\n */\n\nexport type AuthUserRef = RefBase & {\n uid: UID; // auth_user_uid\n document_value?: string | null;\n document_type_id?: number | null;\n};\n\nexport type AuthEmployeeRef = RefBase & {\n uid: UID; // auth_employee_uid\n user_uid?: UID | null;\n email?: string | null;\n};\n\nexport type AuthCustomerRef = RefBase & {\n uid: UID; // auth_customer_uid\n user_uid?: UID | null;\n email?: string | null;\n};\n\nexport type AuthCompanyRef = RefBase & {\n uid: UID; // auth_company_uid\n document_value?: string | null;\n document_type_id?: number | null;\n fantasy_name?: string | null;\n status?: number | null;\n};\n\nexport type AuthBranchRef = RefBase & {\n uid: UID; // auth_branch_uid\n company_uid: UID;\n status?: number | null;\n};\n\nexport type AuthRoleRef = RefBase & {\n uid: UID;\n slug?: Code;\n};\n\nexport type AuthPermissionRef = RefBase & {\n uid: UID;\n slug?: Code;\n};\n\n// Bulk refs endpoints (internal)\nexport type AuthEmployeesRefsRequest = BulkUidsRequest;\nexport type AuthEmployeesRefsResponse = BulkRefsResponse<AuthEmployeeRef>;\n\nexport type AuthUsersRefsRequest = BulkUidsRequest;\nexport type AuthUsersRefsResponse = BulkRefsResponse<AuthUserRef>;\n\nexport type AuthCustomersRefsRequest = BulkUidsRequest;\nexport type AuthCustomersRefsResponse = BulkRefsResponse<AuthCustomerRef>;\n\nexport type AuthCompaniesRefsRequest = BulkUidsRequest;\nexport type AuthCompaniesRefsResponse = BulkRefsResponse<AuthCompanyRef>;\n\nexport type AuthBranchesRefsRequest = BulkUidsRequest;\nexport type AuthBranchesRefsResponse = BulkRefsResponse<AuthBranchRef>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/auth.d.cts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RefBase, UID, BulkUidsRequest, BulkRefsResponse, Code } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AUTH is SoT for identity, org structure and access.
|
|
5
|
+
*/
|
|
6
|
+
type AuthUserRef = RefBase & {
|
|
7
|
+
uid: UID;
|
|
8
|
+
document_value?: string | null;
|
|
9
|
+
document_type_id?: number | null;
|
|
10
|
+
};
|
|
11
|
+
type AuthEmployeeRef = RefBase & {
|
|
12
|
+
uid: UID;
|
|
13
|
+
user_uid?: UID | null;
|
|
14
|
+
email?: string | null;
|
|
15
|
+
};
|
|
16
|
+
type AuthCustomerRef = RefBase & {
|
|
17
|
+
uid: UID;
|
|
18
|
+
user_uid?: UID | null;
|
|
19
|
+
email?: string | null;
|
|
20
|
+
};
|
|
21
|
+
type AuthCompanyRef = RefBase & {
|
|
22
|
+
uid: UID;
|
|
23
|
+
document_value?: string | null;
|
|
24
|
+
document_type_id?: number | null;
|
|
25
|
+
fantasy_name?: string | null;
|
|
26
|
+
status?: number | null;
|
|
27
|
+
};
|
|
28
|
+
type AuthBranchRef = RefBase & {
|
|
29
|
+
uid: UID;
|
|
30
|
+
company_uid: UID;
|
|
31
|
+
status?: number | null;
|
|
32
|
+
};
|
|
33
|
+
type AuthRoleRef = RefBase & {
|
|
34
|
+
uid: UID;
|
|
35
|
+
slug?: Code;
|
|
36
|
+
};
|
|
37
|
+
type AuthPermissionRef = RefBase & {
|
|
38
|
+
uid: UID;
|
|
39
|
+
slug?: Code;
|
|
40
|
+
};
|
|
41
|
+
type AuthEmployeesRefsRequest = BulkUidsRequest;
|
|
42
|
+
type AuthEmployeesRefsResponse = BulkRefsResponse<AuthEmployeeRef>;
|
|
43
|
+
type AuthUsersRefsRequest = BulkUidsRequest;
|
|
44
|
+
type AuthUsersRefsResponse = BulkRefsResponse<AuthUserRef>;
|
|
45
|
+
type AuthCustomersRefsRequest = BulkUidsRequest;
|
|
46
|
+
type AuthCustomersRefsResponse = BulkRefsResponse<AuthCustomerRef>;
|
|
47
|
+
type AuthCompaniesRefsRequest = BulkUidsRequest;
|
|
48
|
+
type AuthCompaniesRefsResponse = BulkRefsResponse<AuthCompanyRef>;
|
|
49
|
+
type AuthBranchesRefsRequest = BulkUidsRequest;
|
|
50
|
+
type AuthBranchesRefsResponse = BulkRefsResponse<AuthBranchRef>;
|
|
51
|
+
|
|
52
|
+
export type { AuthBranchRef, AuthBranchesRefsRequest, AuthBranchesRefsResponse, AuthCompaniesRefsRequest, AuthCompaniesRefsResponse, AuthCompanyRef, AuthCustomerRef, AuthCustomersRefsRequest, AuthCustomersRefsResponse, AuthEmployeeRef, AuthEmployeesRefsRequest, AuthEmployeesRefsResponse, AuthPermissionRef, AuthRoleRef, AuthUserRef, AuthUsersRefsRequest, AuthUsersRefsResponse };
|
package/dist/auth.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RefBase, UID, BulkUidsRequest, BulkRefsResponse, Code } from './common.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AUTH is SoT for identity, org structure and access.
|
|
5
|
+
*/
|
|
6
|
+
type AuthUserRef = RefBase & {
|
|
7
|
+
uid: UID;
|
|
8
|
+
document_value?: string | null;
|
|
9
|
+
document_type_id?: number | null;
|
|
10
|
+
};
|
|
11
|
+
type AuthEmployeeRef = RefBase & {
|
|
12
|
+
uid: UID;
|
|
13
|
+
user_uid?: UID | null;
|
|
14
|
+
email?: string | null;
|
|
15
|
+
};
|
|
16
|
+
type AuthCustomerRef = RefBase & {
|
|
17
|
+
uid: UID;
|
|
18
|
+
user_uid?: UID | null;
|
|
19
|
+
email?: string | null;
|
|
20
|
+
};
|
|
21
|
+
type AuthCompanyRef = RefBase & {
|
|
22
|
+
uid: UID;
|
|
23
|
+
document_value?: string | null;
|
|
24
|
+
document_type_id?: number | null;
|
|
25
|
+
fantasy_name?: string | null;
|
|
26
|
+
status?: number | null;
|
|
27
|
+
};
|
|
28
|
+
type AuthBranchRef = RefBase & {
|
|
29
|
+
uid: UID;
|
|
30
|
+
company_uid: UID;
|
|
31
|
+
status?: number | null;
|
|
32
|
+
};
|
|
33
|
+
type AuthRoleRef = RefBase & {
|
|
34
|
+
uid: UID;
|
|
35
|
+
slug?: Code;
|
|
36
|
+
};
|
|
37
|
+
type AuthPermissionRef = RefBase & {
|
|
38
|
+
uid: UID;
|
|
39
|
+
slug?: Code;
|
|
40
|
+
};
|
|
41
|
+
type AuthEmployeesRefsRequest = BulkUidsRequest;
|
|
42
|
+
type AuthEmployeesRefsResponse = BulkRefsResponse<AuthEmployeeRef>;
|
|
43
|
+
type AuthUsersRefsRequest = BulkUidsRequest;
|
|
44
|
+
type AuthUsersRefsResponse = BulkRefsResponse<AuthUserRef>;
|
|
45
|
+
type AuthCustomersRefsRequest = BulkUidsRequest;
|
|
46
|
+
type AuthCustomersRefsResponse = BulkRefsResponse<AuthCustomerRef>;
|
|
47
|
+
type AuthCompaniesRefsRequest = BulkUidsRequest;
|
|
48
|
+
type AuthCompaniesRefsResponse = BulkRefsResponse<AuthCompanyRef>;
|
|
49
|
+
type AuthBranchesRefsRequest = BulkUidsRequest;
|
|
50
|
+
type AuthBranchesRefsResponse = BulkRefsResponse<AuthBranchRef>;
|
|
51
|
+
|
|
52
|
+
export type { AuthBranchRef, AuthBranchesRefsRequest, AuthBranchesRefsResponse, AuthCompaniesRefsRequest, AuthCompaniesRefsResponse, AuthCompanyRef, AuthCustomerRef, AuthCustomersRefsRequest, AuthCustomersRefsResponse, AuthEmployeeRef, AuthEmployeesRefsRequest, AuthEmployeesRefsResponse, AuthPermissionRef, AuthRoleRef, AuthUserRef, AuthUsersRefsRequest, AuthUsersRefsResponse };
|
package/dist/auth.js
ADDED
package/dist/auth.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-5CHG5ZVH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-EAJW72VX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-GYQ2KZV6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-PAA2WCJ2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-PDYRRMMO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=chunk-YLVXY5BQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/common.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/common.ts
|
|
17
|
+
var common_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(common_exports);
|
|
19
|
+
//# sourceMappingURL=common.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/common.ts"],"sourcesContent":["// primitives (small, reusable)\nexport type UID = string;\nexport type Code = string;\n\nexport type RefBase = {\n uid: UID;\n code?: Code;\n name?: string;\n};\n\n/**\n * Common bulk request/response for internal refs endpoints.\n *\n * Convention:\n * - Request: { uids: [...] }\n * - Response: { ok:true, refs:[...] }\n */\nexport type BulkUidsRequest = {\n uids: UID[];\n};\n\n/**\n * Standard response for internal/bulk refs endpoints.\n *\n * Canonical field is `refs`.\n * - `items` is kept as an optional alias for backward compatibility.\n */\nexport type BulkRefsResponse<T> = {\n ok: true;\n\n /** Canonical payload */\n refs: T[];\n\n /** Backward-compatible alias (avoid using in new code) */\n items?: T[];\n\n /** Optional diagnostics */\n meta?: {\n requested?: number;\n returned?: number;\n missing?: UID[];\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type UID = string;
|
|
2
|
+
type Code = string;
|
|
3
|
+
type RefBase = {
|
|
4
|
+
uid: UID;
|
|
5
|
+
code?: Code;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Common bulk request/response for internal refs endpoints.
|
|
10
|
+
*
|
|
11
|
+
* Convention:
|
|
12
|
+
* - Request: { uids: [...] }
|
|
13
|
+
* - Response: { ok:true, refs:[...] }
|
|
14
|
+
*/
|
|
15
|
+
type BulkUidsRequest = {
|
|
16
|
+
uids: UID[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Standard response for internal/bulk refs endpoints.
|
|
20
|
+
*
|
|
21
|
+
* Canonical field is `refs`.
|
|
22
|
+
* - `items` is kept as an optional alias for backward compatibility.
|
|
23
|
+
*/
|
|
24
|
+
type BulkRefsResponse<T> = {
|
|
25
|
+
ok: true;
|
|
26
|
+
/** Canonical payload */
|
|
27
|
+
refs: T[];
|
|
28
|
+
/** Backward-compatible alias (avoid using in new code) */
|
|
29
|
+
items?: T[];
|
|
30
|
+
/** Optional diagnostics */
|
|
31
|
+
meta?: {
|
|
32
|
+
requested?: number;
|
|
33
|
+
returned?: number;
|
|
34
|
+
missing?: UID[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type { BulkRefsResponse, BulkUidsRequest, Code, RefBase, UID };
|
package/dist/common.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type UID = string;
|
|
2
|
+
type Code = string;
|
|
3
|
+
type RefBase = {
|
|
4
|
+
uid: UID;
|
|
5
|
+
code?: Code;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Common bulk request/response for internal refs endpoints.
|
|
10
|
+
*
|
|
11
|
+
* Convention:
|
|
12
|
+
* - Request: { uids: [...] }
|
|
13
|
+
* - Response: { ok:true, refs:[...] }
|
|
14
|
+
*/
|
|
15
|
+
type BulkUidsRequest = {
|
|
16
|
+
uids: UID[];
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Standard response for internal/bulk refs endpoints.
|
|
20
|
+
*
|
|
21
|
+
* Canonical field is `refs`.
|
|
22
|
+
* - `items` is kept as an optional alias for backward compatibility.
|
|
23
|
+
*/
|
|
24
|
+
type BulkRefsResponse<T> = {
|
|
25
|
+
ok: true;
|
|
26
|
+
/** Canonical payload */
|
|
27
|
+
refs: T[];
|
|
28
|
+
/** Backward-compatible alias (avoid using in new code) */
|
|
29
|
+
items?: T[];
|
|
30
|
+
/** Optional diagnostics */
|
|
31
|
+
meta?: {
|
|
32
|
+
requested?: number;
|
|
33
|
+
returned?: number;
|
|
34
|
+
missing?: UID[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
export type { BulkRefsResponse, BulkUidsRequest, Code, RefBase, UID };
|
package/dist/common.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/fis.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/fis.ts
|
|
17
|
+
var fis_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(fis_exports);
|
|
19
|
+
//# sourceMappingURL=fis.cjs.map
|
package/dist/fis.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/fis.ts"],"sourcesContent":["import type {UID, Code, RefBase, BulkUidsRequest, BulkRefsResponse} from \"./common\";\n\n/**\n * FISCAL is SoT for taxes/compliance.\n * Must reference md_country_code/region codes from master-data.\n */\n\nexport type FisTaxRef = RefBase & {\n uid: UID; // fis_tax_uid\n code?: Code; // IVA_CL, VAT, etc.\n name?: string;\n rate?: number; // 0.19\n md_country_code?: Code; // CL\n md_region_code?: Code; // optional\n status?: \"ACTIVE\" | \"INACTIVE\" | string;\n};\n\nexport type FisTaxesRefsRequest = BulkUidsRequest;\nexport type FisTaxesRefsResponse = BulkRefsResponse<FisTaxRef>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/fis.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RefBase, UID, Code, BulkUidsRequest, BulkRefsResponse } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FISCAL is SoT for taxes/compliance.
|
|
5
|
+
* Must reference md_country_code/region codes from master-data.
|
|
6
|
+
*/
|
|
7
|
+
type FisTaxRef = RefBase & {
|
|
8
|
+
uid: UID;
|
|
9
|
+
code?: Code;
|
|
10
|
+
name?: string;
|
|
11
|
+
rate?: number;
|
|
12
|
+
md_country_code?: Code;
|
|
13
|
+
md_region_code?: Code;
|
|
14
|
+
status?: "ACTIVE" | "INACTIVE" | string;
|
|
15
|
+
};
|
|
16
|
+
type FisTaxesRefsRequest = BulkUidsRequest;
|
|
17
|
+
type FisTaxesRefsResponse = BulkRefsResponse<FisTaxRef>;
|
|
18
|
+
|
|
19
|
+
export type { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse };
|
package/dist/fis.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RefBase, UID, Code, BulkUidsRequest, BulkRefsResponse } from './common.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* FISCAL is SoT for taxes/compliance.
|
|
5
|
+
* Must reference md_country_code/region codes from master-data.
|
|
6
|
+
*/
|
|
7
|
+
type FisTaxRef = RefBase & {
|
|
8
|
+
uid: UID;
|
|
9
|
+
code?: Code;
|
|
10
|
+
name?: string;
|
|
11
|
+
rate?: number;
|
|
12
|
+
md_country_code?: Code;
|
|
13
|
+
md_region_code?: Code;
|
|
14
|
+
status?: "ACTIVE" | "INACTIVE" | string;
|
|
15
|
+
};
|
|
16
|
+
type FisTaxesRefsRequest = BulkUidsRequest;
|
|
17
|
+
type FisTaxesRefsResponse = BulkRefsResponse<FisTaxRef>;
|
|
18
|
+
|
|
19
|
+
export type { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse };
|
package/dist/fis.js
ADDED
package/dist/fis.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/headers.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
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
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/headers.ts
|
|
21
|
+
var headers_exports = {};
|
|
22
|
+
__export(headers_exports, {
|
|
23
|
+
HEADERS: () => HEADERS
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(headers_exports);
|
|
26
|
+
var HEADERS = {
|
|
27
|
+
COMPANY_UID: "x-company",
|
|
28
|
+
BRANCH_UID: "x-branch",
|
|
29
|
+
EMPLOYEE_UID: "x-employee-uid",
|
|
30
|
+
REQUEST_ID: "x-request-id",
|
|
31
|
+
INTERNAL_API_KEY: "x-internal-api-key"
|
|
32
|
+
};
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
HEADERS
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=headers.cjs.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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,IAAM,UAAU;AAAA,EACnB,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,kBAAkB;AACtB;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UID } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
declare const HEADERS: {
|
|
4
|
+
readonly COMPANY_UID: "x-company";
|
|
5
|
+
readonly BRANCH_UID: "x-branch";
|
|
6
|
+
readonly EMPLOYEE_UID: "x-employee-uid";
|
|
7
|
+
readonly REQUEST_ID: "x-request-id";
|
|
8
|
+
readonly INTERNAL_API_KEY: "x-internal-api-key";
|
|
9
|
+
};
|
|
10
|
+
type TenantHeaders = {
|
|
11
|
+
"x-company"?: UID;
|
|
12
|
+
"x-branch"?: UID;
|
|
13
|
+
"x-employee-uid"?: UID;
|
|
14
|
+
"x-request-id"?: string;
|
|
15
|
+
};
|
|
16
|
+
type InternalHeaders = TenantHeaders & {
|
|
17
|
+
"x-internal-api-key"?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { HEADERS, type InternalHeaders, type TenantHeaders };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UID } from './common.js';
|
|
2
|
+
|
|
3
|
+
declare const HEADERS: {
|
|
4
|
+
readonly COMPANY_UID: "x-company";
|
|
5
|
+
readonly BRANCH_UID: "x-branch";
|
|
6
|
+
readonly EMPLOYEE_UID: "x-employee-uid";
|
|
7
|
+
readonly REQUEST_ID: "x-request-id";
|
|
8
|
+
readonly INTERNAL_API_KEY: "x-internal-api-key";
|
|
9
|
+
};
|
|
10
|
+
type TenantHeaders = {
|
|
11
|
+
"x-company"?: UID;
|
|
12
|
+
"x-branch"?: UID;
|
|
13
|
+
"x-employee-uid"?: UID;
|
|
14
|
+
"x-request-id"?: string;
|
|
15
|
+
};
|
|
16
|
+
type InternalHeaders = TenantHeaders & {
|
|
17
|
+
"x-internal-api-key"?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { HEADERS, type InternalHeaders, type TenantHeaders };
|
package/dist/headers.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
export {
|
|
10
|
+
HEADERS
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=headers.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/index.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/index.ts
|
|
17
|
+
var src_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(src_exports);
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BulkRefsResponse, BulkUidsRequest, Code, RefBase, UID } from './common.cjs';
|
|
2
|
+
export { AuthBranchRef, AuthBranchesRefsRequest, AuthBranchesRefsResponse, AuthCompaniesRefsRequest, AuthCompaniesRefsResponse, AuthCompanyRef, AuthCustomerRef, AuthCustomersRefsRequest, AuthCustomersRefsResponse, AuthEmployeeRef, AuthEmployeesRefsRequest, AuthEmployeesRefsResponse, AuthPermissionRef, AuthRoleRef, AuthUserRef, AuthUsersRefsRequest, AuthUsersRefsResponse } from './auth.cjs';
|
|
3
|
+
export { PlatformResolveTenantResponse, PlatformTenantResolved } from './platform.cjs';
|
|
4
|
+
export { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse } from './md.cjs';
|
|
5
|
+
export { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef } from './res.cjs';
|
|
6
|
+
export { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse } from './fis.cjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { BulkRefsResponse, BulkUidsRequest, Code, RefBase, UID } from './common.js';
|
|
2
|
+
export { AuthBranchRef, AuthBranchesRefsRequest, AuthBranchesRefsResponse, AuthCompaniesRefsRequest, AuthCompaniesRefsResponse, AuthCompanyRef, AuthCustomerRef, AuthCustomersRefsRequest, AuthCustomersRefsResponse, AuthEmployeeRef, AuthEmployeesRefsRequest, AuthEmployeesRefsResponse, AuthPermissionRef, AuthRoleRef, AuthUserRef, AuthUsersRefsRequest, AuthUsersRefsResponse } from './auth.js';
|
|
3
|
+
export { PlatformResolveTenantResponse, PlatformTenantResolved } from './platform.js';
|
|
4
|
+
export { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse } from './md.js';
|
|
5
|
+
export { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef } from './res.js';
|
|
6
|
+
export { FisTaxRef, FisTaxesRefsRequest, FisTaxesRefsResponse } from './fis.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/md.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/md.ts
|
|
17
|
+
var md_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(md_exports);
|
|
19
|
+
//# sourceMappingURL=md.cjs.map
|
package/dist/md.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/md.ts"],"sourcesContent":["import type {UID, Code, RefBase, BulkUidsRequest, BulkRefsResponse} from \"./common\";\n\n/**\n * Master-Data service is SoT for shared reference tables.\n */\n\nexport type MdCountryRef = RefBase & {\n uid: UID; // md_country_uid (optional if you use code as natural key)\n code: Code; // ISO\n};\n\nexport type MdRegionRef = RefBase & {\n uid: UID;\n code?: Code;\n country_code?: Code;\n};\n\nexport type MdCommuneRef = RefBase & {\n uid: UID;\n code?: Code;\n region_uid?: UID;\n};\n\nexport type MdUnitRef = RefBase & {\n uid: UID;\n code: Code; // e.g. KG, LT\n dimension?: string;\n};\n\nexport type MdCurrencyRef = RefBase & {\n uid: UID;\n code: Code; // ISO\n symbol?: string;\n};\n\nexport type MdCountriesRefsRequest = BulkUidsRequest;\nexport type MdCountriesRefsResponse = BulkRefsResponse<MdCountryRef>;\n\nexport type MdRegionsRefsRequest = BulkUidsRequest;\nexport type MdRegionsRefsResponse = BulkRefsResponse<MdRegionRef>;\n\nexport type MdCommunesRefsRequest = BulkUidsRequest;\nexport type MdCommunesRefsResponse = BulkRefsResponse<MdCommuneRef>;\n\nexport type MdUnitsRefsRequest = BulkUidsRequest;\nexport type MdUnitsRefsResponse = BulkRefsResponse<MdUnitRef>;\n\nexport type MdCurrenciesRefsRequest = BulkUidsRequest;\nexport type MdCurrenciesRefsResponse = BulkRefsResponse<MdCurrencyRef>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/md.d.cts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RefBase, UID, Code, BulkUidsRequest, BulkRefsResponse } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Master-Data service is SoT for shared reference tables.
|
|
5
|
+
*/
|
|
6
|
+
type MdCountryRef = RefBase & {
|
|
7
|
+
uid: UID;
|
|
8
|
+
code: Code;
|
|
9
|
+
};
|
|
10
|
+
type MdRegionRef = RefBase & {
|
|
11
|
+
uid: UID;
|
|
12
|
+
code?: Code;
|
|
13
|
+
country_code?: Code;
|
|
14
|
+
};
|
|
15
|
+
type MdCommuneRef = RefBase & {
|
|
16
|
+
uid: UID;
|
|
17
|
+
code?: Code;
|
|
18
|
+
region_uid?: UID;
|
|
19
|
+
};
|
|
20
|
+
type MdUnitRef = RefBase & {
|
|
21
|
+
uid: UID;
|
|
22
|
+
code: Code;
|
|
23
|
+
dimension?: string;
|
|
24
|
+
};
|
|
25
|
+
type MdCurrencyRef = RefBase & {
|
|
26
|
+
uid: UID;
|
|
27
|
+
code: Code;
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
type MdCountriesRefsRequest = BulkUidsRequest;
|
|
31
|
+
type MdCountriesRefsResponse = BulkRefsResponse<MdCountryRef>;
|
|
32
|
+
type MdRegionsRefsRequest = BulkUidsRequest;
|
|
33
|
+
type MdRegionsRefsResponse = BulkRefsResponse<MdRegionRef>;
|
|
34
|
+
type MdCommunesRefsRequest = BulkUidsRequest;
|
|
35
|
+
type MdCommunesRefsResponse = BulkRefsResponse<MdCommuneRef>;
|
|
36
|
+
type MdUnitsRefsRequest = BulkUidsRequest;
|
|
37
|
+
type MdUnitsRefsResponse = BulkRefsResponse<MdUnitRef>;
|
|
38
|
+
type MdCurrenciesRefsRequest = BulkUidsRequest;
|
|
39
|
+
type MdCurrenciesRefsResponse = BulkRefsResponse<MdCurrencyRef>;
|
|
40
|
+
|
|
41
|
+
export type { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse };
|
package/dist/md.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RefBase, UID, Code, BulkUidsRequest, BulkRefsResponse } from './common.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Master-Data service is SoT for shared reference tables.
|
|
5
|
+
*/
|
|
6
|
+
type MdCountryRef = RefBase & {
|
|
7
|
+
uid: UID;
|
|
8
|
+
code: Code;
|
|
9
|
+
};
|
|
10
|
+
type MdRegionRef = RefBase & {
|
|
11
|
+
uid: UID;
|
|
12
|
+
code?: Code;
|
|
13
|
+
country_code?: Code;
|
|
14
|
+
};
|
|
15
|
+
type MdCommuneRef = RefBase & {
|
|
16
|
+
uid: UID;
|
|
17
|
+
code?: Code;
|
|
18
|
+
region_uid?: UID;
|
|
19
|
+
};
|
|
20
|
+
type MdUnitRef = RefBase & {
|
|
21
|
+
uid: UID;
|
|
22
|
+
code: Code;
|
|
23
|
+
dimension?: string;
|
|
24
|
+
};
|
|
25
|
+
type MdCurrencyRef = RefBase & {
|
|
26
|
+
uid: UID;
|
|
27
|
+
code: Code;
|
|
28
|
+
symbol?: string;
|
|
29
|
+
};
|
|
30
|
+
type MdCountriesRefsRequest = BulkUidsRequest;
|
|
31
|
+
type MdCountriesRefsResponse = BulkRefsResponse<MdCountryRef>;
|
|
32
|
+
type MdRegionsRefsRequest = BulkUidsRequest;
|
|
33
|
+
type MdRegionsRefsResponse = BulkRefsResponse<MdRegionRef>;
|
|
34
|
+
type MdCommunesRefsRequest = BulkUidsRequest;
|
|
35
|
+
type MdCommunesRefsResponse = BulkRefsResponse<MdCommuneRef>;
|
|
36
|
+
type MdUnitsRefsRequest = BulkUidsRequest;
|
|
37
|
+
type MdUnitsRefsResponse = BulkRefsResponse<MdUnitRef>;
|
|
38
|
+
type MdCurrenciesRefsRequest = BulkUidsRequest;
|
|
39
|
+
type MdCurrenciesRefsResponse = BulkRefsResponse<MdCurrencyRef>;
|
|
40
|
+
|
|
41
|
+
export type { MdCommuneRef, MdCommunesRefsRequest, MdCommunesRefsResponse, MdCountriesRefsRequest, MdCountriesRefsResponse, MdCountryRef, MdCurrenciesRefsRequest, MdCurrenciesRefsResponse, MdCurrencyRef, MdRegionRef, MdRegionsRefsRequest, MdRegionsRefsResponse, MdUnitRef, MdUnitsRefsRequest, MdUnitsRefsResponse };
|
package/dist/md.js
ADDED
package/dist/md.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/platform.ts
|
|
17
|
+
var platform_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(platform_exports);
|
|
19
|
+
//# sourceMappingURL=platform.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/platform.ts"],"sourcesContent":["import type {UID, Code} from \"./common\";\n\n/**\n * PLATFORM is SoT for runtime tenant resolution (routing, schemas, etc.)\n */\n\nexport type PlatformTenantResolved = {\n auth_company_uid: UID;\n service: Code; // \"erp\", \"mkp\", etc.\n status: \"ACTIVE\" | \"INACTIVE\" | string;\n\n // runtime routing hints\n tenant_key?: string; // stable tenant identifier\n db_name?: string | null;\n schema_name?: string | null;\n shard?: string | null;\n\n // optional: feature flags\n features?: Record<string, boolean>;\n};\n\nexport type PlatformResolveTenantResponse = {\n ok: true;\n tenant: PlatformTenantResolved;\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UID, Code } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* PLATFORM is SoT for runtime tenant resolution (routing, schemas, etc.)
|
|
5
|
+
*/
|
|
6
|
+
type PlatformTenantResolved = {
|
|
7
|
+
auth_company_uid: UID;
|
|
8
|
+
service: Code;
|
|
9
|
+
status: "ACTIVE" | "INACTIVE" | string;
|
|
10
|
+
tenant_key?: string;
|
|
11
|
+
db_name?: string | null;
|
|
12
|
+
schema_name?: string | null;
|
|
13
|
+
shard?: string | null;
|
|
14
|
+
features?: Record<string, boolean>;
|
|
15
|
+
};
|
|
16
|
+
type PlatformResolveTenantResponse = {
|
|
17
|
+
ok: true;
|
|
18
|
+
tenant: PlatformTenantResolved;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type { PlatformResolveTenantResponse, PlatformTenantResolved };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UID, Code } from './common.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* PLATFORM is SoT for runtime tenant resolution (routing, schemas, etc.)
|
|
5
|
+
*/
|
|
6
|
+
type PlatformTenantResolved = {
|
|
7
|
+
auth_company_uid: UID;
|
|
8
|
+
service: Code;
|
|
9
|
+
status: "ACTIVE" | "INACTIVE" | string;
|
|
10
|
+
tenant_key?: string;
|
|
11
|
+
db_name?: string | null;
|
|
12
|
+
schema_name?: string | null;
|
|
13
|
+
shard?: string | null;
|
|
14
|
+
features?: Record<string, boolean>;
|
|
15
|
+
};
|
|
16
|
+
type PlatformResolveTenantResponse = {
|
|
17
|
+
ok: true;
|
|
18
|
+
tenant: PlatformTenantResolved;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type { PlatformResolveTenantResponse, PlatformTenantResolved };
|
package/dist/platform.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/res.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/res.ts
|
|
17
|
+
var res_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(res_exports);
|
|
19
|
+
//# sourceMappingURL=res.cjs.map
|
package/dist/res.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/res.ts"],"sourcesContent":["import type {UID, Code, RefBase, BulkUidsRequest, BulkRefsResponse} from \"./common\";\n\n/**\n * RESOURCE is SoT for product/resources catalog.\n * Marketplace uses listing/offers; RESOURCE defines the product itself.\n */\n\nexport type ResCategoryRef = RefBase & {\n uid: UID; // res_category_uid\n parent_uid?: UID | null;\n};\n\nexport type ResAttributeRef = RefBase & {\n uid: UID; // res_attribute_uid\n};\n\nexport type ResAttributeOptionRef = RefBase & {\n uid: UID; // res_attribute_option_uid\n attribute_uid: UID;\n};\n\nexport type ResVarietyRef = RefBase & {\n uid: UID; // res_variety_uid\n res_resource_uid?: UID; // parent product/resource uid\n sku?: string;\n md_unit_code?: Code; // from master-data\n is_pack?: boolean;\n};\n\nexport type ResResourceRef = RefBase & {\n uid: UID; // res_resource_uid\n default_variety_uid?: UID | null;\n};\n\n// Bulk refs endpoints (internal)\nexport type ResVarietiesRefsRequest = BulkUidsRequest;\nexport type ResVarietiesRefsResponse = BulkRefsResponse<ResVarietyRef>;\n\nexport type ResResourcesRefsRequest = BulkUidsRequest;\nexport type ResResourcesRefsResponse = BulkRefsResponse<ResResourceRef>;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/res.d.cts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RefBase, UID, BulkUidsRequest, BulkRefsResponse, Code } from './common.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* RESOURCE is SoT for product/resources catalog.
|
|
5
|
+
* Marketplace uses listing/offers; RESOURCE defines the product itself.
|
|
6
|
+
*/
|
|
7
|
+
type ResCategoryRef = RefBase & {
|
|
8
|
+
uid: UID;
|
|
9
|
+
parent_uid?: UID | null;
|
|
10
|
+
};
|
|
11
|
+
type ResAttributeRef = RefBase & {
|
|
12
|
+
uid: UID;
|
|
13
|
+
};
|
|
14
|
+
type ResAttributeOptionRef = RefBase & {
|
|
15
|
+
uid: UID;
|
|
16
|
+
attribute_uid: UID;
|
|
17
|
+
};
|
|
18
|
+
type ResVarietyRef = RefBase & {
|
|
19
|
+
uid: UID;
|
|
20
|
+
res_resource_uid?: UID;
|
|
21
|
+
sku?: string;
|
|
22
|
+
md_unit_code?: Code;
|
|
23
|
+
is_pack?: boolean;
|
|
24
|
+
};
|
|
25
|
+
type ResResourceRef = RefBase & {
|
|
26
|
+
uid: UID;
|
|
27
|
+
default_variety_uid?: UID | null;
|
|
28
|
+
};
|
|
29
|
+
type ResVarietiesRefsRequest = BulkUidsRequest;
|
|
30
|
+
type ResVarietiesRefsResponse = BulkRefsResponse<ResVarietyRef>;
|
|
31
|
+
type ResResourcesRefsRequest = BulkUidsRequest;
|
|
32
|
+
type ResResourcesRefsResponse = BulkRefsResponse<ResResourceRef>;
|
|
33
|
+
|
|
34
|
+
export type { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef };
|
package/dist/res.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RefBase, UID, BulkUidsRequest, BulkRefsResponse, Code } from './common.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* RESOURCE is SoT for product/resources catalog.
|
|
5
|
+
* Marketplace uses listing/offers; RESOURCE defines the product itself.
|
|
6
|
+
*/
|
|
7
|
+
type ResCategoryRef = RefBase & {
|
|
8
|
+
uid: UID;
|
|
9
|
+
parent_uid?: UID | null;
|
|
10
|
+
};
|
|
11
|
+
type ResAttributeRef = RefBase & {
|
|
12
|
+
uid: UID;
|
|
13
|
+
};
|
|
14
|
+
type ResAttributeOptionRef = RefBase & {
|
|
15
|
+
uid: UID;
|
|
16
|
+
attribute_uid: UID;
|
|
17
|
+
};
|
|
18
|
+
type ResVarietyRef = RefBase & {
|
|
19
|
+
uid: UID;
|
|
20
|
+
res_resource_uid?: UID;
|
|
21
|
+
sku?: string;
|
|
22
|
+
md_unit_code?: Code;
|
|
23
|
+
is_pack?: boolean;
|
|
24
|
+
};
|
|
25
|
+
type ResResourceRef = RefBase & {
|
|
26
|
+
uid: UID;
|
|
27
|
+
default_variety_uid?: UID | null;
|
|
28
|
+
};
|
|
29
|
+
type ResVarietiesRefsRequest = BulkUidsRequest;
|
|
30
|
+
type ResVarietiesRefsResponse = BulkRefsResponse<ResVarietyRef>;
|
|
31
|
+
type ResResourcesRefsRequest = BulkUidsRequest;
|
|
32
|
+
type ResResourcesRefsResponse = BulkRefsResponse<ResResourceRef>;
|
|
33
|
+
|
|
34
|
+
export type { ResAttributeOptionRef, ResAttributeRef, ResCategoryRef, ResResourceRef, ResResourcesRefsRequest, ResResourcesRefsResponse, ResVarietiesRefsRequest, ResVarietiesRefsResponse, ResVarietyRef };
|
package/dist/res.js
ADDED
package/dist/res.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@innvoid/getmarket-contracts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
},
|
|
15
|
+
"./auth": {
|
|
16
|
+
"types": "./dist/auth.d.ts",
|
|
17
|
+
"import": "./dist/auth.js",
|
|
18
|
+
"require": "./dist/auth.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./common": {
|
|
21
|
+
"types": "./dist/common.d.ts",
|
|
22
|
+
"import": "./dist/common.js",
|
|
23
|
+
"require": "./dist/common.cjs"
|
|
24
|
+
},
|
|
25
|
+
"./headers": {
|
|
26
|
+
"types": "./dist/headers.d.ts",
|
|
27
|
+
"import": "./dist/headers.js",
|
|
28
|
+
"require": "./dist/headers.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./md": {
|
|
31
|
+
"types": "./dist/md.d.ts",
|
|
32
|
+
"import": "./dist/md.js",
|
|
33
|
+
"require": "./dist/md.cjs"
|
|
34
|
+
},
|
|
35
|
+
"./platform": {
|
|
36
|
+
"types": "./dist/platform.d.ts",
|
|
37
|
+
"import": "./dist/platform.js",
|
|
38
|
+
"require": "./dist/platform.cjs"
|
|
39
|
+
},
|
|
40
|
+
"./res": {
|
|
41
|
+
"types": "./dist/res.d.ts",
|
|
42
|
+
"import": "./dist/res.js",
|
|
43
|
+
"require": "./dist/res.cjs"
|
|
44
|
+
},
|
|
45
|
+
"./fis": {
|
|
46
|
+
"types": "./dist/fis.d.ts",
|
|
47
|
+
"import": "./dist/fis.js",
|
|
48
|
+
"require": "./dist/fis.cjs"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"files": [
|
|
52
|
+
"dist",
|
|
53
|
+
"README.md"
|
|
54
|
+
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"prepare": "npm run build",
|
|
58
|
+
"dev": "tsup --watch",
|
|
59
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"tsup": "^8.0.0",
|
|
63
|
+
"typescript": "^5.5.0"
|
|
64
|
+
}
|
|
65
|
+
}
|