@digital8/lighting-illusions-ts-sdk 0.0.1455 → 0.0.1457
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 +40 -74
- package/README.md +25 -56
- package/dist/apis/ProductRegistrationApi.d.ts +79 -0
- package/dist/apis/{LabelApi.js → ProductRegistrationApi.js} +57 -174
- package/dist/apis/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- package/dist/apis/index.d.ts +1 -2
- package/dist/apis/index.js +1 -2
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +7 -9
- package/dist/models/GetAllProductRegistrationRequest.d.ts +81 -0
- package/dist/models/{GetAllStoreRequest.js → GetAllProductRegistrationRequest.js} +20 -24
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRegistrationRequest.d.ts +124 -0
- package/dist/models/IndexProductRegistrationRequest.js +95 -0
- package/dist/models/LabelResource.d.ts +4 -23
- package/dist/models/LabelResource.js +8 -19
- package/dist/models/ListAssetsProductRegistrationRequest.d.ts +103 -0
- package/dist/models/{IndexLabelRequest.js → ListAssetsProductRegistrationRequest.js} +22 -31
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationAssetResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRegistrationResourceResponse.js +57 -0
- package/dist/models/ProductRegistrationAssetResource.d.ts +45 -0
- package/dist/models/ProductRegistrationAssetResource.js +58 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationAssetResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationAssetType.d.ts +25 -0
- package/dist/models/ProductRegistrationAssetType.js +51 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.d.ts +44 -0
- package/dist/models/ProductRegistrationCustomerLiteResource.js +57 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationCustomerResource.d.ts +50 -0
- package/dist/models/ProductRegistrationCustomerResource.js +61 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationCustomerResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationListResource.d.ts +51 -0
- package/dist/models/ProductRegistrationListResource.js +60 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationLiteResource.d.ts +38 -0
- package/dist/models/ProductRegistrationLiteResource.js +53 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRegistrationResource.d.ts +76 -0
- package/dist/models/ProductRegistrationResource.js +75 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRegistrationResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +19 -35
- package/dist/models/index.js +19 -35
- package/docs/{GetAllStoreRequest.md → GetAllProductRegistrationRequest.md} +4 -8
- package/docs/{IndexStoreRequest.md → IndexProductRegistrationRequest.md} +12 -8
- package/docs/LabelResource.md +6 -12
- package/docs/{IndexLabelRequest.md → ListAssetsProductRegistrationRequest.md} +8 -6
- package/docs/PaginatedProductRegistrationAssetResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRegistrationListResourceResponse.md} +5 -5
- package/docs/{PaginatedStoreListResourceResponse.md → PaginatedProductRegistrationResourceResponse.md} +5 -5
- package/docs/ProductRegistrationApi.md +275 -0
- package/docs/{LabelLiteResource.md → ProductRegistrationAssetResource.md} +8 -12
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRegistrationAssetResourceArrayResponse.md} +5 -5
- package/docs/{DetachStoresSupplierRequest.md → ProductRegistrationAssetType.md} +4 -6
- package/docs/{StoreLiteResource.md → ProductRegistrationCustomerLiteResource.md} +6 -6
- package/docs/ProductRegistrationCustomerLiteResourceArrayResponse.md +34 -0
- package/docs/{UpdateStoreRequestSpecialDatesInner.md → ProductRegistrationCustomerResource.md} +8 -10
- package/docs/ProductRegistrationCustomerResourceArrayResponse.md +34 -0
- package/docs/{StoreSpecialDateResource.md → ProductRegistrationListResource.md} +10 -16
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRegistrationListResourceArrayResponse.md} +5 -5
- package/docs/{DetachSuppliersStoreRequest.md → ProductRegistrationLiteResource.md} +8 -6
- package/docs/{AddressFrontendResourceArrayResponse.md → ProductRegistrationLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRegistrationResource.md +48 -0
- package/docs/{LabelListResourceArrayResponse.md → ProductRegistrationResourceArrayResponse.md} +5 -5
- package/docs/SupplierApi.md +0 -138
- package/package.json +1 -1
- package/src/apis/ProductRegistrationApi.ts +238 -0
- package/src/apis/SupplierApi.ts +0 -112
- package/src/apis/index.ts +1 -2
- package/src/models/AddressResource.ts +8 -9
- package/src/models/GetAllProductRegistrationRequest.ts +128 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRegistrationRequest.ts +184 -0
- package/src/models/LabelResource.ts +12 -46
- package/src/models/ListAssetsProductRegistrationRequest.ts +158 -0
- package/src/models/PaginatedProductRegistrationAssetResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRegistrationResourceResponse.ts +90 -0
- package/src/models/ProductRegistrationAssetResource.ts +91 -0
- package/src/models/ProductRegistrationAssetResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationAssetType.ts +53 -0
- package/src/models/ProductRegistrationCustomerLiteResource.ts +83 -0
- package/src/models/ProductRegistrationCustomerLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationCustomerResource.ts +92 -0
- package/src/models/ProductRegistrationCustomerResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationListResource.ts +99 -0
- package/src/models/ProductRegistrationListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationLiteResource.ts +74 -0
- package/src/models/ProductRegistrationLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRegistrationResource.ts +141 -0
- package/src/models/ProductRegistrationResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +19 -35
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/StoreApi.d.ts +0 -190
- package/dist/apis/StoreApi.js +0 -744
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/IndexLabelRequest.d.ts +0 -109
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/IndexStoreRequest.js +0 -85
- package/dist/models/LabelListResource.d.ts +0 -75
- package/dist/models/LabelListResource.js +0 -74
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -89
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -102
- package/dist/models/StoreResource.js +0 -95
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -73
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -68
- package/dist/models/StoreSpecialDateResource.js +0 -73
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -94
- package/dist/models/StoreStoreRequest.js +0 -85
- package/dist/models/StoreStoreRequestAddress.d.ts +0 -68
- package/dist/models/StoreStoreRequestAddress.js +0 -73
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -62
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -61
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -62
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -61
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateStoreRequest.d.ts +0 -94
- package/dist/models/UpdateStoreRequest.js +0 -85
- package/dist/models/UpdateStoreRequestSpecialDatesInner.d.ts +0 -56
- package/dist/models/UpdateStoreRequestSpecialDatesInner.js +0 -57
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AttachStoresSupplierRequest.md +0 -34
- package/docs/AttachSuppliersStoreRequest.md +0 -34
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -48
- package/docs/StoreApi.md +0 -755
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreFrontendResourceArrayResponse.md +0 -34
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreListResourceArrayResponse.md +0 -34
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreSpecialDateFrontendResource.md +0 -46
- package/docs/StoreSpecialDateResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -54
- package/docs/StoreStoreRequestAddress.md +0 -46
- package/docs/StoreStoreRequestSpecialDatesInner.md +0 -44
- package/docs/StoreStoreSpecialDateRequest.md +0 -44
- package/docs/UpdateLabelRequest.md +0 -48
- package/docs/UpdateStoreRequest.md +0 -54
- package/src/apis/LabelApi.ts +0 -328
- package/src/apis/StoreApi.ts +0 -625
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexLabelRequest.ts +0 -163
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/LabelListResource.ts +0 -134
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -162
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -192
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -119
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -119
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -167
- package/src/models/StoreStoreRequestAddress.ts +0 -119
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -106
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -106
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateStoreRequest.ts +0 -167
- package/src/models/UpdateStoreRequestSpecialDatesInner.ts +0 -97
|
@@ -64,126 +64,67 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ProductRegistrationApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var ProductRegistrationApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ProductRegistrationApi, _super);
|
|
75
|
+
function ProductRegistrationApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Creates request options for
|
|
79
|
+
* Creates request options for getAllProductRegistration without sending the request
|
|
80
80
|
*/
|
|
81
|
-
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
if (requestParameters['label'] == null) {
|
|
86
|
-
throw new runtime.RequiredError('label', 'Required parameter "label" was null or undefined when calling destroyLabel().');
|
|
87
|
-
}
|
|
88
|
-
queryParameters = {};
|
|
89
|
-
headerParameters = {};
|
|
90
|
-
urlPath = "/admin-api/label/{label}/delete";
|
|
91
|
-
urlPath = urlPath.replace("{".concat("label", "}"), encodeURIComponent(String(requestParameters['label'])));
|
|
92
|
-
return [2 /*return*/, {
|
|
93
|
-
path: urlPath,
|
|
94
|
-
method: 'DELETE',
|
|
95
|
-
headers: headerParameters,
|
|
96
|
-
query: queryParameters,
|
|
97
|
-
}];
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Auto-generated: destroyLabel
|
|
103
|
-
*/
|
|
104
|
-
LabelApi.prototype.destroyLabelRaw = function (requestParameters, initOverrides) {
|
|
105
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
-
var requestOptions, response;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0: return [4 /*yield*/, this.destroyLabelRequestOpts(requestParameters)];
|
|
110
|
-
case 1:
|
|
111
|
-
requestOptions = _a.sent();
|
|
112
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
113
|
-
case 2:
|
|
114
|
-
response = _a.sent();
|
|
115
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
/**
|
|
121
|
-
* Auto-generated: destroyLabel
|
|
122
|
-
*/
|
|
123
|
-
LabelApi.prototype.destroyLabel = function (requestParameters, initOverrides) {
|
|
124
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
125
|
-
var response;
|
|
126
|
-
return __generator(this, function (_a) {
|
|
127
|
-
switch (_a.label) {
|
|
128
|
-
case 0: return [4 /*yield*/, this.destroyLabelRaw(requestParameters, initOverrides)];
|
|
129
|
-
case 1:
|
|
130
|
-
response = _a.sent();
|
|
131
|
-
return [4 /*yield*/, response.value()];
|
|
132
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
});
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* Creates request options for getAllLabel without sending the request
|
|
139
|
-
*/
|
|
140
|
-
LabelApi.prototype.getAllLabelRequestOpts = function (requestParameters) {
|
|
81
|
+
ProductRegistrationApi.prototype.getAllProductRegistrationRequestOpts = function (requestParameters) {
|
|
141
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
142
83
|
var queryParameters, headerParameters, urlPath;
|
|
143
84
|
return __generator(this, function (_a) {
|
|
144
85
|
queryParameters = {};
|
|
145
86
|
headerParameters = {};
|
|
146
87
|
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
-
urlPath = "/admin-api/
|
|
88
|
+
urlPath = "/admin-api/product-registration/all";
|
|
148
89
|
return [2 /*return*/, {
|
|
149
90
|
path: urlPath,
|
|
150
91
|
method: 'POST',
|
|
151
92
|
headers: headerParameters,
|
|
152
93
|
query: queryParameters,
|
|
153
|
-
body: (0, index_1.
|
|
94
|
+
body: (0, index_1.GetAllProductRegistrationRequestToJSON)(requestParameters['getAllProductRegistrationRequest']),
|
|
154
95
|
}];
|
|
155
96
|
});
|
|
156
97
|
});
|
|
157
98
|
};
|
|
158
99
|
/**
|
|
159
|
-
* Auto-generated:
|
|
100
|
+
* Auto-generated: getAllProductRegistration
|
|
160
101
|
*/
|
|
161
|
-
|
|
102
|
+
ProductRegistrationApi.prototype.getAllProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
162
103
|
return __awaiter(this, void 0, void 0, function () {
|
|
163
104
|
var requestOptions, response;
|
|
164
105
|
return __generator(this, function (_a) {
|
|
165
106
|
switch (_a.label) {
|
|
166
|
-
case 0: return [4 /*yield*/, this.
|
|
107
|
+
case 0: return [4 /*yield*/, this.getAllProductRegistrationRequestOpts(requestParameters)];
|
|
167
108
|
case 1:
|
|
168
109
|
requestOptions = _a.sent();
|
|
169
110
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
170
111
|
case 2:
|
|
171
112
|
response = _a.sent();
|
|
172
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
113
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
173
114
|
}
|
|
174
115
|
});
|
|
175
116
|
});
|
|
176
117
|
};
|
|
177
118
|
/**
|
|
178
|
-
* Auto-generated:
|
|
119
|
+
* Auto-generated: getAllProductRegistration
|
|
179
120
|
*/
|
|
180
|
-
|
|
121
|
+
ProductRegistrationApi.prototype.getAllProductRegistration = function () {
|
|
181
122
|
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
182
123
|
var response;
|
|
183
124
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
184
125
|
return __generator(this, function (_a) {
|
|
185
126
|
switch (_a.label) {
|
|
186
|
-
case 0: return [4 /*yield*/, this.
|
|
127
|
+
case 0: return [4 /*yield*/, this.getAllProductRegistrationRaw(requestParameters, initOverrides)];
|
|
187
128
|
case 1:
|
|
188
129
|
response = _a.sent();
|
|
189
130
|
return [4 /*yield*/, response.value()];
|
|
@@ -193,55 +134,55 @@ var LabelApi = /** @class */ (function (_super) {
|
|
|
193
134
|
});
|
|
194
135
|
};
|
|
195
136
|
/**
|
|
196
|
-
* Creates request options for
|
|
137
|
+
* Creates request options for indexProductRegistration without sending the request
|
|
197
138
|
*/
|
|
198
|
-
|
|
139
|
+
ProductRegistrationApi.prototype.indexProductRegistrationRequestOpts = function (requestParameters) {
|
|
199
140
|
return __awaiter(this, void 0, void 0, function () {
|
|
200
141
|
var queryParameters, headerParameters, urlPath;
|
|
201
142
|
return __generator(this, function (_a) {
|
|
202
143
|
queryParameters = {};
|
|
203
144
|
headerParameters = {};
|
|
204
145
|
headerParameters['Content-Type'] = 'application/json';
|
|
205
|
-
urlPath = "/admin-api/
|
|
146
|
+
urlPath = "/admin-api/product-registration/list";
|
|
206
147
|
return [2 /*return*/, {
|
|
207
148
|
path: urlPath,
|
|
208
149
|
method: 'POST',
|
|
209
150
|
headers: headerParameters,
|
|
210
151
|
query: queryParameters,
|
|
211
|
-
body: (0, index_1.
|
|
152
|
+
body: (0, index_1.IndexProductRegistrationRequestToJSON)(requestParameters['indexProductRegistrationRequest']),
|
|
212
153
|
}];
|
|
213
154
|
});
|
|
214
155
|
});
|
|
215
156
|
};
|
|
216
157
|
/**
|
|
217
|
-
* Auto-generated:
|
|
158
|
+
* Auto-generated: indexProductRegistration
|
|
218
159
|
*/
|
|
219
|
-
|
|
160
|
+
ProductRegistrationApi.prototype.indexProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
220
161
|
return __awaiter(this, void 0, void 0, function () {
|
|
221
162
|
var requestOptions, response;
|
|
222
163
|
return __generator(this, function (_a) {
|
|
223
164
|
switch (_a.label) {
|
|
224
|
-
case 0: return [4 /*yield*/, this.
|
|
165
|
+
case 0: return [4 /*yield*/, this.indexProductRegistrationRequestOpts(requestParameters)];
|
|
225
166
|
case 1:
|
|
226
167
|
requestOptions = _a.sent();
|
|
227
168
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
228
169
|
case 2:
|
|
229
170
|
response = _a.sent();
|
|
230
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
171
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationListResourceResponseFromJSON)(jsonValue); })];
|
|
231
172
|
}
|
|
232
173
|
});
|
|
233
174
|
});
|
|
234
175
|
};
|
|
235
176
|
/**
|
|
236
|
-
* Auto-generated:
|
|
177
|
+
* Auto-generated: indexProductRegistration
|
|
237
178
|
*/
|
|
238
|
-
|
|
179
|
+
ProductRegistrationApi.prototype.indexProductRegistration = function () {
|
|
239
180
|
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
240
181
|
var response;
|
|
241
182
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
242
183
|
return __generator(this, function (_a) {
|
|
243
184
|
switch (_a.label) {
|
|
244
|
-
case 0: return [4 /*yield*/, this.
|
|
185
|
+
case 0: return [4 /*yield*/, this.indexProductRegistrationRaw(requestParameters, initOverrides)];
|
|
245
186
|
case 1:
|
|
246
187
|
response = _a.sent();
|
|
247
188
|
return [4 /*yield*/, response.value()];
|
|
@@ -251,114 +192,58 @@ var LabelApi = /** @class */ (function (_super) {
|
|
|
251
192
|
});
|
|
252
193
|
};
|
|
253
194
|
/**
|
|
254
|
-
* Creates request options for
|
|
195
|
+
* Creates request options for listAssetsProductRegistration without sending the request
|
|
255
196
|
*/
|
|
256
|
-
|
|
197
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistrationRequestOpts = function (requestParameters) {
|
|
257
198
|
return __awaiter(this, void 0, void 0, function () {
|
|
258
199
|
var queryParameters, headerParameters, urlPath;
|
|
259
200
|
return __generator(this, function (_a) {
|
|
260
|
-
if (requestParameters['
|
|
261
|
-
throw new runtime.RequiredError('
|
|
201
|
+
if (requestParameters['productRegistration'] == null) {
|
|
202
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling listAssetsProductRegistration().');
|
|
262
203
|
}
|
|
263
|
-
queryParameters = {};
|
|
264
|
-
headerParameters = {};
|
|
265
|
-
urlPath = "/admin-api/label/{label}";
|
|
266
|
-
urlPath = urlPath.replace("{".concat("label", "}"), encodeURIComponent(String(requestParameters['label'])));
|
|
267
|
-
return [2 /*return*/, {
|
|
268
|
-
path: urlPath,
|
|
269
|
-
method: 'GET',
|
|
270
|
-
headers: headerParameters,
|
|
271
|
-
query: queryParameters,
|
|
272
|
-
}];
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
};
|
|
276
|
-
/**
|
|
277
|
-
* Auto-generated: showLabel
|
|
278
|
-
*/
|
|
279
|
-
LabelApi.prototype.showLabelRaw = function (requestParameters, initOverrides) {
|
|
280
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
281
|
-
var requestOptions, response;
|
|
282
|
-
return __generator(this, function (_a) {
|
|
283
|
-
switch (_a.label) {
|
|
284
|
-
case 0: return [4 /*yield*/, this.showLabelRequestOpts(requestParameters)];
|
|
285
|
-
case 1:
|
|
286
|
-
requestOptions = _a.sent();
|
|
287
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
288
|
-
case 2:
|
|
289
|
-
response = _a.sent();
|
|
290
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.LabelResourceFromJSON)(jsonValue); })];
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* Auto-generated: showLabel
|
|
297
|
-
*/
|
|
298
|
-
LabelApi.prototype.showLabel = function (requestParameters, initOverrides) {
|
|
299
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
300
|
-
var response;
|
|
301
|
-
return __generator(this, function (_a) {
|
|
302
|
-
switch (_a.label) {
|
|
303
|
-
case 0: return [4 /*yield*/, this.showLabelRaw(requestParameters, initOverrides)];
|
|
304
|
-
case 1:
|
|
305
|
-
response = _a.sent();
|
|
306
|
-
return [4 /*yield*/, response.value()];
|
|
307
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* Creates request options for storeLabel without sending the request
|
|
314
|
-
*/
|
|
315
|
-
LabelApi.prototype.storeLabelRequestOpts = function (requestParameters) {
|
|
316
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
317
|
-
var queryParameters, headerParameters, urlPath;
|
|
318
|
-
return __generator(this, function (_a) {
|
|
319
204
|
queryParameters = {};
|
|
320
205
|
headerParameters = {};
|
|
321
206
|
headerParameters['Content-Type'] = 'application/json';
|
|
322
|
-
urlPath = "/admin-api/
|
|
207
|
+
urlPath = "/admin-api/product-registration/{productRegistration}/assets";
|
|
208
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
323
209
|
return [2 /*return*/, {
|
|
324
210
|
path: urlPath,
|
|
325
211
|
method: 'POST',
|
|
326
212
|
headers: headerParameters,
|
|
327
213
|
query: queryParameters,
|
|
328
|
-
body: (0, index_1.
|
|
214
|
+
body: (0, index_1.ListAssetsProductRegistrationRequestToJSON)(requestParameters['listAssetsProductRegistrationRequest']),
|
|
329
215
|
}];
|
|
330
216
|
});
|
|
331
217
|
});
|
|
332
218
|
};
|
|
333
219
|
/**
|
|
334
|
-
* Auto-generated:
|
|
220
|
+
* Auto-generated: listAssetsProductRegistration
|
|
335
221
|
*/
|
|
336
|
-
|
|
222
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
337
223
|
return __awaiter(this, void 0, void 0, function () {
|
|
338
224
|
var requestOptions, response;
|
|
339
225
|
return __generator(this, function (_a) {
|
|
340
226
|
switch (_a.label) {
|
|
341
|
-
case 0: return [4 /*yield*/, this.
|
|
227
|
+
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRequestOpts(requestParameters)];
|
|
342
228
|
case 1:
|
|
343
229
|
requestOptions = _a.sent();
|
|
344
230
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
345
231
|
case 2:
|
|
346
232
|
response = _a.sent();
|
|
347
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
233
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedProductRegistrationAssetResourceResponseFromJSON)(jsonValue); })];
|
|
348
234
|
}
|
|
349
235
|
});
|
|
350
236
|
});
|
|
351
237
|
};
|
|
352
238
|
/**
|
|
353
|
-
* Auto-generated:
|
|
239
|
+
* Auto-generated: listAssetsProductRegistration
|
|
354
240
|
*/
|
|
355
|
-
|
|
356
|
-
return __awaiter(this,
|
|
241
|
+
ProductRegistrationApi.prototype.listAssetsProductRegistration = function (requestParameters, initOverrides) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
357
243
|
var response;
|
|
358
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
359
244
|
return __generator(this, function (_a) {
|
|
360
245
|
switch (_a.label) {
|
|
361
|
-
case 0: return [4 /*yield*/, this.
|
|
246
|
+
case 0: return [4 /*yield*/, this.listAssetsProductRegistrationRaw(requestParameters, initOverrides)];
|
|
362
247
|
case 1:
|
|
363
248
|
response = _a.sent();
|
|
364
249
|
return [4 /*yield*/, response.value()];
|
|
@@ -368,58 +253,56 @@ var LabelApi = /** @class */ (function (_super) {
|
|
|
368
253
|
});
|
|
369
254
|
};
|
|
370
255
|
/**
|
|
371
|
-
* Creates request options for
|
|
256
|
+
* Creates request options for showProductRegistration without sending the request
|
|
372
257
|
*/
|
|
373
|
-
|
|
258
|
+
ProductRegistrationApi.prototype.showProductRegistrationRequestOpts = function (requestParameters) {
|
|
374
259
|
return __awaiter(this, void 0, void 0, function () {
|
|
375
260
|
var queryParameters, headerParameters, urlPath;
|
|
376
261
|
return __generator(this, function (_a) {
|
|
377
|
-
if (requestParameters['
|
|
378
|
-
throw new runtime.RequiredError('
|
|
262
|
+
if (requestParameters['productRegistration'] == null) {
|
|
263
|
+
throw new runtime.RequiredError('productRegistration', 'Required parameter "productRegistration" was null or undefined when calling showProductRegistration().');
|
|
379
264
|
}
|
|
380
265
|
queryParameters = {};
|
|
381
266
|
headerParameters = {};
|
|
382
|
-
|
|
383
|
-
urlPath = "
|
|
384
|
-
urlPath = urlPath.replace("{".concat("label", "}"), encodeURIComponent(String(requestParameters['label'])));
|
|
267
|
+
urlPath = "/admin-api/product-registration/{productRegistration}";
|
|
268
|
+
urlPath = urlPath.replace("{".concat("productRegistration", "}"), encodeURIComponent(String(requestParameters['productRegistration'])));
|
|
385
269
|
return [2 /*return*/, {
|
|
386
270
|
path: urlPath,
|
|
387
|
-
method: '
|
|
271
|
+
method: 'GET',
|
|
388
272
|
headers: headerParameters,
|
|
389
273
|
query: queryParameters,
|
|
390
|
-
body: (0, index_1.UpdateLabelRequestToJSON)(requestParameters['updateLabelRequest']),
|
|
391
274
|
}];
|
|
392
275
|
});
|
|
393
276
|
});
|
|
394
277
|
};
|
|
395
278
|
/**
|
|
396
|
-
* Auto-generated:
|
|
279
|
+
* Auto-generated: showProductRegistration
|
|
397
280
|
*/
|
|
398
|
-
|
|
281
|
+
ProductRegistrationApi.prototype.showProductRegistrationRaw = function (requestParameters, initOverrides) {
|
|
399
282
|
return __awaiter(this, void 0, void 0, function () {
|
|
400
283
|
var requestOptions, response;
|
|
401
284
|
return __generator(this, function (_a) {
|
|
402
285
|
switch (_a.label) {
|
|
403
|
-
case 0: return [4 /*yield*/, this.
|
|
286
|
+
case 0: return [4 /*yield*/, this.showProductRegistrationRequestOpts(requestParameters)];
|
|
404
287
|
case 1:
|
|
405
288
|
requestOptions = _a.sent();
|
|
406
289
|
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
407
290
|
case 2:
|
|
408
291
|
response = _a.sent();
|
|
409
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
292
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ProductRegistrationResourceFromJSON)(jsonValue); })];
|
|
410
293
|
}
|
|
411
294
|
});
|
|
412
295
|
});
|
|
413
296
|
};
|
|
414
297
|
/**
|
|
415
|
-
* Auto-generated:
|
|
298
|
+
* Auto-generated: showProductRegistration
|
|
416
299
|
*/
|
|
417
|
-
|
|
300
|
+
ProductRegistrationApi.prototype.showProductRegistration = function (requestParameters, initOverrides) {
|
|
418
301
|
return __awaiter(this, void 0, void 0, function () {
|
|
419
302
|
var response;
|
|
420
303
|
return __generator(this, function (_a) {
|
|
421
304
|
switch (_a.label) {
|
|
422
|
-
case 0: return [4 /*yield*/, this.
|
|
305
|
+
case 0: return [4 /*yield*/, this.showProductRegistrationRaw(requestParameters, initOverrides)];
|
|
423
306
|
case 1:
|
|
424
307
|
response = _a.sent();
|
|
425
308
|
return [4 /*yield*/, response.value()];
|
|
@@ -428,6 +311,6 @@ var LabelApi = /** @class */ (function (_super) {
|
|
|
428
311
|
});
|
|
429
312
|
});
|
|
430
313
|
};
|
|
431
|
-
return
|
|
314
|
+
return ProductRegistrationApi;
|
|
432
315
|
}(runtime.BaseAPI));
|
|
433
|
-
exports.
|
|
316
|
+
exports.ProductRegistrationApi = ProductRegistrationApi;
|
|
@@ -10,18 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface AttachStoresSupplierOperationRequest {
|
|
15
|
-
supplier: number;
|
|
16
|
-
attachStoresSupplierRequest?: AttachStoresSupplierRequest;
|
|
17
|
-
}
|
|
13
|
+
import type { GenericResponse, GetAllSupplierRequest, IndexSupplierRequest, PaginatedSupplierListResourceResponse, StoreSupplierRequest, SupplierLiteResourceArrayResponse, SupplierResource, UpdateSupplierRequest } from '../models/index';
|
|
18
14
|
export interface DestroySupplierRequest {
|
|
19
15
|
supplier: number;
|
|
20
16
|
}
|
|
21
|
-
export interface DetachStoresSupplierOperationRequest {
|
|
22
|
-
supplier: number;
|
|
23
|
-
detachStoresSupplierRequest?: DetachStoresSupplierRequest;
|
|
24
|
-
}
|
|
25
17
|
export interface ExportSupplierRequest {
|
|
26
18
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
27
19
|
}
|
|
@@ -48,18 +40,6 @@ export interface UpdateSupplierOperationRequest {
|
|
|
48
40
|
*
|
|
49
41
|
*/
|
|
50
42
|
export declare class SupplierApi extends runtime.BaseAPI {
|
|
51
|
-
/**
|
|
52
|
-
* Creates request options for attachStoresSupplier without sending the request
|
|
53
|
-
*/
|
|
54
|
-
attachStoresSupplierRequestOpts(requestParameters: AttachStoresSupplierOperationRequest): Promise<runtime.RequestOpts>;
|
|
55
|
-
/**
|
|
56
|
-
* Auto-generated: attachStoresSupplier
|
|
57
|
-
*/
|
|
58
|
-
attachStoresSupplierRaw(requestParameters: AttachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>>;
|
|
59
|
-
/**
|
|
60
|
-
* Auto-generated: attachStoresSupplier
|
|
61
|
-
*/
|
|
62
|
-
attachStoresSupplier(requestParameters: AttachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource>;
|
|
63
43
|
/**
|
|
64
44
|
* Creates request options for destroySupplier without sending the request
|
|
65
45
|
*/
|
|
@@ -72,18 +52,6 @@ export declare class SupplierApi extends runtime.BaseAPI {
|
|
|
72
52
|
* Auto-generated: destroySupplier
|
|
73
53
|
*/
|
|
74
54
|
destroySupplier(requestParameters: DestroySupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
75
|
-
/**
|
|
76
|
-
* Creates request options for detachStoresSupplier without sending the request
|
|
77
|
-
*/
|
|
78
|
-
detachStoresSupplierRequestOpts(requestParameters: DetachStoresSupplierOperationRequest): Promise<runtime.RequestOpts>;
|
|
79
|
-
/**
|
|
80
|
-
* Auto-generated: detachStoresSupplier
|
|
81
|
-
*/
|
|
82
|
-
detachStoresSupplierRaw(requestParameters: DetachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SupplierResource>>;
|
|
83
|
-
/**
|
|
84
|
-
* Auto-generated: detachStoresSupplier
|
|
85
|
-
*/
|
|
86
|
-
detachStoresSupplier(requestParameters: DetachStoresSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupplierResource>;
|
|
87
55
|
/**
|
|
88
56
|
* Creates request options for exportSupplier without sending the request
|
|
89
57
|
*/
|
package/dist/apis/SupplierApi.js
CHANGED
|
@@ -75,67 +75,6 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
75
75
|
function SupplierApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
* Creates request options for attachStoresSupplier without sending the request
|
|
80
|
-
*/
|
|
81
|
-
SupplierApi.prototype.attachStoresSupplierRequestOpts = 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['supplier'] == null) {
|
|
86
|
-
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling attachStoresSupplier().');
|
|
87
|
-
}
|
|
88
|
-
queryParameters = {};
|
|
89
|
-
headerParameters = {};
|
|
90
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
91
|
-
urlPath = "/admin-api/supplier/{supplier}/attach-stores";
|
|
92
|
-
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
93
|
-
return [2 /*return*/, {
|
|
94
|
-
path: urlPath,
|
|
95
|
-
method: 'POST',
|
|
96
|
-
headers: headerParameters,
|
|
97
|
-
query: queryParameters,
|
|
98
|
-
body: (0, index_1.AttachStoresSupplierRequestToJSON)(requestParameters['attachStoresSupplierRequest']),
|
|
99
|
-
}];
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* Auto-generated: attachStoresSupplier
|
|
105
|
-
*/
|
|
106
|
-
SupplierApi.prototype.attachStoresSupplierRaw = 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.attachStoresSupplierRequestOpts(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.SupplierResourceFromJSON)(jsonValue); })];
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Auto-generated: attachStoresSupplier
|
|
124
|
-
*/
|
|
125
|
-
SupplierApi.prototype.attachStoresSupplier = 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.attachStoresSupplierRaw(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
78
|
/**
|
|
140
79
|
* Creates request options for destroySupplier without sending the request
|
|
141
80
|
*/
|
|
@@ -195,67 +134,6 @@ var SupplierApi = /** @class */ (function (_super) {
|
|
|
195
134
|
});
|
|
196
135
|
});
|
|
197
136
|
};
|
|
198
|
-
/**
|
|
199
|
-
* Creates request options for detachStoresSupplier without sending the request
|
|
200
|
-
*/
|
|
201
|
-
SupplierApi.prototype.detachStoresSupplierRequestOpts = 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['supplier'] == null) {
|
|
206
|
-
throw new runtime.RequiredError('supplier', 'Required parameter "supplier" was null or undefined when calling detachStoresSupplier().');
|
|
207
|
-
}
|
|
208
|
-
queryParameters = {};
|
|
209
|
-
headerParameters = {};
|
|
210
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
211
|
-
urlPath = "/admin-api/supplier/{supplier}/detach-stores";
|
|
212
|
-
urlPath = urlPath.replace("{".concat("supplier", "}"), encodeURIComponent(String(requestParameters['supplier'])));
|
|
213
|
-
return [2 /*return*/, {
|
|
214
|
-
path: urlPath,
|
|
215
|
-
method: 'POST',
|
|
216
|
-
headers: headerParameters,
|
|
217
|
-
query: queryParameters,
|
|
218
|
-
body: (0, index_1.DetachStoresSupplierRequestToJSON)(requestParameters['detachStoresSupplierRequest']),
|
|
219
|
-
}];
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Auto-generated: detachStoresSupplier
|
|
225
|
-
*/
|
|
226
|
-
SupplierApi.prototype.detachStoresSupplierRaw = 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.detachStoresSupplierRequestOpts(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.SupplierResourceFromJSON)(jsonValue); })];
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
});
|
|
241
|
-
};
|
|
242
|
-
/**
|
|
243
|
-
* Auto-generated: detachStoresSupplier
|
|
244
|
-
*/
|
|
245
|
-
SupplierApi.prototype.detachStoresSupplier = 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.detachStoresSupplierRaw(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
137
|
/**
|
|
260
138
|
* Creates request options for exportSupplier without sending the request
|
|
261
139
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -5,13 +5,12 @@ export * from './DefinitionApi';
|
|
|
5
5
|
export * from './DocumentApi';
|
|
6
6
|
export * from './ExternalApiLogApi';
|
|
7
7
|
export * from './GoogleCategoryApi';
|
|
8
|
-
export * from './LabelApi';
|
|
9
8
|
export * from './OverlayTemplateApi';
|
|
10
9
|
export * from './ProductApi';
|
|
11
10
|
export * from './ProductCategoryApi';
|
|
12
11
|
export * from './ProductRangeApi';
|
|
12
|
+
export * from './ProductRegistrationApi';
|
|
13
13
|
export * from './ProductTypeApi';
|
|
14
14
|
export * from './SiteApi';
|
|
15
|
-
export * from './StoreApi';
|
|
16
15
|
export * from './SupplierApi';
|
|
17
16
|
export * from './TagApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -23,13 +23,12 @@ __exportStar(require("./DefinitionApi"), exports);
|
|
|
23
23
|
__exportStar(require("./DocumentApi"), exports);
|
|
24
24
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
25
25
|
__exportStar(require("./GoogleCategoryApi"), exports);
|
|
26
|
-
__exportStar(require("./LabelApi"), exports);
|
|
27
26
|
__exportStar(require("./OverlayTemplateApi"), exports);
|
|
28
27
|
__exportStar(require("./ProductApi"), exports);
|
|
29
28
|
__exportStar(require("./ProductCategoryApi"), exports);
|
|
30
29
|
__exportStar(require("./ProductRangeApi"), exports);
|
|
30
|
+
__exportStar(require("./ProductRegistrationApi"), exports);
|
|
31
31
|
__exportStar(require("./ProductTypeApi"), exports);
|
|
32
32
|
__exportStar(require("./SiteApi"), exports);
|
|
33
|
-
__exportStar(require("./StoreApi"), exports);
|
|
34
33
|
__exportStar(require("./SupplierApi"), exports);
|
|
35
34
|
__exportStar(require("./TagApi"), exports);
|