octopian-configuration-apis 1.0.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 +104 -0
- package/package.json +18 -0
- package/src/CoreServices/configurationServices.js +1501 -0
- package/src/CoreServices/darAlBerServices.js +239 -0
- package/src/config.js +22 -0
- package/src/index.d.ts +908 -0
- package/src/index.js +101 -0
- package/src/modals/input-modals/CreateNewCorrespondenceInput.ts +7 -0
- package/src/modals/input-modals/GetAssetBlazorViewInput.ts +4 -0
- package/src/modals/input-modals/GetAssetListInput.ts +8 -0
- package/src/modals/input-modals/GetAttributeTypesInput.ts +6 -0
- package/src/modals/input-modals/GetDABAssetsInput.ts +4 -0
- package/src/modals/input-modals/GetDocumentTypesInput.ts +6 -0
- package/src/modals/input-modals/GetInteractorListInput.ts +5 -0
- package/src/modals/input-modals/GetItemListInput.ts +8 -0
- package/src/modals/input-modals/GetPositionsInput.ts +6 -0
- package/src/modals/input-modals/GetRoleListByPermissionInput.ts +13 -0
- package/src/modals/input-modals/GetServiceAttributeListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceCategoryInput.ts +6 -0
- package/src/modals/input-modals/GetServiceListInput.ts +10 -0
- package/src/modals/input-modals/GetServiceStepListInput.ts +8 -0
- package/src/modals/input-modals/GetServiceSubCategoryInput.ts +7 -0
- package/src/modals/input-modals/GetStepTypesInput.ts +7 -0
- package/src/modals/input-modals/LoginUserInput.ts +8 -0
- package/src/modals/input-modals/MaintainAttributeListInput.ts +6 -0
- package/src/modals/input-modals/MaintainAttributeTypeInput.ts +142 -0
- package/src/modals/input-modals/MaintainSubCategoryInput.ts +6 -0
- package/src/modals/output-modals/BaseResponse.ts +13 -0
- package/src/modals/output-modals/GetAssetBlazorViewOutput.ts +11 -0
- package/src/modals/output-modals/GetAssetListOutput.ts +92 -0
- package/src/modals/output-modals/GetAttributeTypesOutput.ts +37 -0
- package/src/modals/output-modals/GetDefaultConfigurationOutput.ts +273 -0
- package/src/modals/output-modals/GetDocumentTypesOutput.ts +23 -0
- package/src/modals/output-modals/GetInteractorListOutput.ts +81 -0
- package/src/modals/output-modals/GetInteractorTypeListOutput.ts +59 -0
- package/src/modals/output-modals/GetItemListOutput.ts +92 -0
- package/src/modals/output-modals/GetPositionsOutput.ts +10 -0
- package/src/modals/output-modals/GetRoleListByPermissionOutput.ts +18 -0
- package/src/modals/output-modals/GetServiceAttributeListOutput.ts +95 -0
- package/src/modals/output-modals/GetServiceCategoryOutput.ts +62 -0
- package/src/modals/output-modals/GetServiceListOutput.ts +183 -0
- package/src/modals/output-modals/GetServiceStepListOutput.ts +163 -0
- package/src/modals/output-modals/GetServiceSubCategoryOuput.ts +71 -0
- package/src/modals/output-modals/GetStepTypesOutput.ts +7 -0
- package/src/modals/output-modals/GetUnitListOutput.ts +27 -0
- package/src/modals/output-modals/LoginUserOutput.ts +8 -0
- package/src/sdkUtilities.js +22 -0
- package/src/web-services/apiConstants.js +99 -0
- package/src/web-services/apiHandler.js +154 -0
package/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="" rel="noopener">
|
|
3
|
+
<img width=200px height=200px src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTeJ-YBkjQDwqC4eWVNwG-N8qmvuREtZfLn4w&s" alt="Project logo"></a>
|
|
4
|
+
</p>
|
|
5
|
+
|
|
6
|
+
<h3 align="center">Configuration API SDK</h3>
|
|
7
|
+
|
|
8
|
+
<div align="center">
|
|
9
|
+
|
|
10
|
+
[]()
|
|
11
|
+
[](/LICENSE)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
<p align="center"> APIs SDK that implements Octopian Configuration Services which will be used for any node project typescript or javascript
|
|
18
|
+
<br>
|
|
19
|
+
</p>
|
|
20
|
+
|
|
21
|
+
## 📝 Table of Contents
|
|
22
|
+
|
|
23
|
+
- [About](#about)
|
|
24
|
+
- [Getting Started](#getting_started)
|
|
25
|
+
- [Usage](#usage)
|
|
26
|
+
- [Built Using](#built_using)
|
|
27
|
+
- [Authors](#authors)
|
|
28
|
+
|
|
29
|
+
## 🧐 About <a name = "about"></a>
|
|
30
|
+
The APIs SDK simplifies the integration of Octopian Configuration Services into your Node.js applications. With support for both JavaScript and TypeScript, this SDK provides seamless interaction with transaction-based services, leveraging well-defined input and output models. Whether you're working on a backend service, a CLI tool, or a full-stack application, this SDK ensures a consistent and efficient development experience.
|
|
31
|
+
|
|
32
|
+
Key Features:
|
|
33
|
+
|
|
34
|
+
Compatibility: Designed for both JavaScript and TypeScript projects.
|
|
35
|
+
|
|
36
|
+
Modular Design: Offers reusable input and output models to standardize API interactions.
|
|
37
|
+
|
|
38
|
+
Performance: Optimized for high-speed and reliable transaction processing.
|
|
39
|
+
|
|
40
|
+
Flexibility: Works across any Node.js environment.
|
|
41
|
+
|
|
42
|
+
## 🏁 Getting Started <a name = "getting_started"></a>
|
|
43
|
+
|
|
44
|
+
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See [deployment](#deployment) for notes on how to deploy the project on a live system.
|
|
45
|
+
|
|
46
|
+
### Prerequisites
|
|
47
|
+
|
|
48
|
+
Access to the Octopian_Configuration_SDK devops solution is required to install the project.
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Installing
|
|
52
|
+
|
|
53
|
+
A step by step series of examples that tell you how to get a development env running.
|
|
54
|
+
|
|
55
|
+
Use below command to install the SDK to your project
|
|
56
|
+
|
|
57
|
+
you will need to provide an API key that was generated by admin to authorize the APIs in the SDK, and the domain name (dns) that will be used for the application.
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
|
|
61
|
+
npm install git+https://in4ma.visualstudio.com/DefaultCollection/Octopian_Configuration_SDK/_git/Octopian_Configuration_SDK
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Initializing
|
|
65
|
+
|
|
66
|
+
In order to use the sdk after installation you need to initialize it, like below.
|
|
67
|
+
|
|
68
|
+
```typescript
|
|
69
|
+
import { ConfigurationSDKConfig } from "ConfigurationAPIs";
|
|
70
|
+
|
|
71
|
+
ConfigurationSDKConfig.Init('Your-API-Key',"Doman-Name")
|
|
72
|
+
ConfigurationSDKConfig.SetToken("Set Token")
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 🎈 Usage <a name="usage"></a>
|
|
76
|
+
|
|
77
|
+
check below sample for usage
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import {ConfigurationServices} from 'ConfigurationAPIs';
|
|
81
|
+
|
|
82
|
+
function BecomeCashier() {
|
|
83
|
+
var Output = ConfigurationServices.Login({
|
|
84
|
+
domainName: domain Name;
|
|
85
|
+
username: username value;
|
|
86
|
+
password: password value;
|
|
87
|
+
clientType: client type value;
|
|
88
|
+
},"Auth Token");
|
|
89
|
+
|
|
90
|
+
console.log(Output.Result);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
## ⛏️ Built Using <a name = "built_using"></a>
|
|
97
|
+
|
|
98
|
+
- [Node.js](https://nodejs.org/en) - Server Environment
|
|
99
|
+
|
|
100
|
+
## ✍️ Authors <a name = "authors"></a>
|
|
101
|
+
|
|
102
|
+
- [@Octopian](https://octopian.com/) - Octopian global services
|
|
103
|
+
|
|
104
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "octopian-configuration-apis",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "a global javascript sdk",
|
|
5
|
+
"main": "./src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "npm run",
|
|
8
|
+
"docs": "typedoc --entryPoints ./src/index.d.ts --out docs"
|
|
9
|
+
},
|
|
10
|
+
"author": "octopian",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"axios": "^1.7.7"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"typedoc": "^0.26.11"
|
|
17
|
+
}
|
|
18
|
+
}
|