@digital8/lighting-illusions-ts-sdk 0.0.604 → 0.0.606
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 +0 -4
- package/README.md +2 -4
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/index.ts +0 -1
- package/src/models/index.ts +0 -1
- package/dist/apis/NetsuiteApi.d.ts +0 -29
- package/dist/apis/NetsuiteApi.js +0 -125
- package/dist/models/SyncProductNetsuiteProductRequest.d.ts +0 -200
- package/dist/models/SyncProductNetsuiteProductRequest.js +0 -107
- package/docs/NetsuiteApi.md +0 -74
- package/docs/SyncProductNetsuiteProductRequest.md +0 -90
- package/src/apis/NetsuiteApi.ts +0 -69
- package/src/models/SyncProductNetsuiteProductRequest.ts +0 -290
package/.openapi-generator/FILES
CHANGED
|
@@ -94,7 +94,6 @@ docs/IndexSupplierRequest.md
|
|
|
94
94
|
docs/IndexTagRequest.md
|
|
95
95
|
docs/ModelAttributeResource.md
|
|
96
96
|
docs/ModelAttributeResourceArrayResponse.md
|
|
97
|
-
docs/NetsuiteApi.md
|
|
98
97
|
docs/OverlayTemplateApi.md
|
|
99
98
|
docs/OverlayTemplateAssetPosition.md
|
|
100
99
|
docs/OverlayTemplateAssetResource.md
|
|
@@ -242,7 +241,6 @@ docs/SupplierLiteResource.md
|
|
|
242
241
|
docs/SupplierLiteResourceArrayResponse.md
|
|
243
242
|
docs/SupplierResource.md
|
|
244
243
|
docs/SupplierResourceArrayResponse.md
|
|
245
|
-
docs/SyncProductNetsuiteProductRequest.md
|
|
246
244
|
docs/TagApi.md
|
|
247
245
|
docs/TagListResource.md
|
|
248
246
|
docs/TagListResourceArrayResponse.md
|
|
@@ -275,7 +273,6 @@ src/apis/AttributeApi.ts
|
|
|
275
273
|
src/apis/DocumentApi.ts
|
|
276
274
|
src/apis/ExternalApiLogApi.ts
|
|
277
275
|
src/apis/GoogleCategoryApi.ts
|
|
278
|
-
src/apis/NetsuiteApi.ts
|
|
279
276
|
src/apis/OverlayTemplateApi.ts
|
|
280
277
|
src/apis/ProductApi.ts
|
|
281
278
|
src/apis/ProductCategoryApi.ts
|
|
@@ -513,7 +510,6 @@ src/models/SupplierLiteResource.ts
|
|
|
513
510
|
src/models/SupplierLiteResourceArrayResponse.ts
|
|
514
511
|
src/models/SupplierResource.ts
|
|
515
512
|
src/models/SupplierResourceArrayResponse.ts
|
|
516
|
-
src/models/SyncProductNetsuiteProductRequest.ts
|
|
517
513
|
src/models/TagListResource.ts
|
|
518
514
|
src/models/TagListResourceArrayResponse.ts
|
|
519
515
|
src/models/TagLiteResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.606
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -76,7 +76,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
76
76
|
*DocumentApi* | [**updateDocument**](docs/DocumentApi.md#updatedocumentoperation) | **PUT** /admin-api/document/{document}/update | Auto-generated: updateDocument
|
|
77
77
|
*ExternalApiLogApi* | [**indexExternalApiLog**](docs/ExternalApiLogApi.md#indexexternalapilogoperation) | **POST** /admin-api/external-api-log/list | Auto-generated: indexExternalApiLog
|
|
78
78
|
*GoogleCategoryApi* | [**getAllGoogleCategory**](docs/GoogleCategoryApi.md#getallgooglecategoryoperation) | **POST** /admin-api/google-category/all | Auto-generated: getAllGoogleCategory
|
|
79
|
-
*NetsuiteApi* | [**syncProductNetsuiteProduct**](docs/NetsuiteApi.md#syncproductnetsuiteproductoperation) | **POST** /admin-api/netsuite/products/sync | Auto-generated: syncProductNetsuiteProduct
|
|
80
79
|
*OverlayTemplateApi* | [**attachAssetsOverlayTemplate**](docs/OverlayTemplateApi.md#attachassetsoverlaytemplateoperation) | **POST** /admin-api/overlay-template/{overlayTemplate}/attach-assets | Auto-generated: attachAssetsOverlayTemplate
|
|
81
80
|
*OverlayTemplateApi* | [**destroyOverlayTemplate**](docs/OverlayTemplateApi.md#destroyoverlaytemplate) | **DELETE** /admin-api/overlay-template/{overlayTemplate}/delete | Auto-generated: destroyOverlayTemplate
|
|
82
81
|
*OverlayTemplateApi* | [**destroyOverlayTemplateAsset**](docs/OverlayTemplateApi.md#destroyoverlaytemplateasset) | **DELETE** /admin-api/overlay-template/asset/{overlayTemplateAsset}/delete | Auto-generated: destroyOverlayTemplateAsset
|
|
@@ -386,7 +385,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
386
385
|
- [SupplierLiteResourceArrayResponse](docs/SupplierLiteResourceArrayResponse.md)
|
|
387
386
|
- [SupplierResource](docs/SupplierResource.md)
|
|
388
387
|
- [SupplierResourceArrayResponse](docs/SupplierResourceArrayResponse.md)
|
|
389
|
-
- [SyncProductNetsuiteProductRequest](docs/SyncProductNetsuiteProductRequest.md)
|
|
390
388
|
- [TagListResource](docs/TagListResource.md)
|
|
391
389
|
- [TagListResourceArrayResponse](docs/TagListResourceArrayResponse.md)
|
|
392
390
|
- [TagLiteResource](docs/TagLiteResource.md)
|
|
@@ -425,7 +423,7 @@ and is automatically generated by the
|
|
|
425
423
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
426
424
|
|
|
427
425
|
- API version: `1.0.0`
|
|
428
|
-
- Package version: `0.0.
|
|
426
|
+
- Package version: `0.0.606`
|
|
429
427
|
- Generator version: `7.18.0`
|
|
430
428
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
431
429
|
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './AttributeApi';
|
|
|
3
3
|
export * from './DocumentApi';
|
|
4
4
|
export * from './ExternalApiLogApi';
|
|
5
5
|
export * from './GoogleCategoryApi';
|
|
6
|
-
export * from './NetsuiteApi';
|
|
7
6
|
export * from './OverlayTemplateApi';
|
|
8
7
|
export * from './ProductApi';
|
|
9
8
|
export * from './ProductCategoryApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -21,7 +21,6 @@ __exportStar(require("./AttributeApi"), exports);
|
|
|
21
21
|
__exportStar(require("./DocumentApi"), exports);
|
|
22
22
|
__exportStar(require("./ExternalApiLogApi"), exports);
|
|
23
23
|
__exportStar(require("./GoogleCategoryApi"), exports);
|
|
24
|
-
__exportStar(require("./NetsuiteApi"), exports);
|
|
25
24
|
__exportStar(require("./OverlayTemplateApi"), exports);
|
|
26
25
|
__exportStar(require("./ProductApi"), exports);
|
|
27
26
|
__exportStar(require("./ProductCategoryApi"), exports);
|
package/dist/models/index.d.ts
CHANGED
|
@@ -225,7 +225,6 @@ export * from './SupplierLiteResource';
|
|
|
225
225
|
export * from './SupplierLiteResourceArrayResponse';
|
|
226
226
|
export * from './SupplierResource';
|
|
227
227
|
export * from './SupplierResourceArrayResponse';
|
|
228
|
-
export * from './SyncProductNetsuiteProductRequest';
|
|
229
228
|
export * from './TagListResource';
|
|
230
229
|
export * from './TagListResourceArrayResponse';
|
|
231
230
|
export * from './TagLiteResource';
|
package/dist/models/index.js
CHANGED
|
@@ -243,7 +243,6 @@ __exportStar(require("./SupplierLiteResource"), exports);
|
|
|
243
243
|
__exportStar(require("./SupplierLiteResourceArrayResponse"), exports);
|
|
244
244
|
__exportStar(require("./SupplierResource"), exports);
|
|
245
245
|
__exportStar(require("./SupplierResourceArrayResponse"), exports);
|
|
246
|
-
__exportStar(require("./SyncProductNetsuiteProductRequest"), exports);
|
|
247
246
|
__exportStar(require("./TagListResource"), exports);
|
|
248
247
|
__exportStar(require("./TagListResourceArrayResponse"), exports);
|
|
249
248
|
__exportStar(require("./TagLiteResource"), exports);
|
package/package.json
CHANGED
package/src/apis/index.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './AttributeApi';
|
|
|
5
5
|
export * from './DocumentApi';
|
|
6
6
|
export * from './ExternalApiLogApi';
|
|
7
7
|
export * from './GoogleCategoryApi';
|
|
8
|
-
export * from './NetsuiteApi';
|
|
9
8
|
export * from './OverlayTemplateApi';
|
|
10
9
|
export * from './ProductApi';
|
|
11
10
|
export * from './ProductCategoryApi';
|
package/src/models/index.ts
CHANGED
|
@@ -227,7 +227,6 @@ export * from './SupplierLiteResource';
|
|
|
227
227
|
export * from './SupplierLiteResourceArrayResponse';
|
|
228
228
|
export * from './SupplierResource';
|
|
229
229
|
export * from './SupplierResourceArrayResponse';
|
|
230
|
-
export * from './SyncProductNetsuiteProductRequest';
|
|
231
230
|
export * from './TagListResource';
|
|
232
231
|
export * from './TagListResourceArrayResponse';
|
|
233
232
|
export * from './TagLiteResource';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { GenericResponse, SyncProductNetsuiteProductRequest } from '../models/index';
|
|
14
|
-
export interface SyncProductNetsuiteProductOperationRequest {
|
|
15
|
-
syncProductNetsuiteProductRequest?: SyncProductNetsuiteProductRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class NetsuiteApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
23
|
-
*/
|
|
24
|
-
syncProductNetsuiteProductRaw(requestParameters: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
25
|
-
/**
|
|
26
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
27
|
-
*/
|
|
28
|
-
syncProductNetsuiteProduct(requestParameters?: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
29
|
-
}
|
package/dist/apis/NetsuiteApi.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
41
|
-
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.NetsuiteApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var NetsuiteApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(NetsuiteApi, _super);
|
|
75
|
-
function NetsuiteApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
80
|
-
*/
|
|
81
|
-
NetsuiteApi.prototype.syncProductNetsuiteProductRaw = function (requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var queryParameters, headerParameters, urlPath, response;
|
|
84
|
-
return __generator(this, function (_a) {
|
|
85
|
-
switch (_a.label) {
|
|
86
|
-
case 0:
|
|
87
|
-
queryParameters = {};
|
|
88
|
-
headerParameters = {};
|
|
89
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
urlPath = "/admin-api/netsuite/products/sync";
|
|
91
|
-
return [4 /*yield*/, this.request({
|
|
92
|
-
path: urlPath,
|
|
93
|
-
method: 'POST',
|
|
94
|
-
headers: headerParameters,
|
|
95
|
-
query: queryParameters,
|
|
96
|
-
body: (0, index_1.SyncProductNetsuiteProductRequestToJSON)(requestParameters['syncProductNetsuiteProductRequest']),
|
|
97
|
-
}, initOverrides)];
|
|
98
|
-
case 1:
|
|
99
|
-
response = _a.sent();
|
|
100
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
107
|
-
*/
|
|
108
|
-
NetsuiteApi.prototype.syncProductNetsuiteProduct = function () {
|
|
109
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
110
|
-
var response;
|
|
111
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
112
|
-
return __generator(this, function (_a) {
|
|
113
|
-
switch (_a.label) {
|
|
114
|
-
case 0: return [4 /*yield*/, this.syncProductNetsuiteProductRaw(requestParameters, initOverrides)];
|
|
115
|
-
case 1:
|
|
116
|
-
response = _a.sent();
|
|
117
|
-
return [4 /*yield*/, response.value()];
|
|
118
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
return NetsuiteApi;
|
|
124
|
-
}(runtime.BaseAPI));
|
|
125
|
-
exports.NetsuiteApi = NetsuiteApi;
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface SyncProductNetsuiteProductRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface SyncProductNetsuiteProductRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
22
|
-
*/
|
|
23
|
-
internalId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
28
|
-
*/
|
|
29
|
-
upccode?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
34
|
-
*/
|
|
35
|
-
vendorname?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
40
|
-
*/
|
|
41
|
-
custitemAnxRetailId?: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
46
|
-
*/
|
|
47
|
-
custitemrrpGst?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
52
|
-
*/
|
|
53
|
-
onlineLocationCost?: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
58
|
-
*/
|
|
59
|
-
custitemAnxAllowOversell?: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
64
|
-
*/
|
|
65
|
-
productType?: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
70
|
-
*/
|
|
71
|
-
vendor?: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
76
|
-
*/
|
|
77
|
-
vendorId?: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
82
|
-
*/
|
|
83
|
-
supplierId?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
88
|
-
*/
|
|
89
|
-
supplierName?: string;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
94
|
-
*/
|
|
95
|
-
salesDescription?: string;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {number}
|
|
99
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
100
|
-
*/
|
|
101
|
-
weight?: number;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
106
|
-
*/
|
|
107
|
-
weightUnit?: string;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {Array<string>}
|
|
111
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
112
|
-
*/
|
|
113
|
-
published?: Array<string>;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
118
|
-
*/
|
|
119
|
-
cfdPrice?: string;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
124
|
-
*/
|
|
125
|
-
liPrice?: string;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
130
|
-
*/
|
|
131
|
-
priceFeed?: string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
136
|
-
*/
|
|
137
|
-
priceFeedCategory?: string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {number}
|
|
141
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
142
|
-
*/
|
|
143
|
-
popularityScore?: number;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {string}
|
|
147
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
148
|
-
*/
|
|
149
|
-
excludeSearch?: string;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {string}
|
|
153
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
154
|
-
*/
|
|
155
|
-
oversized?: string;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {string}
|
|
159
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
160
|
-
*/
|
|
161
|
-
excludeFrontend?: string;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {string}
|
|
165
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
166
|
-
*/
|
|
167
|
-
labelLi?: string;
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @type {string}
|
|
171
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
172
|
-
*/
|
|
173
|
-
labelCfd?: string;
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
* @type {Array<string>}
|
|
177
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
178
|
-
*/
|
|
179
|
-
attribRoom?: Array<string>;
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
* @type {Array<string>}
|
|
183
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
184
|
-
*/
|
|
185
|
-
attribStyle?: Array<string>;
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* @type {string}
|
|
189
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
190
|
-
*/
|
|
191
|
-
attribPrimarycolour?: string;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Check if a given object implements the SyncProductNetsuiteProductRequest interface.
|
|
195
|
-
*/
|
|
196
|
-
export declare function instanceOfSyncProductNetsuiteProductRequest(value: object): value is SyncProductNetsuiteProductRequest;
|
|
197
|
-
export declare function SyncProductNetsuiteProductRequestFromJSON(json: any): SyncProductNetsuiteProductRequest;
|
|
198
|
-
export declare function SyncProductNetsuiteProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncProductNetsuiteProductRequest;
|
|
199
|
-
export declare function SyncProductNetsuiteProductRequestToJSON(json: any): SyncProductNetsuiteProductRequest;
|
|
200
|
-
export declare function SyncProductNetsuiteProductRequestToJSONTyped(value?: SyncProductNetsuiteProductRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfSyncProductNetsuiteProductRequest = instanceOfSyncProductNetsuiteProductRequest;
|
|
17
|
-
exports.SyncProductNetsuiteProductRequestFromJSON = SyncProductNetsuiteProductRequestFromJSON;
|
|
18
|
-
exports.SyncProductNetsuiteProductRequestFromJSONTyped = SyncProductNetsuiteProductRequestFromJSONTyped;
|
|
19
|
-
exports.SyncProductNetsuiteProductRequestToJSON = SyncProductNetsuiteProductRequestToJSON;
|
|
20
|
-
exports.SyncProductNetsuiteProductRequestToJSONTyped = SyncProductNetsuiteProductRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the SyncProductNetsuiteProductRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfSyncProductNetsuiteProductRequest(value) {
|
|
25
|
-
if (!('internalId' in value) || value['internalId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function SyncProductNetsuiteProductRequestFromJSON(json) {
|
|
30
|
-
return SyncProductNetsuiteProductRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function SyncProductNetsuiteProductRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'internalId': json['internalId'],
|
|
38
|
-
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
39
|
-
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
40
|
-
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
41
|
-
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
42
|
-
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
43
|
-
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
44
|
-
'productType': json['productType'] == null ? undefined : json['productType'],
|
|
45
|
-
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
46
|
-
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
47
|
-
'supplierId': json['supplierId'] == null ? undefined : json['supplierId'],
|
|
48
|
-
'supplierName': json['supplierName'] == null ? undefined : json['supplierName'],
|
|
49
|
-
'salesDescription': json['salesDescription'] == null ? undefined : json['salesDescription'],
|
|
50
|
-
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
51
|
-
'weightUnit': json['weightUnit'] == null ? undefined : json['weightUnit'],
|
|
52
|
-
'published': json['published'] == null ? undefined : json['published'],
|
|
53
|
-
'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
|
|
54
|
-
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
55
|
-
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
56
|
-
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
57
|
-
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
58
|
-
'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
|
|
59
|
-
'oversized': json['oversized'] == null ? undefined : json['oversized'],
|
|
60
|
-
'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
|
|
61
|
-
'labelLi': json['label_li'] == null ? undefined : json['label_li'],
|
|
62
|
-
'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
|
|
63
|
-
'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
|
|
64
|
-
'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
|
|
65
|
-
'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function SyncProductNetsuiteProductRequestToJSON(json) {
|
|
69
|
-
return SyncProductNetsuiteProductRequestToJSONTyped(json, false);
|
|
70
|
-
}
|
|
71
|
-
function SyncProductNetsuiteProductRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
72
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
73
|
-
if (value == null) {
|
|
74
|
-
return value;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
'internalId': value['internalId'],
|
|
78
|
-
'upccode': value['upccode'],
|
|
79
|
-
'vendorname': value['vendorname'],
|
|
80
|
-
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
81
|
-
'custitemrrp_gst': value['custitemrrpGst'],
|
|
82
|
-
'online_location_cost': value['onlineLocationCost'],
|
|
83
|
-
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
84
|
-
'productType': value['productType'],
|
|
85
|
-
'vendor': value['vendor'],
|
|
86
|
-
'vendorId': value['vendorId'],
|
|
87
|
-
'supplierId': value['supplierId'],
|
|
88
|
-
'supplierName': value['supplierName'],
|
|
89
|
-
'salesDescription': value['salesDescription'],
|
|
90
|
-
'weight': value['weight'],
|
|
91
|
-
'weightUnit': value['weightUnit'],
|
|
92
|
-
'published': value['published'],
|
|
93
|
-
'cfd_price': value['cfdPrice'],
|
|
94
|
-
'li_price': value['liPrice'],
|
|
95
|
-
'price_feed': value['priceFeed'],
|
|
96
|
-
'price_feed_category': value['priceFeedCategory'],
|
|
97
|
-
'popularity_score': value['popularityScore'],
|
|
98
|
-
'exclude_search': value['excludeSearch'],
|
|
99
|
-
'oversized': value['oversized'],
|
|
100
|
-
'exclude_frontend': value['excludeFrontend'],
|
|
101
|
-
'label_li': value['labelLi'],
|
|
102
|
-
'label_cfd': value['labelCfd'],
|
|
103
|
-
'attrib_room': value['attribRoom'],
|
|
104
|
-
'attrib_style': value['attribStyle'],
|
|
105
|
-
'attrib_primarycolour': value['attribPrimarycolour'],
|
|
106
|
-
};
|
|
107
|
-
}
|
package/docs/NetsuiteApi.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# NetsuiteApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost/api*
|
|
4
|
-
|
|
5
|
-
| Method | HTTP request | Description |
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
| [**syncProductNetsuiteProduct**](NetsuiteApi.md#syncproductnetsuiteproductoperation) | **POST** /admin-api/netsuite/products/sync | Auto-generated: syncProductNetsuiteProduct |
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
## syncProductNetsuiteProduct
|
|
12
|
-
|
|
13
|
-
> GenericResponse syncProductNetsuiteProduct(syncProductNetsuiteProductRequest)
|
|
14
|
-
|
|
15
|
-
Auto-generated: syncProductNetsuiteProduct
|
|
16
|
-
|
|
17
|
-
### Example
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import {
|
|
21
|
-
Configuration,
|
|
22
|
-
NetsuiteApi,
|
|
23
|
-
} from '@digital8/lighting-illusions-ts-sdk';
|
|
24
|
-
import type { SyncProductNetsuiteProductOperationRequest } from '@digital8/lighting-illusions-ts-sdk';
|
|
25
|
-
|
|
26
|
-
async function example() {
|
|
27
|
-
console.log("🚀 Testing @digital8/lighting-illusions-ts-sdk SDK...");
|
|
28
|
-
const api = new NetsuiteApi();
|
|
29
|
-
|
|
30
|
-
const body = {
|
|
31
|
-
// SyncProductNetsuiteProductRequest (optional)
|
|
32
|
-
syncProductNetsuiteProductRequest: ...,
|
|
33
|
-
} satisfies SyncProductNetsuiteProductOperationRequest;
|
|
34
|
-
|
|
35
|
-
try {
|
|
36
|
-
const data = await api.syncProductNetsuiteProduct(body);
|
|
37
|
-
console.log(data);
|
|
38
|
-
} catch (error) {
|
|
39
|
-
console.error(error);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Run the test
|
|
44
|
-
example().catch(console.error);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Parameters
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description | Notes |
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **syncProductNetsuiteProductRequest** | [SyncProductNetsuiteProductRequest](SyncProductNetsuiteProductRequest.md) | | [Optional] |
|
|
53
|
-
|
|
54
|
-
### Return type
|
|
55
|
-
|
|
56
|
-
[**GenericResponse**](GenericResponse.md)
|
|
57
|
-
|
|
58
|
-
### Authorization
|
|
59
|
-
|
|
60
|
-
No authorization required
|
|
61
|
-
|
|
62
|
-
### HTTP request headers
|
|
63
|
-
|
|
64
|
-
- **Content-Type**: `application/json`
|
|
65
|
-
- **Accept**: `application/json`
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
### HTTP response details
|
|
69
|
-
| Status code | Description | Response headers |
|
|
70
|
-
|-------------|-------------|------------------|
|
|
71
|
-
| **200** | \\JsonResponse | - |
|
|
72
|
-
|
|
73
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
74
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# SyncProductNetsuiteProductRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`internalId` | number
|
|
10
|
-
`upccode` | string
|
|
11
|
-
`vendorname` | string
|
|
12
|
-
`custitemAnxRetailId` | string
|
|
13
|
-
`custitemrrpGst` | number
|
|
14
|
-
`onlineLocationCost` | number
|
|
15
|
-
`custitemAnxAllowOversell` | string
|
|
16
|
-
`productType` | string
|
|
17
|
-
`vendor` | string
|
|
18
|
-
`vendorId` | string
|
|
19
|
-
`supplierId` | string
|
|
20
|
-
`supplierName` | string
|
|
21
|
-
`salesDescription` | string
|
|
22
|
-
`weight` | number
|
|
23
|
-
`weightUnit` | string
|
|
24
|
-
`published` | Array<string>
|
|
25
|
-
`cfdPrice` | string
|
|
26
|
-
`liPrice` | string
|
|
27
|
-
`priceFeed` | string
|
|
28
|
-
`priceFeedCategory` | string
|
|
29
|
-
`popularityScore` | number
|
|
30
|
-
`excludeSearch` | string
|
|
31
|
-
`oversized` | string
|
|
32
|
-
`excludeFrontend` | string
|
|
33
|
-
`labelLi` | string
|
|
34
|
-
`labelCfd` | string
|
|
35
|
-
`attribRoom` | Array<string>
|
|
36
|
-
`attribStyle` | Array<string>
|
|
37
|
-
`attribPrimarycolour` | string
|
|
38
|
-
|
|
39
|
-
## Example
|
|
40
|
-
|
|
41
|
-
```typescript
|
|
42
|
-
import type { SyncProductNetsuiteProductRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
43
|
-
|
|
44
|
-
// TODO: Update the object below with actual values
|
|
45
|
-
const example = {
|
|
46
|
-
"internalId": null,
|
|
47
|
-
"upccode": null,
|
|
48
|
-
"vendorname": null,
|
|
49
|
-
"custitemAnxRetailId": null,
|
|
50
|
-
"custitemrrpGst": null,
|
|
51
|
-
"onlineLocationCost": null,
|
|
52
|
-
"custitemAnxAllowOversell": null,
|
|
53
|
-
"productType": null,
|
|
54
|
-
"vendor": null,
|
|
55
|
-
"vendorId": null,
|
|
56
|
-
"supplierId": null,
|
|
57
|
-
"supplierName": null,
|
|
58
|
-
"salesDescription": null,
|
|
59
|
-
"weight": null,
|
|
60
|
-
"weightUnit": null,
|
|
61
|
-
"published": null,
|
|
62
|
-
"cfdPrice": null,
|
|
63
|
-
"liPrice": null,
|
|
64
|
-
"priceFeed": null,
|
|
65
|
-
"priceFeedCategory": null,
|
|
66
|
-
"popularityScore": null,
|
|
67
|
-
"excludeSearch": null,
|
|
68
|
-
"oversized": null,
|
|
69
|
-
"excludeFrontend": null,
|
|
70
|
-
"labelLi": null,
|
|
71
|
-
"labelCfd": null,
|
|
72
|
-
"attribRoom": null,
|
|
73
|
-
"attribStyle": null,
|
|
74
|
-
"attribPrimarycolour": null,
|
|
75
|
-
} satisfies SyncProductNetsuiteProductRequest
|
|
76
|
-
|
|
77
|
-
console.log(example)
|
|
78
|
-
|
|
79
|
-
// Convert the instance to a JSON string
|
|
80
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
81
|
-
console.log(exampleJSON)
|
|
82
|
-
|
|
83
|
-
// Parse the JSON string back to an object
|
|
84
|
-
const exampleParsed = JSON.parse(exampleJSON) as SyncProductNetsuiteProductRequest
|
|
85
|
-
console.log(exampleParsed)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
89
|
-
|
|
90
|
-
|
package/src/apis/NetsuiteApi.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import * as runtime from '../runtime';
|
|
17
|
-
import type {
|
|
18
|
-
GenericResponse,
|
|
19
|
-
SyncProductNetsuiteProductRequest,
|
|
20
|
-
} from '../models/index';
|
|
21
|
-
import {
|
|
22
|
-
GenericResponseFromJSON,
|
|
23
|
-
GenericResponseToJSON,
|
|
24
|
-
SyncProductNetsuiteProductRequestFromJSON,
|
|
25
|
-
SyncProductNetsuiteProductRequestToJSON,
|
|
26
|
-
} from '../models/index';
|
|
27
|
-
|
|
28
|
-
export interface SyncProductNetsuiteProductOperationRequest {
|
|
29
|
-
syncProductNetsuiteProductRequest?: SyncProductNetsuiteProductRequest;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
export class NetsuiteApi extends runtime.BaseAPI {
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
39
|
-
*/
|
|
40
|
-
async syncProductNetsuiteProductRaw(requestParameters: SyncProductNetsuiteProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
41
|
-
const queryParameters: any = {};
|
|
42
|
-
|
|
43
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
44
|
-
|
|
45
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
let urlPath = `/admin-api/netsuite/products/sync`;
|
|
49
|
-
|
|
50
|
-
const response = await this.request({
|
|
51
|
-
path: urlPath,
|
|
52
|
-
method: 'POST',
|
|
53
|
-
headers: headerParameters,
|
|
54
|
-
query: queryParameters,
|
|
55
|
-
body: SyncProductNetsuiteProductRequestToJSON(requestParameters['syncProductNetsuiteProductRequest']),
|
|
56
|
-
}, initOverrides);
|
|
57
|
-
|
|
58
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Auto-generated: syncProductNetsuiteProduct
|
|
63
|
-
*/
|
|
64
|
-
async syncProductNetsuiteProduct(requestParameters: SyncProductNetsuiteProductOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
65
|
-
const response = await this.syncProductNetsuiteProductRaw(requestParameters, initOverrides);
|
|
66
|
-
return await response.value();
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
}
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface SyncProductNetsuiteProductRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface SyncProductNetsuiteProductRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
26
|
-
*/
|
|
27
|
-
internalId: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
32
|
-
*/
|
|
33
|
-
upccode?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
38
|
-
*/
|
|
39
|
-
vendorname?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
44
|
-
*/
|
|
45
|
-
custitemAnxRetailId?: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
50
|
-
*/
|
|
51
|
-
custitemrrpGst?: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
56
|
-
*/
|
|
57
|
-
onlineLocationCost?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
62
|
-
*/
|
|
63
|
-
custitemAnxAllowOversell?: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
68
|
-
*/
|
|
69
|
-
productType?: string;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
74
|
-
*/
|
|
75
|
-
vendor?: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
80
|
-
*/
|
|
81
|
-
vendorId?: string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
86
|
-
*/
|
|
87
|
-
supplierId?: string;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
92
|
-
*/
|
|
93
|
-
supplierName?: string;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {string}
|
|
97
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
98
|
-
*/
|
|
99
|
-
salesDescription?: string;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
104
|
-
*/
|
|
105
|
-
weight?: number;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
110
|
-
*/
|
|
111
|
-
weightUnit?: string;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {Array<string>}
|
|
115
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
116
|
-
*/
|
|
117
|
-
published?: Array<string>;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
122
|
-
*/
|
|
123
|
-
cfdPrice?: string;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
128
|
-
*/
|
|
129
|
-
liPrice?: string;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
134
|
-
*/
|
|
135
|
-
priceFeed?: string;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
140
|
-
*/
|
|
141
|
-
priceFeedCategory?: string;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {number}
|
|
145
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
146
|
-
*/
|
|
147
|
-
popularityScore?: number;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
152
|
-
*/
|
|
153
|
-
excludeSearch?: string;
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
158
|
-
*/
|
|
159
|
-
oversized?: string;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
164
|
-
*/
|
|
165
|
-
excludeFrontend?: string;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
170
|
-
*/
|
|
171
|
-
labelLi?: string;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {string}
|
|
175
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
176
|
-
*/
|
|
177
|
-
labelCfd?: string;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @type {Array<string>}
|
|
181
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
182
|
-
*/
|
|
183
|
-
attribRoom?: Array<string>;
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @type {Array<string>}
|
|
187
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
188
|
-
*/
|
|
189
|
-
attribStyle?: Array<string>;
|
|
190
|
-
/**
|
|
191
|
-
*
|
|
192
|
-
* @type {string}
|
|
193
|
-
* @memberof SyncProductNetsuiteProductRequest
|
|
194
|
-
*/
|
|
195
|
-
attribPrimarycolour?: string;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Check if a given object implements the SyncProductNetsuiteProductRequest interface.
|
|
200
|
-
*/
|
|
201
|
-
export function instanceOfSyncProductNetsuiteProductRequest(value: object): value is SyncProductNetsuiteProductRequest {
|
|
202
|
-
if (!('internalId' in value) || value['internalId'] === undefined) return false;
|
|
203
|
-
return true;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function SyncProductNetsuiteProductRequestFromJSON(json: any): SyncProductNetsuiteProductRequest {
|
|
207
|
-
return SyncProductNetsuiteProductRequestFromJSONTyped(json, false);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export function SyncProductNetsuiteProductRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SyncProductNetsuiteProductRequest {
|
|
211
|
-
if (json == null) {
|
|
212
|
-
return json;
|
|
213
|
-
}
|
|
214
|
-
return {
|
|
215
|
-
|
|
216
|
-
'internalId': json['internalId'],
|
|
217
|
-
'upccode': json['upccode'] == null ? undefined : json['upccode'],
|
|
218
|
-
'vendorname': json['vendorname'] == null ? undefined : json['vendorname'],
|
|
219
|
-
'custitemAnxRetailId': json['custitem_anx_retail_id'] == null ? undefined : json['custitem_anx_retail_id'],
|
|
220
|
-
'custitemrrpGst': json['custitemrrp_gst'] == null ? undefined : json['custitemrrp_gst'],
|
|
221
|
-
'onlineLocationCost': json['online_location_cost'] == null ? undefined : json['online_location_cost'],
|
|
222
|
-
'custitemAnxAllowOversell': json['custitem_anx_allow_oversell'] == null ? undefined : json['custitem_anx_allow_oversell'],
|
|
223
|
-
'productType': json['productType'] == null ? undefined : json['productType'],
|
|
224
|
-
'vendor': json['vendor'] == null ? undefined : json['vendor'],
|
|
225
|
-
'vendorId': json['vendorId'] == null ? undefined : json['vendorId'],
|
|
226
|
-
'supplierId': json['supplierId'] == null ? undefined : json['supplierId'],
|
|
227
|
-
'supplierName': json['supplierName'] == null ? undefined : json['supplierName'],
|
|
228
|
-
'salesDescription': json['salesDescription'] == null ? undefined : json['salesDescription'],
|
|
229
|
-
'weight': json['weight'] == null ? undefined : json['weight'],
|
|
230
|
-
'weightUnit': json['weightUnit'] == null ? undefined : json['weightUnit'],
|
|
231
|
-
'published': json['published'] == null ? undefined : json['published'],
|
|
232
|
-
'cfdPrice': json['cfd_price'] == null ? undefined : json['cfd_price'],
|
|
233
|
-
'liPrice': json['li_price'] == null ? undefined : json['li_price'],
|
|
234
|
-
'priceFeed': json['price_feed'] == null ? undefined : json['price_feed'],
|
|
235
|
-
'priceFeedCategory': json['price_feed_category'] == null ? undefined : json['price_feed_category'],
|
|
236
|
-
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
237
|
-
'excludeSearch': json['exclude_search'] == null ? undefined : json['exclude_search'],
|
|
238
|
-
'oversized': json['oversized'] == null ? undefined : json['oversized'],
|
|
239
|
-
'excludeFrontend': json['exclude_frontend'] == null ? undefined : json['exclude_frontend'],
|
|
240
|
-
'labelLi': json['label_li'] == null ? undefined : json['label_li'],
|
|
241
|
-
'labelCfd': json['label_cfd'] == null ? undefined : json['label_cfd'],
|
|
242
|
-
'attribRoom': json['attrib_room'] == null ? undefined : json['attrib_room'],
|
|
243
|
-
'attribStyle': json['attrib_style'] == null ? undefined : json['attrib_style'],
|
|
244
|
-
'attribPrimarycolour': json['attrib_primarycolour'] == null ? undefined : json['attrib_primarycolour'],
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export function SyncProductNetsuiteProductRequestToJSON(json: any): SyncProductNetsuiteProductRequest {
|
|
249
|
-
return SyncProductNetsuiteProductRequestToJSONTyped(json, false);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export function SyncProductNetsuiteProductRequestToJSONTyped(value?: SyncProductNetsuiteProductRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
253
|
-
if (value == null) {
|
|
254
|
-
return value;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
return {
|
|
258
|
-
|
|
259
|
-
'internalId': value['internalId'],
|
|
260
|
-
'upccode': value['upccode'],
|
|
261
|
-
'vendorname': value['vendorname'],
|
|
262
|
-
'custitem_anx_retail_id': value['custitemAnxRetailId'],
|
|
263
|
-
'custitemrrp_gst': value['custitemrrpGst'],
|
|
264
|
-
'online_location_cost': value['onlineLocationCost'],
|
|
265
|
-
'custitem_anx_allow_oversell': value['custitemAnxAllowOversell'],
|
|
266
|
-
'productType': value['productType'],
|
|
267
|
-
'vendor': value['vendor'],
|
|
268
|
-
'vendorId': value['vendorId'],
|
|
269
|
-
'supplierId': value['supplierId'],
|
|
270
|
-
'supplierName': value['supplierName'],
|
|
271
|
-
'salesDescription': value['salesDescription'],
|
|
272
|
-
'weight': value['weight'],
|
|
273
|
-
'weightUnit': value['weightUnit'],
|
|
274
|
-
'published': value['published'],
|
|
275
|
-
'cfd_price': value['cfdPrice'],
|
|
276
|
-
'li_price': value['liPrice'],
|
|
277
|
-
'price_feed': value['priceFeed'],
|
|
278
|
-
'price_feed_category': value['priceFeedCategory'],
|
|
279
|
-
'popularity_score': value['popularityScore'],
|
|
280
|
-
'exclude_search': value['excludeSearch'],
|
|
281
|
-
'oversized': value['oversized'],
|
|
282
|
-
'exclude_frontend': value['excludeFrontend'],
|
|
283
|
-
'label_li': value['labelLi'],
|
|
284
|
-
'label_cfd': value['labelCfd'],
|
|
285
|
-
'attrib_room': value['attribRoom'],
|
|
286
|
-
'attrib_style': value['attribStyle'],
|
|
287
|
-
'attrib_primarycolour': value['attribPrimarycolour'],
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
|