@digital8/lighting-illusions-ts-sdk 0.0.979 → 0.0.981
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/VERSION +1 -1
- package/README.md +3 -3
- package/dist/apis/AssetApi.d.ts +16 -0
- package/dist/apis/AssetApi.js +110 -58
- package/dist/apis/AttributeApi.d.ts +60 -0
- package/dist/apis/AttributeApi.js +424 -229
- package/dist/apis/DefinitionApi.d.ts +24 -0
- package/dist/apis/DefinitionApi.js +164 -86
- package/dist/apis/DocumentApi.d.ts +36 -0
- package/dist/apis/DocumentApi.js +250 -133
- package/dist/apis/ExternalApiLogApi.d.ts +4 -0
- package/dist/apis/ExternalApiLogApi.js +26 -13
- package/dist/apis/GoogleCategoryApi.d.ts +4 -0
- package/dist/apis/GoogleCategoryApi.js +26 -13
- package/dist/apis/OverlayTemplateApi.d.ts +48 -0
- package/dist/apis/OverlayTemplateApi.js +340 -184
- package/dist/apis/ProductApi.d.ts +84 -0
- package/dist/apis/ProductApi.js +600 -327
- package/dist/apis/ProductCategoryApi.d.ts +52 -0
- package/dist/apis/ProductCategoryApi.js +364 -195
- package/dist/apis/ProductTypeApi.d.ts +36 -0
- package/dist/apis/ProductTypeApi.js +256 -139
- package/dist/apis/SiteApi.d.ts +32 -0
- package/dist/apis/SiteApi.js +220 -116
- package/dist/apis/SupplierApi.d.ts +32 -0
- package/dist/apis/SupplierApi.js +234 -130
- package/dist/apis/TagApi.d.ts +32 -0
- package/dist/apis/TagApi.js +226 -122
- package/dist/models/AttachAttributeProductTypeRequest.d.ts +1 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/AttachProductTypeAttributeRequest.d.ts +1 -1
- package/dist/models/DetachAssetableOverlayTemplateRequest.d.ts +1 -1
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -1
- package/dist/models/GetAllAttributeRequest.d.ts +3 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +2 -2
- package/dist/models/GetAllDocumentRequest.d.ts +3 -3
- package/dist/models/GetAllGoogleCategoryRequest.d.ts +2 -2
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/GetAllProductCategoryRequest.d.ts +3 -3
- package/dist/models/GetAllProductChildRequest.d.ts +3 -3
- package/dist/models/GetAllProductRequest.d.ts +3 -3
- package/dist/models/GetAllProductTypeRequest.d.ts +3 -3
- package/dist/models/GetAllSupplierRequest.d.ts +3 -3
- package/dist/models/IndexAttributeRequest.d.ts +3 -3
- package/dist/models/IndexAttributeValueRequest.d.ts +3 -3
- package/dist/models/IndexDefinitionRequest.d.ts +2 -2
- package/dist/models/IndexDocumentRequest.d.ts +3 -3
- package/dist/models/IndexExternalApiLogRequest.d.ts +2 -2
- package/dist/models/IndexOverlayTemplateRequest.d.ts +3 -3
- package/dist/models/IndexProductCategoryRequest.d.ts +3 -3
- package/dist/models/IndexProductChildRequest.d.ts +3 -3
- package/dist/models/IndexProductRequest.d.ts +3 -3
- package/dist/models/IndexProductTypeRequest.d.ts +3 -3
- package/dist/models/IndexSiteNotificationRequest.d.ts +2 -2
- package/dist/models/IndexSiteRequest.d.ts +2 -2
- package/dist/models/IndexSupplierRequest.d.ts +3 -3
- package/dist/models/IndexTagRequest.d.ts +3 -3
- package/dist/models/PreviewAutomationRulesProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreAssetForAssetableRequest.d.ts +1 -1
- package/dist/models/StoreAttributeRequest.d.ts +1 -1
- package/dist/models/StoreOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequest.d.ts +1 -1
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +2 -2
- package/dist/models/StoreTagRequest.d.ts +1 -1
- package/dist/models/UpdateAttributeRequest.d.ts +1 -1
- package/dist/models/UpdateOverlayTemplateAssetRequest.d.ts +1 -1
- package/dist/models/UpdateProductCategoryRequest.d.ts +1 -1
- package/dist/models/UpdateSiteRequest.d.ts +1 -1
- package/dist/models/UpdateTagRequest.d.ts +1 -1
- package/package.json +1 -1
- package/src/apis/AssetApi.ts +48 -16
- package/src/apis/AttributeApi.ts +180 -60
- package/src/apis/DefinitionApi.ts +72 -24
- package/src/apis/DocumentApi.ts +108 -36
- package/src/apis/ExternalApiLogApi.ts +12 -4
- package/src/apis/GoogleCategoryApi.ts +12 -4
- package/src/apis/OverlayTemplateApi.ts +144 -48
- package/src/apis/ProductApi.ts +252 -84
- package/src/apis/ProductCategoryApi.ts +156 -52
- package/src/apis/ProductTypeApi.ts +108 -36
- package/src/apis/SiteApi.ts +96 -32
- package/src/apis/SupplierApi.ts +96 -32
- package/src/apis/TagApi.ts +96 -32
- package/src/models/AttachAttributeProductTypeRequest.ts +1 -1
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/AttachProductTypeAttributeRequest.ts +1 -1
- package/src/models/DetachAssetableOverlayTemplateRequest.ts +1 -1
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +1 -1
- package/src/models/GetAllAttributeRequest.ts +3 -3
- package/src/models/GetAllDefinitionRequest.ts +2 -2
- package/src/models/GetAllDocumentRequest.ts +3 -3
- package/src/models/GetAllGoogleCategoryRequest.ts +2 -2
- package/src/models/GetAllOverlayTemplateRequest.ts +3 -3
- package/src/models/GetAllProductCategoryRequest.ts +3 -3
- package/src/models/GetAllProductChildRequest.ts +3 -3
- package/src/models/GetAllProductRequest.ts +3 -3
- package/src/models/GetAllProductTypeRequest.ts +3 -3
- package/src/models/GetAllSupplierRequest.ts +3 -3
- package/src/models/IndexAttributeRequest.ts +3 -3
- package/src/models/IndexAttributeValueRequest.ts +3 -3
- package/src/models/IndexDefinitionRequest.ts +2 -2
- package/src/models/IndexDocumentRequest.ts +3 -3
- package/src/models/IndexExternalApiLogRequest.ts +2 -2
- package/src/models/IndexOverlayTemplateRequest.ts +3 -3
- package/src/models/IndexProductCategoryRequest.ts +3 -3
- package/src/models/IndexProductChildRequest.ts +3 -3
- package/src/models/IndexProductRequest.ts +3 -3
- package/src/models/IndexProductTypeRequest.ts +3 -3
- package/src/models/IndexSiteNotificationRequest.ts +2 -2
- package/src/models/IndexSiteRequest.ts +2 -2
- package/src/models/IndexSupplierRequest.ts +3 -3
- package/src/models/IndexTagRequest.ts +3 -3
- package/src/models/PreviewAutomationRulesProductCategoryRequest.ts +1 -1
- package/src/models/StoreAssetForAssetableRequest.ts +1 -1
- package/src/models/StoreAttributeRequest.ts +1 -1
- package/src/models/StoreOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequest.ts +1 -1
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +2 -2
- package/src/models/StoreTagRequest.ts +1 -1
- package/src/models/UpdateAttributeRequest.ts +1 -1
- package/src/models/UpdateOverlayTemplateAssetRequest.ts +1 -1
- package/src/models/UpdateProductCategoryRequest.ts +1 -1
- package/src/models/UpdateSiteRequest.ts +1 -1
- package/src/models/UpdateTagRequest.ts +1 -1
package/dist/apis/DocumentApi.js
CHANGED
|
@@ -75,31 +75,44 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function DocumentApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
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.AttachDocumentablesDocumentRequestToJSON)(requestParameters['attachDocumentablesDocumentRequest']),
|
|
99
|
+
}];
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
78
103
|
/**
|
|
79
104
|
* Auto-generated: attachDocumentablesDocument
|
|
80
105
|
*/
|
|
81
106
|
DocumentApi.prototype.attachDocumentablesDocumentRaw = function (requestParameters, initOverrides) {
|
|
82
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
108
|
+
var requestOptions, response;
|
|
84
109
|
return __generator(this, function (_a) {
|
|
85
110
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
if (requestParameters['document'] == null) {
|
|
88
|
-
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling attachDocumentablesDocument().');
|
|
89
|
-
}
|
|
90
|
-
queryParameters = {};
|
|
91
|
-
headerParameters = {};
|
|
92
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
93
|
-
urlPath = "/admin-api/document/{document}/attach-documentables";
|
|
94
|
-
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
95
|
-
return [4 /*yield*/, this.request({
|
|
96
|
-
path: urlPath,
|
|
97
|
-
method: 'POST',
|
|
98
|
-
headers: headerParameters,
|
|
99
|
-
query: queryParameters,
|
|
100
|
-
body: (0, index_1.AttachDocumentablesDocumentRequestToJSON)(requestParameters['attachDocumentablesDocumentRequest']),
|
|
101
|
-
}, initOverrides)];
|
|
111
|
+
case 0: return [4 /*yield*/, this.attachDocumentablesDocumentRequestOpts(requestParameters)];
|
|
102
112
|
case 1:
|
|
113
|
+
requestOptions = _a.sent();
|
|
114
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
115
|
+
case 2:
|
|
103
116
|
response = _a.sent();
|
|
104
117
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
105
118
|
}
|
|
@@ -123,29 +136,42 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
123
136
|
});
|
|
124
137
|
});
|
|
125
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
|
+
};
|
|
126
162
|
/**
|
|
127
163
|
* Auto-generated: destroyDocument
|
|
128
164
|
*/
|
|
129
165
|
DocumentApi.prototype.destroyDocumentRaw = function (requestParameters, initOverrides) {
|
|
130
166
|
return __awaiter(this, void 0, void 0, function () {
|
|
131
|
-
var
|
|
167
|
+
var requestOptions, response;
|
|
132
168
|
return __generator(this, function (_a) {
|
|
133
169
|
switch (_a.label) {
|
|
134
|
-
case 0:
|
|
135
|
-
if (requestParameters['document'] == null) {
|
|
136
|
-
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling destroyDocument().');
|
|
137
|
-
}
|
|
138
|
-
queryParameters = {};
|
|
139
|
-
headerParameters = {};
|
|
140
|
-
urlPath = "/admin-api/document/{document}/delete";
|
|
141
|
-
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
142
|
-
return [4 /*yield*/, this.request({
|
|
143
|
-
path: urlPath,
|
|
144
|
-
method: 'DELETE',
|
|
145
|
-
headers: headerParameters,
|
|
146
|
-
query: queryParameters,
|
|
147
|
-
}, initOverrides)];
|
|
170
|
+
case 0: return [4 /*yield*/, this.destroyDocumentRequestOpts(requestParameters)];
|
|
148
171
|
case 1:
|
|
172
|
+
requestOptions = _a.sent();
|
|
173
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
174
|
+
case 2:
|
|
149
175
|
response = _a.sent();
|
|
150
176
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
151
177
|
}
|
|
@@ -169,31 +195,44 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
169
195
|
});
|
|
170
196
|
});
|
|
171
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.DetachDocumentablesDocumentRequestToJSON)(requestParameters['detachDocumentablesDocumentRequest']),
|
|
219
|
+
}];
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
172
223
|
/**
|
|
173
224
|
* Auto-generated: detachDocumentablesDocument
|
|
174
225
|
*/
|
|
175
226
|
DocumentApi.prototype.detachDocumentablesDocumentRaw = function (requestParameters, initOverrides) {
|
|
176
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
177
|
-
var
|
|
228
|
+
var requestOptions, response;
|
|
178
229
|
return __generator(this, function (_a) {
|
|
179
230
|
switch (_a.label) {
|
|
180
|
-
case 0:
|
|
181
|
-
if (requestParameters['document'] == null) {
|
|
182
|
-
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling detachDocumentablesDocument().');
|
|
183
|
-
}
|
|
184
|
-
queryParameters = {};
|
|
185
|
-
headerParameters = {};
|
|
186
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
187
|
-
urlPath = "/admin-api/document/{document}/detach-documentables";
|
|
188
|
-
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
189
|
-
return [4 /*yield*/, this.request({
|
|
190
|
-
path: urlPath,
|
|
191
|
-
method: 'POST',
|
|
192
|
-
headers: headerParameters,
|
|
193
|
-
query: queryParameters,
|
|
194
|
-
body: (0, index_1.DetachDocumentablesDocumentRequestToJSON)(requestParameters['detachDocumentablesDocumentRequest']),
|
|
195
|
-
}, initOverrides)];
|
|
231
|
+
case 0: return [4 /*yield*/, this.detachDocumentablesDocumentRequestOpts(requestParameters)];
|
|
196
232
|
case 1:
|
|
233
|
+
requestOptions = _a.sent();
|
|
234
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
235
|
+
case 2:
|
|
197
236
|
response = _a.sent();
|
|
198
237
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
199
238
|
}
|
|
@@ -217,27 +256,40 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
217
256
|
});
|
|
218
257
|
});
|
|
219
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.GetAllDocumentRequestToJSON)(requestParameters['getAllDocumentRequest']),
|
|
276
|
+
}];
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
};
|
|
220
280
|
/**
|
|
221
281
|
* Auto-generated: getAllDocument
|
|
222
282
|
*/
|
|
223
283
|
DocumentApi.prototype.getAllDocumentRaw = function (requestParameters, initOverrides) {
|
|
224
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
-
var
|
|
285
|
+
var requestOptions, response;
|
|
226
286
|
return __generator(this, function (_a) {
|
|
227
287
|
switch (_a.label) {
|
|
228
|
-
case 0:
|
|
229
|
-
queryParameters = {};
|
|
230
|
-
headerParameters = {};
|
|
231
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
232
|
-
urlPath = "/admin-api/document/all";
|
|
233
|
-
return [4 /*yield*/, this.request({
|
|
234
|
-
path: urlPath,
|
|
235
|
-
method: 'POST',
|
|
236
|
-
headers: headerParameters,
|
|
237
|
-
query: queryParameters,
|
|
238
|
-
body: (0, index_1.GetAllDocumentRequestToJSON)(requestParameters['getAllDocumentRequest']),
|
|
239
|
-
}, initOverrides)];
|
|
288
|
+
case 0: return [4 /*yield*/, this.getAllDocumentRequestOpts(requestParameters)];
|
|
240
289
|
case 1:
|
|
290
|
+
requestOptions = _a.sent();
|
|
291
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
292
|
+
case 2:
|
|
241
293
|
response = _a.sent();
|
|
242
294
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceArrayResponseFromJSON)(jsonValue); })];
|
|
243
295
|
}
|
|
@@ -262,27 +314,40 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
262
314
|
});
|
|
263
315
|
});
|
|
264
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.IndexDocumentRequestToJSON)(requestParameters['indexDocumentRequest']),
|
|
334
|
+
}];
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
};
|
|
265
338
|
/**
|
|
266
339
|
* Auto-generated: indexDocument
|
|
267
340
|
*/
|
|
268
341
|
DocumentApi.prototype.indexDocumentRaw = function (requestParameters, initOverrides) {
|
|
269
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
270
|
-
var
|
|
343
|
+
var requestOptions, response;
|
|
271
344
|
return __generator(this, function (_a) {
|
|
272
345
|
switch (_a.label) {
|
|
273
|
-
case 0:
|
|
274
|
-
queryParameters = {};
|
|
275
|
-
headerParameters = {};
|
|
276
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
277
|
-
urlPath = "/admin-api/document/list";
|
|
278
|
-
return [4 /*yield*/, this.request({
|
|
279
|
-
path: urlPath,
|
|
280
|
-
method: 'POST',
|
|
281
|
-
headers: headerParameters,
|
|
282
|
-
query: queryParameters,
|
|
283
|
-
body: (0, index_1.IndexDocumentRequestToJSON)(requestParameters['indexDocumentRequest']),
|
|
284
|
-
}, initOverrides)];
|
|
346
|
+
case 0: return [4 /*yield*/, this.indexDocumentRequestOpts(requestParameters)];
|
|
285
347
|
case 1:
|
|
348
|
+
requestOptions = _a.sent();
|
|
349
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
350
|
+
case 2:
|
|
286
351
|
response = _a.sent();
|
|
287
352
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedDocumentResourceResponseFromJSON)(jsonValue); })];
|
|
288
353
|
}
|
|
@@ -307,29 +372,42 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
307
372
|
});
|
|
308
373
|
});
|
|
309
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
|
+
};
|
|
310
398
|
/**
|
|
311
399
|
* Auto-generated: showDocument
|
|
312
400
|
*/
|
|
313
401
|
DocumentApi.prototype.showDocumentRaw = function (requestParameters, initOverrides) {
|
|
314
402
|
return __awaiter(this, void 0, void 0, function () {
|
|
315
|
-
var
|
|
403
|
+
var requestOptions, response;
|
|
316
404
|
return __generator(this, function (_a) {
|
|
317
405
|
switch (_a.label) {
|
|
318
|
-
case 0:
|
|
319
|
-
if (requestParameters['document'] == null) {
|
|
320
|
-
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling showDocument().');
|
|
321
|
-
}
|
|
322
|
-
queryParameters = {};
|
|
323
|
-
headerParameters = {};
|
|
324
|
-
urlPath = "/admin-api/document/{document}";
|
|
325
|
-
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
326
|
-
return [4 /*yield*/, this.request({
|
|
327
|
-
path: urlPath,
|
|
328
|
-
method: 'GET',
|
|
329
|
-
headers: headerParameters,
|
|
330
|
-
query: queryParameters,
|
|
331
|
-
}, initOverrides)];
|
|
406
|
+
case 0: return [4 /*yield*/, this.showDocumentRequestOpts(requestParameters)];
|
|
332
407
|
case 1:
|
|
408
|
+
requestOptions = _a.sent();
|
|
409
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
410
|
+
case 2:
|
|
333
411
|
response = _a.sent();
|
|
334
412
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
335
413
|
}
|
|
@@ -353,27 +431,40 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
353
431
|
});
|
|
354
432
|
});
|
|
355
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.StoreDocumentRequestToJSON)(requestParameters['storeDocumentRequest']),
|
|
451
|
+
}];
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
};
|
|
356
455
|
/**
|
|
357
456
|
* Auto-generated: storeDocument
|
|
358
457
|
*/
|
|
359
458
|
DocumentApi.prototype.storeDocumentRaw = function (requestParameters, initOverrides) {
|
|
360
459
|
return __awaiter(this, void 0, void 0, function () {
|
|
361
|
-
var
|
|
460
|
+
var requestOptions, response;
|
|
362
461
|
return __generator(this, function (_a) {
|
|
363
462
|
switch (_a.label) {
|
|
364
|
-
case 0:
|
|
365
|
-
queryParameters = {};
|
|
366
|
-
headerParameters = {};
|
|
367
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
368
|
-
urlPath = "/admin-api/document/create";
|
|
369
|
-
return [4 /*yield*/, this.request({
|
|
370
|
-
path: urlPath,
|
|
371
|
-
method: 'POST',
|
|
372
|
-
headers: headerParameters,
|
|
373
|
-
query: queryParameters,
|
|
374
|
-
body: (0, index_1.StoreDocumentRequestToJSON)(requestParameters['storeDocumentRequest']),
|
|
375
|
-
}, initOverrides)];
|
|
463
|
+
case 0: return [4 /*yield*/, this.storeDocumentRequestOpts(requestParameters)];
|
|
376
464
|
case 1:
|
|
465
|
+
requestOptions = _a.sent();
|
|
466
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
467
|
+
case 2:
|
|
377
468
|
response = _a.sent();
|
|
378
469
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
379
470
|
}
|
|
@@ -398,27 +489,40 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
398
489
|
});
|
|
399
490
|
});
|
|
400
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.StoreDocumentFileRequestToJSON)(requestParameters['storeDocumentFileRequest']),
|
|
509
|
+
}];
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
};
|
|
401
513
|
/**
|
|
402
514
|
* Auto-generated: storeDocumentFile
|
|
403
515
|
*/
|
|
404
516
|
DocumentApi.prototype.storeDocumentFileRaw = function (requestParameters, initOverrides) {
|
|
405
517
|
return __awaiter(this, void 0, void 0, function () {
|
|
406
|
-
var
|
|
518
|
+
var requestOptions, response;
|
|
407
519
|
return __generator(this, function (_a) {
|
|
408
520
|
switch (_a.label) {
|
|
409
|
-
case 0:
|
|
410
|
-
queryParameters = {};
|
|
411
|
-
headerParameters = {};
|
|
412
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
413
|
-
urlPath = "/admin-api/document/files";
|
|
414
|
-
return [4 /*yield*/, this.request({
|
|
415
|
-
path: urlPath,
|
|
416
|
-
method: 'POST',
|
|
417
|
-
headers: headerParameters,
|
|
418
|
-
query: queryParameters,
|
|
419
|
-
body: (0, index_1.StoreDocumentFileRequestToJSON)(requestParameters['storeDocumentFileRequest']),
|
|
420
|
-
}, initOverrides)];
|
|
521
|
+
case 0: return [4 /*yield*/, this.storeDocumentFileRequestOpts(requestParameters)];
|
|
421
522
|
case 1:
|
|
523
|
+
requestOptions = _a.sent();
|
|
524
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
525
|
+
case 2:
|
|
422
526
|
response = _a.sent();
|
|
423
527
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentFileForUploadResourceFromJSON)(jsonValue); })];
|
|
424
528
|
}
|
|
@@ -443,31 +547,44 @@ var DocumentApi = /** @class */ (function (_super) {
|
|
|
443
547
|
});
|
|
444
548
|
});
|
|
445
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
|
+
};
|
|
446
575
|
/**
|
|
447
576
|
* Auto-generated: updateDocument
|
|
448
577
|
*/
|
|
449
578
|
DocumentApi.prototype.updateDocumentRaw = function (requestParameters, initOverrides) {
|
|
450
579
|
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
-
var
|
|
580
|
+
var requestOptions, response;
|
|
452
581
|
return __generator(this, function (_a) {
|
|
453
582
|
switch (_a.label) {
|
|
454
|
-
case 0:
|
|
455
|
-
if (requestParameters['document'] == null) {
|
|
456
|
-
throw new runtime.RequiredError('document', 'Required parameter "document" was null or undefined when calling updateDocument().');
|
|
457
|
-
}
|
|
458
|
-
queryParameters = {};
|
|
459
|
-
headerParameters = {};
|
|
460
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
461
|
-
urlPath = "/admin-api/document/{document}/update";
|
|
462
|
-
urlPath = urlPath.replace("{".concat("document", "}"), encodeURIComponent(String(requestParameters['document'])));
|
|
463
|
-
return [4 /*yield*/, this.request({
|
|
464
|
-
path: urlPath,
|
|
465
|
-
method: 'PUT',
|
|
466
|
-
headers: headerParameters,
|
|
467
|
-
query: queryParameters,
|
|
468
|
-
body: (0, index_1.UpdateDocumentRequestToJSON)(requestParameters['updateDocumentRequest']),
|
|
469
|
-
}, initOverrides)];
|
|
583
|
+
case 0: return [4 /*yield*/, this.updateDocumentRequestOpts(requestParameters)];
|
|
470
584
|
case 1:
|
|
585
|
+
requestOptions = _a.sent();
|
|
586
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
587
|
+
case 2:
|
|
471
588
|
response = _a.sent();
|
|
472
589
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DocumentResourceFromJSON)(jsonValue); })];
|
|
473
590
|
}
|
|
@@ -18,6 +18,10 @@ export interface IndexExternalApiLogOperationRequest {
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
export declare class ExternalApiLogApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for indexExternalApiLog without sending the request
|
|
23
|
+
*/
|
|
24
|
+
indexExternalApiLogRequestOpts(requestParameters: IndexExternalApiLogOperationRequest): Promise<runtime.RequestOpts>;
|
|
21
25
|
/**
|
|
22
26
|
* Auto-generated: indexExternalApiLog
|
|
23
27
|
*/
|
|
@@ -75,27 +75,40 @@ var ExternalApiLogApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function ExternalApiLogApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for indexExternalApiLog without sending the request
|
|
80
|
+
*/
|
|
81
|
+
ExternalApiLogApi.prototype.indexExternalApiLogRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
urlPath = "/admin-api/external-api-log/list";
|
|
89
|
+
return [2 /*return*/, {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, index_1.IndexExternalApiLogRequestToJSON)(requestParameters['indexExternalApiLogRequest']),
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
78
99
|
/**
|
|
79
100
|
* Auto-generated: indexExternalApiLog
|
|
80
101
|
*/
|
|
81
102
|
ExternalApiLogApi.prototype.indexExternalApiLogRaw = function (requestParameters, initOverrides) {
|
|
82
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
104
|
+
var requestOptions, response;
|
|
84
105
|
return __generator(this, function (_a) {
|
|
85
106
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/admin-api/external-api-log/list";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.IndexExternalApiLogRequestToJSON)(requestParameters['indexExternalApiLogRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
107
|
+
case 0: return [4 /*yield*/, this.indexExternalApiLogRequestOpts(requestParameters)];
|
|
98
108
|
case 1:
|
|
109
|
+
requestOptions = _a.sent();
|
|
110
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
+
case 2:
|
|
99
112
|
response = _a.sent();
|
|
100
113
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedExternalApiLogResourceResponseFromJSON)(jsonValue); })];
|
|
101
114
|
}
|
|
@@ -18,6 +18,10 @@ export interface GetAllGoogleCategoryOperationRequest {
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
export declare class GoogleCategoryApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getAllGoogleCategory without sending the request
|
|
23
|
+
*/
|
|
24
|
+
getAllGoogleCategoryRequestOpts(requestParameters: GetAllGoogleCategoryOperationRequest): Promise<runtime.RequestOpts>;
|
|
21
25
|
/**
|
|
22
26
|
* Auto-generated: getAllGoogleCategory
|
|
23
27
|
*/
|
|
@@ -75,27 +75,40 @@ var GoogleCategoryApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function GoogleCategoryApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Creates request options for getAllGoogleCategory without sending the request
|
|
80
|
+
*/
|
|
81
|
+
GoogleCategoryApi.prototype.getAllGoogleCategoryRequestOpts = function (requestParameters) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
+
var queryParameters, headerParameters, urlPath;
|
|
84
|
+
return __generator(this, function (_a) {
|
|
85
|
+
queryParameters = {};
|
|
86
|
+
headerParameters = {};
|
|
87
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
88
|
+
urlPath = "/admin-api/google-category/all";
|
|
89
|
+
return [2 /*return*/, {
|
|
90
|
+
path: urlPath,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
headers: headerParameters,
|
|
93
|
+
query: queryParameters,
|
|
94
|
+
body: (0, index_1.GetAllGoogleCategoryRequestToJSON)(requestParameters['getAllGoogleCategoryRequest']),
|
|
95
|
+
}];
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
};
|
|
78
99
|
/**
|
|
79
100
|
* Auto-generated: getAllGoogleCategory
|
|
80
101
|
*/
|
|
81
102
|
GoogleCategoryApi.prototype.getAllGoogleCategoryRaw = function (requestParameters, initOverrides) {
|
|
82
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
104
|
+
var requestOptions, response;
|
|
84
105
|
return __generator(this, function (_a) {
|
|
85
106
|
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/admin-api/google-category/all";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.GetAllGoogleCategoryRequestToJSON)(requestParameters['getAllGoogleCategoryRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
107
|
+
case 0: return [4 /*yield*/, this.getAllGoogleCategoryRequestOpts(requestParameters)];
|
|
98
108
|
case 1:
|
|
109
|
+
requestOptions = _a.sent();
|
|
110
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
111
|
+
case 2:
|
|
99
112
|
response = _a.sent();
|
|
100
113
|
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GoogleCategoryResourceArrayResponseFromJSON)(jsonValue); })];
|
|
101
114
|
}
|