@digital8/lighting-illusions-ts-sdk 0.0.1886 → 0.0.1888
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/.openapi-generator/FILES +20 -0
- package/README.md +20 -2
- package/dist/apis/DocumentApi.d.ts +156 -0
- package/dist/apis/DocumentApi.js +613 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +1 -3
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AttachDocumentablesToDocumentRequest.d.ts +33 -0
- package/dist/models/AttachDocumentablesToDocumentRequest.js +52 -0
- package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.d.ts +53 -0
- package/dist/models/AttachDocumentablesToDocumentRequestDocumentablesInner.js +66 -0
- package/dist/models/CreateDocumentFileRequest.d.ts +38 -0
- package/dist/models/CreateDocumentFileRequest.js +55 -0
- package/dist/models/CreateDocumentRequest.d.ts +44 -0
- package/dist/models/CreateDocumentRequest.js +57 -0
- package/dist/models/DetachDocumentablesFromDocumentRequest.d.ts +33 -0
- package/dist/models/DetachDocumentablesFromDocumentRequest.js +52 -0
- package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.d.ts +47 -0
- package/dist/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.js +64 -0
- package/dist/models/SearchAllDocumentsRequest.d.ts +95 -0
- package/dist/models/SearchAllDocumentsRequest.js +86 -0
- package/dist/models/SearchDocumentsRequest.d.ts +107 -0
- package/dist/models/SearchDocumentsRequest.js +90 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +3 -1
- package/dist/models/StoreResource.d.ts +2 -2
- package/dist/models/StoreResource.js +6 -2
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/UpdateDocumentRequest.d.ts +44 -0
- package/dist/models/UpdateDocumentRequest.js +57 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AttachDocumentablesToDocumentRequest.md +34 -0
- package/docs/AttachDocumentablesToDocumentRequestDocumentablesInner.md +38 -0
- package/docs/CreateDocumentFileRequest.md +36 -0
- package/docs/CreateDocumentRequest.md +38 -0
- package/docs/DetachDocumentablesFromDocumentRequest.md +34 -0
- package/docs/DetachDocumentablesFromDocumentRequestDocumentablesInner.md +36 -0
- package/docs/DocumentApi.md +611 -0
- package/docs/SearchAllDocumentsRequest.md +46 -0
- package/docs/SearchDocumentsRequest.md +50 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/UpdateDocumentRequest.md +38 -0
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +496 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +2 -3
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AttachDocumentablesToDocumentRequest.ts +74 -0
- package/src/models/AttachDocumentablesToDocumentRequestDocumentablesInner.ts +95 -0
- package/src/models/CreateDocumentFileRequest.ts +75 -0
- package/src/models/CreateDocumentRequest.ts +83 -0
- package/src/models/DetachDocumentablesFromDocumentRequest.ts +74 -0
- package/src/models/DetachDocumentablesFromDocumentRequestDocumentablesInner.ts +87 -0
- package/src/models/SearchAllDocumentsRequest.ts +145 -0
- package/src/models/SearchDocumentsRequest.ts +161 -0
- package/src/models/StoreFrontendResource.ts +3 -2
- package/src/models/StoreResource.ts +6 -4
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/UpdateDocumentRequest.ts +83 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,613 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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 __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.DocumentApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var DocumentApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(DocumentApi, _super);
|
|
75
|
+
function DocumentApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for attachDocumentablesDocument without sending the request
|
|
80
|
+
*/
|
|
81
|
+
DocumentApi.prototype.attachDocumentablesDocumentRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
if (requestParameters['document'] == null) {
|
|
86
|
+
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling attachDocumentablesDocument().');
|
|
87
|
+
}
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
+
urlPath = "/admin-api/document/{document}/attach-documentables";
|
|
92
|
+
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
93
|
+
return [2 /*return*/, {
|
|
94
|
+
path: urlPath,
|
|
95
|
+
method: 'POST',
|
|
96
|
+
headers: headerParameters,
|
|
97
|
+
query: queryParameters,
|
|
98
|
+
body: (0, index_1.AttachDocumentablesToDocumentRequestToJSON)(requestParameters['attachDocumentablesToDocumentRequest']),
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Auto-generated: attachDocumentablesDocument
|
|
105
|
+
*/
|
|
106
|
+
DocumentApi.prototype.attachDocumentablesDocumentRaw = function (requestParameters, initOverrides) {
|
|
107
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
108
|
+
var requestOptions, response;
|
|
109
|
+
return __generator(this, function (_a) {
|
|
110
|
+
switch (_a.label) {
|
|
111
|
+
case 0: return [4 /*yield*/, this.attachDocumentablesDocumentRequestOpts(requestParameters)];
|
|
112
|
+
case 1:
|
|
113
|
+
requestOptions = _a.sent();
|
|
114
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
115
|
+
case 2:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Auto-generated: attachDocumentablesDocument
|
|
124
|
+
*/
|
|
125
|
+
DocumentApi.prototype.attachDocumentablesDocument = function (requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var response;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0: return [4 /*yield*/, this.attachDocumentablesDocumentRaw(requestParameters, initOverrides)];
|
|
131
|
+
case 1:
|
|
132
|
+
response = _a.sent();
|
|
133
|
+
return [4 /*yield*/, response.value()];
|
|
134
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Creates request options for destroyDocument without sending the request
|
|
141
|
+
*/
|
|
142
|
+
DocumentApi.prototype.destroyDocumentRequestOpts = function (requestParameters) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
144
|
+
var queryParameters, headerParameters, urlPath;
|
|
145
|
+
return __generator(this, function (_a) {
|
|
146
|
+
if (requestParameters['document'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling destroyDocument().');
|
|
148
|
+
}
|
|
149
|
+
queryParameters = {};
|
|
150
|
+
headerParameters = {};
|
|
151
|
+
urlPath = "/admin-api/document/{document}/delete";
|
|
152
|
+
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
153
|
+
return [2 /*return*/, {
|
|
154
|
+
path: urlPath,
|
|
155
|
+
method: 'DELETE',
|
|
156
|
+
headers: headerParameters,
|
|
157
|
+
query: queryParameters,
|
|
158
|
+
}];
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Auto-generated: destroyDocument
|
|
164
|
+
*/
|
|
165
|
+
DocumentApi.prototype.destroyDocumentRaw = function (requestParameters, initOverrides) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
167
|
+
var requestOptions, response;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0: return [4 /*yield*/, this.destroyDocumentRequestOpts(requestParameters)];
|
|
171
|
+
case 1:
|
|
172
|
+
requestOptions = _a.sent();
|
|
173
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
174
|
+
case 2:
|
|
175
|
+
response = _a.sent();
|
|
176
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Auto-generated: destroyDocument
|
|
183
|
+
*/
|
|
184
|
+
DocumentApi.prototype.destroyDocument = function (requestParameters, initOverrides) {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
186
|
+
var response;
|
|
187
|
+
return __generator(this, function (_a) {
|
|
188
|
+
switch (_a.label) {
|
|
189
|
+
case 0: return [4 /*yield*/, this.destroyDocumentRaw(requestParameters, initOverrides)];
|
|
190
|
+
case 1:
|
|
191
|
+
response = _a.sent();
|
|
192
|
+
return [4 /*yield*/, response.value()];
|
|
193
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Creates request options for detachDocumentablesDocument without sending the request
|
|
200
|
+
*/
|
|
201
|
+
DocumentApi.prototype.detachDocumentablesDocumentRequestOpts = function (requestParameters) {
|
|
202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
203
|
+
var queryParameters, headerParameters, urlPath;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
if (requestParameters['document'] == null) {
|
|
206
|
+
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling detachDocumentablesDocument().');
|
|
207
|
+
}
|
|
208
|
+
queryParameters = {};
|
|
209
|
+
headerParameters = {};
|
|
210
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
+
urlPath = "/admin-api/document/{document}/detach-documentables";
|
|
212
|
+
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
213
|
+
return [2 /*return*/, {
|
|
214
|
+
path: urlPath,
|
|
215
|
+
method: 'POST',
|
|
216
|
+
headers: headerParameters,
|
|
217
|
+
query: queryParameters,
|
|
218
|
+
body: (0, index_1.DetachDocumentablesFromDocumentRequestToJSON)(requestParameters['detachDocumentablesFromDocumentRequest']),
|
|
219
|
+
}];
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Auto-generated: detachDocumentablesDocument
|
|
225
|
+
*/
|
|
226
|
+
DocumentApi.prototype.detachDocumentablesDocumentRaw = function (requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var requestOptions, response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.detachDocumentablesDocumentRequestOpts(requestParameters)];
|
|
232
|
+
case 1:
|
|
233
|
+
requestOptions = _a.sent();
|
|
234
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
+
case 2:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Auto-generated: detachDocumentablesDocument
|
|
244
|
+
*/
|
|
245
|
+
DocumentApi.prototype.detachDocumentablesDocument = function (requestParameters, initOverrides) {
|
|
246
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
247
|
+
var response;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0: return [4 /*yield*/, this.detachDocumentablesDocumentRaw(requestParameters, initOverrides)];
|
|
251
|
+
case 1:
|
|
252
|
+
response = _a.sent();
|
|
253
|
+
return [4 /*yield*/, response.value()];
|
|
254
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for getAllDocument without sending the request
|
|
261
|
+
*/
|
|
262
|
+
DocumentApi.prototype.getAllDocumentRequestOpts = function (requestParameters) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
264
|
+
var queryParameters, headerParameters, urlPath;
|
|
265
|
+
return __generator(this, function (_a) {
|
|
266
|
+
queryParameters = {};
|
|
267
|
+
headerParameters = {};
|
|
268
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
269
|
+
urlPath = "/admin-api/document/all";
|
|
270
|
+
return [2 /*return*/, {
|
|
271
|
+
path: urlPath,
|
|
272
|
+
method: 'POST',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
body: (0, index_1.SearchAllDocumentsRequestToJSON)(requestParameters['searchAllDocumentsRequest']),
|
|
276
|
+
}];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Auto-generated: getAllDocument
|
|
282
|
+
*/
|
|
283
|
+
DocumentApi.prototype.getAllDocumentRaw = function (requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
+
var requestOptions, response;
|
|
286
|
+
return __generator(this, function (_a) {
|
|
287
|
+
switch (_a.label) {
|
|
288
|
+
case 0: return [4 /*yield*/, this.getAllDocumentRequestOpts(requestParameters)];
|
|
289
|
+
case 1:
|
|
290
|
+
requestOptions = _a.sent();
|
|
291
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
292
|
+
case 2:
|
|
293
|
+
response = _a.sent();
|
|
294
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceArrayResponseFromJSON)(jsonValue); })];
|
|
295
|
+
}
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Auto-generated: getAllDocument
|
|
301
|
+
*/
|
|
302
|
+
DocumentApi.prototype.getAllDocument = function () {
|
|
303
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
304
|
+
var response;
|
|
305
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
306
|
+
return __generator(this, function (_a) {
|
|
307
|
+
switch (_a.label) {
|
|
308
|
+
case 0: return [4 /*yield*/, this.getAllDocumentRaw(requestParameters, initOverrides)];
|
|
309
|
+
case 1:
|
|
310
|
+
response = _a.sent();
|
|
311
|
+
return [4 /*yield*/, response.value()];
|
|
312
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
313
|
+
}
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Creates request options for indexDocument without sending the request
|
|
319
|
+
*/
|
|
320
|
+
DocumentApi.prototype.indexDocumentRequestOpts = function (requestParameters) {
|
|
321
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
322
|
+
var queryParameters, headerParameters, urlPath;
|
|
323
|
+
return __generator(this, function (_a) {
|
|
324
|
+
queryParameters = {};
|
|
325
|
+
headerParameters = {};
|
|
326
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
327
|
+
urlPath = "/admin-api/document/list";
|
|
328
|
+
return [2 /*return*/, {
|
|
329
|
+
path: urlPath,
|
|
330
|
+
method: 'POST',
|
|
331
|
+
headers: headerParameters,
|
|
332
|
+
query: queryParameters,
|
|
333
|
+
body: (0, index_1.SearchDocumentsRequestToJSON)(requestParameters['searchDocumentsRequest']),
|
|
334
|
+
}];
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Auto-generated: indexDocument
|
|
340
|
+
*/
|
|
341
|
+
DocumentApi.prototype.indexDocumentRaw = function (requestParameters, initOverrides) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
343
|
+
var requestOptions, response;
|
|
344
|
+
return __generator(this, function (_a) {
|
|
345
|
+
switch (_a.label) {
|
|
346
|
+
case 0: return [4 /*yield*/, this.indexDocumentRequestOpts(requestParameters)];
|
|
347
|
+
case 1:
|
|
348
|
+
requestOptions = _a.sent();
|
|
349
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
350
|
+
case 2:
|
|
351
|
+
response = _a.sent();
|
|
352
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedDocumentResourceResponseFromJSON)(jsonValue); })];
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
});
|
|
356
|
+
};
|
|
357
|
+
/**
|
|
358
|
+
* Auto-generated: indexDocument
|
|
359
|
+
*/
|
|
360
|
+
DocumentApi.prototype.indexDocument = function () {
|
|
361
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
362
|
+
var response;
|
|
363
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
364
|
+
return __generator(this, function (_a) {
|
|
365
|
+
switch (_a.label) {
|
|
366
|
+
case 0: return [4 /*yield*/, this.indexDocumentRaw(requestParameters, initOverrides)];
|
|
367
|
+
case 1:
|
|
368
|
+
response = _a.sent();
|
|
369
|
+
return [4 /*yield*/, response.value()];
|
|
370
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* Creates request options for showDocument without sending the request
|
|
377
|
+
*/
|
|
378
|
+
DocumentApi.prototype.showDocumentRequestOpts = function (requestParameters) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
380
|
+
var queryParameters, headerParameters, urlPath;
|
|
381
|
+
return __generator(this, function (_a) {
|
|
382
|
+
if (requestParameters['document'] == null) {
|
|
383
|
+
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling showDocument().');
|
|
384
|
+
}
|
|
385
|
+
queryParameters = {};
|
|
386
|
+
headerParameters = {};
|
|
387
|
+
urlPath = "/admin-api/document/{document}";
|
|
388
|
+
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
389
|
+
return [2 /*return*/, {
|
|
390
|
+
path: urlPath,
|
|
391
|
+
method: 'GET',
|
|
392
|
+
headers: headerParameters,
|
|
393
|
+
query: queryParameters,
|
|
394
|
+
}];
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* Auto-generated: showDocument
|
|
400
|
+
*/
|
|
401
|
+
DocumentApi.prototype.showDocumentRaw = function (requestParameters, initOverrides) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
403
|
+
var requestOptions, response;
|
|
404
|
+
return __generator(this, function (_a) {
|
|
405
|
+
switch (_a.label) {
|
|
406
|
+
case 0: return [4 /*yield*/, this.showDocumentRequestOpts(requestParameters)];
|
|
407
|
+
case 1:
|
|
408
|
+
requestOptions = _a.sent();
|
|
409
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
410
|
+
case 2:
|
|
411
|
+
response = _a.sent();
|
|
412
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* Auto-generated: showDocument
|
|
419
|
+
*/
|
|
420
|
+
DocumentApi.prototype.showDocument = function (requestParameters, initOverrides) {
|
|
421
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
422
|
+
var response;
|
|
423
|
+
return __generator(this, function (_a) {
|
|
424
|
+
switch (_a.label) {
|
|
425
|
+
case 0: return [4 /*yield*/, this.showDocumentRaw(requestParameters, initOverrides)];
|
|
426
|
+
case 1:
|
|
427
|
+
response = _a.sent();
|
|
428
|
+
return [4 /*yield*/, response.value()];
|
|
429
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
});
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* Creates request options for storeDocument without sending the request
|
|
436
|
+
*/
|
|
437
|
+
DocumentApi.prototype.storeDocumentRequestOpts = function (requestParameters) {
|
|
438
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
439
|
+
var queryParameters, headerParameters, urlPath;
|
|
440
|
+
return __generator(this, function (_a) {
|
|
441
|
+
queryParameters = {};
|
|
442
|
+
headerParameters = {};
|
|
443
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
444
|
+
urlPath = "/admin-api/document/create";
|
|
445
|
+
return [2 /*return*/, {
|
|
446
|
+
path: urlPath,
|
|
447
|
+
method: 'POST',
|
|
448
|
+
headers: headerParameters,
|
|
449
|
+
query: queryParameters,
|
|
450
|
+
body: (0, index_1.CreateDocumentRequestToJSON)(requestParameters['createDocumentRequest']),
|
|
451
|
+
}];
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
/**
|
|
456
|
+
* Auto-generated: storeDocument
|
|
457
|
+
*/
|
|
458
|
+
DocumentApi.prototype.storeDocumentRaw = function (requestParameters, initOverrides) {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
460
|
+
var requestOptions, response;
|
|
461
|
+
return __generator(this, function (_a) {
|
|
462
|
+
switch (_a.label) {
|
|
463
|
+
case 0: return [4 /*yield*/, this.storeDocumentRequestOpts(requestParameters)];
|
|
464
|
+
case 1:
|
|
465
|
+
requestOptions = _a.sent();
|
|
466
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
467
|
+
case 2:
|
|
468
|
+
response = _a.sent();
|
|
469
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
});
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Auto-generated: storeDocument
|
|
476
|
+
*/
|
|
477
|
+
DocumentApi.prototype.storeDocument = function () {
|
|
478
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
479
|
+
var response;
|
|
480
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
switch (_a.label) {
|
|
483
|
+
case 0: return [4 /*yield*/, this.storeDocumentRaw(requestParameters, initOverrides)];
|
|
484
|
+
case 1:
|
|
485
|
+
response = _a.sent();
|
|
486
|
+
return [4 /*yield*/, response.value()];
|
|
487
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
});
|
|
491
|
+
};
|
|
492
|
+
/**
|
|
493
|
+
* Creates request options for storeDocumentFile without sending the request
|
|
494
|
+
*/
|
|
495
|
+
DocumentApi.prototype.storeDocumentFileRequestOpts = function (requestParameters) {
|
|
496
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
497
|
+
var queryParameters, headerParameters, urlPath;
|
|
498
|
+
return __generator(this, function (_a) {
|
|
499
|
+
queryParameters = {};
|
|
500
|
+
headerParameters = {};
|
|
501
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
502
|
+
urlPath = "/admin-api/document/files";
|
|
503
|
+
return [2 /*return*/, {
|
|
504
|
+
path: urlPath,
|
|
505
|
+
method: 'POST',
|
|
506
|
+
headers: headerParameters,
|
|
507
|
+
query: queryParameters,
|
|
508
|
+
body: (0, index_1.CreateDocumentFileRequestToJSON)(requestParameters['createDocumentFileRequest']),
|
|
509
|
+
}];
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
/**
|
|
514
|
+
* Auto-generated: storeDocumentFile
|
|
515
|
+
*/
|
|
516
|
+
DocumentApi.prototype.storeDocumentFileRaw = function (requestParameters, initOverrides) {
|
|
517
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
518
|
+
var requestOptions, response;
|
|
519
|
+
return __generator(this, function (_a) {
|
|
520
|
+
switch (_a.label) {
|
|
521
|
+
case 0: return [4 /*yield*/, this.storeDocumentFileRequestOpts(requestParameters)];
|
|
522
|
+
case 1:
|
|
523
|
+
requestOptions = _a.sent();
|
|
524
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
525
|
+
case 2:
|
|
526
|
+
response = _a.sent();
|
|
527
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentFileForUploadResourceFromJSON)(jsonValue); })];
|
|
528
|
+
}
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
/**
|
|
533
|
+
* Auto-generated: storeDocumentFile
|
|
534
|
+
*/
|
|
535
|
+
DocumentApi.prototype.storeDocumentFile = function () {
|
|
536
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
537
|
+
var response;
|
|
538
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
539
|
+
return __generator(this, function (_a) {
|
|
540
|
+
switch (_a.label) {
|
|
541
|
+
case 0: return [4 /*yield*/, this.storeDocumentFileRaw(requestParameters, initOverrides)];
|
|
542
|
+
case 1:
|
|
543
|
+
response = _a.sent();
|
|
544
|
+
return [4 /*yield*/, response.value()];
|
|
545
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* Creates request options for updateDocument without sending the request
|
|
552
|
+
*/
|
|
553
|
+
DocumentApi.prototype.updateDocumentRequestOpts = function (requestParameters) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
555
|
+
var queryParameters, headerParameters, urlPath;
|
|
556
|
+
return __generator(this, function (_a) {
|
|
557
|
+
if (requestParameters['document'] == null) {
|
|
558
|
+
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling updateDocument().');
|
|
559
|
+
}
|
|
560
|
+
queryParameters = {};
|
|
561
|
+
headerParameters = {};
|
|
562
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
563
|
+
urlPath = "/admin-api/document/{document}/update";
|
|
564
|
+
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
565
|
+
return [2 /*return*/, {
|
|
566
|
+
path: urlPath,
|
|
567
|
+
method: 'PUT',
|
|
568
|
+
headers: headerParameters,
|
|
569
|
+
query: queryParameters,
|
|
570
|
+
body: (0, index_1.UpdateDocumentRequestToJSON)(requestParameters['updateDocumentRequest']),
|
|
571
|
+
}];
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
};
|
|
575
|
+
/**
|
|
576
|
+
* Auto-generated: updateDocument
|
|
577
|
+
*/
|
|
578
|
+
DocumentApi.prototype.updateDocumentRaw = function (requestParameters, initOverrides) {
|
|
579
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
580
|
+
var requestOptions, response;
|
|
581
|
+
return __generator(this, function (_a) {
|
|
582
|
+
switch (_a.label) {
|
|
583
|
+
case 0: return [4 /*yield*/, this.updateDocumentRequestOpts(requestParameters)];
|
|
584
|
+
case 1:
|
|
585
|
+
requestOptions = _a.sent();
|
|
586
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
587
|
+
case 2:
|
|
588
|
+
response = _a.sent();
|
|
589
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
});
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Auto-generated: updateDocument
|
|
596
|
+
*/
|
|
597
|
+
DocumentApi.prototype.updateDocument = function (requestParameters, initOverrides) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
599
|
+
var response;
|
|
600
|
+
return __generator(this, function (_a) {
|
|
601
|
+
switch (_a.label) {
|
|
602
|
+
case 0: return [4 /*yield*/, this.updateDocumentRaw(requestParameters, initOverrides)];
|
|
603
|
+
case 1:
|
|
604
|
+
response = _a.sent();
|
|
605
|
+
return [4 /*yield*/, response.value()];
|
|
606
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
return DocumentApi;
|
|
612
|
+
}(runtime.BaseAPI));
|
|
613
|
+
exports.DocumentApi = DocumentApi;
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './AssetApi';
|
|
|
3
3
|
export * from './AttributeApi';
|
|
4
4
|
export * from './BlogCategoryApi';
|
|
5
5
|
export * from './DefinitionApi';
|
|
6
|
+
export * from './DocumentApi';
|
|
6
7
|
export * from './ExternalApiLogApi';
|
|
7
8
|
export * from './FrontendComponentApi';
|
|
8
9
|
export * from './GoogleCategoryApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __exportStar(require("./AssetApi"), exports);
|
|
|
21
21
|
__exportStar(require("./AttributeApi"), exports);
|
|
22
22
|
__exportStar(require("./BlogCategoryApi"), exports);
|
|
23
23
|
__exportStar(require("./DefinitionApi"), exports);
|
|
24
|
+
__exportStar(require("./DocumentApi"), exports);
|
|
24
25
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
25
26
|
__exportStar(require("./FrontendComponentApi"), exports);
|
|
26
27
|
__exportStar(require("./GoogleCategoryApi"), exports);
|
|
@@ -24,8 +24,6 @@ exports.AddressFrontendResourceToJSONTyped = AddressFrontendResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressFrontendResource(value) {
|
|
25
25
|
if (!('line1' in value) || value['line1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('line2' in value) || value['line2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('postcode' in value) || value['postcode'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
@@ -48,7 +46,7 @@ function AddressFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
46
|
return {
|
|
49
47
|
'company': json['company'] == null ? undefined : json['company'],
|
|
50
48
|
'line1': json['line1'],
|
|
51
|
-
'line2': json['line2'],
|
|
49
|
+
'line2': json['line2'] == null ? undefined : json['line2'],
|
|
52
50
|
'postcode': json['postcode'],
|
|
53
51
|
'suburb': json['suburb'],
|
|
54
52
|
'country': json['country'],
|