@aurigma/ng-design-atoms-api-client 2.18.1 → 2.19.1
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/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +49 -7
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +50 -8
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +49 -7
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +42 -14
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDMvX3dvcmsvNC9zL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXNCLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1RCxPQ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dG9tc0FwaUNsaWVudC5BUElfQkFTRV9VUkwsXG4gICAgICAgICAgdXNlVmFsdWU6IGFwaVVybFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQXBpQ2xpZW50Q29uZmlndXJhdGlvbixcbiAgICAgICAgICB1c2VGYWN0b3J5OiBDcmVhdGVBcGlDbGllbnRDb25maWd1cmF0aW9uLmJpbmQodGhpcywgdG9rZW4gLCBhcGlVcmwsIGFwaUtleSlcbiAgICAgICAgfSxcbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0=
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/design-atoms-api.module';
|
|
5
5
|
export * from './lib/design-atoms-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wMy9fd29yay80L3MvQXVyaWdtYS5EZXNpZ25BdG9tc0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2xpZW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS1jbGllbnQnO1xuIl19
|
|
@@ -2031,17 +2031,23 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2031
2031
|
/**
|
|
2032
2032
|
* Patches product (design model) in design file
|
|
2033
2033
|
* @param id Design identifier
|
|
2034
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2035
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2034
2036
|
* @param tenantId (optional) Tenant identifier
|
|
2035
2037
|
* @param patchType (optional)
|
|
2036
2038
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
2037
2039
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
2038
2040
|
* @return Success
|
|
2039
2041
|
*/
|
|
2040
|
-
patchProduct(id, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
|
|
2042
|
+
patchProduct(id, privateStorage, privateStorageOwner, tenantId, patchType, replaceImageItemFileInfo_itemName, replaceImageItemFileInfo_sourceFile) {
|
|
2041
2043
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/model?";
|
|
2042
2044
|
if (id === undefined || id === null)
|
|
2043
2045
|
throw new Error("The parameter 'id' must be defined.");
|
|
2044
2046
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2047
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2048
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2049
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2050
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2045
2051
|
if (tenantId === null)
|
|
2046
2052
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2047
2053
|
else if (tenantId !== undefined)
|
|
@@ -2121,14 +2127,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2121
2127
|
/**
|
|
2122
2128
|
* Loads data schema from design file taken from storage
|
|
2123
2129
|
* @param id Design identifier
|
|
2130
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2131
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2124
2132
|
* @param tenantId (optional) Tenant identifier
|
|
2125
2133
|
* @return Success
|
|
2126
2134
|
*/
|
|
2127
|
-
loadDataSchema(id, tenantId) {
|
|
2135
|
+
loadDataSchema(id, privateStorage, privateStorageOwner, tenantId) {
|
|
2128
2136
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/schema?";
|
|
2129
2137
|
if (id === undefined || id === null)
|
|
2130
2138
|
throw new Error("The parameter 'id' must be defined.");
|
|
2131
2139
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2140
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2141
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2142
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2143
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2132
2144
|
if (tenantId === null)
|
|
2133
2145
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2134
2146
|
else if (tenantId !== undefined)
|
|
@@ -2208,14 +2220,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2208
2220
|
/**
|
|
2209
2221
|
* Gets variable items information for design file taken from storage
|
|
2210
2222
|
* @param id Design identifier
|
|
2223
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2224
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2211
2225
|
* @param tenantId (optional) Tenant identifier
|
|
2212
2226
|
* @return Success
|
|
2213
2227
|
*/
|
|
2214
|
-
getVariables(id, tenantId) {
|
|
2228
|
+
getVariables(id, privateStorage, privateStorageOwner, tenantId) {
|
|
2215
2229
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
|
|
2216
2230
|
if (id === undefined || id === null)
|
|
2217
2231
|
throw new Error("The parameter 'id' must be defined.");
|
|
2218
2232
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2233
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2234
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2235
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2236
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2219
2237
|
if (tenantId === null)
|
|
2220
2238
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2221
2239
|
else if (tenantId !== undefined)
|
|
@@ -2289,15 +2307,21 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2289
2307
|
/**
|
|
2290
2308
|
* Sets variable items values for design file taken from storage
|
|
2291
2309
|
* @param id Design identifier
|
|
2310
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2311
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2292
2312
|
* @param tenantId (optional) Tenant identifier
|
|
2293
2313
|
* @param body (optional) Design variable values
|
|
2294
2314
|
* @return Success
|
|
2295
2315
|
*/
|
|
2296
|
-
setVariables(id, tenantId, body) {
|
|
2316
|
+
setVariables(id, privateStorage, privateStorageOwner, tenantId, body) {
|
|
2297
2317
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/variables?";
|
|
2298
2318
|
if (id === undefined || id === null)
|
|
2299
2319
|
throw new Error("The parameter 'id' must be defined.");
|
|
2300
2320
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2321
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2322
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2323
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2324
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2301
2325
|
if (tenantId === null)
|
|
2302
2326
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2303
2327
|
else if (tenantId !== undefined)
|
|
@@ -2381,14 +2405,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2381
2405
|
/**
|
|
2382
2406
|
* Loads variable data printing information from design file taken from storage
|
|
2383
2407
|
* @param id Design identifier
|
|
2408
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2409
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2384
2410
|
* @param tenantId (optional) Tenant identifier
|
|
2385
2411
|
* @return Success
|
|
2386
2412
|
*/
|
|
2387
|
-
loadVdpData(id, tenantId) {
|
|
2413
|
+
loadVdpData(id, privateStorage, privateStorageOwner, tenantId) {
|
|
2388
2414
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdpData?";
|
|
2389
2415
|
if (id === undefined || id === null)
|
|
2390
2416
|
throw new Error("The parameter 'id' must be defined.");
|
|
2391
2417
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2418
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2419
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2420
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2421
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2392
2422
|
if (tenantId === null)
|
|
2393
2423
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2394
2424
|
else if (tenantId !== undefined)
|
|
@@ -2469,15 +2499,21 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2469
2499
|
/**
|
|
2470
2500
|
* Saves variable data printing information to design file and updates design in storage.
|
|
2471
2501
|
* @param id Design identifier
|
|
2502
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2503
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2472
2504
|
* @param tenantId (optional) Tenant identifier
|
|
2473
2505
|
* @param body (optional) Serialized vdp data
|
|
2474
2506
|
* @return Success
|
|
2475
2507
|
*/
|
|
2476
|
-
saveVdpData(id, tenantId, body) {
|
|
2508
|
+
saveVdpData(id, privateStorage, privateStorageOwner, tenantId, body) {
|
|
2477
2509
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdpData?";
|
|
2478
2510
|
if (id === undefined || id === null)
|
|
2479
2511
|
throw new Error("The parameter 'id' must be defined.");
|
|
2480
2512
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2513
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2514
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2515
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2516
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2481
2517
|
if (tenantId === null)
|
|
2482
2518
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2483
2519
|
else if (tenantId !== undefined)
|
|
@@ -2551,14 +2587,20 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
|
|
|
2551
2587
|
/**
|
|
2552
2588
|
* Deletes variable data printing inforamtion from design file and updates design in storage.
|
|
2553
2589
|
* @param id Design identifier
|
|
2590
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
2591
|
+
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
2554
2592
|
* @param tenantId (optional) Tenant identifier
|
|
2555
2593
|
* @return Success
|
|
2556
2594
|
*/
|
|
2557
|
-
deleteVdpData(id, tenantId) {
|
|
2595
|
+
deleteVdpData(id, privateStorage, privateStorageOwner, tenantId) {
|
|
2558
2596
|
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/vdpData?";
|
|
2559
2597
|
if (id === undefined || id === null)
|
|
2560
2598
|
throw new Error("The parameter 'id' must be defined.");
|
|
2561
2599
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2600
|
+
if (privateStorage !== undefined && privateStorage !== null)
|
|
2601
|
+
url_ += "privateStorage=" + encodeURIComponent("" + privateStorage) + "&";
|
|
2602
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
2603
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
2562
2604
|
if (tenantId === null)
|
|
2563
2605
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2564
2606
|
else if (tenantId !== undefined)
|