@ontemper/edi 1.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 +321 -0
- package/dist/control-numbers.d.ts +20 -0
- package/dist/control-numbers.js +77 -0
- package/dist/edination-client/api/edi-model-api.d.ts +268 -0
- package/dist/edination-client/api/edi-model-api.js +326 -0
- package/dist/edination-client/api/edifact-api.d.ts +453 -0
- package/dist/edination-client/api/edifact-api.js +448 -0
- package/dist/edination-client/api/hl7-api.d.ts +294 -0
- package/dist/edination-client/api/hl7-api.js +315 -0
- package/dist/edination-client/api/ncpdp-api.d.ts +278 -0
- package/dist/edination-client/api/ncpdp-api.js +305 -0
- package/dist/edination-client/api/vda-api.d.ts +262 -0
- package/dist/edination-client/api/vda-api.js +295 -0
- package/dist/edination-client/api/x12-api.d.ts +437 -0
- package/dist/edination-client/api/x12-api.js +438 -0
- package/dist/edination-client/api.d.ts +17 -0
- package/dist/edination-client/api.js +35 -0
- package/dist/edination-client/base.d.ts +66 -0
- package/dist/edination-client/base.js +70 -0
- package/dist/edination-client/common.d.ts +65 -0
- package/dist/edination-client/common.js +142 -0
- package/dist/edination-client/configuration.d.ts +91 -0
- package/dist/edination-client/configuration.js +104 -0
- package/dist/edination-client/index.d.ts +14 -0
- package/dist/edination-client/index.js +32 -0
- package/dist/edination-client/model/batch-receiving-application.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-application.js +15 -0
- package/dist/edination-client/model/batch-receiving-facility.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-facility.js +15 -0
- package/dist/edination-client/model/batch-receiving-network-address.d.ts +36 -0
- package/dist/edination-client/model/batch-receiving-network-address.js +15 -0
- package/dist/edination-client/model/batch-sending-application.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-application.js +15 -0
- package/dist/edination-client/model/batch-sending-facility.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-facility.js +15 -0
- package/dist/edination-client/model/batch-sending-network-address.d.ts +36 -0
- package/dist/edination-client/model/batch-sending-network-address.js +15 -0
- package/dist/edination-client/model/bhs.d.ts +108 -0
- package/dist/edination-client/model/bhs.js +15 -0
- package/dist/edination-client/model/bts.d.ts +36 -0
- package/dist/edination-client/model/bts.js +15 -0
- package/dist/edination-client/model/edi-model.d.ts +37 -0
- package/dist/edination-client/model/edi-model.js +15 -0
- package/dist/edination-client/model/edifact-group.d.ts +38 -0
- package/dist/edination-client/model/edifact-group.js +15 -0
- package/dist/edination-client/model/edifact-interchange.d.ts +53 -0
- package/dist/edination-client/model/edifact-interchange.js +15 -0
- package/dist/edination-client/model/error-details.d.ts +30 -0
- package/dist/edination-client/model/error-details.js +15 -0
- package/dist/edination-client/model/fhs.d.ts +108 -0
- package/dist/edination-client/model/fhs.js +15 -0
- package/dist/edination-client/model/file-receiving-application.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-application.js +15 -0
- package/dist/edination-client/model/file-receiving-facility.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-facility.js +15 -0
- package/dist/edination-client/model/file-receiving-network-address.d.ts +36 -0
- package/dist/edination-client/model/file-receiving-network-address.js +15 -0
- package/dist/edination-client/model/file-sending-application.d.ts +36 -0
- package/dist/edination-client/model/file-sending-application.js +15 -0
- package/dist/edination-client/model/file-sending-facility.d.ts +36 -0
- package/dist/edination-client/model/file-sending-facility.js +15 -0
- package/dist/edination-client/model/file-sending-network-address.d.ts +36 -0
- package/dist/edination-client/model/file-sending-network-address.js +15 -0
- package/dist/edination-client/model/flat-message.d.ts +37 -0
- package/dist/edination-client/model/flat-message.js +15 -0
- package/dist/edination-client/model/fts.d.ts +30 -0
- package/dist/edination-client/model/fts.js +15 -0
- package/dist/edination-client/model/ge.d.ts +30 -0
- package/dist/edination-client/model/ge.js +15 -0
- package/dist/edination-client/model/gs.d.ts +66 -0
- package/dist/edination-client/model/gs.js +15 -0
- package/dist/edination-client/model/hl7-group.d.ts +38 -0
- package/dist/edination-client/model/hl7-group.js +15 -0
- package/dist/edination-client/model/hl7-interchange.d.ts +46 -0
- package/dist/edination-client/model/hl7-interchange.js +15 -0
- package/dist/edination-client/model/iea.d.ts +30 -0
- package/dist/edination-client/model/iea.js +15 -0
- package/dist/edination-client/model/index.d.ts +49 -0
- package/dist/edination-client/model/index.js +65 -0
- package/dist/edination-client/model/isa.d.ts +114 -0
- package/dist/edination-client/model/isa.js +15 -0
- package/dist/edination-client/model/link.d.ts +36 -0
- package/dist/edination-client/model/link.js +15 -0
- package/dist/edination-client/model/ncpdp-transmission.d.ts +45 -0
- package/dist/edination-client/model/ncpdp-transmission.js +15 -0
- package/dist/edination-client/model/operation-detail.d.ts +90 -0
- package/dist/edination-client/model/operation-detail.js +15 -0
- package/dist/edination-client/model/operation-result.d.ts +37 -0
- package/dist/edination-client/model/operation-result.js +15 -0
- package/dist/edination-client/model/s001.d.ts +42 -0
- package/dist/edination-client/model/s001.js +15 -0
- package/dist/edination-client/model/s002.d.ts +42 -0
- package/dist/edination-client/model/s002.js +15 -0
- package/dist/edination-client/model/s003.d.ts +42 -0
- package/dist/edination-client/model/s003.js +15 -0
- package/dist/edination-client/model/s004.d.ts +30 -0
- package/dist/edination-client/model/s004.js +15 -0
- package/dist/edination-client/model/s005.d.ts +30 -0
- package/dist/edination-client/model/s005.js +15 -0
- package/dist/edination-client/model/s006.d.ts +30 -0
- package/dist/edination-client/model/s006.js +15 -0
- package/dist/edination-client/model/s007.d.ts +30 -0
- package/dist/edination-client/model/s007.js +15 -0
- package/dist/edination-client/model/s008.d.ts +36 -0
- package/dist/edination-client/model/s008.js +15 -0
- package/dist/edination-client/model/ta1.d.ts +48 -0
- package/dist/edination-client/model/ta1.js +15 -0
- package/dist/edination-client/model/transmission-header.d.ts +66 -0
- package/dist/edination-client/model/transmission-header.js +15 -0
- package/dist/edination-client/model/transmission-trailer.d.ts +36 -0
- package/dist/edination-client/model/transmission-trailer.js +15 -0
- package/dist/edination-client/model/una.d.ts +54 -0
- package/dist/edination-client/model/una.js +15 -0
- package/dist/edination-client/model/unb.d.ts +89 -0
- package/dist/edination-client/model/unb.js +15 -0
- package/dist/edination-client/model/une.d.ts +30 -0
- package/dist/edination-client/model/une.js +15 -0
- package/dist/edination-client/model/ung.d.ts +70 -0
- package/dist/edination-client/model/ung.js +15 -0
- package/dist/edination-client/model/unz.d.ts +30 -0
- package/dist/edination-client/model/unz.js +15 -0
- package/dist/edination-client/model/x12-group.d.ts +38 -0
- package/dist/edination-client/model/x12-group.js +15 -0
- package/dist/edination-client/model/x12-interchange.d.ts +65 -0
- package/dist/edination-client/model/x12-interchange.js +15 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.js +197 -0
- package/examples/node-edi.ts +58 -0
- package/package.json +49 -0
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EdiNation API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.X12Api = exports.X12ApiFactory = exports.X12ApiFp = exports.X12ApiAxiosParamCreator = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const base_1 = require("../base");
|
|
23
|
+
// Some imports not used depending on template conditions
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const common_1 = require("../common");
|
|
26
|
+
/**
|
|
27
|
+
* X12Api - axios parameter creator
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
const X12ApiAxiosParamCreator = (configuration) => ({
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary Generate X12 acknowledments
|
|
34
|
+
* @param {boolean} [basicSyntax] All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.
|
|
35
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
36
|
+
* @param {boolean} [detectDuplicates] If you need to detect duplicates as in functional groups or transactions with the same reference number, set this flag to true. The default is false.
|
|
37
|
+
* @param {number} [tranRefNumber] The default is 1. Set this to whatever the 997 or 999 X12Interchange.ST.TransactionSetControlNumber_02 needs to be. In case there are multiple acknowledgments (for multiple functional groups), this will be starting reference number and every subsequent acknowledgment will have the previous reference number incremented with 1.
|
|
38
|
+
* @param {number} [interchangeRefNumber] The default is 1. Set this to whatever the 997 or 999 X12Interchange.ISA.InterchangeControlNumber_13 needs to be.
|
|
39
|
+
* @param {boolean} [ackForValidTrans] The default is false. Set this to true if you need AK2 loops included for all valid transaction as well. By default AK2 loops are generated only for invalid transactions.
|
|
40
|
+
* @param {boolean} [batchAcks] The default is true. Set this to false if you need to generate separate X12Interchange for each acknowledgment. By default all acknowledgments are batched in the same X12Interchange.
|
|
41
|
+
* @param {string} [technicalAck] The default technical acknowledgment TA1 is generated according to X12Interchange.ISA.AcknowledgementRequested_14. You can either enforce it to always generate TA1s or supress it to never generate any TA1s. This will override the flag in X12Interchange.ISA.AcknowledgementRequested_14. The available values are: default, enforce, suppress.
|
|
42
|
+
* @param {string} [ack] The default value is 997. The type of acknowledgment being generated. Set this to 999 if you need to generate an implementation instead of functional acknowledgment. The available values are: 997, 999.
|
|
43
|
+
* @param {boolean} [ak901isP] The value of the AK9\'s first element. By default it is \"E\". Set this to true if you want this value to be \"P\" instead.
|
|
44
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to acknowledge.
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
x12AckPost: async (basicSyntax, syntaxSet, detectDuplicates, tranRefNumber, interchangeRefNumber, ackForValidTrans, batchAcks, technicalAck, ack, ak901isP, x12Interchange, options = {}) => {
|
|
49
|
+
const localVarPath = '/x12/ack';
|
|
50
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
52
|
+
let baseOptions;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
}
|
|
56
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
57
|
+
const localVarHeaderParameter = {};
|
|
58
|
+
const localVarQueryParameter = {};
|
|
59
|
+
// authentication ApiKey required
|
|
60
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
61
|
+
if (basicSyntax !== undefined) {
|
|
62
|
+
localVarQueryParameter.basicSyntax = basicSyntax;
|
|
63
|
+
}
|
|
64
|
+
if (syntaxSet !== undefined) {
|
|
65
|
+
localVarQueryParameter.syntaxSet = syntaxSet;
|
|
66
|
+
}
|
|
67
|
+
if (detectDuplicates !== undefined) {
|
|
68
|
+
localVarQueryParameter.detectDuplicates = detectDuplicates;
|
|
69
|
+
}
|
|
70
|
+
if (tranRefNumber !== undefined) {
|
|
71
|
+
localVarQueryParameter.tranRefNumber = tranRefNumber;
|
|
72
|
+
}
|
|
73
|
+
if (interchangeRefNumber !== undefined) {
|
|
74
|
+
localVarQueryParameter.interchangeRefNumber = interchangeRefNumber;
|
|
75
|
+
}
|
|
76
|
+
if (ackForValidTrans !== undefined) {
|
|
77
|
+
localVarQueryParameter.ackForValidTrans = ackForValidTrans;
|
|
78
|
+
}
|
|
79
|
+
if (batchAcks !== undefined) {
|
|
80
|
+
localVarQueryParameter.batchAcks = batchAcks;
|
|
81
|
+
}
|
|
82
|
+
if (technicalAck !== undefined) {
|
|
83
|
+
localVarQueryParameter.technicalAck = technicalAck;
|
|
84
|
+
}
|
|
85
|
+
if (ack !== undefined) {
|
|
86
|
+
localVarQueryParameter.ack = ack;
|
|
87
|
+
}
|
|
88
|
+
if (ak901isP !== undefined) {
|
|
89
|
+
localVarQueryParameter.ak901isP = ak901isP;
|
|
90
|
+
}
|
|
91
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
92
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
95
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(x12Interchange, localVarRequestOptions, configuration);
|
|
96
|
+
return {
|
|
97
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @summary Convert X12 files to JSON
|
|
104
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
105
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
106
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
107
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
108
|
+
* @param {File} [body]
|
|
109
|
+
* @param {*} [options] Override http request option.
|
|
110
|
+
* @throws {RequiredError}
|
|
111
|
+
*/
|
|
112
|
+
x12ReadPost: async (ignoreNullValues, continueOnError, charSet, model, body, options = {}) => {
|
|
113
|
+
const localVarPath = '/x12/read';
|
|
114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
|
+
let baseOptions;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
121
|
+
const localVarHeaderParameter = {};
|
|
122
|
+
const localVarQueryParameter = {};
|
|
123
|
+
// authentication ApiKey required
|
|
124
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
125
|
+
if (ignoreNullValues !== undefined) {
|
|
126
|
+
localVarQueryParameter.ignoreNullValues = ignoreNullValues;
|
|
127
|
+
}
|
|
128
|
+
if (continueOnError !== undefined) {
|
|
129
|
+
localVarQueryParameter.continueOnError = continueOnError;
|
|
130
|
+
}
|
|
131
|
+
if (charSet !== undefined) {
|
|
132
|
+
localVarQueryParameter.charSet = charSet;
|
|
133
|
+
}
|
|
134
|
+
if (model !== undefined) {
|
|
135
|
+
localVarQueryParameter.model = model;
|
|
136
|
+
}
|
|
137
|
+
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
139
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
140
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
141
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
142
|
+
return {
|
|
143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
},
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @summary Validate X12 messages
|
|
150
|
+
* @param {boolean} [basicSyntax] All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.
|
|
151
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
152
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an X12Interchange with missing interchange, functional group or transaction trailers (IEA, GE, SE). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
153
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
154
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to validate.
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
*/
|
|
158
|
+
x12ValidatePost: async (basicSyntax, syntaxSet, skipTrailer, structureOnly, x12Interchange, options = {}) => {
|
|
159
|
+
const localVarPath = '/x12/validate';
|
|
160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
162
|
+
let baseOptions;
|
|
163
|
+
if (configuration) {
|
|
164
|
+
baseOptions = configuration.baseOptions;
|
|
165
|
+
}
|
|
166
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
167
|
+
const localVarHeaderParameter = {};
|
|
168
|
+
const localVarQueryParameter = {};
|
|
169
|
+
// authentication ApiKey required
|
|
170
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
171
|
+
if (basicSyntax !== undefined) {
|
|
172
|
+
localVarQueryParameter.basicSyntax = basicSyntax;
|
|
173
|
+
}
|
|
174
|
+
if (syntaxSet !== undefined) {
|
|
175
|
+
localVarQueryParameter.syntaxSet = syntaxSet;
|
|
176
|
+
}
|
|
177
|
+
if (skipTrailer !== undefined) {
|
|
178
|
+
localVarQueryParameter.skipTrailer = skipTrailer;
|
|
179
|
+
}
|
|
180
|
+
if (structureOnly !== undefined) {
|
|
181
|
+
localVarQueryParameter.structureOnly = structureOnly;
|
|
182
|
+
}
|
|
183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
187
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(x12Interchange, localVarRequestOptions, configuration);
|
|
188
|
+
return {
|
|
189
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @summary Convert JSON to X12 files
|
|
196
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
197
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
198
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
199
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to translate to raw X12.
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
x12WritePost: async (preserveWhitespace, charSet, postfix, x12Interchange, options = {}) => {
|
|
204
|
+
const localVarPath = '/x12/write';
|
|
205
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
206
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
207
|
+
let baseOptions;
|
|
208
|
+
if (configuration) {
|
|
209
|
+
baseOptions = configuration.baseOptions;
|
|
210
|
+
}
|
|
211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
212
|
+
const localVarHeaderParameter = {};
|
|
213
|
+
const localVarQueryParameter = {};
|
|
214
|
+
// authentication ApiKey required
|
|
215
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'Ocp-Apim-Subscription-Key', configuration);
|
|
216
|
+
if (preserveWhitespace !== undefined) {
|
|
217
|
+
localVarQueryParameter.preserveWhitespace = preserveWhitespace;
|
|
218
|
+
}
|
|
219
|
+
if (charSet !== undefined) {
|
|
220
|
+
localVarQueryParameter.charSet = charSet;
|
|
221
|
+
}
|
|
222
|
+
if (postfix !== undefined) {
|
|
223
|
+
localVarQueryParameter.postfix = postfix;
|
|
224
|
+
}
|
|
225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
226
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
228
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
229
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(x12Interchange, localVarRequestOptions, configuration);
|
|
230
|
+
return {
|
|
231
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
exports.X12ApiAxiosParamCreator = X12ApiAxiosParamCreator;
|
|
237
|
+
/**
|
|
238
|
+
* X12Api - functional programming interface
|
|
239
|
+
* @export
|
|
240
|
+
*/
|
|
241
|
+
const X12ApiFp = (configuration) => {
|
|
242
|
+
const localVarAxiosParamCreator = (0, exports.X12ApiAxiosParamCreator)(configuration);
|
|
243
|
+
return {
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Generate X12 acknowledments
|
|
247
|
+
* @param {boolean} [basicSyntax] All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.
|
|
248
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
249
|
+
* @param {boolean} [detectDuplicates] If you need to detect duplicates as in functional groups or transactions with the same reference number, set this flag to true. The default is false.
|
|
250
|
+
* @param {number} [tranRefNumber] The default is 1. Set this to whatever the 997 or 999 X12Interchange.ST.TransactionSetControlNumber_02 needs to be. In case there are multiple acknowledgments (for multiple functional groups), this will be starting reference number and every subsequent acknowledgment will have the previous reference number incremented with 1.
|
|
251
|
+
* @param {number} [interchangeRefNumber] The default is 1. Set this to whatever the 997 or 999 X12Interchange.ISA.InterchangeControlNumber_13 needs to be.
|
|
252
|
+
* @param {boolean} [ackForValidTrans] The default is false. Set this to true if you need AK2 loops included for all valid transaction as well. By default AK2 loops are generated only for invalid transactions.
|
|
253
|
+
* @param {boolean} [batchAcks] The default is true. Set this to false if you need to generate separate X12Interchange for each acknowledgment. By default all acknowledgments are batched in the same X12Interchange.
|
|
254
|
+
* @param {string} [technicalAck] The default technical acknowledgment TA1 is generated according to X12Interchange.ISA.AcknowledgementRequested_14. You can either enforce it to always generate TA1s or supress it to never generate any TA1s. This will override the flag in X12Interchange.ISA.AcknowledgementRequested_14. The available values are: default, enforce, suppress.
|
|
255
|
+
* @param {string} [ack] The default value is 997. The type of acknowledgment being generated. Set this to 999 if you need to generate an implementation instead of functional acknowledgment. The available values are: 997, 999.
|
|
256
|
+
* @param {boolean} [ak901isP] The value of the AK9\'s first element. By default it is \"E\". Set this to true if you want this value to be \"P\" instead.
|
|
257
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to acknowledge.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
async x12AckPost(basicSyntax, syntaxSet, detectDuplicates, tranRefNumber, interchangeRefNumber, ackForValidTrans, batchAcks, technicalAck, ack, ak901isP, x12Interchange, options) {
|
|
262
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.x12AckPost(basicSyntax, syntaxSet, detectDuplicates, tranRefNumber, interchangeRefNumber, ackForValidTrans, batchAcks, technicalAck, ack, ak901isP, x12Interchange, options);
|
|
263
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
264
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['X12Api.x12AckPost']?.[localVarOperationServerIndex]?.url;
|
|
265
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @summary Convert X12 files to JSON
|
|
270
|
+
* @param {boolean} [ignoreNullValues] Whether to ignore all null values in the response. The default is false.
|
|
271
|
+
* @param {boolean} [continueOnError] Whether to continue reading if a corrupt interchange is encountered. The default is false.
|
|
272
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
273
|
+
* @param {string} [model] The model to use. By default, the API will infer the model based on the transaction and version identifiers.
|
|
274
|
+
* @param {File} [body]
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
async x12ReadPost(ignoreNullValues, continueOnError, charSet, model, body, options) {
|
|
279
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.x12ReadPost(ignoreNullValues, continueOnError, charSet, model, body, options);
|
|
280
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
281
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['X12Api.x12ReadPost']?.[localVarOperationServerIndex]?.url;
|
|
282
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @summary Validate X12 messages
|
|
287
|
+
* @param {boolean} [basicSyntax] All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.
|
|
288
|
+
* @param {string} [syntaxSet] In case you need to validate against a syntax set, different than Basic and Extended, populate this filed with all of the allowed symbols, url-escaped.
|
|
289
|
+
* @param {boolean} [skipTrailer] You are allowed to validate an X12Interchange with missing interchange, functional group or transaction trailers (IEA, GE, SE). This is because these will be automatically applied during the Write oprtaion so you don\'t have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.
|
|
290
|
+
* @param {boolean} [structureOnly] This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.
|
|
291
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to validate.
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
async x12ValidatePost(basicSyntax, syntaxSet, skipTrailer, structureOnly, x12Interchange, options) {
|
|
296
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.x12ValidatePost(basicSyntax, syntaxSet, skipTrailer, structureOnly, x12Interchange, options);
|
|
297
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
298
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['X12Api.x12ValidatePost']?.[localVarOperationServerIndex]?.url;
|
|
299
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Convert JSON to X12 files
|
|
304
|
+
* @param {boolean} [preserveWhitespace] Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.
|
|
305
|
+
* @param {string} [charSet] The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.
|
|
306
|
+
* @param {string} [postfix] The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.
|
|
307
|
+
* @param {X12Interchange} [x12Interchange] The X12Interchange object to translate to raw X12.
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
async x12WritePost(preserveWhitespace, charSet, postfix, x12Interchange, options) {
|
|
312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.x12WritePost(preserveWhitespace, charSet, postfix, x12Interchange, options);
|
|
313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
314
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['X12Api.x12WritePost']?.[localVarOperationServerIndex]?.url;
|
|
315
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
316
|
+
},
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
exports.X12ApiFp = X12ApiFp;
|
|
320
|
+
/**
|
|
321
|
+
* X12Api - factory interface
|
|
322
|
+
* @export
|
|
323
|
+
*/
|
|
324
|
+
const X12ApiFactory = (configuration, basePath, axios) => {
|
|
325
|
+
const localVarFp = (0, exports.X12ApiFp)(configuration);
|
|
326
|
+
return {
|
|
327
|
+
/**
|
|
328
|
+
*
|
|
329
|
+
* @summary Generate X12 acknowledments
|
|
330
|
+
* @param {X12ApiX12AckPostRequest} requestParameters Request parameters.
|
|
331
|
+
* @param {*} [options] Override http request option.
|
|
332
|
+
* @throws {RequiredError}
|
|
333
|
+
*/
|
|
334
|
+
x12AckPost(requestParameters = {}, options) {
|
|
335
|
+
return localVarFp
|
|
336
|
+
.x12AckPost(requestParameters.basicSyntax, requestParameters.syntaxSet, requestParameters.detectDuplicates, requestParameters.tranRefNumber, requestParameters.interchangeRefNumber, requestParameters.ackForValidTrans, requestParameters.batchAcks, requestParameters.technicalAck, requestParameters.ack, requestParameters.ak901isP, requestParameters.x12Interchange, options)
|
|
337
|
+
.then((request) => request(axios, basePath));
|
|
338
|
+
},
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @summary Convert X12 files to JSON
|
|
342
|
+
* @param {X12ApiX12ReadPostRequest} requestParameters Request parameters.
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
x12ReadPost(requestParameters = {}, options) {
|
|
347
|
+
return localVarFp
|
|
348
|
+
.x12ReadPost(requestParameters.ignoreNullValues, requestParameters.continueOnError, requestParameters.charSet, requestParameters.model, requestParameters.body, options)
|
|
349
|
+
.then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
*
|
|
353
|
+
* @summary Validate X12 messages
|
|
354
|
+
* @param {X12ApiX12ValidatePostRequest} requestParameters Request parameters.
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
x12ValidatePost(requestParameters = {}, options) {
|
|
359
|
+
return localVarFp
|
|
360
|
+
.x12ValidatePost(requestParameters.basicSyntax, requestParameters.syntaxSet, requestParameters.skipTrailer, requestParameters.structureOnly, requestParameters.x12Interchange, options)
|
|
361
|
+
.then((request) => request(axios, basePath));
|
|
362
|
+
},
|
|
363
|
+
/**
|
|
364
|
+
*
|
|
365
|
+
* @summary Convert JSON to X12 files
|
|
366
|
+
* @param {X12ApiX12WritePostRequest} requestParameters Request parameters.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
x12WritePost(requestParameters = {}, options) {
|
|
371
|
+
return localVarFp
|
|
372
|
+
.x12WritePost(requestParameters.preserveWhitespace, requestParameters.charSet, requestParameters.postfix, requestParameters.x12Interchange, options)
|
|
373
|
+
.then((request) => request(axios, basePath));
|
|
374
|
+
},
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
exports.X12ApiFactory = X12ApiFactory;
|
|
378
|
+
/**
|
|
379
|
+
* X12Api - object-oriented interface
|
|
380
|
+
* @export
|
|
381
|
+
* @class X12Api
|
|
382
|
+
* @extends {BaseAPI}
|
|
383
|
+
*/
|
|
384
|
+
class X12Api extends base_1.BaseAPI {
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @summary Generate X12 acknowledments
|
|
388
|
+
* @param {X12ApiX12AckPostRequest} requestParameters Request parameters.
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
* @memberof X12Api
|
|
392
|
+
*/
|
|
393
|
+
x12AckPost(requestParameters = {}, options) {
|
|
394
|
+
return (0, exports.X12ApiFp)(this.configuration)
|
|
395
|
+
.x12AckPost(requestParameters.basicSyntax, requestParameters.syntaxSet, requestParameters.detectDuplicates, requestParameters.tranRefNumber, requestParameters.interchangeRefNumber, requestParameters.ackForValidTrans, requestParameters.batchAcks, requestParameters.technicalAck, requestParameters.ack, requestParameters.ak901isP, requestParameters.x12Interchange, options)
|
|
396
|
+
.then((request) => request(this.axios, this.basePath));
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
*
|
|
400
|
+
* @summary Convert X12 files to JSON
|
|
401
|
+
* @param {X12ApiX12ReadPostRequest} requestParameters Request parameters.
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
* @memberof X12Api
|
|
405
|
+
*/
|
|
406
|
+
x12ReadPost(requestParameters = {}, options) {
|
|
407
|
+
return (0, exports.X12ApiFp)(this.configuration)
|
|
408
|
+
.x12ReadPost(requestParameters.ignoreNullValues, requestParameters.continueOnError, requestParameters.charSet, requestParameters.model, requestParameters.body, options)
|
|
409
|
+
.then((request) => request(this.axios, this.basePath));
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Validate X12 messages
|
|
414
|
+
* @param {X12ApiX12ValidatePostRequest} requestParameters Request parameters.
|
|
415
|
+
* @param {*} [options] Override http request option.
|
|
416
|
+
* @throws {RequiredError}
|
|
417
|
+
* @memberof X12Api
|
|
418
|
+
*/
|
|
419
|
+
x12ValidatePost(requestParameters = {}, options) {
|
|
420
|
+
return (0, exports.X12ApiFp)(this.configuration)
|
|
421
|
+
.x12ValidatePost(requestParameters.basicSyntax, requestParameters.syntaxSet, requestParameters.skipTrailer, requestParameters.structureOnly, requestParameters.x12Interchange, options)
|
|
422
|
+
.then((request) => request(this.axios, this.basePath));
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @summary Convert JSON to X12 files
|
|
427
|
+
* @param {X12ApiX12WritePostRequest} requestParameters Request parameters.
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof X12Api
|
|
431
|
+
*/
|
|
432
|
+
x12WritePost(requestParameters = {}, options) {
|
|
433
|
+
return (0, exports.X12ApiFp)(this.configuration)
|
|
434
|
+
.x12WritePost(requestParameters.preserveWhitespace, requestParameters.charSet, requestParameters.postfix, requestParameters.x12Interchange, options)
|
|
435
|
+
.then((request) => request(this.axios, this.basePath));
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
exports.X12Api = X12Api;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EdiNation API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from './api/edi-model-api';
|
|
13
|
+
export * from './api/edifact-api';
|
|
14
|
+
export * from './api/hl7-api';
|
|
15
|
+
export * from './api/ncpdp-api';
|
|
16
|
+
export * from './api/vda-api';
|
|
17
|
+
export * from './api/x12-api';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EdiNation API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api/edi-model-api"), exports);
|
|
31
|
+
__exportStar(require("./api/edifact-api"), exports);
|
|
32
|
+
__exportStar(require("./api/hl7-api"), exports);
|
|
33
|
+
__exportStar(require("./api/ncpdp-api"), exports);
|
|
34
|
+
__exportStar(require("./api/vda-api"), exports);
|
|
35
|
+
__exportStar(require("./api/x12-api"), exports);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EdiNation API
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
13
|
+
import type { Configuration } from './configuration';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EdiNation API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
exports.BASE_PATH = 'https://api.edination.com/v2'.replace(/\/+$/, '');
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.COLLECTION_FORMATS = {
|
|
27
|
+
csv: ',',
|
|
28
|
+
ssv: ' ',
|
|
29
|
+
tsv: '\t',
|
|
30
|
+
pipes: '|',
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @export
|
|
35
|
+
* @class BaseAPI
|
|
36
|
+
*/
|
|
37
|
+
class BaseAPI {
|
|
38
|
+
basePath;
|
|
39
|
+
axios;
|
|
40
|
+
configuration;
|
|
41
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
42
|
+
this.basePath = basePath;
|
|
43
|
+
this.axios = axios;
|
|
44
|
+
if (configuration) {
|
|
45
|
+
this.configuration = configuration;
|
|
46
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.BaseAPI = BaseAPI;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @class RequiredError
|
|
55
|
+
* @extends {Error}
|
|
56
|
+
*/
|
|
57
|
+
class RequiredError extends Error {
|
|
58
|
+
field;
|
|
59
|
+
constructor(field, msg) {
|
|
60
|
+
super(msg);
|
|
61
|
+
this.field = field;
|
|
62
|
+
this.name = 'RequiredError';
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.RequiredError = RequiredError;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
exports.operationServerMap = {};
|